/* =====================================================
   VoguishAtelier Store - Main Stylesheet
   Premium E-Commerce Design
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --secondary: #9c27b0;
    --secondary-dark: #7b1fa2;
    --accent: #ff5722;
    --dark: #1a1a2e;
    --dark2: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hover: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #f5f5f8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

button { cursor: pointer; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-muted { color: var(--gray-600) !important; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--gray-900); }
.badge-danger { background: var(--danger); color: var(--white); }
.badge-info { background: var(--info); color: var(--white); }
.badge-purple { background: var(--secondary); color: var(--white); }
.badge-orange { background: var(--accent); color: var(--white); }
.badge-dark { background: var(--gray-800); color: var(--white); }
.badge-secondary { background: var(--gray-500); color: var(--white); }
.badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--danger);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.btn i { font-size: 16px; }
.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}
.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.35);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark2); color: var(--white); transform: translateY(-2px); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-google {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
    gap: 10px;
}
.btn-google:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}
.btn-google img { width: 20px; height: 20px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233,30,99,0.1);
}
.form-control::placeholder { color: var(--gray-500); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-hint { color: var(--gray-600); font-size: 12px; margin-top: 4px; }

/* ---------- Alert Messages ---------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }

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

/* ===========================================
   TOP BAR
   =========================================== */
.top-bar {
    background: var(--dark);
    color: var(--gray-400);
    padding: 8px 0;
    font-size: 12px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--gray-400); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 16px; align-items: center; }
.top-bar-links i { margin-right: 4px; }

/* ===========================================
   HEADER / NAVIGATION
   =========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-main {
    padding: 12px 0;
}
.header-main .container {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo img { height: 42px; width: auto; }
.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.logo-text span { font-weight: 400; }

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.search-bar form {
    display: flex;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}
.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233,30,99,0.1);
}
.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
}
.search-bar button {
    padding: 12px 22px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--gradient-hover); }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 11px;
    position: relative;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.header-action-btn:hover { color: var(--primary); background: var(--gray-100); }
.header-action-btn i { font-size: 22px; }
.header-action-btn .count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-action-btn .label { font-size: 11px; }

/* Navigation Bar */
.nav-bar {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    position: relative;
}
.nav-bar .container {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-categories-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    min-width: 220px;
    position: relative;
}
.nav-categories-btn i { font-size: 18px; }
.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
.categories-dropdown.active { display: block; }
.categories-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    transition: var(--transition);
}
.categories-dropdown a:hover { background: var(--gray-100); color: var(--primary); padding-left: 26px; }
.categories-dropdown a i { font-size: 18px; color: var(--primary); width: 24px; text-align: center; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}
.nav-links a {
    padding: 14px 18px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a i { margin-right: 5px; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-700);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
.mobile-menu.active { display: block; }
.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: var(--white);
    overflow-y: auto;
    animation: slideRight 0.3s ease;
}
@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.mobile-menu-header {
    padding: 20px;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}
.mobile-menu-content nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.mobile-menu-content nav a:hover { background: var(--gray-100); color: var(--primary); }
.mobile-menu-content nav a i { width: 24px; text-align: center; color: var(--primary); }

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    background: var(--gradient);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(30deg);
    border-radius: 50%;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.hero-content { flex: 1; }
.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-content .btn {
    padding: 16px 40px;
    font-size: 16px;
    background: var(--white);
    color: var(--primary);
    border-radius: var(--radius-full);
}
.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}
.hero-image { flex: 0 0 45%; max-width: 500px; }
.hero-image img { border-radius: var(--radius-lg); }

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.hero-feature i { font-size: 20px; }

/* ===========================================
   SECTION STYLES
   =========================================== */
.section { padding: 50px 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    margin-top: 8px;
    border-radius: 3px;
}
.section-header a { color: var(--primary); font-weight: 600; font-size: 14px; }
.section-header a:hover { color: var(--primary-dark); }

