/* ==========================================================================
   🎨 DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Theme Transition */
    --theme-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* HSL Tailored Colors (Light Theme Default) */
    --hue-primary: 340; /* Vibrant Rose / Coral */
    --primary: HSL(var(--hue-primary), 85%, 55%);
    --primary-light: HSL(var(--hue-primary), 85%, 95%);
    --primary-hover: HSL(var(--hue-primary), 90%, 48%);
    --primary-glow: rgba(235, 45, 108, 0.35);

    --secondary: HSL(220, 20%, 15%);
    --success: HSL(145, 80%, 40%);
    --warning: HSL(35, 90%, 50%);
    --danger: HSL(360, 80%, 50%);
    --info: HSL(200, 85%, 50%);

    /* Neutral Colors (Light Theme) */
    --bg-main: HSL(220, 20%, 97%);
    --bg-card: HSL(0, 0%, 100%);
    --bg-body: var(--bg-main);
    --primary-color: var(--primary);
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-accent: HSL(220, 15%, 93%);
    --bg-rgb: 255, 255, 255;

    --text-main: HSL(220, 20%, 15%);
    --text-muted: HSL(220, 10%, 50%);
    --text-inverse: HSL(0, 0%, 100%);

    --border-color: HSL(220, 10%, 88%);
    --border-hover: HSL(220, 10%, 75%);

    /* Shadows & Border Radius */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 20px var(--primary-glow);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;
    --radius-round: 50%;
}

/* 🌙 DARK THEME COLORS */
body.dark-theme {
    /* Neutral Colors (Dark Theme) */
    --primary: HSL(var(--hue-primary), 85%, 63%);
    --primary-light: HSL(var(--hue-primary), 30%, 15%);
    --primary-hover: HSL(var(--hue-primary), 90%, 68%);
    --primary-glow: rgba(240, 80, 135, 0.25);

    --bg-main: HSL(222, 25%, 9%);
    --bg-card: HSL(222, 20%, 14%);
    --bg-body: var(--bg-main);
    --primary-color: var(--primary);
    --bg-header: rgba(15, 21, 32, 0.85);
    --bg-accent: HSL(222, 15%, 18%);
    --bg-rgb: 15, 21, 32;

    --text-main: HSL(0, 0%, 93%);
    --text-muted: HSL(222, 10%, 60%);
    --text-inverse: HSL(222, 25%, 9%);

    --border-color: HSL(222, 15%, 22%);
    --border-hover: HSL(222, 15%, 32%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    color-scheme: dark;
}

/* ==========================================================================
   🧹 RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: var(--theme-transition);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--theme-transition);
}

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

/* ==========================================================================
   📢 ANNOUNCEMENT BAR & HEADER
   ========================================================================== */
.announcement-bar {
    background-color: var(--secondary);
    color: var(--text-inverse);
    font-size: 0.8rem;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.announcement-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 5px;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
}

.header-container {
    max-width: none;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 1.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

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

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--theme-transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

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

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-accent);
    border-radius: var(--radius-xl);
    padding: 2px 6px;
    border: 1px solid var(--border-color);
    transition: var(--theme-transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box input {
    border: none;
    background: none;
    padding: 8px 12px;
    width: 180px;
    outline: none;
    color: var(--text-main);
    font-size: 0.85rem;
}

.search-box button {
    color: var(--text-muted);
    padding: 8px;
}

.search-box button:hover {
    color: var(--primary);
}

.action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid var(--bg-card);
}

/* User Menu Wrapper */
.user-menu-wrapper {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 10px 0;
    display: none;
    z-index: 100;
    animation: slideDown 0.2s ease-out;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background-color: var(--bg-accent);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.dropdown-header {
    padding: 5px 20px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

/* ==========================================================================
   🌀 APP SHELL & PAGE TRANSITIONS
   ========================================================================== */
#app {
    flex-grow: 1;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-wrapper {
    animation: fadeIn 0.4s ease-out;
}

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

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

.initial-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-round);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   🏠 HOME VIEW COMPONENTS
   ========================================================================== */
/* Hero Banner Carousel */
.hero-slider {
    position: relative;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

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

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

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 0 60px;
    color: white;
}

.slide-discount {
    background-color: var(--primary);
    color: white;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.hero-btn {
    background-color: white;
    color: black;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.hero-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.slider-controls {
    position: absolute;
    bottom: 25px;
    right: 60px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-round);
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--theme-transition);
}

.slider-indicator.active {
    background-color: var(--primary);
    width: 30px;
    border-radius: var(--radius-sm);
}

/* Category Grid list */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.category-card {
    height: 180px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
}

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

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}

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

.category-info {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
    color: white;
}

.category-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.category-info p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Products Cards Grid — Flipkart side-by-side card grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 45px;
    width: 100%;
}
@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    background-color: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.product-wish-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    transition: var(--theme-transition);
}

