/* Landing Page Styles for Billisa v2.0 */
/* Copyright © 2025 Isaiah Nyalali. All Rights Reserved. */

/* ========================================
   UNIFIED SECTION BORDER STYLING
   Similar to nav border but thinner (1px)
   ======================================== */
.section-bordered {
    border: 1px solid var(--fluent-black);
}

/* Featured Items Cards (entire card)
   Note: these cards already use shadows for depth, so the border should stay subtle. */
.featured-card,
.grid-card {
    border: 1px solid rgba(2, 6, 23, 0.10);
}

/* About Us Feature Cards */
.feature-card {
    border: 1px solid var(--fluent-black);
}

/* About Us Image */
.about-image img {
    border: 1px solid var(--fluent-black);
}

/* Gallery Cards */
.gallery-item {
    border: 1px solid var(--fluent-black);
}

/* Team Cards */
.team-member {
    border: 1px solid var(--fluent-black);
}

/* Testimonial Cards */
.testimonial-card {
    border: 1px solid var(--fluent-black);
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: 12px;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.landing-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--fluent-black);
}

.search-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--fluent-black);
    padding: 8px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fluent-black);
    cursor: pointer;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 44px;
    width: auto;
}

.nav-brand-name {
    font-size: 20px;
    font-weight: 700;
}

/* Advanced Search Container for Index */
.landing-nav .nav-search-container {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: var(--fluent-radius-medium);
    padding: 0;
    transition: all 0.2s;
    height: 44px;
    overflow: visible;
    position: relative;
    flex: 1;
    max-width: 420px;
    margin: 0 20px;
}

.landing-nav .nav-search-container:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.landing-nav .search-category-dropdown {
    border: none;
    background: var(--fluent-gray-10);
    padding: 0 12px;
    height: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--fluent-black);
    cursor: pointer;
    border-right: 2px solid var(--fluent-black);
    min-width: 130px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: background-color 0.2s;
}

.landing-nav .search-category-dropdown:hover {
    background-color: var(--fluent-gray-20);
}

.landing-nav .search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
}

.landing-nav .nav-search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    padding: 8px 12px;
    outline: none;
    height: 100%;
}

.landing-nav .nav-search-input::placeholder {
    color: var(--fluent-gray-60);
}

.landing-nav .search-clear-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fluent-gray-60);
    font-size: 14px;
    padding: 8px;
    transition: color 0.2s;
}

.landing-nav .search-clear-btn:hover {
    color: var(--fluent-black);
}

.landing-nav .search-clear-btn.visible {
    display: flex;
    align-items: center;
}

.landing-nav .nav-search-btn {
    background: var(--fluent-black);
    border: none;
    cursor: pointer;
    color: var(--fluent-white);
    font-size: 16px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.landing-nav .nav-search-btn:hover {
    background: var(--fluent-gray-90);
}

.landing-nav .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--fluent-white);
    border: 2px solid var(--fluent-black);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.landing-nav .search-suggestions.active {
    display: block;
}

.landing-nav .suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--fluent-gray-20);
}

.landing-nav .suggestion-item:last-child {
    border-bottom: none;
}

.landing-nav .suggestion-item:hover {
    background: var(--fluent-gray-10);
}

.landing-nav .suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--fluent-gray-20);
}

.landing-nav .suggestion-info {
    flex: 1;
    min-width: 0;
}

.landing-nav .suggestion-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--fluent-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-nav .suggestion-meta {
    font-size: 11px;
    color: var(--fluent-gray-70);
}

.landing-nav .suggestion-price {
    font-weight: 700;
    color: var(--fluent-success);
}

.landing-nav .suggestion-price.offer {
    color: #ff4757;
}

.landing-nav .suggestions-empty {
    padding: 20px;
    text-align: center;
    color: var(--fluent-gray-70);
    font-size: 13px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
}

.nav-link {
    text-decoration: none;
    color: var(--fluent-gray-80);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--fluent-black);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--fluent-black);
}

