/* ============================================
   MAHUD.AZ - Premium E-Commerce Stylesheet
   Color: Primary #001F3F, Accent #C8A97E
   Fonts: Inter (body), Playfair Display (headings)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary: #001F3F;
    --primary-light: #003366;
    --primary-dark: #001229;
    --accent: #C8A97E;
    --accent-light: #dcc9a8;
    --accent-dark: #b08d5e;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #F0F0F0;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --text: #212529;
    --text-light: #6c757d;
    --border: #dee2e6;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--accent);
    color: var(--white);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--off-white);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* --- Bootstrap Overrides --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius);
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,31,63,0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,31,63,0.3);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-outline-light:hover {
    transform: translateY(-1px);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(200,169,126,0.25);
}

.form-control {
    border-radius: var(--radius);
    padding: 10px 16px;
    border-color: var(--border);
    transition: var(--transition-fast);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
    z-index: 1040;
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition-fast);
}
.top-bar a:hover {
    color: var(--accent);
}
.top-bar-announcement {
    font-weight: 500;
    letter-spacing: 0.5px;
}
.top-bar-announcement i {
    margin-right: 6px;
    color: var(--accent);
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px;
}
.lang-switch a {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}
.lang-switch a.active,
.lang-switch a:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Main Navbar --- */
.main-navbar {
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1030;
}
.main-navbar .container {
    flex-direction: column;
    align-items: center;
}
.main-navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    padding: 0;
    margin-right: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}
.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}
.main-navbar.scrolled .brand-logo {
    height: 42px;
}
.brand-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    transition: var(--transition-fast);
}
.brand-text:hover {
    color: var(--accent);
}

.main-navbar .nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-fast);
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 60%;
}
.main-navbar .nav-link:hover {
    color: var(--primary);
}
.nav-highlight {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

/* Mega Dropdown */
.mega-dropdown {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 12px 0;
    min-width: 220px;
    animation: dropdownFade 0.2s ease;
}
.mega-dropdown .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: var(--transition-fast);
}
.mega-dropdown .dropdown-item:hover {
    background-color: var(--off-white);
    color: var(--primary);
    padding-left: 24px;
}

/* Submenu */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    background: var(--white);
    padding: 8px 0;
    animation: dropdownFade 0.2s ease;
}
.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
}
.dropdown-submenu-menu .dropdown-item {
    padding: 7px 20px;
    font-size: 13px;
    color: var(--text-dark);
}
.dropdown-submenu-menu .dropdown-item:hover {
    background-color: var(--off-white);
    color: var(--primary);
    padding-left: 26px;
}
.dropdown-item-parent {
    font-weight: 500;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav Icon Links */
.nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary);
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}
.nav-icon-link:hover {
    background-color: var(--off-white);
    color: var(--accent);
}
.icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,31,63,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.search-overlay.active {
    display: flex;
    opacity: 1;
}
.search-form {
    width: 100%;
    max-width: 600px;
}
.search-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent);
    border-radius: 0;
    color: var(--white);
    font-size: 24px;
    padding: 16px 0;
}
.search-input:focus {
    background: transparent;
    box-shadow: none;
    border-color: var(--accent);
    color: var(--white);
}
.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.search-overlay .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 12px 24px;
    font-size: 20px;
}
.search-overlay .btn-outline-secondary {
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.3);
    padding: 12px 24px;
    font-size: 20px;
}
.search-overlay .btn-outline-secondary:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: relative;
    min-height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-default {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
    min-height: 80vh;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,18,41,0.8) 0%, rgba(0,31,63,0.4) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 40px 0;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-btn {
    padding: 14px 40px;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius);
}

/* Hero Carousel Controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0;
    transition: var(--transition);
}
.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}
.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.3);
}
.hero-section .carousel-indicators button {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: var(--transition);
}
.hero-section .carousel-indicators button.active {
    background-color: var(--accent);
    width: 60px;
}

/* Hero Animations - Per-slide animation system */
.hero-anim-el {
    opacity: 0;
    transform: translateY(30px);
}
.carousel-item.active .hero-anim-el.animated {
    opacity: 1;
    transform: none;
}

/* Animation: Fade In */
.hero-anim-content[data-anim="fade"] .hero-anim-el.animated {
    animation: heroFadeIn 0.8s ease forwards;
}
.hero-anim-content[data-anim="fade"] .hero-anim-el.animated[data-delay="1"] { animation-delay: 0.2s; }
.hero-anim-content[data-anim="fade"] .hero-anim-el.animated[data-delay="2"] { animation-delay: 0.4s; }

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