.product-wish-btn:hover {
    transform: scale(1.1);
    color: var(--danger);
}

.product-wish-btn.active {
    color: var(--danger);
}

.product-img-wrapper {
    height: 320px;
    overflow: hidden;
    background-color: var(--bg-accent);
}

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

.product-card:hover .product-img-wrapper img {
    transform: scale(1.04);
}

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

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 600;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
}

.price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-discount {
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 700;
}

.product-action-row {
    margin-top: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-primary);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 100%;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline:hover {
    background-color: var(--bg-accent);
    border-color: var(--border-hover);
}

/* Shimmer Loading Skeleton */
.skeleton-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 480px;
}

.skeleton-img {
    height: 320px;
    background-color: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.skeleton-img::after,
.skeleton-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

body.dark-theme .skeleton-img::after,
body.dark-theme .skeleton-text::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

.skeleton-text {
    height: 15px;
    background-color: var(--bg-accent);
    margin: 15px 20px 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.price {
    width: 40%;
    height: 20px;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}


/* ==========================================================================
   🛍️ PRODUCT LISTING / SEARCH VIEW
   ========================================================================== */

/* Utility */
.w-100 { width: 100% !important; }

.shop-container {
    display: block;
    width: 100%;
}

.shop-content-area {
    width: 100%;
    display: block;
}


/* Sidebar Filters */
.filters-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 8px;
}

.filter-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-link:hover,
.filter-link.active {
    color: var(--primary);
    font-weight: 600;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
}

.price-inputs input:focus {
    border-color: var(--primary);
}

.price-inputs span {
    color: var(--text-muted);
}

.filter-apply-btn {
    width: 100%;
    margin-top: 15px;
    font-size: 0.85rem;
}

/* Top Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    box-shadow: var(--shadow-sm);
}

.toolbar-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toolbar-sort select {
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.toolbar-sort select:focus {
    border-color: var(--primary);
}

/* ==========================================================================
   🔎 PRODUCT DETAIL VIEW
   ========================================================================== */
.detail-container {
    display: block;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

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

.main-image-box {
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-accent);
}

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

.thumbnails-row {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--theme-transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
}

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

/* Detail Info */
.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-cat {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.2;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.detail-old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.detail-discount {
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.detail-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-actions-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.size-select-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 12px;
}

.size-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-main);
    background-color: var(--bg-card);
}

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

.size-btn.active {
    background-color: var(--secondary);
    color: var(--text-inverse);
    border-color: var(--secondary);
}

.qty-select-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-select-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-accent);
}

.qty-controls button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    font-weight: 700;
}

.qty-controls button:hover {
    background-color: var(--border-color);
}

.qty-controls span {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.action-buttons-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.action-buttons-row button {
    height: 52px;
}

/* ==========================================================================
   🛒 SHOPPING CART & WISHLIST VIEW
   ========================================================================== */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.cart-table-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img {
    width: 100px;
    height: 120px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-accent);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-price-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-remove {
    color: var(--text-muted);
}

.cart-item-remove:hover {
    color: var(--danger);
}

/* Order Summary Box */
.summary-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
    height: 48px;
    margin-top: 20px;
}