/* Mobile Search Toggle */
.landing-nav .search-toggle-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--fluent-black);
    padding: 8px;
}

/* Mobile Responsive for Search */
@media (max-width: 992px) {
    .landing-nav .nav-search-container {
        display: none;
        position: absolute;
        top: calc(100% + 24px);
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        border-radius: var(--fluent-radius-medium);
        z-index: 999;
    }

    .landing-nav .nav-search-container.active {
        display: flex;
    }

    .landing-nav .search-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-container {
        position: relative;
    }
}

@media (max-width: 576px) {
    .landing-nav .search-category-dropdown {
        display: none;
    }
}

/* Hero Section - 40/60 Split Design */
.hero-section.hero-split {
    /* Normal flow full-screen hero (no spacer div needed) */
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    background: none;
    overflow: hidden;
}

.hero-left {
    width: 40%;
    min-width: 360px;
    background: #AD0F1A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 40px;
    position: relative;
    z-index: 2;
}

/* Soft glow edge on the split line */
.hero-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    filter: blur(8px);
    z-index: 3;
    pointer-events: none;
}

.hero-split .hero-content {
    max-width: 400px;
    text-align: left;
    padding: 0;
}

.hero-split .hero-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.15;
    color: #fff;
    text-shadow: none;
    animation: fadeInUp 0.8s ease;
}

.hero-split .hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
    opacity: 0.85;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: none;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-split .hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-split .hero-cta a {
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-btn-primary {
    background: #fff !important;
    color: var(--fluent-black) !important;
    border: 2px solid #fff !important;
}

.hero-btn-primary:hover {
    background: transparent !important;
    color: #fff !important;
}

.hero-btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
}

.hero-btn-secondary:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.hero-right {
    width: 60%;
    flex: 1;
    /* Background image loaded dynamically from database */
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--fluent-gray-20);
    /* Fallback color */
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%);
}