/* Animation: Slide from Left */
.hero-anim-content[data-anim="slide-left"] .hero-anim-el.animated {
    animation: heroSlideLeft 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-anim-content[data-anim="slide-left"] .hero-anim-el.animated[data-delay="1"] { animation-delay: 0.15s; }
.hero-anim-content[data-anim="slide-left"] .hero-anim-el.animated[data-delay="2"] { animation-delay: 0.3s; }

@keyframes heroSlideLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation: Slide from Right */
.hero-anim-content[data-anim="slide-right"] .hero-anim-el.animated {
    animation: heroSlideRight 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-anim-content[data-anim="slide-right"] .hero-anim-el.animated[data-delay="1"] { animation-delay: 0.15s; }
.hero-anim-content[data-anim="slide-right"] .hero-anim-el.animated[data-delay="2"] { animation-delay: 0.3s; }

@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Animation: Zoom In */
.hero-anim-content[data-anim="zoom"] .hero-anim-el.animated {
    animation: heroZoomIn 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-anim-content[data-anim="zoom"] .hero-anim-el.animated[data-delay="1"] { animation-delay: 0.2s; }
.hero-anim-content[data-anim="zoom"] .hero-anim-el.animated[data-delay="2"] { animation-delay: 0.4s; }

@keyframes heroZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Zoom background image effect on active slides */
.carousel-item.active .hero-slide[data-animation="zoom"] {
    animation: heroBgZoom 8s ease-out forwards;
}
@keyframes heroBgZoom {
    from { background-size: 100%; }
    to { background-size: 115%; }
}

/* Ken Burns slow pan on all slides */
.carousel-item.active .hero-slide {
    animation: heroKenBurns 12s ease-in-out forwards;
}
@keyframes heroKenBurns {
    from { background-size: 105%; background-position: center center; }
    to { background-size: 115%; background-position: center top; }
}
.carousel-item.active .hero-slide[data-animation="zoom"] {
    animation: heroBgZoom 8s ease-out forwards;
}

/* Smooth crossfade carousel transition */
.hero-section .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

/* Legacy support */
.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* --- Features Bar --- */
.features-bar {
    background-color: var(--off-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}
.feature-item i {
    font-size: 28px;
    color: var(--accent);
    flex-shrink: 0;
}
.feature-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 2px;
}
.feature-item span {
    font-size: 12px;
    color: var(--text-light);
}

/* --- Section Styling --- */
.section-padding {
    padding: 60px 0;
}
.section-header {
    margin-bottom: 36px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    border-radius: 2px;
}
.section-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* --- Category Cards --- */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--primary);
}
.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: var(--transition);
}
.category-icon i {
    font-size: 26px;
    color: var(--white);
}
.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transform: scale(1.1);
}
.category-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* --- Product Card --- */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light-gray);
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.product-badges .badge {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    width: fit-content;
}
.badge-new {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}
.badge-sale {
    background-color: var(--danger) !important;
    color: var(--white) !important;
}
.badge-outlet {
    background-color: var(--accent) !important;
    color: var(--white) !important;
}
.badge-stock {
    background-color: var(--dark-gray) !important;
    color: var(--white) !important;
}
.badge-limited {
    background-color: var(--warning) !important;
    color: var(--dark-gray) !important;
}

/* Wishlist Button on Card */
.product-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateY(-8px);
    font-size: 16px;
    color: var(--gray);
}
.product-card:hover .product-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}
.product-wishlist-btn:hover {
    background: var(--danger);
    color: var(--white);
    transform: scale(1.1);
}
.product-wishlist-btn.active {
    opacity: 1;
    transform: translateY(0);
    color: var(--danger);
}
.product-wishlist-btn.active:hover {
    background: var(--danger);
    color: var(--white);
}

/* Quick Actions */
.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 2;
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}
.product-actions .btn {
    backdrop-filter: blur(5px);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 24px;
}

/* Product Info */
.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.product-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}
.product-title a {
    color: var(--text);
    text-decoration: none;
}
.product-title a:hover {
    color: var(--primary);
}

/* Product Prices */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}
.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* --- Promo Section --- */
.promo-section {
    padding: 40px 0;
}
.promo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: var(--transition);
}
.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.promo-women {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #d4a574 100%);
}
.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.6) 100%);
}
.promo-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    width: 100%;
}
.promo-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.promo-content h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--white);
    margin-bottom: 16px;
}

/* --- Sale Section --- */
.sale-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.sale-section .product-card {
    border-color: rgba(255,255,255,0.1);
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 60px 0;
    background: var(--off-white);
}
.newsletter-section h3 {
    font-family: var(--font-heading);
    color: var(--primary);
}
.newsletter-form .form-control {
    border: 2px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}
.newsletter-form .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 32px;
}

/* ============================================
   PART 2 - SHOP, PRODUCT DETAIL, CART, CHECKOUT
   ============================================ */

/* --- Breadcrumb --- */
.breadcrumb-section {
    background: var(--off-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.breadcrumb-section .breadcrumb {
    font-size: 13px;
}
.breadcrumb-section .breadcrumb-item a {
    color: var(--text-light);
}
.breadcrumb-section .breadcrumb-item a:hover {
    color: var(--primary);
}
.breadcrumb-section .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* --- Shop Page Sidebar Filters --- */
.shop-sidebar .filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.shop-sidebar .filter-group:last-child {
    border-bottom: none;
}
.shop-sidebar .filter-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shop-sidebar .form-check {
    margin-bottom: 8px;
}
.shop-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.shop-sidebar .form-check-label {
    font-size: 14px;
    cursor: pointer;
}
.shop-sidebar .color-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Sidebar category tree */
.filter-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-category-list > li {
    margin-bottom: 2px;
}
.filter-category-list a {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm, 4px);
    transition: var(--transition-fast);
}
.filter-category-list a:hover {
    background: var(--off-white);
    color: var(--primary);
    padding-left: 14px;
}
.filter-category-list a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(0, 31, 63, 0.06);
}
.filter-subcategory-list {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
    display: none;
    border-left: 2px solid var(--border);
    margin-left: 10px;
}
.filter-subcategory-list.open {
    display: block;
}
.filter-subcategory-list a {
    font-size: 13px;
    padding: 4px 10px;
    color: var(--text-light);
}
.filter-subcategory-list a.active {
    color: var(--primary);
    font-weight: 600;
}
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}
.color-swatch:hover,
.color-swatch.active {
    border-color: var(--primary);
    transform: scale(1.15);
}
.color-swatch.active::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Price Range Filter */
.price-range-slider {
    padding: 8px 0;
}
.price-inputs {
    display: flex;
    gap: 12px;
    align-items: center;
}
.price-inputs input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
}
.price-inputs span {
    color: var(--text-light);
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--off-white);
    border-radius: var(--radius);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.shop-toolbar .result-count {
    font-size: 14px;
    color: var(--text-light);
}
.shop-toolbar .sort-select {
    width: auto;
    font-size: 14px;
    padding: 6px 12px;
    border-color: var(--border);
}
.view-mode-toggle {
    display: flex;
    gap: 4px;
}
.view-mode-toggle .btn {
    padding: 6px 10px;
    font-size: 16px;
    color: var(--text-light);
    border: 1px solid var(--border);
    background: var(--white);
}
.view-mode-toggle .btn.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0,31,63,0.05);
}

/* List View */
.products-list .product-card {
    flex-direction: row;
}
.products-list .product-image-wrap {
    width: 200px;
    min-width: 200px;
    aspect-ratio: auto;
    height: 240px;
}
.products-list .product-info {
    padding: 20px;
}
.products-list .product-title {
    font-size: 18px;
}