/* ==========================================================================
   💳 CHECKOUT VIEW
   ========================================================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.checkout-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.checkout-section:last-child {
    margin-bottom: 0;
}

.checkout-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section h3 i {
    color: var(--primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group.half-width {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: var(--theme-transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Saved Addresses List */
.address-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.address-item-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    display: flex;
    gap: 15px;
    background-color: var(--bg-card);
    transition: var(--theme-transition);
}

.address-item-card:hover {
    border-color: var(--border-hover);
}

.address-item-card.active {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.address-item-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--primary);
}

.address-details-text {
    flex-grow: 1;
}

.address-details-text strong {
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
   👤 USER PROFILE & ORDERS
   ========================================================================== */
.profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.profile-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    text-align: center;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-round);
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.profile-sidebar h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-sidebar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.profile-menu {
    list-style: none;
    text-align: left;
}

.profile-menu-item {
    margin-bottom: 5px;
}

.profile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-menu-link:hover,
.profile-menu-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Order History Item */
.order-history-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    background-color: var(--bg-accent);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 15px;
}

.order-header-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.order-header-info div span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.order-header-info div strong {
    font-weight: 600;
}

.order-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.order-badge.processing {
    background-color: HSL(35, 90%, 90%);
    color: HSL(35, 90%, 45%);
}

.order-badge.shipped {
    background-color: HSL(200, 85%, 90%);
    color: HSL(200, 85%, 45%);
}

.order-badge.delivered {
    background-color: HSL(145, 80%, 90%);
    color: HSL(145, 80%, 40%);
}