/* Hero responsive */
@media (max-width: 992px) {
    .hero-section.hero-split {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .hero-left {
        width: 100%;
        min-height: 60vh;
        padding: 120px 30px 50px;
    }

    .hero-split .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-split .hero-title {
        font-size: 28px;
    }

    .hero-split .hero-cta {
        align-items: center;
        justify-content: center;
    }

    .hero-split .hero-cta a {
        max-width: 280px;
    }

    .hero-right {
        width: 100%;
        min-height: 40vh;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ORDER TRACKER - Glassmorphism Style
   ======================================== */
.order-tracker-container {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.tracker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--fluent-black);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tracker-header i {
    font-size: 18px;
    opacity: 0.9;
}

.tracker-search {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    border: none;
}

.tracker-input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 14px;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    min-height: 48px;
}

.tracker-input::placeholder {
    color: #888;
    font-size: 13px;
}

.tracker-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    padding: 0 20px;
    min-height: 48px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.tracker-btn:hover {
    background: #333;
}

.tracker-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tracker-btn i {
    font-size: 14px;
}

/* Tracker Loading State */
.tracker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* (Inline tracker styles removed - using modal-only approach) */

/* Responsive for mobile */
@media (max-width: 992px) {
    .order-tracker-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 90%;
        max-width: 400px;
        margin: 30px auto;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .hero-right {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .tracker-btn span {
        display: none;
    }

    .tracker-btn {
        padding: 14px 16px;
    }
}

/* Order Tracker Modal - Full Details View */
.order-tracker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-tracker-modal.active {
    opacity: 1;
    visibility: visible;
}

.order-tracker-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.order-tracker-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.order-tracker-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.order-tracker-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #1a1a1a;
    color: #fff;
}

.order-tracker-modal .modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.order-tracker-modal .modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.order-tracker-modal .modal-close:hover {
    color: #fff;
}

.order-tracker-modal .modal-body {
    padding: 0;
    max-height: calc(90vh - 70px);
    overflow-y: auto;
}

.order-tracker-modal .modal-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    margin: 20px;
    border-radius: 12px;
    border: 1px solid;
}

.order-tracker-modal .modal-status i {
    font-size: 24px;
}

.order-tracker-modal .modal-status-label {
    font-weight: 700;
    font-size: 15px;
}

.order-tracker-modal .modal-status-desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.order-tracker-modal .modal-section {
    padding: 0 24px 20px;
}

.order-tracker-modal .modal-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Timeline in Modal */
.modal-timeline {
    position: relative;
    padding-left: 30px;
}

.modal-timeline-item {
    position: relative;
    padding-bottom: 20px;
    padding-left: 16px;
}

.modal-timeline-item:last-child {
    padding-bottom: 0;
}

.modal-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.modal-timeline-item:last-child::before {
    display: none;
}

.modal-timeline-item.completed .timeline-marker {
    background: #059669;
    color: #fff;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
}

.timeline-content {
    padding-top: 2px;
}

.timeline-label {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.timeline-date {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Order details in modal */
.modal-details {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 12px 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    color: #666;
}

.detail-row span:last-child {
    font-weight: 600;
    color: #1a1a1a;
}

/* ========================================
   ENHANCED TRACKING MODAL - Beautiful Design
   ======================================== */

/* Error Modal */
.modal-content.modal-error {
    max-width: 380px;
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
}

.modal-error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-error-icon i {
    font-size: 32px;
    color: #dc2626;
}

.modal-error h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.modal-error p {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

.modal-error-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-error-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Tracking Modal */
.modal-content.modal-tracking {
    max-width: 480px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-header-gradient {
    position: relative;
    padding: 30px 24px;
    text-align: center;
    color: #fff;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.modal-close-white {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-white:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.header-icon i {
    font-size: 28px;
}

.header-status {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* Order ID Badge */
.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: -20px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: fit-content;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.order-id-badge i {
    font-size: 14px;
    opacity: 0.7;
}

/* Modal Body */
.modal-body-tracking {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.section-card {
    background: #f8f8f8;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 16px;
}

.section-title i {
    font-size: 14px;
}

/* Progress Bar */
.progress-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 10px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    transition: all 0.3s;
}

.progress-step.complete .step-dot {
    background: #10b981;
    color: #fff;
}

.progress-step.current .step-dot {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.2);
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    color: #888;
    margin-top: 8px;
    text-align: center;
    max-width: 60px;
}

.progress-step.complete .step-label,
.progress-step.current .step-label {
    color: #1a1a1a;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e5e5e5;
    margin-top: 14px;
    min-width: 20px;
    max-width: 40px;
}

.progress-line.complete {
    background: #10b981;
}

/* Items List */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.item-qty {
    font-size: 12px;
    color: #888;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
}

.detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Vertical Timeline */
.timeline-vertical {
    position: relative;
    padding-left: 24px;
}

.timeline-step {
    position: relative;
    padding-bottom: 16px;
    padding-left: 20px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.done::before {
    background: #10b981;
}

.timeline-dot {
    position: absolute;
    left: -8px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #888;
}

.timeline-step.done .timeline-dot {
    background: #10b981;
    color: #fff;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.timeline-step.pending .timeline-title {
    color: #888;
}

.timeline-time {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Total Card */
.total-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 18px 20px;
    border-radius: 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.total-label {
    font-size: 13px;
    opacity: 0.8;
}

.total-value {
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
}

/* Shipping Fee Card */
.shipping-fee-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-fee-card.pending {
    background: #fffbeb;
    border-color: #fde68a;
}

.shipping-fee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-fee-header i {
    color: #0369a1;
    margin-right: 6px;
}

.payment-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
}

.shipping-fee-card.paid .payment-badge {
    background: #10b981;
    color: white;
}

.shipping-fee-card.pending .payment-badge {
    background: #f59e0b;
    color: white;
}

.shipping-fee-amount {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.pay-shipping-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-size: 14px;
}

.pay-shipping-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Mobile - Full screen modal */
@media (max-width: 576px) {

    .order-tracker-modal .modal-content,
    .modal-content.modal-tracking,
    .modal-content.modal-error {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        transform: none;
    }

    .order-tracker-modal.active .modal-content {
        transform: none;
    }

    .modal-body-tracking {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* Hero spacer removed (hero is no longer absolute-positioned) */


@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* ========================================
   POPULAR CATEGORIES (Mockup-inspired)
   ======================================== */
.categories-section {
    background: var(--fluent-white);
    padding: 80px 0;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 40px;
}

.categories-header .header-content {
    flex: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    display: block;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.70), rgba(15, 23, 42, 0.10)),
        var(--cat-bg, linear-gradient(135deg, #111827, #374151));
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.68) 100%);
}

.category-card-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-card-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.category-card-meta {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
}

/* Mosaic sizing (mockup feel) */
.category-card.is-large {
    grid-column: span 7;
    min-height: 320px;
}

.category-card:not(.is-large) {
    grid-column: span 5;
}

@media (max-width: 992px) {
    .categories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card.is-large,
    .category-card:not(.is-large) {
        grid-column: auto;
        min-height: 240px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card.is-large {
        min-height: 220px;
    }
}

/* Testimonials: mobile scroll-snap slider (mockup-like) */
@media (max-width: 600px) {
    .testimonials-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .testimonials-grid::-webkit-scrollbar {
        height: 6px;
    }

    .testimonials-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 999px;
    }

    .testimonial-card {
        scroll-snap-align: start;
        min-width: 84%;
        flex: 0 0 auto;
    }
}

/* ========================================
   SECTION HEADERS (cleaner mockup style)
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--fluent-black);
    letter-spacing: -0.4px;
}

/* Remove the heavy underline from the old design */
.section-header h2::after {
    content: none;
}

/* About section has left-aligned h2 */
.about-content h2 {
    position: relative;
    display: inline-block;
}

.about-description {
    margin-bottom: 32px;
}

.about-content h2::after {
    content: none;
}

/* Catalogue header has different layout */
.catalogue-header .header-content h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 4px;
}

.catalogue-header .header-content p {
    margin: 0;
    text-align: left;
    max-width: 100%;
}

.catalogue-header .header-content h2::after {
    content: none;
}

.section-header p {
    font-size: 15px;
    color: var(--fluent-gray-70);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   CATALOGUE SECTION - Shopify-like Carousel
   ======================================== */
.catalogue-section {
    background: #f6f6f7;
    padding: 80px 0;
}

/* Header with View All button */
.catalogue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 40px;
}

.catalogue-header .header-content {
    flex: 1;
}

.catalogue-header .header-content h2 {
    margin-bottom: 4px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--fluent-black);
    color: var(--fluent-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--fluent-gray-90);
    transform: translateX(4px);
}

/* Carousel shell */
.catalogue-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.catalogue-track-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 20px;
    /* Cropped edges as requested */
    /* Soft fade edges - tight 20px to only affect cut-off cards */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
}

.catalogue-track {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.catalogue-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.catalogue-track::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.25);
    border-radius: 999px;
}

.catalogue-card-wrapper {
    scroll-snap-align: center;
    flex: 0 0 min(320px, 80vw);
}

/* Carousel navigation arrows */
.catalogue-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.catalogue-arrow:hover {
    transform: translateY(-1px);
    background: #111827;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.catalogue-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .catalogue-arrow {
        display: none;
    }
}

.catalogue-arrow i {
    font-size: 16px;
}

/* Carousel card visuals (reuse featured-card) */
.featured-card {
    background: var(--fluent-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.07);
    border: 1px solid rgba(2, 6, 23, 0.10);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.11);
    border-color: rgba(2, 6, 23, 0.16);
}