/* --- Product Detail Page --- */
.product-detail {
    background: var(--white);
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}
.main-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-gray);
    aspect-ratio: 3/4;
    cursor: crosshair;
}
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.zoom-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 5;
}
.zoom-result {
    position: absolute;
    top: 0;
    right: -520px;
    width: 500px;
    height: 500px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-repeat: no-repeat;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 10;
}

/* Product Thumbnails */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 72px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    background: var(--light-gray);
}
.thumb-item:hover {
    border-color: var(--accent-light);
}
.thumb-item.active {
    border-color: var(--accent);
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Detail Info */
.product-info-detail {
    padding-left: 16px;
}
.product-detail-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}
.product-detail-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.product-detail-price .price-old {
    font-size: 18px;
}
.product-detail-price .price-current {
    font-size: 28px;
    font-weight: 800;
}
.discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}
.product-short-desc {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.7;
}
.stock-indicator {
    font-size: 14px;
    font-weight: 500;
}

/* Stock Badges */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.stock-badge-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.stock-badge-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Stock Urgency */
.stock-urgency {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.08) 0%, rgba(255, 152, 0, 0.06) 100%);
    border: 1px solid rgba(255, 87, 34, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.stock-urgency-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF5722, #FF9800);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    animation: fireGlow 1.5s ease-in-out infinite;
}
@keyframes fireGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 87, 34, 0.3); }
    50% { box-shadow: 0 0 16px rgba(255, 87, 34, 0.5); }
}
.stock-urgency-content {
    flex: 1;
    min-width: 0;
}
.stock-urgency-text {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #E65100;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.stock-urgency-count {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #BF360C;
    line-height: 1.3;
}
.stock-urgency-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 87, 34, 0.12);
}
.stock-urgency-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5722, #FF9800);
    border-radius: 0 3px 3px 0;
    transition: width 0.6s ease;
}

/* Variant Selection */
.variant-group {
    position: relative;
}
.variant-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}
.variant-label span {
    font-weight: 400;
    color: var(--text-light);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.color-variant-option {
    cursor: pointer;
    position: relative;
}
.color-variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.color-swatch-lg {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: var(--transition-fast);
}
.color-variant-option input:checked + .color-swatch-lg {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
    transform: scale(1.1);
}
.color-variant-option:hover .color-swatch-lg {
    transform: scale(1.1);
}

/* Size Options */
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.size-variant-option {
    cursor: pointer;
    position: relative;
}
.size-variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.size-variant-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition-fast);
    background: var(--white);
}
.size-variant-option input:checked + span {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}
.size-variant-option:hover span {
    border-color: var(--primary);
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--off-white);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}
.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

/* Product Detail Actions */
.product-actions-detail {
    display: flex;
    gap: 12px;
}
.product-actions-detail .btn {
    padding: 14px 28px;
    font-size: 15px;
}
.add-to-cart-btn {
    letter-spacing: 0.5px;
}
.wishlist-detail-btn {
    padding: 14px 18px !important;
    flex-shrink: 0;
}
.wishlist-detail-btn.active {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

/* Share Buttons */
.product-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--off-white);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
    text-decoration: none;
}
.share-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Product Tabs */
.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border);
}
.product-tabs .nav-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-light);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 24px;
    margin-bottom: -2px;
    transition: var(--transition-fast);
}
.product-tabs .nav-link:hover {
    color: var(--primary);
    border-color: var(--accent-light);
}
.product-tabs .nav-link.active {
    color: var(--primary);
    border-color: var(--accent);
    background: transparent;
}
.product-tabs .tab-content {
    padding: 28px 0;
}
.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.review-item {
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

/* Star Rating */
.star-rating {
    color: var(--accent);
    font-size: 14px;
}
.star-rating .bi-star {
    color: var(--border);
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 4px;
    direction: rtl;
    justify-content: flex-end;
}
.star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: var(--border);
    transition: var(--transition-fast);
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--accent);
}
.star-rating-input input:checked ~ label {
    color: var(--accent);
}
.star-rating-input input {
    display: none;
}

/* Write Review */
.write-review {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.write-review h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 16px;
}

/* --- Cart Page --- */
.cart-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.cart-table thead {
    background: var(--primary);
    color: var(--white);
}
.cart-table thead th {
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
}
.cart-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-color: var(--border);
}
.cart-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-product-img {
    width: 80px;
    height: 100px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--light-gray);
}
.cart-product-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 4px;
}
.cart-product-variant {
    font-size: 13px;
    color: var(--text-light);
}
.cart-product-remove {
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: var(--transition-fast);
}
.cart-product-remove:hover {
    color: var(--danger);
}

/* Cart Summary */
.cart-summary {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.cart-summary h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}
.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    padding-top: 16px;
    margin-top: 16px;
}
.cart-summary .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 16px;
}

/* Coupon Section - Premium */
.coupon-section {
    border: 1px dashed var(--accent, #C8A97E);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(200, 169, 126, 0.04) 0%, rgba(0, 31, 63, 0.02) 100%);
}
.coupon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.coupon-header:hover {
    background: rgba(200, 169, 126, 0.08);
}
.coupon-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.coupon-header-left i {
    font-size: 18px;
    color: var(--accent, #C8A97E);
}
.coupon-chevron {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}
.coupon-section.open .coupon-chevron {
    transform: rotate(180deg);
}
.coupon-body {
    padding: 0 16px 16px;
    display: none;
}
.coupon-section.open .coupon-body {
    display: block;
}
.coupon-input-wrap {
    display: flex;
    gap: 8px;
}
.coupon-input-group {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.coupon-input-icon {
    position: absolute;
    left: 12px;
    font-size: 15px;
    color: var(--accent, #C8A97E);
    pointer-events: none;
}
.coupon-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.coupon-input:focus {
    border-color: var(--accent, #C8A97E);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}
.coupon-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #adb5bd;
}
.coupon-apply-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent, #C8A97E) 0%, #b8956a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.coupon-apply-btn:hover {
    background: linear-gradient(135deg, #b8956a 0%, #a88558 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 169, 126, 0.3);
}
.coupon-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}
.coupon-message.success {
    color: #198754;
}
.coupon-message.error {
    color: #dc3545;
}

/* Free Delivery Progress */
.delivery-progress {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.delivery-progress .progress {
    height: 6px;
    border-radius: 3px;
    background: var(--light-gray);
    margin-top: 8px;
}
.delivery-progress .progress-bar {
    background: linear-gradient(to right, var(--accent), var(--success));
    border-radius: 3px;
}
.delivery-progress p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}
.empty-cart i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}
.empty-cart h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 12px;
}
.empty-cart p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* --- Checkout Page --- */
.checkout-section {
    background: var(--off-white);
    min-height: 80vh;
}
.checkout-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}
.checkout-card h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 18px;
}