.order-card-body {
    padding: 20px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.order-item-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-item-img {
    width: 60px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex-grow: 1;
}

.order-item-details h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.order-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-item-price-info {
    text-align: right;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   📊 ADMIN CONSOLE & DASHBOARD
   ========================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.admin-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.admin-sidebar h3 {
    font-family: var(--font-heading);
    padding: 0 15px 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    margin-bottom: 5px;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-menu-link:hover,
.admin-menu-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.admin-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

/* Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-card);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue {
    background-color: HSL(200, 85%, 93%);
    color: HSL(200, 85%, 50%);
}

.stat-icon.green {
    background-color: HSL(145, 80%, 93%);
    color: HSL(145, 80%, 40%);
}

.stat-icon.orange {
    background-color: HSL(35, 90%, 93%);
    color: HSL(35, 90%, 50%);
}

.stat-info h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 3px;
}

/* Table Design */
.admin-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

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

.admin-table th {
    background-color: var(--bg-accent);
    padding: 12px 15px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: var(--bg-accent);
}

/* Form Modal Popup / Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    width: 600px !important;
    max-width: 90% !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal-header {
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: var(--bg-card) !important;
}

.modal-header h3 {
    font-family: var(--font-heading) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin: 0 !important;
}

.modal-close {
    font-size: 1.4rem !important;
    color: var(--text-muted) !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    padding: 0 !important;
}

.modal-close:hover {
    color: var(--primary) !important;
}

.modal-body {
    padding: 24px !important;
    overflow-y: auto !important;
    flex: 1 !important;
}

.modal-body .form-group label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    display: block !important;
    margin-bottom: 6px !important;
}

.modal-body .form-control,
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="datetime-local"],
.modal-body input[type="file"],
.modal-body textarea,
.modal-body select {
    background-color: var(--bg-accent) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.modal-body .form-control:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-body select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    outline: none !important;
}

.modal-body input[type="checkbox"] {
    accent-color: var(--primary) !important;
}

.modal-footer {
    padding: 16px 24px !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    background-color: var(--bg-accent) !important;
}

.modal-footer .btn-outline,
.modal-footer button[type="button"] {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    height: 46px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    flex: 3 !important; /* Cancel takes more space (70%) */
    text-align: center !important;
    width: auto !important;
    padding: 0 20px !important;
}

.modal-footer .btn-outline:hover,
.modal-footer button[type="button"]:hover {
    background-color: var(--bg-accent) !important;
    border-color: var(--border-hover) !important;
}

.modal-footer .btn-primary,
.modal-footer button[type="submit"] {
    background-color: var(--primary) !important;
    border: none !important;
    color: var(--text-inverse) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    height: 46px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    flex: 1.2 !important; /* Save is narrower (30%) */
    text-align: center !important;
    white-space: nowrap !important;
    padding: 0 15px !important;
    width: auto !important;
}

.modal-footer .btn-primary:hover,
.modal-footer button[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
    box-shadow: var(--shadow-primary) !important;
}

/* ==========================================================================
   📢 TOAST NOTIFICATION SYSTEM
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--theme-transition);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.success i {
    color: var(--success);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.warning i {
    color: var(--warning);
}

.toast.error {
    border-left-color: var(--danger);
}

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

.toast.info {
    border-left-color: var(--info);
}

.toast.info i {
    color: var(--info);
}

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

.toast.fade-out {
    transform: translateX(120%);
    opacity: 0;
}

/* ==========================================================================
   📁 FOOTER STYLES
   ========================================================================== */
.app-footer {
    background-color: var(--secondary);
    color: HSL(0, 0%, 85%);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-container {
    max-width: none;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-info h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 20px;
    max-width: 400px;
    line-height: 1.5;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-round);
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

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

.footer-links h4 {
    font-family: var(--font-heading);
    color: white;
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: HSL(0, 0%, 65%);
}

/* ==========================================================================
   📱 MOBILE & TABLET MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .shop-container,
    .cart-container,
    .checkout-grid,
    .profile-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-container {
        padding: 25px;
    }
    
    .main-image-box {
        height: 400px;
    }
    
    .hero-slider {
        height: 380px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex-grow: 1;
        max-width: none;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .slide-content {
        padding: 0 30px;
    }
    
    .hero-slider {
        height: 320px;
    }
}

/* ==========================================================================
   📄 PRINT STYLES FOR INVOICE PDF GENERATION
   ========================================================================== */
#print-invoice-container {
    display: none;
}

@media print {
    body {
        background: white !important;
        color: #000 !important;
        font-family: 'Inter', Arial, sans-serif !important;
        font-size: 11pt !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    body > *:not(#print-invoice-container) {
        display: none !important;
    }

    #print-invoice-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white !important;
        color: black !important;
    }

    .invoice-card {
        padding: 10px;
        background: transparent !important;
    }

    .invoice-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #333;
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .invoice-header h1 {
        font-size: 24pt;
        color: #000 !important;
        font-family: 'Outfit', sans-serif;
    }

    .invoice-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .invoice-details h3 {
        font-size: 12pt;
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }

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

    .invoice-table th, 
    .invoice-table td {
        border: 1px solid #ddd !important;
        padding: 10px !important;
        font-size: 10pt !important;
    }

    .invoice-table th {
        background-color: #f5f5f5 !important;
        color: black !important;
        font-weight: bold;
        text-align: left;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .invoice-summary {
        margin-left: auto;
        width: 300px;
        font-size: 11pt;
    }

    .invoice-summary-row {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
    }

    .invoice-summary-row.total {
        font-weight: bold;
        font-size: 13pt;
        border-top: 2px solid #333;
        padding-top: 8px;
        margin-top: 8px;
    }

    .invoice-footer {
        margin-top: 50px;
        border-top: 1px solid #ddd;
        padding-top: 20px;
        text-align: center;
        font-size: 9pt;
        color: #666;
    }
}

/* --- [APPENDED STYLES FOR FLIPKART EXTENSIONS] --- */

/* --- Horizontal Category Slider (Flipkart style) --- */
.horizontal-category-slider {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 15px 10px;
    margin-top: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.horizontal-category-slider::-webkit-scrollbar {
    height: 5px;
}
.horizontal-category-slider::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}
.category-slider-track {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    padding: 0 10px;
}
.category-slide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 80px;
    cursor: pointer;
    flex-shrink: 0;
}
.category-icon-circle {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-round);
    overflow: hidden;
    background-color: var(--bg-main);
    border: 2px solid transparent;
    transition: var(--theme-transition);
    box-shadow: var(--shadow-sm);
}
.category-slide-item:hover .category-icon-circle {
    transform: scale(1.08);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.category-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-slide-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* --- Top Scrolling Filter Bar --- */
.top-filter-bar {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 10px 15px;
    margin-bottom: 20px;
    overflow: visible; /* so dropdowns can overflow */
}
.filter-scroll-container {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.filter-scroll-container::-webkit-scrollbar {
    height: 4px;
}
.filter-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

/* Dropdowns in Top Filter Bar */
.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    transition: var(--theme-transition);
}
.filter-dropdown-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}
.filter-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    min-width: 180px;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px 0;
}
.filter-dropdown-content.active {
    display: block;
}
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--theme-transition);
    color: var(--text-main);
}
.filter-option:hover {
    background-color: var(--bg-main);
    color: var(--primary);
}
.price-dropdown-box {
    padding: 12px;
    min-width: 220px;
}
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-range-inputs input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Filter Chip and Sort */
.filter-chip-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--theme-transition);
}
.filter-chip-checkbox:hover {
    border-color: var(--primary);
}
.filter-dropdown-wrapper.sort-wrapper {
    margin-left: auto; /* Push Sort to right */
}
.sort-btn {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Comparison Drawer --- */
.compare-drawer {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-top: 2px solid var(--primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-drawer.active {
    bottom: 0;
}
.compare-drawer-content {
    max-width: none;
    margin: 0 auto;
    padding: 15px 20px;
}
.compare-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.compare-drawer-header h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}
.btn-close-drawer {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.compare-drawer-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.compare-items-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}
.compare-item-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
}
.compare-item-chip img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
}
.compare-item-title {
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compare-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
}
.compare-item-remove:hover {
    color: var(--danger);
}
.compare-actions {
    flex-shrink: 0;
}