.featured-card .card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 12px; /* Adding some radius for a modern look */
    background: rgba(2, 6, 23, 0.03);
}

.card-image > img:not(.origin-flag-standalone) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card-image:hover > img:not(.origin-flag-standalone) {
    transform: scale(1.05);
}

.featured-card .card-content {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .card-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--fluent-gray-60);
    margin-bottom: 6px;
    height: 14px;
    /* Fixed height for uniformity */
    overflow: hidden;
}

.featured-card .card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--fluent-black);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 46px;
    /* Approx 2 lines */
}

.featured-card .card-description {
    display: none;
}

.featured-card .card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--fluent-success);
}

.featured-card .card-price.has-offer {
    color: #ff4757;
}

.featured-card .card-price.has-offer .original {
    font-size: 13px;
    color: var(--fluent-gray-60);
    text-decoration: line-through;
    font-weight: 400;
    margin-right: 8px;
}

/* Badges */
.offer-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    padding: 6px 16px 6px 10px;
    font-size: 11px;
    font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    z-index: 5;
}

.badge-low-stock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sold-out-label {
    background: var(--fluent-white);
    color: var(--fluent-black);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* View Button Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 8;
}

.featured-card .card-overlay,
.grid-card .card-overlay {
    backdrop-filter: blur(1px);
}