/* Delivery Options */
.delivery-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 10px;
}
.delivery-option:hover {
    border-color: var(--accent-light);
}
.delivery-option.selected,
.delivery-option input:checked + .delivery-option-content {
    border-color: var(--primary);
    background: rgba(0,31,63,0.02);
}
.delivery-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.delivery-option-content {
    flex: 1;
}
.delivery-option-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}
.delivery-option-desc {
    font-size: 13px;
    color: var(--text-light);
}
.delivery-option-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Payment Options */
.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 10px;
}
.payment-option:hover {
    border-color: var(--accent-light);
}
.payment-option.selected {
    border-color: var(--primary);
    background: rgba(0,31,63,0.02);
}
.payment-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}
.payment-option i {
    font-size: 24px;
    color: var(--accent);
}

/* Order Summary in Checkout */
.order-summary-checkout {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.order-summary-checkout h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}
.order-item:last-child {
    border-bottom: none;
}
.order-item-img {
    width: 56px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--light-gray);
}
.order-item-info {
    flex: 1;
}
.order-item-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}
.order-item-variant {
    font-size: 12px;
    color: var(--text-light);
}
.order-item-price {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

/* --- Order Success Page --- */
.order-success {
    text-align: center;
    padding: 60px 0;
}
.order-success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #20c997);
    color: var(--white);
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.order-success h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 12px;
}
.order-success p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 24px;
}
.order-details-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    max-width: 600px;
    margin: 24px auto;
}

/* --- Auth Pages (Login / Register) --- */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: var(--off-white);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}
.auth-card .brand-text {
    font-size: 32px;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}
.auth-card h3 {
    font-family: var(--font-heading);
    text-align: center;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 22px;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 14px;
}
.auth-card .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}
.auth-card .form-control {
    padding: 12px 16px;
    border: 2px solid var(--border);
}
.auth-card .form-control:focus {
    border-color: var(--accent);
}
.auth-card .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 8px;
}
.auth-divider {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin: 24px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-link {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
}
.auth-link a {
    color: var(--accent);
    font-weight: 600;
}
.auth-link a:hover {
    color: var(--primary);
}

/* --- Account Page --- */
.account-section {
    padding: 40px 0;
    background: var(--off-white);
    min-height: 80vh;
}
.account-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.account-user-info {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-align: center;
}
.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.account-user-info h6 {
    margin-bottom: 2px;
    font-weight: 600;
}
.account-user-info small {
    opacity: 0.7;
}
.account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.account-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-fast);
    text-decoration: none;
}
.account-nav li a:hover,
.account-nav li a.active {
    color: var(--primary);
    background: var(--off-white);
    padding-left: 24px;
}
.account-nav li a.active {
    border-left: 3px solid var(--accent);
}
.account-nav li a i {
    font-size: 18px;
    width: 24px;
    color: var(--accent);
}
.account-nav li a.text-danger i {
    color: var(--danger, #dc3545);
}
.account-nav-divider {
    border-top: 1px solid var(--border);
    margin: 0;
}

/* Account Content */
.account-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.account-content h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* Orders Table */
.orders-table {
    border-radius: var(--radius);
    overflow: hidden;
}
.orders-table thead {
    background: var(--off-white);
}
.orders-table th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
.order-status.pending {
    background: #fff3cd;
    color: #856404;
}
.order-status.processing {
    background: #cce5ff;
    color: #004085;
}
.order-status.shipped {
    background: #d4edda;
    color: #155724;
}
.order-status.delivered {
    background: #d1e7dd;
    color: #0f5132;
}
.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Address Cards */
.address-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    height: 100%;
    transition: var(--transition-fast);
}
.address-card:hover {
    border-color: var(--accent);
}
.address-card.default {
    border-color: var(--primary);
    border-width: 2px;
}
.address-card h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.address-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}
.address-actions {
    display: flex;
    gap: 8px;
}
.address-actions .btn {
    padding: 4px 12px;
    font-size: 12px;
}

/* --- Wishlist Page --- */
.wishlist-section {
    padding: 40px 0;
    min-height: 60vh;
}
.wishlist-section .section-title {
    margin-bottom: 24px;
}
.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
}
.wishlist-empty i {
    font-size: 64px;
    color: var(--accent-light);
    margin-bottom: 16px;
}
.wishlist-empty h3 {
    font-family: var(--font-heading);
    color: var(--primary);
}

/* ============================================
   PART 3 - FOOTER, BLOG, ABOUT, UTILITIES, RESPONSIVE
   ============================================ */

/* --- Footer --- */
.main-footer,
.site-footer {
    background-color: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
    margin-bottom: 16px;
    display: block;
}
.main-footer p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 0;
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}
.footer-contact li i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}
.footer-contact li a {
    color: rgba(255,255,255,0.65);
}
.footer-contact li a:hover {
    color: var(--accent);
}