/* Compare specs Grid Table Modal */
.compare-modal-wrapper {
    padding: 20px;
}
.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.compare-modal-header h2 {
    font-family: var(--font-heading);
    font-weight: 800;
}
.compare-table-container {
    overflow-x: auto;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.compare-table th, .compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    font-size: 0.9rem;
}
.compare-table th {
    background-color: var(--bg-main);
}
.compare-table-header-prod {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.compare-table-header-prod img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.compare-table-header-prod .prod-title {
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 150px;
}
.price-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.old-price-val {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 8px;
}
.stock-status {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.stock-status.in-stock {
    background-color: var(--primary-light);
    color: var(--primary);
}
.stock-status.out-of-stock {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}
.desc-cell {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 250px;
    line-height: 1.4;
}

/* Compare checkbox overlay on cards */
.product-compare-wrapper {
    padding: 8px 15px 0;
    display: flex;
    align-items: center;
}
.compare-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.compare-checkbox-label input {
    cursor: pointer;
}

/* --- Checkout Coupon Section --- */
.checkout-coupon-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-top: 20px;
}
.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.coupon-input-group input {
    flex: 1;
}
.available-coupons-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.coupons-list-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.coupon-chip-card {
    background-color: var(--bg-main);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: var(--theme-transition);
}
.coupon-chip-card:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}
.coupon-chip-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary);
}
.coupon-chip-disc {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Recommendations grid in product details */
.recommendations-section {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

/* Admin returns & delivery options layout */
.admin-order-modal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

/* Support & Reviews Enhancement Styles */
#user-chat-timeline::-webkit-scrollbar,
#admin-chat-thread-box::-webkit-scrollbar {
    width: 6px;
}
#user-chat-timeline::-webkit-scrollbar-thumb,
#admin-chat-thread-box::-webkit-scrollbar-thumb {
    background-color: var(--border-hover);
    border-radius: 4px;
}
#user-chat-timeline::-webkit-scrollbar-track,
#admin-chat-thread-box::-webkit-scrollbar-track {
    background-color: transparent;
}
.btn-outline.active {
    background-color: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

/* ==========================================================================
   🔍 PRODUCT PAGE UPGRADES & FILTERS DRAWER
   ========================================================================== */

/* Premium Expandable Filters Drawer */
.filters-panel-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    padding: 0 25px;
}

