/* Global Styles */
:root {
    --primary-color: #1a1e29;
    /* Dark Navy from logo concept */
    --secondary-color: #2c3444;
    /* Lighter shade for gradients/hover */
    --accent-color: #d4af37;
    /* Gold for premium touches */
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --bg-dark: #121212;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.underline-small {
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
    margin-left: 0;
    /* Align left usually for cards */
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    /* Solid color to match header */
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-brands-slider .slider-track img {
    width: auto;
    /* Allow width to flex based on image aspect ratio */
    height: 55px;
    /* Fixed height ensures uniformity */
    max-width: 200px;
    /* Prevent extremely wide logos */
    margin: 0 25px;
    /* Increased spacing */
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make logos white for dark background */
    opacity: 0.8;
    transition: var(--transition);
}

.product-brands-slider .slider-track img:hover {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    /* Adjusted for full logo ratio */
    width: auto;
    /* No filters needed as the image is already white and transparent */
}

/* .logo-text removed as it is now part of the image */



.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px auto;
    transition: var(--transition);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 160px 0 80px;
    /* Account for fixed navbar */
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    margin-top: -80px;
    position: relative;
    overflow: hidden;
}

/* Hero Background Slider */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Lighter filters for better visibility */
    filter: brightness(0.75) contrast(1.05);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter overlay */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Forms - Modern Design */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.modern-form {
    margin-top: 40px;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background-color: #fcfcfc;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: #fff;
}

/* Custom Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 0.8rem;
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfc;
    transition: var(--transition);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    border-color: var(--accent-color);
    background-color: rgba(212, 175, 55, 0.05);
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-custom-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    pointer-events: none;
}

.file-custom-label i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.file-custom-label span {
    font-size: 0.9rem;
}

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-btn img {
    height: 26px;
    /* Increased for better visibility */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.filter-btn.active img,
.filter-btn:hover img {
    filter: brightness(0) invert(1);
    /* Make white on hover/active */
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: auto;
    /* Ensure card grows to fit content */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force square aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 4rem;
    color: #cbd5e0;
    transition: var(--transition);
}

.product-card:hover .product-image i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.product-info {
    padding: 15px;
    text-align: center;
    /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* Ensure white background for contrast */
}

.product-info h3 {
    font-size: 1rem;
    /* Slightly smaller for 'small box' feel */
    margin-bottom: 5px;
    color: var(--primary-color);
    line-height: 1.4;
}

.product-info span {
    font-size: 0.85rem;
    color: #888;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    margin-top: 5px;
    display: inline-block;
}

/* Marketplaces Section (New) */
.marketplaces-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.marketplaces-grid {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.marketplace-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.marketplace-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.marketplace-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badges Sidebar */
.badges-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 30px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #eee;
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateX(5px);
}

.badge-item i {
    font-size: 1.2rem;
    color: #25D366;
    /* Default success color */
}

.badge-item.trendyol-badge {
    border-color: #f27a1a;
    background-color: #fef0e6;
}

.badge-item.trendyol-badge i {
    color: #f27a1a;
}

.badge-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .marketplaces-wrapper {
        flex-direction: column;
    }

    .badges-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* About Section Updates */