/* ===========================================
   CATEGORY CARDS
   =========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.category-card .cat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(156,39,176,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
    color: var(--primary);
}
.category-card img.cat-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
}
.category-card h3 { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.category-card span { font-size: 12px; color: var(--gray-500); }

/* ===========================================
   PRODUCT CARDS
   =========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-100);
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 2;
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.product-action-btn:hover { background: var(--primary); color: var(--white); }
.product-action-btn.wishlisted { color: var(--danger); }

.product-info { padding: 16px; }
.product-category {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.product-rating .stars { color: var(--warning); font-size: 12px; }
.product-rating .count { font-size: 12px; color: var(--gray-500); }

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.product-price .current {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}
.product-price .original {
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-price .discount {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background: rgba(40,167,69,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card .add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    border-radius: var(--radius);
}
.product-card .add-cart-btn:hover {
    background: var(--gradient);
    color: var(--white);
}

/* ===========================================
   FLASH DEAL TIMER
   =========================================== */
.flash-deal-banner {
    background: linear-gradient(135deg, #ff5722, #e91e63);
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--white);
}
.flash-deal-banner h3 {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.countdown {
    display: flex;
    gap: 10px;
}
.countdown .time-block {
    background: rgba(255,255,255,0.2);
    padding: 8px 14px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 50px;
}
.countdown .time-block .num {
    font-size: 22px;
    font-weight: 800;
    display: block;
}
.countdown .time-block .lbl { font-size: 10px; opacity: 0.8; }

/* ===========================================
   FEATURES STRIP
   =========================================== */
.features-strip {
    background: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow-sm);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature-item .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233,30,99,0.1), rgba(156,39,176,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-item h4 { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.feature-item p { font-size: 12px; color: var(--gray-500); }

/* ===========================================
   NEWSLETTER
   =========================================== */
.newsletter {
    background: var(--gradient);
    padding: 50px 0;
    color: var(--white);
    text-align: center;
}
.newsletter h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.newsletter p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}
.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
}
.newsletter-form button {
    padding: 14px 30px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--dark2); transform: translateY(-2px); }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary);
    margin-top: 8px;
}
.footer-about p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 16px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-links a {
    display: block;
    color: var(--gray-400);
    padding: 6px 0;
    font-size: 14px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-links a i { margin-right: 6px; font-size: 10px; color: var(--primary); }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}
.footer-contact i { color: var(--primary); margin-top: 4px; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
}

/* ===========================================
   AUTH PAGES (Login/Register)
   =========================================== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-container {
    width: 100%;
    max-width: 460px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-header h2 { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.auth-header p { color: var(--gray-600); font-size: 14px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--gray-500);
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-600); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===========================================
   PRODUCT DETAIL PAGE
   =========================================== */
.product-detail { padding: 30px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}
.product-gallery {}
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 1;
    background: var(--gray-100);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}
.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info {}
.product-detail-info .breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
}
.product-detail-info .breadcrumb a { color: var(--gray-500); }
.product-detail-info .breadcrumb a:hover { color: var(--primary); }
.product-detail-info h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}
.product-detail-info .price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.product-detail-info .price-box .current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}
.product-detail-info .price-box .original {
    font-size: 20px;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-detail-info .price-box .discount-tag {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray-600);
}
.product-meta span { display: flex; align-items: center; gap: 5px; }
.product-meta .stars { color: var(--warning); }

.product-description {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 20px;
}

.variant-selector { margin-bottom: 20px; }
.variant-selector label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-option {
    padding: 8px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.variant-option:hover,
.variant-option.selected { border-color: var(--primary); color: var(--primary); background: rgba(233,30,99,0.05); }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.quantity-selector label { font-weight: 600; font-size: 14px; }
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-control button {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-control button:hover { background: var(--gray-200); }
.qty-control input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--gray-300);
    border-right: 2px solid var(--gray-300);
    font-weight: 600;
}

.detail-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.detail-actions .btn { flex: 1; padding: 14px; font-size: 15px; }

.stock-status { margin-bottom: 16px; font-size: 14px; }
.stock-status.in-stock { color: var(--success); }
.stock-status.low-stock { color: var(--warning); }
.stock-status.out-of-stock { color: var(--danger); }

.product-tabs { margin-top: 40px; }
.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    font-size: 14px;
}
.tab-btn.active,
.tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===========================================
   CART PAGE
   =========================================== */
