/* ==========================================================================
   Premium E-Commerce - Frontend Stylesheet
   ========================================================================== */

:root {
    --primary: #7a2e4a;        /* KAYAL deep maroon / wine */
    --primary-dark: #591b34;
    --primary-light: #9c4767;
    --rose: #c97a93;           /* logo dress rose */
    --gold: #c19a5b;           /* logo wreath gold */
    --secondary: #c19a5b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #2a1822;           /* warm dark to match wine palette */
    --light: #faf6f7;
    --gray: #6b5560;
    --border: #ece1e6;
    --gradient-primary: linear-gradient(135deg, #7a2e4a 0%, #b15a78 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;

    /* Map Bootstrap's primary to the KAYAL maroon so utility classes match */
    --bs-primary: #7a2e4a;
    --bs-primary-rgb: 122, 46, 74;
    --bs-link-color: #7a2e4a;
    --bs-link-color-rgb: 122, 46, 74;
    --bs-link-hover-color: #591b34;
}

.bg-primary { background-color: #7a2e4a !important; }
.text-primary { color: #7a2e4a !important; }
.border-primary { border-color: #7a2e4a !important; }
.btn-primary {
    --bs-btn-bg: #7a2e4a;
    --bs-btn-border-color: #7a2e4a;
    --bs-btn-hover-bg: #591b34;
    --bs-btn-hover-border-color: #591b34;
    --bs-btn-active-bg: #591b34;
    --bs-btn-active-border-color: #591b34;
    --bs-btn-disabled-bg: #7a2e4a;
    --bs-btn-disabled-border-color: #7a2e4a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

/* ===== Main Header ===== */
.main-header {
    box-shadow: var(--shadow-sm);
    background: #fff;
    z-index: 1020;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo {
    height: 58px;
    width: auto;
    display: block;
}

@media (max-width: 575.98px) {
    .brand-logo { height: 46px; }
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover { color: var(--primary) !important; }

.cart-badge {
    position: absolute;
    top: 0;
    right: -5px;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 46, 74, 0.32);
    color: #fff;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== Hero Banner Slider (designed KAYAL banners) ===== */
.hero-banner-slider {
    position: relative;
    background: #f3e7ec;
}

.hero-banner-slider .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-banner-slider .hero-banner-link {
    display: block;
}

.hero-banner-slider .carousel-indicators {
    margin-bottom: 0.75rem;
}

.hero-banner-slider .carousel-indicators [data-bs-target] {
    width: 36px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(122, 46, 74, 0.45);
    opacity: 1;
}

.hero-banner-slider .carousel-indicators .active {
    width: 56px;
    background: #7a2e4a;
}

/* ===== Hero Banner ===== */
.hero-slider {
    position: relative;
    background: #0f172a;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    min-height: 680px;
}

.hero-slide {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.18) 100%);
    z-index: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.14));
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 110px 0 130px;
    color: #fff;
}

.hero-slider .carousel-item.active .hero-slide {
    animation: heroImageDrift 5.2s ease-out both;
}

.hero-slider .carousel-item.active .hero-badge,
.hero-slider .carousel-item.active .hero-title,
.hero-slider .carousel-item.active .hero-subtitle,
.hero-slider .carousel-item.active .hero-buttons,
.hero-slider .carousel-item.active .hero-stats {
    animation: heroTextRise 0.85s ease both;
}

.hero-slider .carousel-item.active .hero-title { animation-delay: 0.12s; }
.hero-slider .carousel-item.active .hero-subtitle { animation-delay: 0.22s; }
.hero-slider .carousel-item.active .hero-buttons { animation-delay: 0.32s; }
.hero-slider .carousel-item.active .hero-stats { animation-delay: 0.42s; }

.hero-control {
    width: 72px;
    opacity: 1;
}

.hero-control span {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-control:hover span {
    background: #fff;
    color: var(--primary);
}

.hero-indicators {
    right: auto;
    bottom: 36px;
    left: calc((100vw - min(1140px, 100vw - 24px)) / 2);
    margin: 0;
    justify-content: flex-start;
    gap: 10px;
}

.hero-indicators [data-bs-target] {
    width: 42px;
    height: 4px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    opacity: 1;
}

.hero-indicators .active {
    width: 72px;
    background: #fff;
}

@keyframes heroTextRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageDrift {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1);
    }
}

.hero-banner {
    background: linear-gradient(135deg, #3a1424 0%, #7a2e4a 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 122, 147, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.min-vh-75 { min-height: 75vh; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 550px;
}

.text-gradient {
    background: linear-gradient(45deg, #c19a5b, #b15a78);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item h3 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 5px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item,
    .hero-slide {
        min-height: 620px;
    }

    .hero-slide::after {
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 100%);
    }

    .hero-slide-content {
        padding: 78px 0 110px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .hero-buttons .btn {
        margin-left: 0 !important;
        width: min(100%, 260px);
    }

    .hero-control {
        display: none;
    }

    .hero-indicators {
        left: 12px;
        bottom: 28px;
    }

    .hero-title { font-size: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-item h3 { font-size: 24px; }
}

/* ===== Section Headers ===== */
.section-subtitle {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-description {
    color: var(--gray);
    font-size: 16px;
}

/* ===== Features Section ===== */
.feature-card {
    padding: 30px 20px;
    transition: var(--transition);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 28px;
}

/* ===== Categories ===== */
.category-card {
    display: block;
    text-align: center;
    padding: 20px 15px;
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    color: var(--dark);
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: var(--primary);
}

.category-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* ===== Product Cards ===== */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.badge-discount, .badge-featured {
    position: absolute;
    top: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.badge-discount {
    left: 12px;
    background: var(--danger);
}

.badge-featured {
    right: 12px;
    background: var(--warning);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .product-actions {
    bottom: 15px;
    opacity: 1;
}

.btn-quick-action {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

.btn-quick-action:hover {
    background: var(--primary);
    color: #fff;
}

.product-info {
    padding: 16px;
    flex: 1;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin: 6px 0;
    line-height: 1.3;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--dark);
}

.product-title a:hover {
    color: var(--primary);
}

.product-price {
    margin: 10px 0;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 8px;
}

/* ===== Promo Banner ===== */
.promo-banner {
    background: var(--gradient-primary);
    color: #fff;
}

/* ===== Newsletter ===== */
.newsletter-section {
    background: var(--dark);
}

.newsletter-form .form-control {
    border: none;
    padding: 14px 20px;
}

/* ===== Footer ===== */
.main-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

.footer-brand {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
}

.footer-heading {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

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

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
    color: #94a3b8;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 25px;
}

.copyright {
    color: #64748b;
    font-size: 14px;
}

.footer-legal {
    color: #94a3b8;
    margin: 0 5px;
    font-size: 13px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding: 60px 0 30px;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--gray);
}

/* ===== Shop Sidebar Filters ===== */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    border: 1px solid var(--border);
}

.filter-group {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

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

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    color: var(--dark);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    transition: var(--transition);
}

.filter-list a:hover, .filter-list a.active {
    background: var(--primary);
    color: #fff;
}

.shop-toolbar {
    background: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

/* ===== Empty State ===== */
.empty-state {
    background: #fff;
    border-radius: var(--radius);
    padding: 60px 30px;
}

/* ===== Product Detail ===== */
.product-detail-gallery .main-image {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    cursor: zoom-in;
}

.product-zoom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-zoom-image:hover {
    transform: scale(1.5);
}

.product-detail-title {
    font-size: 32px;
    margin-bottom: 15px;
    margin-top: 8px;
}

.product-detail-price .price-current {
    font-size: 32px;
}

.product-detail-price .price-old {
    font-size: 20px;
}

.variant-options .btn-check:checked + .btn {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.trust-badges {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
}

/* ===== Auth Pages ===== */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.auth-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: #fff;
    padding: 0 15px;
    color: var(--gray);
    position: relative;
    font-size: 12px;
}

/* ===== Cart ===== */
.cart-items-card, .cart-summary-card, .checkout-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-items-card .card-header,
.cart-summary-card .card-header,
.checkout-card .card-header {
    background: var(--light);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.checkout-card .card-body {
    padding: 22px 20px 20px;
}

.checkout-card .form-label {
    margin-bottom: 8px;
    font-weight: 500;
}

.checkout-card textarea.form-control {
    min-height: 82px;
}

.cart-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.quantity-control {
    max-width: 130px;
}

.cart-summary-card .card-body {
    padding: 0;
}

.cart-summary-card .summary-row,
.checkout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 14px;
}

.cart-summary-card .summary-row:first-child,
.checkout-summary .summary-row:first-child {
    padding-top: 18px;
}

.cart-summary-card .summary-row strong,
.checkout-summary .summary-row strong {
    min-width: 120px;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.cart-summary-card .summary-total,
.checkout-summary .summary-total {
    border-top: 1px solid var(--border);
    padding: 16px 20px 18px;
    margin: 2px 0 0;
}

.cart-summary-card .summary-total h6,
.checkout-summary .summary-total h6,
.checkout-summary .summary-total h5 {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.cart-summary-card .summary-actions,
.checkout-summary .summary-actions {
    padding: 0 20px 20px;
}

.cart-summary-card .summary-actions .btn,
.checkout-summary .summary-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.cart-summary-card .secure-note,
.checkout-summary .secure-note {
    padding-top: 14px;
    color: var(--gray);
}

.checkout-summary .card-body {
    padding: 0;
}

.checkout-summary .checkout-items {
    padding: 18px 20px 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.checkout-summary .checkout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-summary .checkout-item img {
    flex: 0 0 60px;
}

.checkout-summary .checkout-item strong {
    min-width: 96px;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.quantity-input-group,
.quantity-control {
    width: 150px;
    max-width: 100%;
    flex-wrap: nowrap;
}

.quantity-input-group .qty-btn,
.quantity-control .btn {
    flex: 0 0 42px;
    width: 42px;
    padding-left: 0;
    padding-right: 0;
    border: 1px solid var(--border);
}

.quantity-input-group .qty-input,
.quantity-control .form-control {
    flex: 0 0 66px;
    width: 66px;
    min-width: 66px;
    padding-left: 6px;
    padding-right: 6px;
    color: var(--dark);
    background: #fff;
    border-color: var(--border);
}

/* ===== Orders ===== */
.dashboard-sidebar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    border: 1px solid var(--border);
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu li {
    margin-bottom: 5px;
}

.dashboard-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--dark);
    transition: var(--transition);
}

.dashboard-menu a:hover, .dashboard-menu a.active {
    background: var(--primary);
    color: #fff;
}

.status-tabs .nav-link {
    color: var(--dark);
    background: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.status-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.order-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow);
}

/* ===== Order Timeline ===== */
.timeline-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 20px 0;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--gray);
    transition: var(--transition);
}

.timeline-step.completed .timeline-icon {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.timeline-step.cancelled .timeline-icon {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.timeline-label {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== Notifications ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    padding: 14px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }

.notification i {
    font-size: 20px;
}

.notification.success i { color: var(--success); }
.notification.error i { color: var(--danger); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Misc ===== */
.value-card, .contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.payment-method label {
    border: 2px solid var(--border);
    transition: var(--transition);
}

.btn-check:checked + label.btn-outline-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title { font-size: 26px; }
    .product-detail-title { font-size: 24px; }
    .auth-card { padding: 25px; }
    .timeline-label { font-size: 11px; }
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(122, 46, 74, 0.12);
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
}

/* ===== CMS Page Content ===== */
.cms-content { color: #4a3a42; font-size: 16px; line-height: 1.8; }
.cms-content h2, .cms-content h3, .cms-content h4 {
    color: var(--dark);
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
}
.cms-content h3 { font-size: 26px; }
.cms-content h4 { font-size: 20px; }
.cms-content p { margin-bottom: 1rem; }
.cms-content ul, .cms-content ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.cms-content li { margin-bottom: 0.4rem; }
.cms-content a { color: var(--primary); text-decoration: underline; }
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-content hr { margin: 1.5rem 0; }

/* ==========================================================================
   Smooth Animations & Micro-interactions
   ========================================================================== */
html { scroll-behavior: smooth; }

/* Gentle page-content fade-in on load (opacity only - never a transform on the
   page wrapper, or fixed-position modals/dropdowns would be trapped behind it) */
main { animation: pageFade 0.55s ease both; }
@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll-reveal (only hides when JS is active, so no-JS still shows content).
   No will-change: a persistent transform containing-block breaks modals. */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.reveal-left  { transform: translateX(-30px); }
.js .reveal.reveal-right { transform: translateX(30px); }
.js .reveal.reveal-zoom  { transform: scale(0.94); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* Animated underline on nav links */
.navbar-nav .nav-link { position: relative; }
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Dropdown menus pop in */
.dropdown-menu.show { animation: dropPop 0.22s ease; transform-origin: top center; }
@keyframes dropPop {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

/* Card hover lift + image zoom */
.product-card, .category-card, .feature-card, .value-card, .contact-info-card {
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease;
}
.product-card:hover, .category-card:hover, .feature-card:hover,
.value-card:hover, .contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-image img, .category-image img { transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.product-card:hover .product-image img,
.category-card:hover .category-image img { transform: scale(1.06); }

/* Buttons: lift + press */
.btn { transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, opacity 0.2s ease; }
.btn:active { transform: scale(0.97); }

/* Toast notification enter/exit */
.notification { transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.notification.hiding { opacity: 0; transform: translateX(120%); }

/* Loading overlay */
.loading-overlay { backdrop-filter: blur(3px); animation: pageFade 0.2s ease both; }

/* Bootstrap modal subtle scale-in */
.modal.fade .modal-dialog { transform: scale(0.96) translateY(12px); transition: transform 0.3s ease; }
.modal.show .modal-dialog { transform: none; }

/* Cart badge bump when item added */
.cart-badge { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cart-badge.bump { transform: scale(1.45); }

/* Social / footer link hover */
.social-links a, .footer-links a, .footer-legal { transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease; }
.social-links a:hover { transform: translateY(-3px); }
.footer-links a:hover { padding-left: 4px; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1 !important; transform: none !important; }
}