.filters-panel-drawer.active {
    max-height: 800px;
    padding: 25px;
    border-color: var(--border-color);
}

.filters-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.filter-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.filter-link:hover, .filter-link.active {
    color: var(--primary);
    font-weight: 600;
}

.filter-check-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.filter-check-option input {
    cursor: pointer;
    accent-color: var(--primary);
}

/* Color Circle Filters */
.color-circle-capsule {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-circle-capsule:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--primary);
}

.color-circle-capsule.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary), 0 0 8px rgba(0,0,0,0.2);
}

/* Size Capsules */
.size-capsule-btn {
    transition: var(--theme-transition);
}

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

/* Thumbnails Angle Selection */
.thumbnail {
    transition: var(--theme-transition);
}
.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color) !important;
    opacity: 1 !important;
}

/* Slider Style */
.slider-section {
    padding-bottom: 20px;
}

/* Custom Scrollbar for Horizontal Sliders */
#related-slider-scroll::-webkit-scrollbar,
#similar-slider-scroll::-webkit-scrollbar {
    height: 6px;
}

#related-slider-scroll::-webkit-scrollbar-thumb,
#similar-slider-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-hover);
    border-radius: 4px;
}

#related-slider-scroll::-webkit-scrollbar-track,
#similar-slider-scroll::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Image Magnifier / Zoom container hover effect styling */
.main-image-box {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    overflow: hidden;
}
.main-image-box img {
    max-height: 100%;
    object-fit: contain;
}

/* Custom Modals for Image Viewer & Reviews Edit */
.custom-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ==========================================================================
   🛍️ FLIPKART-STYLE PRODUCT CARDS
   ========================================================================== */

.fk-product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.fk-product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