/* Footer Newsletter */
.footer-newsletter .form-control {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 14px;
}
.footer-newsletter .form-control::placeholder {
    color: rgba(255,255,255,0.4);
}
.footer-newsletter .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
}
.footer-newsletter .btn {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.footer-newsletter .btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: var(--transition-fast);
}
.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 40px 0 0;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}
.site-footer .small.text-muted {
    color: rgba(255,255,255,0.5) !important;
}
.site-footer p.small {
    color: rgba(255,255,255,0.65);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
}
.footer-bottom p {
    font-size: 13px;
    margin: 0;
    color: rgba(255,255,255,0.5);
}
.footer-payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.footer-payment-icons img {
    height: 24px;
    opacity: 0.6;
    transition: var(--transition-fast);
}
.footer-payment-icons img:hover {
    opacity: 1;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* --- Blog Page --- */
.blog-section {
    padding: 40px 0;
    min-height: 60vh;
}
.blog-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.blog-toggle .btn {
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
.blog-toggle .btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}
.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.blog-card-image {
    height: 220px;
    overflow: hidden;
    background: var(--light-gray);
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}
.blog-card-body {
    padding: 20px;
}
.blog-card-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.blog-card-meta i {
    color: var(--accent);
}
.blog-card-date,
.blog-card-views {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}
.blog-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-card-title a {
    color: inherit;
}
.blog-card-title a:hover {
    color: var(--accent);
}
.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.blog-card .read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-card .read-more:hover {
    color: var(--primary);
    gap: 8px;
}

/* Blog Single Post */
.blog-single {
    max-width: 800px;
    margin: 0 auto;
}
.blog-single-header {
    margin-bottom: 28px;
}
.blog-single-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.3;
}
.blog-single-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
}
.blog-single-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
}
.blog-single-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.blog-single-content p {
    margin-bottom: 16px;
}
.blog-single-content h2,
.blog-single-content h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 28px;
    margin-bottom: 14px;
}

/* YouTube Embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- About Page --- */
.about-section {
    padding: 60px 0;
}
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
}
.about-hero h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    margin-bottom: 16px;
}
.about-hero p {
    font-size: 18px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}
.about-story {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.about-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
}
.stat-item {
    text-align: center;
    padding: 24px 32px;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    min-width: 180px;
    transition: var(--transition);
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}
.about-values {
    padding: 40px 0;
}
.value-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    transition: var(--transition);
}
.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.value-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 14px;
}
.value-card h5 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 8px;
}
.value-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* --- Return Policy Page --- */
.return-section {
    padding: 40px 0;
}
.return-content {
    font-size: 15px;
    line-height: 1.8;
}
.return-content h2,
.return-content h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-top: 28px;
    margin-bottom: 14px;
}
.return-content ul {
    padding-left: 24px;
}
.return-content li {
    margin-bottom: 8px;
    color: var(--text);
}
.return-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
.return-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.return-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Error Pages (404, 500) --- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.error-code {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.error-page h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 12px;
}
.error-page p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 16px;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.custom-toast {
    min-width: 300px;
    max-width: 400px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid var(--primary);
    font-size: 14px;
}
.custom-toast.success { border-left-color: var(--success); }
.custom-toast.error { border-left-color: var(--danger); }
.custom-toast.warning { border-left-color: var(--warning); }
.custom-toast.info { border-left-color: var(--primary); }

.custom-toast i {
    font-size: 20px;
    flex-shrink: 0;
}
.custom-toast.success i { color: var(--success); }
.custom-toast.error i { color: var(--danger); }
.custom-toast.warning i { color: var(--warning); }
.custom-toast.info i { color: var(--primary); }

.custom-toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.custom-toast .toast-close:hover {
    color: var(--text);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* --- Flash Messages --- */
.flash-message {
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border: 1px solid;
}
.flash-message.success {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}
.flash-message.error {
    background: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}
.flash-message.warning {
    background: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}
.flash-message.info {
    background: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

/* --- Pagination --- */
.pagination {
    gap: 4px;
}
.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius) !important;
    transition: var(--transition-fast);
    margin: 0;
}
.pagination .page-link:hover {
    background-color: var(--off-white);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--off-white);
}

/* --- Loading Spinner --- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Dropdown Override for Account --- */
.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    animation: dropdownFade 0.2s ease;
}
.main-navbar .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: var(--transition-fast);
}
.main-navbar .dropdown-item:hover {
    background: var(--off-white);
    color: var(--primary);
}
.main-navbar .dropdown-item i {
    color: var(--accent);
}

/* Fix for dropdown-toggle pseudo-element conflict */
.main-navbar .dropdown-toggle::after {
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    left: auto;
    bottom: auto;
}