.cart-page { padding: 30px 0; }
.cart-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}
.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-details h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item-details h3 a { color: inherit; }
.cart-item-details .variant { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.cart-item-details .price { font-size: 16px; font-weight: 700; color: var(--primary); }
.cart-item-details .original-price { font-size: 13px; color: var(--gray-500); text-decoration: line-through; margin-left: 6px; }
.cart-item-qty { width: 110px; flex-shrink: 0; }
.cart-item-total {
    text-align: right;
    min-width: 80px;
}
.cart-item-total .amount { font-size: 16px; font-weight: 700; color: var(--dark); }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}
.cart-item-remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-200); }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
}
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    border-top: 2px solid var(--gray-200);
    margin-top: 10px;
    padding-top: 14px;
}
.summary-row.total .value { color: var(--primary); }
.summary-row .value { font-weight: 600; }
.summary-row.discount .value { color: var(--success); }

.coupon-form { margin-top: 16px; display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--gray-300); border-radius: var(--radius); font-size: 13px; }
.coupon-form button { padding: 10px 16px; background: var(--dark); color: var(--white); border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 13px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: rgba(40,167,69,0.1); padding: 10px 14px; border-radius: var(--radius); margin-top: 10px; font-size: 13px; color: var(--success); }
.coupon-applied button { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; }

/* ===========================================
   CHECKOUT PAGE
   =========================================== */
.checkout-page { padding: 30px 0; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}
.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}
.checkout-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-section h2 .step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ===========================================
   ORDER TRACKING
   =========================================== */
.tracking-page { padding: 40px 0; }
.tracking-search {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}
.tracking-search h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.tracking-search p { color: var(--gray-600); margin-bottom: 20px; }
.tracking-search form { display: flex; gap: 10px; }
.tracking-search input { flex: 1; padding: 14px 20px; border: 2px solid var(--gray-300); border-radius: var(--radius-full); font-size: 15px; }
.tracking-search button { padding: 14px 30px; background: var(--gradient); color: var(--white); border: none; border-radius: var(--radius-full); font-weight: 600; cursor: pointer; }

.tracking-result {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
}
.tracking-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}
.tracking-header h2 { font-size: 22px; margin-bottom: 8px; }
.tracking-header .tracking-num { font-size: 16px; color: var(--primary); font-weight: 700; }

/* Order Tracker Steps */
.order-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 20px;
}
.order-tracker::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: var(--gray-300);
}
.order-tracker .progress-line {
    position: absolute;
    top: 24px;
    left: 60px;
    height: 3px;
    background: var(--gradient);
    transition: width 0.5s ease;
}
.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.tracker-step .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--gray-500);
    transition: var(--transition);
}
.tracker-step.completed .step-icon {
    background: var(--gradient);
    color: var(--white);
}
.tracker-step.active .step-icon {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(233,30,99,0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(233,30,99,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(233,30,99,0); }
    100% { box-shadow: 0 0 0 0 rgba(233,30,99,0); }
}
.tracker-step .step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    max-width: 80px;
}
.tracker-step.completed .step-label,
.tracker-step.active .step-label { color: var(--primary); }

.tracking-timeline { margin-top: 30px; }
.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-500);
    flex-shrink: 0;
}
.timeline-item:first-child .timeline-dot { background: var(--primary); color: var(--white); }
.timeline-content { flex: 1; }
.timeline-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.timeline-content p { font-size: 13px; color: var(--gray-500); }
.timeline-content .time { font-size: 12px; color: var(--gray-400); }

/* ===========================================
   USER DASHBOARD
   =========================================== */
.dashboard-page { padding: 30px 0; }
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}
.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.sidebar-profile {
    padding: 24px;
    text-align: center;
    background: var(--gradient);
    color: var(--white);
}
.sidebar-profile .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
}
.sidebar-profile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-profile h3 { font-size: 16px; margin-bottom: 2px; }
.sidebar-profile p { font-size: 12px; opacity: 0.85; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    transition: var(--transition);
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(233,30,99,0.08), transparent);
    color: var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-nav a .badge { margin-left: auto; }

.dashboard-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
}
.dashboard-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

/* Dashboard Stats */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.dash-stat {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.dash-stat .icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}
.dash-stat .value { font-size: 24px; font-weight: 800; color: var(--dark); }
.dash-stat .label { font-size: 13px; color: var(--gray-600); }

/* Order List */
.order-list {}
.order-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--gray-100);
    font-size: 13px;
}
.order-card-header .order-num { font-weight: 700; color: var(--dark); }
.order-card-body { padding: 16px 20px; }
.order-card-body .order-items-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.order-card-body .order-items-preview .item-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}
.order-card-body .order-items-preview .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
}
.order-card-footer .total { font-weight: 700; color: var(--primary); font-size: 16px; }

