/* Magic Needle India - Premium Frontend Stylesheet */
/* Fonts loaded via preload in header.php for better performance */

:root {
    /* Primary Brand Colors - Vibrant Pink/Magenta */
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --primary-gradient: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);

    /* Accent Colors */
    --accent: #ff5722;
    --accent-gold: #ffc107;
    --accent-teal: #00bcd4;

    /* Festive Colors */
    --festive-red: #d32f2f;
    --festive-green: #388e3c;
    --festive-gold: #ffd700;

    /* Neutral Colors */
    --text-dark: #1a1a2e;
    --text-medium: #4a4a4a;
    --text-light: #717171;
    --text-muted: #9e9e9e;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-cream: #fef8f5;
    --bg-light: #fafafa;
    --bg-pink-light: #fce4ec;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #fef8f5 100%);

    /* Borders & Shadows */
    --border: #f0f0f0;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-pink: 0 8px 30px rgba(233, 30, 99, 0.2);

    /* Status Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

/* ========== Promo Banner ========== */
.promo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: promoBannerGradient 4s ease infinite;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    position: relative;
}

.promo-banner a {
    color: white;
    text-decoration: none;
}

.promo-banner a:hover {
    text-decoration: underline;
}

.promo-banner-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition-fast);
}

.promo-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes promoBannerGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Top Bar */
.header-top {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top a {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-top a:hover {
    color: white;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Main Header */
.header-main {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-pink);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-text span {
    color: var(--primary);
}

.logo-text em {
    font-style: normal;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: var(--accent-gold);
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Search */
.search-box {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 56px 14px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-light);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-pink);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

.header-action:hover {
    background: var(--bg-pink-light);
}

.header-action .icon {
    font-size: 24px;
}

.header-action span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-light);
}

.header-action .count {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav>ul>li {
    position: relative;
}

.nav a {
    display: block;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-medium);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav>ul>li>a:hover,
.nav>ul>li.active>a {
    color: var(--primary);
    background: var(--bg-pink-light);
}

.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-white);
    min-width: 220px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 12px;
    z-index: 100;
}

.nav>ul>li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav .dropdown a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.nav .dropdown a:hover {
    background: var(--bg-pink-light);
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.15;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease 0.2s both;
}

.hero-image img {
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
}

/* Floating Elements */
.hero-float {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.hero-float.left {
    left: -40px;
    bottom: 80px;
}

.hero-float.right {
    right: -20px;
    top: 60px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.35);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== SECTIONS ===== */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 2px solid transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: var(--transition);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
}

.category-icon svg {
    width: 42px;
    height: 42px;
    stroke: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary-gradient);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.3);
}

.category-card:hover .category-icon svg {
    stroke: white;
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.category-link:hover {
    gap: 10px;
}

/* ===== CATEGORY CHIPS (Compact Horizontal) ===== */
.categories-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-medium);
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-pink-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-chip-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-chip-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
}

@media (max-width: 768px) {
    .categories-scroll {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 4px 4px 8px;
    }

    .category-chip {
        padding: 10px 16px;
        font-size: 13px;
        gap: 8px;
    }

    .category-chip-icon {
        width: 24px;
        height: 24px;
    }

    .category-chip-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.product-badge.sale {
    background: var(--accent);
}

.product-badge.new {
    background: var(--success);
}

.product-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 1;
}

