/*
 * Ammy Clothing Store - Custom Styling & UI Design System
 * Palette: Deep Burgundy/Maroon (#4A0E2E) & Gold/Beige (#D4AF37)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary: #4A0E2E;
    --primary-light: #5C0632;
    --primary-dark: #2D081C;
    --accent: #D4AF37;
    --accent-light: #DFBA6B;
    --accent-dark: #B89020;
    --dark: #1F1F1F;
    --light: #FDFBF7;
    --white: #FFFFFF;
    --grey-light: #F5F2EC;
    --grey-border: #E8E2D9;
    --success: #25D366; /* WhatsApp Green */
    --success-hover: #128C7E;
    --danger: #D32F2F;
    --warning: #FBC02D;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 20px rgba(74, 14, 46, 0.08);
    --shadow-md: 0 10px 30px rgba(74, 14, 46, 0.12);
}

/* =============================================================================
   1. RESET & GENERAL
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.text-center { text-align: center; }

/* Elegant Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
    font-weight: 600;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new { background-color: var(--primary); color: var(--white); }
.badge-sale { background-color: var(--accent); color: var(--primary-dark); }
.badge-out { background-color: #757575; color: var(--white); }

/* =============================================================================
   2. PUBLIC HEADER & NAVIGATION
   ============================================================================= */
.announcement-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    font-size: 0.8rem;
    padding: 8px 10px;
    letter-spacing: 1.5px;
    font-weight: 300;
}

.announcement-bar a {
    color: var(--accent);
    text-decoration: underline;
}

header {
    background-color: var(--white);
    border-bottom: 1px solid var(--grey-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo span {
    color: var(--accent);
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--grey-border);
    background-color: var(--light);
    max-width: 350px;
    width: 100%;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    width: 100%;
    font-size: 0.9rem;
}

.search-box button {
    border: none;
    background: transparent;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    font-size: 1.3rem;
    color: var(--primary);
    position: relative;
    cursor: pointer;
}

.action-btn .badge-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Nav Menu */
.main-nav {
    background-color: var(--white);
    border-top: 1px solid var(--grey-light);
    width: 100%;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin: 0 auto;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 12px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li.active a {
    color: var(--primary);
    border-bottom-color: var(--accent);
}

/* Nav Menu Alignment Options */
.nav-align-left .nav-links { justify-content: flex-start !important; }
.nav-align-center .nav-links { justify-content: center !important; }
.nav-align-right .nav-links { justify-content: flex-end !important; }

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* =============================================================================
   3. HERO SLIDER
   ============================================================================= */
.hero-slider {
    position: relative;
    width: 100%;
    /* Optimized for PC View (1920x800 = 41.67vw, 1600x600 = 37.5vw) */
    height: clamp(450px, 41.67vw, 800px);
    background-color: var(--primary-dark);
    overflow: hidden;
}

@media (min-width: 1400px) and (max-width: 1680px) {
    .hero-slider {
        height: clamp(480px, 37.5vw, 600px);
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide.active .slide-bg {
    animation: kenburnsZoom 8s ease-out infinite alternate;
}

@keyframes kenburnsZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.slide-bg.tablet-bg,
.slide-bg.mobile-bg {
    display: none; /* Hidden by default on PC screens */
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(74, 14, 46, 0.75) 25%, rgba(74, 14, 46, 0.3) 70%, rgba(74, 14, 46, 0.15));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    width: 100%;
    max-width: 700px;
    padding: 0 60px;
}

.slide-content-left {
    margin-right: auto !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.slide-content-center {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.slide-content-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: right !important;
}

.slide-title {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.35rem);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.5;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.slide.active .slide-title,
.slide.active .slide-subtitle {
    transform: translateY(0);
    opacity: 1;
}

.slider-nav {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.45);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--accent);
    width: 30px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(74, 14, 46, 0.45);
    color: var(--white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background-color: var(--primary);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 25px; }
.slider-next { right: 25px; }

/* =============================================================================
   4. CATEGORY BANNERS
   ============================================================================= */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.category-banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-banner:hover .category-img {
    transform: scale(1.05);
}

.category-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(74, 14, 46, 0.6) 20%, rgba(74, 14, 46, 0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px;
}

.category-banner h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 5px;
}

.category-banner p {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* =============================================================================
/* Catalog Layout & Desktop Left Sidebar Filters */
.catalog-grid-wrapper {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 35px;
    align-items: start;
}

.sidebar-filters-box {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    padding: 24px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    position: sticky;
    top: 90px;
    z-index: 10;
}

.mobile-filter-bar {
    display: none;
}

.mobile-filter-close {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    background-color: var(--grey-light);
}

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

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.product-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--white);
    color: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
    transition: var(--transition);
}

.product-card-wishlist:hover {
    background-color: var(--primary);
    color: var(--white);
}

.product-card-wishlist.active {
    background-color: var(--primary);
    color: var(--accent);
}

.product-card-details {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-dark);
    letter-spacing: 0.5px;
}