/* ===========================================
   SHOP PAGE
   =========================================== */
.shop-page { padding: 30px 0; }
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}
.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 80px;
}
.filter-section { margin-bottom: 24px; }
.filter-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}
.filter-section ul li a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--gray-600);
    font-size: 14px;
}
.filter-section ul li a:hover,
.filter-section ul li a.active { color: var(--primary); }
.filter-section ul li a .count { font-size: 12px; color: var(--gray-500); }

.price-range-inputs { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.price-range-inputs input { width: 100%; padding: 8px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 13px; }

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.shop-header .results-count { font-size: 14px; color: var(--gray-600); }
.shop-header .sort-select {
    padding: 8px 36px 8px 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    background-color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

/* ===========================================
   BREADCRUMB
   =========================================== */
.breadcrumb-bar {
    background: var(--white);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}
.breadcrumb-bar .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
}
.breadcrumb-bar .breadcrumb a { color: var(--gray-500); }
.breadcrumb-bar .breadcrumb a:hover { color: var(--primary); }
.breadcrumb-bar .breadcrumb .separator { color: var(--gray-400); }

/* ===========================================
   EMPTY STATE
   =========================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state i { font-size: 64px; color: var(--gray-300); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--gray-700); }
.empty-state p { color: var(--gray-500); margin-bottom: 20px; }

/* ===========================================
   LOADING / TOAST
   =========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    display: none;
}
.loading-overlay.active { display: flex; }
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideLeft 0.3s ease;
    max-width: 350px;
    border-left: 4px solid var(--success);
}
.toast.error { border-left-color: var(--danger); }
@keyframes slideLeft {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===========================================
   SCROLL TO TOP
   =========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

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

/* Tablets */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-image { max-width: 400px; margin: 0 auto; }
    .hero-features { justify-content: center; flex-wrap: wrap; }
    .hero-content h1 { font-size: 36px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    
    .product-detail-grid { grid-template-columns: 1fr; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { position: static; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
}

/* Mobile Large */
@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .header-main .container { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
    .mobile-menu-btn { display: block; }
    
    .nav-bar { display: none; }
    
    .hero { padding: 40px 0; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 15px; }
    
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-header h2 { font-size: 22px; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    
    .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    .flash-deal-banner { flex-direction: column; text-align: center; gap: 16px; }
    
    .newsletter-form { flex-direction: column; }
    
    .cart-item { flex-wrap: wrap; }
    .cart-item-image { width: 80px; height: 80px; }
    
    .order-tracker { overflow-x: auto; padding-bottom: 10px; }
    
    .tracking-search form { flex-direction: column; }
    .tracking-search button { width: 100%; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .product-detail-grid { padding: 20px; gap: 20px; }
    .product-detail-info h1 { font-size: 22px; }
    .product-detail-info .price-box .current { font-size: 26px; }
    .detail-actions { flex-direction: column; }
}

/* Mobile Small */
@media (max-width: 480px) {
    body { font-size: 14px; }
    .container { padding: 0 14px; }
    
    .logo-text { font-size: 18px; }
    .header-action-btn { padding: 6px 8px; }
    .header-action-btn .label { display: none; }
    
    .hero-content h1 { font-size: 24px; }
    .hero-content .btn { padding: 12px 28px; font-size: 14px; }
    .hero-features { display: none; }
    
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .product-price .current { font-size: 15px; }
    .product-price .original { font-size: 12px; }
    .product-actions { display: none; }
    
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { padding: 16px 10px; }
    .category-card .cat-icon { width: 50px; height: 50px; font-size: 22px; }
    
    .features-grid { grid-template-columns: 1fr; }
    
    .auth-container { padding: 24px; }
    .auth-header h2 { font-size: 22px; }
    
    .dashboard-content { padding: 20px; }
    
    .countdown .time-block { padding: 6px 10px; }
    .countdown .time-block .num { font-size: 18px; }
    
    .tabs-header { overflow-x: auto; }
    .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: 13px; }
}
/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 9998;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
    color: #fff;
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    border-right: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 80px;
        right: 16px;
    }
}