.product-wishlist:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions .btn {
    padding: 12px 28px;
    font-size: 13px;
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-price .current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price .discount {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

/* Size Selector - Buttons */
.product-sizes {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.product-sizes .size-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 4px;
}

.product-sizes .size-btn {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.product-sizes .size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-sizes .size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Size Selector - Dropdown */
.product-sizes .size-dropdown {
    flex: 1;
    min-width: 100px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.product-sizes .size-dropdown:focus {
    border-color: var(--primary);
    outline: none;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: var(--primary-gradient);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.promo-content {
    color: white;
}

.promo-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.promo-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.promo-timer {
    display: flex;
    gap: 16px;
}

.timer-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 80px;
}

.timer-box .number {
    font-size: 32px;
    font-weight: 700;
    display: block;
}

.timer-box .label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature-card h3 {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 50px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.footer-brand .logo-text {
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 12px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-payments {
    display: flex;
    gap: 12px;
}

.footer-payments img {
    height: 28px;
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FLASH MESSAGES ===== */
.flash-message {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.flash-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.flash-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.flash-warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.flash-info {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top-left {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 16px;
    }

    .nav ul {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 12px 0;
    }

    .nav a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero {
        min-height: 320px;
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2,
    .section-title h2 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        max-width: 100%;
    }

    .btn {
        padding: 14px 24px;
        font-size: 13px;
    }

    .header-actions {
        gap: 4px;
    }

    .header-action {
        padding: 8px 10px;
    }

    /* Mobile logo adjustments */
    .logo {
        gap: 8px;
    }

    .logo img {
        max-height: 35px !important;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text em {
        font-size: 10px;
    }

    /* Mobile header actions - hide text */
    .header-action span:not(.icon):not(.count) {
        display: none;
    }

    .header-action .icon {
        font-size: 20px;
    }

    /* Mobile search */
    .search-box input {
        padding: 12px 50px 12px 16px;
        font-size: 14px;
    }

    .search-box button {
        width: 36px;
        height: 36px;
    }

    /* Mobile nav - Now uses slide-in hamburger menu, see styles at end of file */
    /* The nav is hidden by default and slides in when hamburger is clicked */

    /* Mobile hero */
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .hero-float {
        display: none;
    }

    /* Mobile product cards */
    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    /* Mobile section padding */
    .section {
        padding: 40px 0;
    }

    .section-header h2,
    .section-title h2 {
        font-size: 24px;
    }

    /* Mobile categories */
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 20px 16px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .category-card h3 {
        font-size: 16px;
    }

    /* Mobile footer */
    .footer {
        padding: 40px 0 20px;
    }

    /* Mobile checkout form */
    .checkout-form {
        padding: 16px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .logo-text {
        font-size: 14px;
    }

    .logo-text em {
        display: none;
    }

    .header-action {
        padding: 6px 8px;
    }

    .product-grid {
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE-FIRST RESPONSIVE FIXES ===== */

/* Global overflow prevention */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
    }

    .nav {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 1001 !important;
        transition: left 0.3s ease !important;
        padding-top: 20px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
        overflow-y: auto !important;
        display: block !important;
    }

    .nav.active {
        left: 0 !important;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 0;
    }

    .nav>ul>li {
        border-bottom: 1px solid var(--border);
    }

    .nav a {
        display: block;
        padding: 14px 16px;
        white-space: normal;
    }

    .nav .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        min-width: auto;
        padding: 0 0 0 20px;
        display: none;
    }

    .nav>ul>li:hover .dropdown {
        display: block;
    }
}

/* ===== SHOP PAGE - COLLAPSIBLE FILTER SIDEBAR ===== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.shop-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.shop-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.shop-sidebar-overlay.active {
    display: block;
}

.filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.filter-toggle:hover {
    background: var(--primary);
    color: white;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .filter-toggle {
        display: flex;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1001;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .sidebar-close {
        display: block;
    }
}

/* ===== CART PAGE RESPONSIVE ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    height: fit-content;
}

@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;
        top: auto;
    }

    /* Hide subtotal column on mobile */
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        display: none;
    }

    /* Compact cart item on mobile */
    .cart-item-info {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ===== CHECKOUT PAGE RESPONSIVE ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Stack form fields */
    .checkout-form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ===== PRODUCT PAGE RESPONSIVE ===== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 24px !important;
    }

    .product-price-main {
        font-size: 28px !important;
    }

    .product-add-to-cart {
        flex-direction: column;
    }

    .product-add-to-cart .btn {
        width: 100%;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        margin-bottom: 20px;
    }
}

/* ===== MOBILE PRODUCT GRID FIX ===== */
@media (max-width: 768px) {

    /* 2 column grid on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Compact product card */
    .product-card {
        border-radius: var(--radius-md);
    }

    .product-info {
        padding: 10px 12px !important;
    }

    .product-name {
        font-size: 12px !important;
        line-height: 1.3;
        max-height: 32px;
        overflow: hidden;
    }

    .product-price {
        font-size: 14px !important;
    }

    .product-price-old {
        font-size: 11px !important;
    }

    .product-badge {
        font-size: 10px !important;
        padding: 4px 10px !important;
        top: 8px;
        left: 8px;
    }

    .product-wishlist {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        top: 8px;
        right: 8px;
    }

    .add-to-cart-btn,
    .product-add-btn {
        font-size: 11px !important;
        padding: 8px 12px !important;
    }

    /* Profile page - stack on mobile */
    .profile-layout,
    .account-layout {
        display: block !important;
    }

    .profile-sidebar,
    .account-sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
        position: relative !important;
    }

    .profile-content,
    .account-content {
        width: 100% !important;
    }

    /* Profile cards */
    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Orders grid */
    .orders-grid {
        grid-template-columns: 1fr !important;
    }

    /* Contact page */
    .contact-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        margin-bottom: -40px;
    }

    .contact-card {
        padding: 16px 12px;
    }

    .contact-card h4 {
        font-size: 10px;
    }

    .contact-card p {
        font-size: 11px;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* Wishlist grid */
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Section titles */
    .section-header h2,
    .section-title h2 {
        font-size: 22px !important;
    }

    .section-header p,
    .section-title p {
        font-size: 13px !important;
    }

    /* Prevent overflow */
    body {
        overflow-x: hidden !important;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    section,
    .section {
        overflow-x: hidden;
    }

    /* Profile page layout - MUST override inline styles */
    .profile-page-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .profile-page-layout>div {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Profile form fields */
    .profile-page-layout [style*="grid-template-columns: 1fr 1fr"],
    .profile-page-layout [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Product detail image - full width on mobile */
    .product-layout > div:first-child {
        margin-left: -16px;
        margin-right: -16px;
    }

    .product-layout > div:first-child > div {
        border-radius: 0 !important;
    }

    .product-layout > div:first-child img {
        width: 100% !important;
        max-width: 100vw;
    }
}

/* ===== PWA STANDALONE MODE ===== */
@media all and (display-mode: standalone) {
    /* Extra top padding when running as installed app (no browser bar) */
    .header {
        padding-top: env(safe-area-inset-top);
    }

    /* Bottom safe area for gesture bar on newer phones */
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ===== SAFE AREA INSETS FOR NOTCHED DEVICES ===== */
@supports (padding: env(safe-area-inset-top)) {
    .header-top {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .footer-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ===== PWA INSTALL BANNER ===== */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
    color: white;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner .pwa-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pwa-install-banner .pwa-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px;
    max-height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.pwa-install-banner .pwa-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.pwa-install-banner .pwa-text p {
    font-size: 11px;
    opacity: 0.8;
    margin: 1px 0 0;
    line-height: 1.2;
}

.pwa-install-banner .pwa-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-banner .pwa-install-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.pwa-install-banner .pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-pink);
}

.pwa-install-banner .pwa-dismiss-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install-banner .pwa-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}