.product-card-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 5px;
}

.product-card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background-color: #FFFDE7;
    border: 1px solid #FFE082;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1;
}

.product-card-rating-badge .rating-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: #333;
}

.product-card-rating-badge .rating-cnt {
    font-size: 0.68rem;
    color: #777;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 44px;
}

.product-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--grey-light);
    flex-wrap: wrap;
}

.product-card-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.product-card-old-price {
    font-size: 0.82rem;
    text-decoration: line-through;
    color: #A0A0A0;
    line-height: 1;
}

.discount-pill {
    font-size: 0.68rem;
    font-weight: 700;
    background-color: #FFEBEE;
    color: #C62828;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

.product-card-type-tag {
    position: static !important;
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--grey-light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--grey-border);
    white-space: nowrap;
}

/* =============================================================================
   6. PRODUCT DETAIL PAGE
   ============================================================================= */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-top: 20px;
}

/* Detail Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-main {
    position: relative;
    height: 500px;
    border: 1px solid var(--grey-border);
    overflow: hidden;
    background-color: var(--white);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--grey-border);
    cursor: pointer;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.video-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(74, 14, 46, 0.8);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Details Panel */
.product-info-panel .product-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-info-panel .price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-info-panel .current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.product-info-panel .discount-price {
    font-size: 1.3rem;
    text-decoration: line-through;
    color: #999;
}

.product-meta-item {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-meta-item strong {
    color: var(--primary-dark);
}

.product-desc {
    margin: 25px 0;
    border-top: 1px solid var(--grey-border);
    border-bottom: 1px solid var(--grey-border);
    padding: 20px 0;
    font-size: 0.95rem;
}

/* Swatches & Selectors */
.selector-group {
    margin-bottom: 20px;
}

.selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.swatch-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--grey-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.color-swatch.active {
    box-shadow: 0 0 0 2px var(--primary);
}

.color-swatch-img {
    background-size: cover;
    background-position: center;
}

.size-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    border: 1px solid var(--grey-border);
    padding: 8px 18px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    background-color: var(--white);
}

.size-option:hover {
    border-color: var(--primary);
}

.size-option.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--grey-border);
    background-color: var(--white);
}

.qty-btn {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    border: none;
    width: 50px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* =============================================================================
   7. MODALS & FORMS
   ============================================================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 14, 46, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    width: 95%;
    max-width: 500px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    animation: modalIn 0.3s ease-out;
}

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

.modal-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--white);
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--grey-border);
    background-color: var(--light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* =============================================================================
   8. ORDER TRACKING PROGRESS STEPS
   ============================================================================= */
.tracking-search-card {
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto 50px;
}

.tracking-timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    padding-left: 30px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 9px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: var(--grey-border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--grey-border);
    transition: var(--transition);
}

.timeline-step.active .timeline-dot {
    border-color: var(--success);
    background-color: var(--success);
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

.timeline-step.current .timeline-dot {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 8px rgba(74, 14, 46, 0.3);
}

.timeline-step.current .timeline-dot::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    margin: 3px;
}

.timeline-content {
    padding-left: 10px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.timeline-step.active .timeline-title {
    color: var(--primary);
}

.timeline-desc {
    font-size: 0.85rem;
    color: #666;
}

.timeline-time {
    font-size: 0.75rem;
    color: #999;
}

/* =============================================================================
   9. MOBILE & STICKY BARS
   ============================================================================= */
.back-to-top-btn {
    position: fixed;
    bottom: 100px; /* Positioned directly above whatsapp-float (30px + 60px + 10px margin) */
    right: 30px;
    background-color: var(--primary);
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    cursor: pointer;
    outline: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--success-hover);
    transform: scale(1.08);
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid var(--grey-border);
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 60px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    color: var(--primary);
}

.mobile-nav-item.active {
    color: var(--accent-dark);
}

/* =============================================================================
   10. ADMIN LAYOUT & UI COMPONENTS
   ============================================================================= */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #F8F9FA;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--primary-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-sidebar-header {
    padding: 25px 20px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-menu {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    border-left: 4px solid transparent;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    color: var(--white);
    background-color: rgba(255,255,255,0.04);
}

.admin-menu-item.active {
    border-left-color: var(--accent);
    color: var(--accent);
}

.admin-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flexbox child blowout */
}

.admin-navbar {
    background-color: var(--white);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid var(--grey-border);
}