.grid-card:hover .card-overlay,
.featured-card:hover .card-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--fluent-white);
    color: var(--fluent-black);
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-btn:hover {
    background: var(--fluent-black);
    color: var(--fluent-white);
    transform: scale(1.05);
}

/* ------------------------------------------------
   Index-specific "Add to cart" button styling
   The base button comes from `utilities/cart.css` (used across pages).
   Homepage cards are `.featured-card` / `.grid-card`, so we override position + visuals here.
------------------------------------------------- */
.grid-card .cart-add-btn,
.featured-card .cart-add-btn {
    top: 12px;
    right: 12px;
    bottom: auto;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(2, 6, 23, 0.10);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
}

/* Sourcing & Origin Flag (Standardized) */
.featured-card:hover .origin-flag-standalone,
.grid-card:hover .origin-flag-standalone {
    transform: scale(1.15);
}

.moq-badge-overlay {
    position: absolute;
    top: 55px; /* Positioned below the cart button */
    right: 12px;
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
}

.grid-card:hover .cart-add-btn,
.featured-card:hover .cart-add-btn {
    background: rgba(255, 255, 255, 0.97);
    transform: scale(1.06);
}

.grid-card .cart-add-btn:hover,
.featured-card .cart-add-btn:hover {
    background: #1a1a1a;
    border-color: rgba(2, 6, 23, 0.18);
}

.grid-card .cart-add-btn i,
.featured-card .cart-add-btn i {
    color: #111827 !important;
}

.grid-card .cart-add-btn:hover i,
.featured-card .cart-add-btn:hover i,
.grid-card .cart-add-btn.added i,
.featured-card .cart-add-btn.added i {
    color: #ffffff !important;
}

/* Featured Indicator Dots */
.featured-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.featured-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fluent-gray-40);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-dot.active {
    background: var(--fluent-black);
    width: 28px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .catalogue-hybrid {
        flex-direction: column;
    }

    .featured-product-wrapper {
        flex: none;
        max-width: 100%;
    }

    .featured-card .card-image {
        height: 250px;
    }

    .catalogue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalogue-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .catalogue-header .header-content {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .catalogue-grid {
        grid-template-columns: 1fr;
    }

    .featured-card .card-name {
        font-size: 20px;
    }

    .featured-card .card-price {
        font-size: 22px;
    }

    .grid-card .cart-add-btn,
    .featured-card .cart-add-btn {
        top: 20px;
        right: 20px;
    }

    .moq-badge-overlay {
        top: 65px; /* Adjusted for mobile position below button */
        right: 20px;
    }

    .catalogue-card-wrapper {
        flex: 0 0 85vw;
        min-width: 85vw;
        /* Absolute prevention of compression */
    }
}

/* Old carousel CSS removed - now using Featured + Grid Hybrid layout */

/* About Section */
.about-section {
    background: var(--fluent-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    /* Reduced to match standard section header spacing */
}

.about-content .about-description {
    font-size: 18px;
    color: var(--fluent-gray-70);
    line-height: 1.8;
    margin-bottom: 8px;
    /* Reduced to match user request */
}

.about-content p {
    margin: 0;
}

/* Modern Feature Cards */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: #f7f7f8;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.10);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #AD0F1A;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.feature-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--fluent-black);
}

.feature-content p {
    font-size: 13px;
    color: var(--fluent-gray-80);
    margin: 0;
    line-height: 1.4;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

/* About responsive */
@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Team Section */
.team-section {
    background: #f6f6f7;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    flex: 1 1 280px;
    max-width: 400px;
    /* Prevent over-stretching for single items */
    background: var(--fluent-white);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

.team-member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 1px solid var(--fluent-black);
}

.team-member-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fluent-black);
}