.bg-light {
    background-color: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text-lead {
    margin-bottom: 25px;
    color: #444;
}

/* Mission & Vision Cards */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.mv-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    height: 100%;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.mv-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mv-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.mv-card p {
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Features (Icons) Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 20px;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-item:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Brands (Partnerships) Dense Grid */
.brands-grid-dense {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.brand-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    height: 80px;
    overflow: hidden;
    transition: var(--transition);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(100%); Removed to show colors */
    /* opacity: 0.7; Removed to show full color */
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item:hover {
    border-color: var(--accent-color);
}

/* References List (Updated for Logo Placeholders) */
.references-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.references-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Reference cards - Clean layout with tooltip */
.reference-card {
    width: 150px;
    height: 100px;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.reference-card:hover {
    transform: translateY(-5px);
}

/* Company name appears at bottom on hover */
.reference-card::after {
    content: attr(data-name);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 5px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
    text-align: center;
}

.reference-card:hover::after {
    opacity: 1;
    visibility: visible;
}

.reference-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    transition: transform 0.25s ease;
}

.reference-card:hover img {
    transform: scale(1.1);
}

/* Contact Section Updates */
.bg-dark {
    background-color: var(--bg-dark);
}

.text-white {
    color: #fff !important;
}

.white-line {
    background-color: #fff !important;
    opacity: 0.2;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.contact-map {
    flex: 1;
    min-height: 400px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #222;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 5px;
    width: 30px;
    /* Fixed width to align text blocks */
    text-align: center;
    /* Center the icon within the fixed width */
    flex-shrink: 0;
    /* Prevent icon from shrinking */
}

.info-item h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item p {
    color: #ccc;
    font-size: 1rem;
}

.info-item .highlight {
    color: var(--accent-color);
}

/* Social media list */
.social-links {
    margin-top: 20px;
}

.social-links h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links .links a {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links .links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer & Other Utilities */
footer {
    background-color: #0e1118;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #888;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        padding-right: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations Helpers */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

/* WhatsApp & Success Message kept from original */
.success-message {
    margin-top: 30px;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20BA5C;
}

/* Hero Brand Slider */
.hero-brands-slider {
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.hero-brands-slider .slider-track img {
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make logos white */
    opacity: 0.7;
    transition: var(--transition);
}

.hero-brands-slider .slider-track img:hover {
    opacity: 1;
}

/* Generic/Product Page Slider (Dark Logos) */
.product-brands-slider {
    margin: 0;
    /* Remove top margin to sit flush with header */
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* mask-image removed to ensure background color matches perfectly with header */
    /* mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); */
    /* -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); */
}

/* Removed duplicate .product-brands-slider img styles (moved to global scope with fixed sizing) */

.product-brands-slider .slider-track img:hover {
    filter: brightness(0) invert(1);
    /* Keep white on hover */
    opacity: 1;
    transform: scale(1.05);
    /* Slight zoom on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Corporate References Modern Styling */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.reference-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    padding: 25px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 140px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.reference-card:hover::before {
    transform: scaleY(1);
}

.reference-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    /* Dark Theme Color */
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.reference-card:hover i {
    color: var(--accent-color);
}

.reference-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .reference-card {
        padding: 20px 15px;
        min-height: 120px;
    }

    .reference-card i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .reference-card h4 {
        font-size: 0.9rem;
    }
}

/* Product Detail Image Fix */
.detail-image {
    height: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .detail-image {
        height: 350px;
    }
}

/* Mini Slideshow for Product Cards */
.mini-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mini-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CHANGED back to cover for square-on-square perfect fill */
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.mini-slideshow img.active {
    opacity: 1;
    z-index: 2;
}

/* Mobile Optimization Bundle */
@media (max-width: 768px) {

    /* Navbar Mobile Logic */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .menu-toggle .bar {
        background-color: #fff;
        height: 3px;
        width: 25px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 79px;
        /* Align below navbar height approx */
        flex-direction: column;
        background-color: rgba(26, 30, 41, 0.98);
        width: 100%;
        height: auto;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        padding: 30px 0;
        gap: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
    }

    /* Typography Fixes */
    .hero h1 {
        font-size: 1.6rem;
        /* Reduced further from 2.2rem */
        line-height: 1.2;
        max-width: 95%;
        /* Adjust width to force wrapping */
        margin: 0 auto 15px auto;
        word-wrap: break-word;
        /* Ensure long words break */
    }

    .hero p {
        font-size: 0.95rem;
        /* Slight reduction */
        width: 90%;
        /* Strict width */
        max-width: 350px;
        /* Max cap for phones */
        margin: 0 auto 20px auto;
        line-height: 1.5;
        padding: 0;
        word-wrap: break-word;
        white-space: normal;
        /* Force wrap */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    /* Prevent Horizontal Scroll */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        padding: 0 20px;
    }

    .contact-map {
        height: 400px !important;
        min-height: 400px !important;
        /* Force minimum height */
        width: 100%;
        margin-top: 20px;
        display: block !important;
        flex: none !important;
        /* Disable flex behavior */
    }

    .contact-map iframe {
        height: 100% !important;
        width: 100% !important;
        border-radius: 10px;
        display: block !important;
    }
}

/* Customer Reviews Section */
.reviews-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    /* Space for arrows */
}

.reviews-slider {
    overflow: hidden;
    padding: 20px 10px;
    /* Space for shadow */
}

.reviews-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    flex: 0 0 300px;
    /* Fixed width */
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.review-image {
    height: 180px;
    width: 100%;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-image i {
    font-size: 3rem;
    color: #ddd;
}

.review-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: #FFC107;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    font-style: italic;
    flex: 1;
}

.review-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reviewer-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.verified-badge {
    font-size: 0.75rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-link-tag {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .reviews-track {
        gap: 15px;
    }

    .review-card {
        scroll-snap-align: center;
    }
}

/* --- Products Page Sidebar Layout --- */
.products-page-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.products-main-content {
    flex: 3;
}

.products-sidebar {
    flex: 1;
    min-width: 250px;
    position: sticky;
    top: 100px;
    /* Below navbar */
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Brand Search in Sidebar */
.brand-search-box {
    position: relative;
    margin-bottom: 20px;
}

.brand-search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.brand-search-box input:focus {
    border-color: var(--accent-color);
}

.brand-search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
}

/* Brand Filter List */
.brand-filter-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar for list */
.brand-filter-list::-webkit-scrollbar {
    width: 5px;
}

.brand-filter-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.brand-filter-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.brand-checkbox {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.brand-checkbox:last-child {
    margin-bottom: 0;
}

.brand-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.brand-checkbox label {
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    flex: 1;
}

.brand-checkbox:hover label {
    color: var(--primary-color);
}

/* Tag Count (Optional enhancement) */
.brand-count {
    font-size: 0.75rem;
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Page Header & Slider Synchronization */
.page-header {
    background-color: var(--primary-color);
    padding: 120px 0 20px;
    /* Increased top padding to clear fixed navbar */
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.product-slider-section {
    background-color: var(--primary-color);
    padding: 0 0 30px 0;
    margin-top: -1px;
    /* Overlap slightly to prevent sub-pixel gaps */
    border: none;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .products-page-layout {
        flex-direction: column;
        /* Sidebar (filters) first, then content */
    }

    .products-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
        margin-bottom: 30px;
    }
}

/* Success Message Styling */
.success-message {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #2f855a;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #48bb78;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force 2 columns on mobile */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info h3 {
        font-size: 0.9rem;
        /* Smaller text for 2-col layout */
    }

    .product-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* Lighter shadow */
    }
}