/* Discount badge */
.fk-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #388e3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Wishlist heart */
.fk-wish-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fk-wish-btn:hover { transform: scale(1.15); }
.fk-wish-btn.active { color: #e53935; }

/* Product image */
.fk-card-img-link { display: block; overflow: hidden; background: #f5f5f5; }
.fk-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.fk-product-card:hover .fk-card-img { transform: scale(1.05); }

/* Card body */
.fk-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.fk-card-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fk-card-name {
    font-size: 0.88rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.fk-card-name:hover { color: var(--primary-color, #e91e8c); }

/* Rating row */
.fk-card-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.fk-rating-badge {
    background: #388e3c;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.fk-review-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.fk-assured-tag {
    font-size: 0.68rem;
    color: #2874f0;
    font-weight: 700;
    margin-left: auto;
}

/* Price row */
.fk-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.fk-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}
.fk-card-mrp {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.fk-card-off {
    font-size: 0.78rem;
    font-weight: 700;
    color: #388e3c;
}

/* Compare row */
.fk-card-compare {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   🖼️ MODERN BOUTIQUE PRODUCT DETAIL PAGE
   ========================================================================== */

/* Main layout: 2 columns (Gallery LEFT | Info RIGHT) on desktop */
.av-detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    width: 100%;
}

/* 1. LEFT COLUMN: Gallery Panel */
.av-gallery-col {
    flex: 0 0 48%;
    max-width: 48%;
    position: sticky;
    top: 90px;
}

.av-gallery-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main Preview Box */
.av-main-img-box {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    height: 480px;
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: zoom-in;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease;
}

.av-main-img-box:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.av-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
}

/* Horizontal Thumbs Strip */
.av-thumb-strip {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.av-thumb {
    width: 58px;
    height: 58px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    opacity: 0.7;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.av-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.av-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.av-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Mobile Header (Hidden on Desktop) */
.av-mobile-header {
    display: none;
}

/* 2. RIGHT COLUMN: Info & Configurator */
.av-info-col {
    flex: 0 0 48%;
    max-width: 48%;
}

.av-category-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.av-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin: 4px 0 12px 0;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

/* Ratings */
.av-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.av-stars-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.av-rating-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Pricing Panel */
.av-price-panel {
    margin-bottom: 24px;
}

.av-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.av-price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.av-price-original {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.av-price-save-badge {
    background: #10b981;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.av-price-taxes {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Configurator Card (Glassmorphism look) */
.av-config-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.av-config-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* Size Pill Selector */
.av-size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.av-size-options .size-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.av-size-options .size-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.av-size-options .size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Qty Adjustment */
.av-qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-adjust-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-adjust-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.av-qty-num {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-main);
}

/* Action Rows */
.av-action-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.av-btn-primary {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.av-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.av-btn-secondary {
    flex: 1;
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.av-btn-secondary:hover {
    background: var(--text-main);
    color: var(--bg-body);
    transform: translateY(-2px);
}

/* Pincode & Delivery Section */
.av-delivery-section {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    background: var(--bg-card);
}

.stock-badge {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.av-pincode-box {
    margin-top: 14px;
}

.pincode-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.av-pincode-box input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-body);
    color: var(--text-main);
    transition: border-color 0.2s;
}

.av-pincode-box input:focus {
    border-color: var(--primary);
    outline: none;
}

.av-pincode-check-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--text-main);
    color: var(--bg-body);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.av-pincode-check-btn:hover {
    opacity: 0.9;
}

.pincode-status {
    font-size: 0.82rem;
    margin-top: 8px;
    display: none;
}

/* Offers Section */
.av-offers-section {
    margin-top: 24px;
}

.av-offers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.av-offer-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 10px;
    padding: 14px;
}

.av-offer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.av-offer-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.av-offer-code {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
    border: 1px dashed var(--primary);
}

/* Bullets description list */
.av-bullets {
    padding-left: 20px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.av-bullets li {
    margin-bottom: 6px;
}

/* ==========================================================================
   📱 MOBILE RESPONSIVENESS & STACKING
   ========================================================================== */

@media (max-width: 900px) {
    .av-detail-layout {
        flex-direction: column !important;
        gap: 16px;
    }
    
    .av-gallery-col,
    .av-info-col {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        position: static !important;
    }
    
    /* Show mobile specific header */
    .av-mobile-header {
        display: block !important;
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Hide desktop version of header */
    .av-desktop-header {
        display: none !important;
    }
    
    /* Horizontal preview indicator strip scroll */
    .av-thumb-strip {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
    }
    
    .av-thumb {
        flex-shrink: 0;
    }
    
    .av-main-img-box {
        width: 100%;
        height: 350px;
        min-height: 320px;
        border-radius: 12px;
    }
    
    /* Stack config action button rows on mobile */
    .av-action-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .av-btn-primary,
    .av-btn-secondary {
        width: 100%;
        padding: 14px 20px !important;
    }
}

/* ==========================================================================
   💳 PAYMENT METHOD CARD STYLES
   ========================================================================== */
.payment-method-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.payment-method-card.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.04);
}

.payment-method-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.payment-method-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* ==========================================================================
   📍 PINCODE & BANK OFFERS MANAGEMENT EXTENSIONS
   ========================================================================== */
.pincode-bulk-bar {
    position: fixed;
    bottom: 25px;
    left: 55%;
    transform: translateX(-50%) translateY(120px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
body.dark-theme .pincode-bulk-bar {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
.pincode-bulk-bar.visible {
    transform: translateX(-50%) translateY(0);
}
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}
.pagination-pages {
    display: flex;
    gap: 5px;
}
.pagination-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--theme-transition);
}
.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-inverse) !important;
}
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pincodes-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
    padding: 20px;
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.pincodes-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pincodes-filter-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pincodes-filter-group .form-control {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 100%;
}
.bank-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
}
.bank-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-main);
}
.bank-checkbox-item input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.multi-select-box {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.multi-select-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
}
.multi-select-item input {
    cursor: pointer;
}


/* ==========================================================================
   📦 ORDER TRACKING & REAL-TIME TIMELINE STYLES
   ========================================================================== */

/* Order Details Stepper (Horizontal) */
.order-tracking-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 40px 0;
    padding: 0 10px;
    width: 100%;
}