.team-member-role {
    font-size: 15px;
    color: var(--fluent-gray-70);
    margin-bottom: 16px;
}

.team-member-bio {
    font-size: 14px;
    color: var(--fluent-gray-70);
    line-height: 1.6;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--fluent-gray-20);
}

.team-member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fluent-gray-10);
    color: var(--fluent-gray-70);
    text-decoration: none;
    transition: all 0.2s ease;
}

.team-member-social a:hover {
    background: var(--fluent-black);
    color: var(--fluent-white);
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery-section {
    background: var(--fluent-white);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--fluent-black);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-item {
    flex: 1 1 300px;
    max-width: 400px;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--fluent-white);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials-section {
    background: #f6f6f7;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.testimonial-card {
    flex: 1 1 300px;
    max-width: 450px;
    background: var(--fluent-white);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
    font-size: 48px;
    color: var(--fluent-gray-30);
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--fluent-gray-80);
    margin: 30px 0 24px 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--fluent-black);
}

.testimonial-author-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--fluent-black);
}

.testimonial-author-role {
    font-size: 14px;
    color: var(--fluent-gray-70);
}

/* CTA Section */
.cta-section {
    background: transparent;
    color: var(--fluent-white);
    text-align: center;
    margin-bottom: -160px;
    /* Overlap with footer (half way) */
    position: relative;
    z-index: 10;
    padding-bottom: 0;
}

/* Background pseudo-element - only covers top portion, not the overlap */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(100% - 160px);
    /* Stops before the footer overlap */
    background: #f6f6f7;
    z-index: -1;
}

@keyframes ctaBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.cta-panel {
    background: radial-gradient(1200px 400px at 50% 0%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.00) 60%),
        linear-gradient(180deg, #111 0%, #0b0b0c 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    padding: 54px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    /* Contain particles within the panel */
    animation: ctaBounce 3s ease-in-out infinite;
}

/* Particle effect */
.cta-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Contained within panel */
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 40px 40px, 30px 30px;
    background-position: 0 0, 20px 20px;
    animation: particleMove 20s linear infinite, twinkle 3s ease-in-out infinite alternate;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    background-clip: padding-box;
    /* Match parent border radius */
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 20px 20px;
    }

    100% {
        background-position: 0 100px, 20px 120px;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Second particle layer for random twinkling effect */
.cta-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 55px 55px, 25px 25px;
    background-position: 10px 10px, 40px 40px;
    animation: particleMove 25s linear infinite reverse, twinkle 5s ease-in-out infinite alternate-reverse;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    background-clip: padding-box;
}

.cta-content {
    position: relative;
    z-index: 1;
    /* Keep content above particles */
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.cta-content p {
    font-size: 16px;
    margin: 0 auto 28px;
    opacity: 0.92;
    max-width: 760px;
    line-height: 1.7;
}

.cta-content a {
    text-decoration: none;
}

/* CTA Shop Now button uses accent color */
.cta-content .fluent-btn-primary {
    background: #ffffff;
    color: #0b0b0c;
    border: 2px solid #ffffff;
    font-weight: 800;
    display: inline-block;
    /* Fit to text */
    width: auto;
    padding: 12px 32px;
    min-width: 0;
}

.cta-content .fluent-btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 576px) {
    .cta-panel {
        padding: 44px 18px;
        border-radius: 18px;
    }

    #ctaButton {
        width: auto;
        /* Keep fit to text even on mobile */
        max-width: 100%;
    }
}