.admin-content {
    padding: 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Admin Dashboard Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background-color: var(--white);
    border-radius: 4px;
    border: 1px solid var(--grey-border);
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-stat-details h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.admin-stat-details p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-icon {
    font-size: 2.2rem;
    color: var(--accent);
    opacity: 0.7;
}

/* Admin Data Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border: 1px solid var(--grey-border);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, 
.admin-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--grey-light);
}

.admin-table th {
    background-color: var(--grey-light);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background-color: #FDFDFD;
}

/* Utility admin widgets */
.alert-box {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 0.95rem;
}

.alert-success { background-color: #E8F5E9; border-color: #4CAF50; color: #2E7D32; }
.alert-danger { background-color: #FFEBEE; border-color: #F44336; color: #C62828; }
.alert-warning { background-color: #FFFDE7; border-color: #FFEB3B; color: #F57F17; }

/* Image watermark protection overlays */
.no-save-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    background: transparent;
    pointer-events: auto;
}

/* Watermark indicator */
.watermark-demo {
    position: relative;
    display: inline-block;
}

/* =============================================================================
   10. MOBILE DRAWER & LAYOUT UTILITIES
   ============================================================================= */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

/* Dedicated Slide-out Mobile Drawer Panel */
.mobile-drawer-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    z-index: 9999;
    box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-drawer-panel.active {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--primary);
    color: var(--white);
}

.drawer-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.mobile-drawer-body {
    padding: 20px;
    flex-grow: 1;
}

.drawer-search-form {
    position: relative;
    margin-bottom: 20px;
}

.drawer-search-form input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid var(--grey-border);
    border-radius: 4px;
    font-size: 0.88rem;
}

.drawer-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
}

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

.drawer-menu li {
    border-bottom: 1px solid var(--grey-light);
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-menu li a i {
    color: var(--accent-dark);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.drawer-menu li.active a {
    color: var(--primary);
    font-weight: 700;
}

/* Hide desktop main-nav on mobile, hide mobile-drawer-panel on desktop */
@media (min-width: 769px) {
    .mobile-drawer-panel { display: none !important; }
}

/* =============================================================================
   11. RESPONSIVE BREAKPOINTS
   ============================================================================= */
@media (max-width: 991px) {
    .catalog-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .gallery-main {
        height: 380px;
    }

    #product-reviews-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 30px 16px !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-detail-layout {
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-info-panel {
        padding: 0 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-top {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        max-height: 36px !important;
    }
    
    .search-box {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    /* Hero Slider Content Mobile Center Alignment */
    .hero-slider {
        height: 52vh;
        min-height: 360px;
        max-height: 480px;
    }

    .slide-content {
        padding: 0 20px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        max-width: 95% !important;
    }

    .slide-title {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
        text-align: center !important;
    }

    .slide-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .slide-content .btn {
        margin: 0 auto !important;
    }

    /* Responsive Slide Background Image Switching */
    .slide-bg.mobile-bg {
        display: block !important;
    }
    .slide-bg.desktop-bg,
    .slide-bg.tablet-bg {
        display: none !important;
    }

    /* Section titles centered & no clipping */
    .section-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Shop by Category: 1-column cards on mobile */
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .category-banner {
        height: 200px !important;
    }

    .category-banner-overlay {
        padding: 25px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .category-banner h3 {
        font-size: 1.6rem !important;
    }

    /* Mobile Filter Drawer for Products Page */
    .mobile-filter-bar {
        display: block !important;
    }

    .mobile-filter-close {
        display: inline-block !important;
    }

    .sidebar-filters-box {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        max-width: 88vw !important;
        height: 100vh !important;
        z-index: 1001 !important;
        background: white !important;
        overflow-y: auto !important;
        padding: 25px !important;
        transition: left 0.35s ease !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.2) !important;
    }

    .sidebar-filters-box.active {
        left: 0 !important;
    }

    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .whatsapp-float {
        display: none !important;
    }

    .back-to-top-btn {
        bottom: 75px;
        right: 18px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    /* Footer Grid Responsive */
    footer .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important;
    }

    /* Modal dialogs on mobile */
    .modal-content {
        width: 94% !important;
        max-width: 94% !important;
        padding: 20px 15px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 576px) {
    /* 2 Cards per row for products catalog on mobile screens */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-image-container {
        height: 210px !important;
    }
    
    .product-card-details {
        padding: 12px 10px !important;
    }

    .product-card-title {
        font-size: 0.82rem !important;
        height: 34px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    .product-card-price {
        font-size: 0.92rem !important;
    }
    .product-card-old-price {
        font-size: 0.75rem !important;
    }
    
    .gallery-main {
        height: 310px !important;
    }

    .gallery-thumbs {
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 5px;
    }
    .gallery-thumb {
        width: 55px !important;
        height: 55px !important;
        flex-shrink: 0;
    }

    footer .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    footer div[style*="display: flex; gap: 15px"] {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    .product-image-container {
        height: 260px !important;
    }
}