.order-tracking-stepper::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 50px;
    right: 50px;
    height: 4px;
    background: var(--border-color, #e2e8f0);
    z-index: 1;
}

.order-tracking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    border: 3px solid var(--border-color, #e2e8f0);
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.order-tracking-step.completed .step-icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.order-tracking-step.active .step-icon-wrapper {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    border-color: #ec4899;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transform: scale(1.1);
}

/* Stepper connection active color indicator */
.order-tracking-stepper-progress {
    position: absolute;
    top: 26px;
    left: 50px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #ec4899 100%);
    z-index: 1;
    transition: width 0.6s ease;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    margin-bottom: 4px;
    transition: color 0.3s;
}

.order-tracking-step.completed .step-title {
    color: #10b981;
}

.order-tracking-step.active .step-title {
    color: #ec4899;
    font-weight: 800;
}

.step-date {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
}

/* Real-Time Shipment Updates Timeline List */
.shipment-updates-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

.shipment-updates-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--text-main, #0f172a);
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-list {
    position: relative;
    list-style: none;
    padding-left: 30px;
    margin: 0;
}

.timeline-list::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 9px;
    width: 2px;
    background: var(--border-color, #e2e8f0);
}

.timeline-list li {
    position: relative;
    margin-bottom: 25px;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--primary, #ec4899);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-list li:first-child::before {
    background: var(--primary, #ec4899);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

.timeline-time {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    display: block;
    margin-bottom: 4px;
}

.timeline-content {
    background: var(--bg-accent, #f8fafc);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid var(--border-color, #f1f5f9);
}

.timeline-content strong {
    font-size: 0.92rem;
    color: var(--text-main, #0f172a);
    display: block;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted, #475569);
    margin: 0;
    line-height: 1.5;
}

/* Tracking Details Header Info Grid */
.tracking-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--bg-accent, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.tracking-header-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tracking-header-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracking-header-item strong {
    font-size: 1.05rem;
    color: var(--text-main, #0f172a);
    font-weight: 800;
}

/* Admin console timeline rendering styles */
.admin-timeline-events-list {
    background: var(--bg-body, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 10px;
}

.admin-timeline-event-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    font-size: 0.82rem;
}

.admin-timeline-event-item:last-child {
    border-bottom: none;
}

.admin-timeline-event-item .event-time {
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    margin-right: 8px;
}

/* Mobile Stepper styling stacking */
@media (max-width: 768px) {
    .order-tracking-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding-left: 20px;
    }
    
    .order-tracking-stepper::before {
        left: 36px;
        top: 20px;
        bottom: 20px;
        width: 4px;
        height: auto;
    }
    
    .order-tracking-step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 15px;
        width: 100%;
    }
    
    .step-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    
    .order-tracking-stepper-progress {
        left: 36px;
        width: 4px !important;
        height: 0;
    }
}