/* Footer override for overlap - ONLY on homepage with CTA section */
body.homepage .landing-footer {
    padding-top: 240px !important;
    /* Make space for CTA overlap */
    background: #AD0F1A;
    color: #ffffff;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border: 1.5px solid #ffffff !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 480px) {
    .footer-logo {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
}

.footer-brand-name {
    font-size: 24px;
    font-weight: 700;
}

.footer-description {
    color: var(--fluent-gray-60);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--fluent-gray-60);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--fluent-white);
}

.footer-contact p {
    color: var(--fluent-gray-60);
    margin-bottom: 12px;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--fluent-gray-80);
    color: var(--fluent-gray-60);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: var(--fluent-white);
    text-decoration: none;
    font-weight: 600;
}

.copyright-notice {
    margin-top: 16px;
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .carousel-item {
        flex: 0 0 calc(20% - 16px);
        /* 5 items */
    }
}

@media (max-width: 1200px) {
    .carousel-item {
        flex: 0 0 calc(25% - 15px);
        /* 4 items */
    }
}

@media (max-width: 992px) {
    .landing-nav {
        top: 10px;
        left: 4%;
        right: 4%;
        width: 92%;
        padding: 12px 25px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 3%;
        right: 3%;
        width: 94%;
        background: var(--fluent-white);
        border: 2px solid var(--fluent-black);
        border-radius: 12px;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    body.homepage .nav-links {
        top: 95px;
    }


    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .carousel-item {
        flex: 0 0 calc(33.333% - 14px);
        /* 3 items */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .landing-nav .nav-search-container {
        display: none;
        position: absolute;
        top: calc(100% + 24px);
        left: 0;
        right: 0;
        max-width: none;
        margin: 0;
        border-radius: var(--fluent-radius-medium);
        z-index: 999;
    }

    .landing-nav .nav-search-container.active {
        display: flex;
    }

    .search-category-dropdown {
        min-width: 100px;
        font-size: 12px;
        padding: 0 8px;
        padding-right: 24px;
    }

    .search-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-wrapper {
        padding: 0 60px;
        /* Less padding on mobile */
    }

    .carousel-item {
        flex: 0 0 100%;
        /* 1 item on mobile */
        min-width: unset;
    }

    .carousel-control {
        width: 44px;
        height: 44px;
        font-size: 18px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .fluent-btn {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-item {
        flex: 0 0 100%;
        /* 1 item on small mobile */
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 2px;
    }

    .carousel-next {
        right: 2px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CATALOGUE TRANSITION ANIMATIONS
   Slide + Fade with Staggered Timing
============================================= */

/* Grid card wrapper for individual animation control */
.grid-card-wrapper {
    animation-fill-mode: both;
}

/* Entrance Animation - Slide Up + Fade In */
.catalogue-enter {
    animation: catalogueSlideIn 0.4s ease-out forwards;
}

@keyframes catalogueSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exit Animation - Slide Left + Fade Out */
.catalogue-exit {
    animation: catalogueSlideOut 0.3s ease-in forwards;
}

@keyframes catalogueSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Featured product specific transition smoothing */
#featuredProduct {
    transition: opacity 0.1s;
}

/* Grid container smoothing */
#catalogueGrid {
    min-height: 300px;
    /* Prevent layout shift during transitions */
}

/* Card Variants Visualizer Redesign (Compact Inline Design) */
.card-variants-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    border-top: 1px solid rgba(15, 23, 42, 0.25);
    padding-top: 8px;
    height: 26px; /* Expanded height to prevent cutting off or touching */
    overflow: hidden;
}

.card-variants-wrapper.empty {
    border-top-color: transparent !important;
}

.card-colors {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), inset 0 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.card-color-dot:hover {
    transform: scale(1.25) translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.3);
    z-index: 2;
}

.card-sizes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-size-pill {
    background: rgba(15, 23, 42, 0.04);
    color: #475569;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(15, 23, 42, 0.06);
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.card-size-pill:hover {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.card-more-count {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    margin-left: 2px;
}