/* --- Vendor Prefix Fix --- */
.qty-input {
    -webkit-appearance: textfield;
    appearance: textfield;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199.98px) {
    .zoom-result {
        display: none !important;
    }
    .product-info-detail {
        padding-left: 0;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 40px 0;
    }
    .hero-slide {
        min-height: 60vh;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .main-navbar .container {
        flex-direction: row;
    }
    .navbar-brand {
        width: auto;
        margin-bottom: 0;
    }
    .brand-logo {
        height: 40px;
    }
    .main-navbar .navbar-collapse {
        background: var(--white);
        padding: 16px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    .main-navbar .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-navbar .nav-link::after {
        display: none;
    }
    .products-list .product-card {
        flex-direction: column;
    }
    .products-list .product-image-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }
    .product-gallery {
        position: static;
    }
    .account-sidebar {
        margin-bottom: 24px;
    }

    /* Mobile Shop Sidebar - Offcanvas overlay */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        z-index: 1050;
        padding: 20px;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }
    .shop-sidebar.active {
        left: 0;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
    }
    .sidebar-backdrop.active {
        display: block;
    }

    /* Mobile dropdown submenu - inline instead of flyout */
    .dropdown-submenu {
        position: static;
    }
    .dropdown-submenu-menu {
        position: static !important;
        left: auto !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 16px !important;
        background: transparent !important;
        animation: none !important;
    }
    .dropdown-submenu .dropdown-submenu-menu {
        display: none;
    }
    .dropdown-submenu.open .dropdown-submenu-menu {
        display: block;
    }
    .dropdown-submenu:hover .dropdown-submenu-menu {
        display: none;
    }
    .dropdown-submenu.open:hover .dropdown-submenu-menu {
        display: block;
    }
    .dropdown-item-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .dropdown-item-parent .bi-chevron-right {
        transition: transform 0.2s ease;
    }
    .dropdown-submenu.open .dropdown-item-parent .bi-chevron-right {
        transform: rotate(90deg);
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 32px 0;
    }
    .section-title {
        font-size: 22px;
    }
    .hero-slide {
        min-height: 50vh;
    }
    .hero-default {
        min-height: 60vh;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    .hero-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
    .features-bar .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 8px;
        gap: 8px;
    }
    .features-bar .feature-item i {
        font-size: 22px;
    }
    .features-bar .feature-item strong {
        font-size: 12px;
    }
    .features-bar .feature-item span {
        font-size: 11px;
    }
    .product-info {
        padding: 12px;
    }
    .product-title {
        font-size: 13px;
    }
    .price-current {
        font-size: 15px;
    }
    .price-old {
        font-size: 12px;
    }
    .promo-content h3 {
        font-size: 24px;
    }
    .promo-card {
        min-height: 220px;
    }
    .product-detail-title {
        font-size: 22px;
    }
    .product-detail-price .price-current {
        font-size: 24px;
    }
    .product-actions-detail {
        flex-direction: column;
    }
    .product-actions-detail .btn {
        width: 100%;
    }
    .cart-product-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .cart-product-img {
        width: 60px;
        height: 75px;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table tbody td {
        display: block;
        text-align: right;
        padding: 8px 16px;
    }
    .cart-table tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        color: var(--primary);
    }
    .cart-table tbody tr {
        border-bottom: 2px solid var(--border);
        margin-bottom: 12px;
        display: block;
    }
    .auth-card {
        padding: 28px 20px;
    }
    .checkout-card {
        padding: 20px;
    }
    .about-hero h1 {
        font-size: 28px;
    }
    .about-hero p {
        font-size: 15px;
    }
    .about-stats {
        gap: 12px;
    }
    .stat-item {
        padding: 16px 20px;
        min-width: 140px;
    }
    .stat-number {
        font-size: 28px;
    }
    .blog-single-title {
        font-size: 24px;
    }
    .error-code {
        font-size: 80px;
    }
    .custom-toast {
        min-width: 260px;
        max-width: calc(100vw - 40px);
    }
    .toast-container {
        right: 10px;
        left: 10px;
    }
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .shop-toolbar > * {
        width: 100%;
    }
    .view-mode-toggle {
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    .lang-switch a {
        padding: 3px 8px;
        font-size: 11px;
    }
    .brand-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
    .hero-slide {
        min-height: 45vh;
    }
    .category-card {
        padding: 16px 12px;
    }
    .category-icon {
        width: 48px;
        height: 48px;
    }
    .category-icon i {
        font-size: 20px;
    }
    .category-card h5 {
        font-size: 12px;
    }
    .product-card .product-badges .badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    .product-wishlist-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .newsletter-form .input-group {
        flex-direction: column;
    }
    .newsletter-form .form-control {
        border-radius: var(--radius);
        border-right: 2px solid var(--border);
    }
    .newsletter-form .btn {
        border-radius: var(--radius);
        width: 100%;
    }
    .footer-bottom {
        text-align: center;
    }
    .footer-payment-icons {
        justify-content: center;
        margin-top: 10px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .product-thumbnails {
        gap: 6px;
    }
    .thumb-item {
        width: 56px;
        height: 70px;
    }
    .order-summary-checkout {
        position: static;
    }
}

/* ==========================================================================
   Loyalty Card System
   ========================================================================== */

/* Visual Loyalty Card */
.loyalty-card-visual {
    position: relative;
    border-radius: 16px;
    padding: 28px;
    color: #fff;
    overflow: hidden;
    min-height: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.loyalty-card-visual .loyalty-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.loyalty-card-visual .loyalty-card-content {
    position: relative;
    z-index: 1;
}

/* Tier-based card styles */
.loyalty-tier-bronze {
    background: linear-gradient(135deg, #8D6E4C 0%, #C9A96E 50%, #8D6E4C 100%);
}
.loyalty-tier-bronze .loyalty-card-bg {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.loyalty-tier-silver {
    background: linear-gradient(135deg, #6B7B8D 0%, #A8B5C2 40%, #8899AA 100%);
}
.loyalty-tier-silver .loyalty-card-bg {
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 20l4-4 1.41 1.41L1.41 21.41 0 20zm8.59-4L12 12.59l1.41 1.41-3.41 3.41L8.59 16z'/%3E%3C/g%3E%3C/svg%3E");
}

.loyalty-tier-gold {
    background: linear-gradient(135deg, #AA8B2F 0%, #EFCF68 35%, #D4A84B 65%, #AA8B2F 100%);
}
.loyalty-tier-gold .loyalty-card-bg {
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.loyalty-tier-platinum {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
}
.loyalty-tier-platinum .loyalty-card-bg {
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23C8A97E' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.loyalty-card-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.loyalty-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.loyalty-card-tier-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loyalty-card-tier-badge i {
    margin-right: 4px;
}

.loyalty-card-number {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.loyalty-card-name {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.loyalty-card-since {
    font-size: 0.7rem;
    opacity: 0.7;
}

.loyalty-card-points {
    text-align: right;
}

.loyalty-card-points-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.loyalty-card-points-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Loyalty Stat Cards */
.loyalty-stat-card {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.loyalty-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.loyalty-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.loyalty-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Progress Card */
.loyalty-progress-card {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 10px;
    padding: 16px 20px;
}

/* Redeem Card */
.loyalty-redeem-card {
    background: linear-gradient(135deg, #f0f7ff, #f8f0ff);
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    padding: 20px;
}

.btn-redeem {
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 6px 14px;
}

/* Coupon Cards */
.coupon-card {
    display: flex;
    border: 2px dashed var(--accent);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.coupon-card:hover {
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.2);
}

.coupon-card.used {
    opacity: 0.5;
    border-color: #dee2e6;
}

.coupon-card-left {
    background: var(--accent);
    color: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.coupon-discount {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.coupon-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.coupon-card-right {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

/* Utility */
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }

/* Responsive adjustments for loyalty card */
@media (max-width: 575.98px) {
    .loyalty-card-visual {
        padding: 20px;
        min-height: 170px;
    }
    .loyalty-card-number {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    .loyalty-card-points-value {
        font-size: 1.4rem;
    }
    .loyalty-card-brand {
        font-size: 1.1rem;
    }
    .coupon-card-left {
        min-width: 65px;
        padding: 12px;
    }
    .coupon-discount {
        font-size: 1.1rem;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section .section-header .section-title {
    font-family: var(--font-heading);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-info-card h6 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    padding: 0 8px;
}

.contact-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.contact-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 100%;
}

.contact-form-card h5 {
    font-weight: 600;
    color: var(--primary);
}

.contact-map iframe {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ============================================
   TRACK ORDER PAGE
   ============================================ */
.track-order-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.track-order-card .bi-truck {
    color: var(--primary) !important;
    opacity: 0.8;
}

.track-result {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Order Timeline */
.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: var(--light-gray);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.85rem;
    transition: var(--transition);
}

.timeline-step.done .timeline-dot {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.timeline-step.active .timeline-dot {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 6px rgba(0, 31, 63, 0.15);
    animation: timelinePulse 2s infinite;
}

@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 31, 63, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(0, 31, 63, 0.08); }
}

.timeline-step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    max-width: 80px;
}

.timeline-step.done span,
.timeline-step.active span {
    color: var(--text);
    font-weight: 600;
}

/* Track Items */
.track-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--off-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.track-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
}

.track-item-info {
    flex: 1;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappBounce 3s infinite;
}

.whatsapp-float:hover {
    color: var(--white);
    background: #1ebe5d;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes whatsappBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
#quickViewModal .modal-dialog {
    max-width: 800px;
}

#quickViewModal .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#quickViewModal .modal-body {
    padding: 0;
}

.quick-view-content {
    display: flex;
    gap: 0;
}

.quick-view-image {
    width: 50%;
    min-height: 400px;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.quick-view-info {
    width: 50%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-view-info .product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

.quick-view-info .product-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.quick-view-info .product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-view-info .price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
}

.quick-view-info .price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.quick-view-info .product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
}

.quick-view-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.quick-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.quick-view-close:hover {
    background: var(--danger);
    color: var(--white);
}

/* ============================================
   STOCK NOTIFY FORM
   ============================================ */
.stock-notify-form {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    border: 1px dashed var(--accent);
}

.stock-notify-form h6 {
    font-weight: 600;
    color: var(--primary);
}

.stock-notify-form .input-group {
    max-width: 400px;
}

/* ============================================
   RECENTLY VIEWED PRODUCTS
   ============================================ */
.recently-viewed-section {
    padding: 40px 0;
    background: var(--off-white);
    border-top: 1px solid var(--border);
}

.recently-viewed-section .section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.recently-viewed-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scrollbar-width: thin;
}

.recently-viewed-scroll::-webkit-scrollbar {
    height: 4px;
}

.recently-viewed-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 2px;
}

.recently-viewed-scroll .product-card {
    min-width: 200px;
    max-width: 200px;
    flex-shrink: 0;
}

/* ============================================
   FORGOT / RESET PASSWORD PAGES
   ============================================ */
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-width: 480px;
    margin: 0 auto;
}

.auth-card .auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.auth-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE: New Components
   ============================================ */
@media (max-width: 991.98px) {
    .quick-view-content {
        flex-direction: column;
    }
    .quick-view-image {
        width: 100%;
        min-height: 280px;
        max-height: 320px;
    }
    .quick-view-info {
        width: 100%;
        padding: 24px;
    }
    .contact-form-card {
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .order-timeline {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }
    .order-timeline::before {
        top: 0;
        bottom: 0;
        left: 17px;
        right: auto;
        width: 3px;
        height: auto;
    }
    .timeline-step {
        flex-direction: row;
        gap: 12px;
    }
    .timeline-dot {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    .timeline-step span {
        text-align: left;
        max-width: none;
    }
    .track-order-card {
        padding: 32px 20px;
    }
    .compare-label-col {
        width: 100px;
        min-width: 100px;
    }
    .compare-img {
        width: 80px;
        height: 100px;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .contact-info-card {
        padding: 16px;
    }
    .contact-info-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
}

/* ============================================
   ADMIN INVOICE / PRINT
   ============================================ */
.invoice-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--primary);
}

.invoice-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta h4 {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.invoice-info-block h6 {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.invoice-info-block p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.invoice-table thead th {
    background: var(--primary);
    color: var(--white);
    padding: 10px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.invoice-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.invoice-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.invoice-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.invoice-table tbody tr:nth-child(even) {
    background: var(--off-white);
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
}

.invoice-totals table {
    width: 260px;
}

.invoice-totals td {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.invoice-totals .total-row td {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
    border-top: 2px solid var(--primary);
    padding-top: 10px;
}

.invoice-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   #1 - LIVE CHAT / CANLI DƏSTƏK WIDGET
   ============================================ */

/* --- Floating Toggle Button --- */
.chat-float-btn {
    position: fixed;
    bottom: 160px;
    right: 24px;
    z-index: 1060;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #001F3F, #003366);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 31, 63, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}
.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 31, 63, 0.55);
}
.chat-float-btn.chat-float-pulse {
    animation: chatFloatPulse 1.2s ease 2;
}
@keyframes chatFloatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0,31,63,0.45); }
    50% { box-shadow: 0 4px 28px rgba(0,31,63,0.7), 0 0 0 10px rgba(0,31,63,0.08); }
}
.chat-float-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
}
.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: badgePop 0.3s ease;
}
@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* --- Widget Container --- */
.chat-widget {
    position: fixed;
    bottom: 228px;
    right: 24px;
    z-index: 1055;
    width: 360px;
    max-height: 560px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,31,63,0.08);
}
@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@keyframes chatSlideOut {
    from { opacity: 1; transform: translateY(0)   scale(1);    }
    to   { opacity: 0; transform: translateY(16px) scale(0.96); }
}

/* --- Widget Header --- */
.chat-widget-header {
    background: linear-gradient(135deg, #001F3F 0%, #003366 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chat-widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200,169,126,0.25);
    border: 2px solid rgba(200,169,126,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    flex-shrink: 0;
}
.chat-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    border: 2px solid #001F3F;
}
.chat-widget-info {
    flex: 1;
}
.chat-widget-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.chat-widget-subtitle {
    font-size: 0.72rem;
    opacity: 0.75;
    margin-top: 1px;
}
.chat-widget-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
    flex-shrink: 0;
}
.chat-widget-close:hover {
    background: rgba(255,255,255,0.22);
}

/* --- Start Form --- */
.chat-start-form {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.chat-welcome {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.chat-welcome-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,31,63,0.08), rgba(200,169,126,0.15));
    color: #001F3F;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.chat-welcome-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}
.chat-form-group {
    margin-bottom: 10px;
}
.chat-input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}
.chat-input-field:focus {
    border-color: #001F3F;
    background: #fff;
}
.chat-start-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #001F3F, #003366);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 4px;
}
.chat-start-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.chat-start-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --- Message Area --- */
.chat-message-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #c8a97e; border-radius: 2px; }

/* Message rows */
.cwm-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}
.cwm-row--agent { align-items: flex-start; }
.cwm-row--visitor { align-items: flex-end; }

.cwm-bubble {
    max-width: 82%;
    padding: 9px 13px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}
.cwm-row--visitor .cwm-bubble {
    background: #001F3F;
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}
.cwm-row--agent .cwm-bubble {
    background: #fff;
    color: #212529;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid #e3e6f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cwm-time {
    font-size: 0.67rem;
    color: #adb5bd;
    margin-top: 3px;
    padding: 0 3px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 8px 14px 0;
}
.chat-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C8A97E;
    animation: typingDot 1.2s infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.chat-textarea {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    max-height: 100px;
    line-height: 1.4;
}
.chat-textarea:focus {
    border-color: #001F3F;
    background: #fff;
}
.chat-send-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #001F3F, #003366);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.15s;
}
.chat-send-btn:hover { opacity: 0.88; transform: scale(1.07); }
.chat-send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Powered by */
.chat-powered {
    text-align: center;
    font-size: 0.67rem;
    color: #adb5bd;
    padding: 4px 0 8px;
    background: #fff;
}

/* --- Responsive --- */
@media (max-width: 575.98px) {
    .chat-widget {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 200px;
        max-height: 480px;
    }
    .chat-float-btn {
        right: 16px;
        bottom: 148px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* --- Print: Hide chat widget --- */
/* --- Print Styles --- */
@media print {
    .chat-float-btn,
    .chat-widget { display: none !important; }
}

/* ============================================================
   #3 Size Guide / Ölçü Bələdçisi
   ============================================================ */

/* Trigger link next to size label */
.size-guide-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent-dark, #b08d5e);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.size-guide-link:hover {
    color: var(--primary, #001F3F);
}

/* Modal overrides */
.sg-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.sg-modal-header {
    background: linear-gradient(135deg, var(--primary, #001F3F) 0%, #003366 100%);
    color: #fff;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.sg-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    font-family: 'Playfair Display', serif;
}

.sg-modal-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* Tab navigation */
.sg-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    padding: 0 20px;
}

.sg-tab {
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light, #6c757d);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.sg-tab:hover {
    color: var(--primary, #001F3F);
}

.sg-tab.active {
    color: var(--primary, #001F3F);
    border-bottom-color: var(--accent, #C8A97E);
    font-weight: 600;
}

/* Size table */
.sg-table-wrap {
    padding: 16px 20px 0;
    overflow-x: auto;
}

.sg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.sg-table thead th {
    background: var(--primary, #001F3F);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.sg-table thead th:first-child { border-radius: 8px 0 0 0; }
.sg-table thead th:last-child  { border-radius: 0 8px 0 0; }

.sg-table tbody tr {
    transition: background 0.15s;
}

.sg-table tbody tr:nth-child(even) {
    background: #f8f9fc;
}

.sg-table tbody tr:hover {
    background: rgba(200, 169, 126, 0.1);
}

.sg-table tbody td {
    padding: 11px 16px;
    text-align: center;
    border-bottom: 1px solid #eef0f3;
    color: var(--text, #212529);
}

.sg-size-cell {
    font-weight: 700;
    color: var(--primary, #001F3F) !important;
    font-size: 0.9rem;
    background: rgba(0, 31, 63, 0.04);
}

/* How to measure section */
.sg-how-to {
    margin: 16px 20px 20px;
    background: linear-gradient(135deg, rgba(0,31,63,0.03) 0%, rgba(200,169,126,0.05) 100%);
    border: 1px solid rgba(200, 169, 126, 0.3);
    border-radius: 10px;
    padding: 16px 20px;
}

.sg-how-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #001F3F);
    margin-bottom: 12px;
}

.sg-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sg-how-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sg-how-icon {
    width: 30px;
    height: 30px;
    background: var(--accent, #C8A97E);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sg-how-item strong {
    display: block;
    font-size: 0.78rem;
    color: var(--primary, #001F3F);
    margin-bottom: 2px;
}

.sg-how-item p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--text-light, #6c757d);
    line-height: 1.4;
}

@media (max-width: 575px) {
    .sg-how-grid {
        grid-template-columns: 1fr;
    }
    .sg-modal-header {
        padding: 16px;
    }
    .sg-table-wrap {
        padding: 12px 12px 0;
    }
    .sg-how-to {
        margin: 12px 12px 16px;
        padding: 12px;
    }
    .sg-tabs {
        padding: 0 12px;
    }
    .sg-tab {
        padding: 12px 14px;
        font-size: 0.8rem;
    }
}

/* --- Print Styles --- */
@media print {
    .top-bar,
    .main-navbar,
    .main-footer,
    .back-to-top,
    .search-overlay,
    .toast-container,
    .whatsapp-float,
    .no-print {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    .section-padding {
        padding: 20px 0;
    }
    a {
        color: #000;
    }
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    .invoice-wrap {
        box-shadow: none;
        border: none;
        padding: 0;
        max-width: 100%;
    }
}
