@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --purple: #433466;
    --blue: #3682A6;
    --yellow: #F1C40F;
    --red: #E05459;
    --green: #6BBF59;
    --bg: #FAFAFA;
    --bg-warm: #FDFBF7;
    --white: #FFFFFF;
    --light-border: #E8E0F0;
    --text: #433466;
    --text-light: #7A6FA0;
    --shadow: 0 4px 24px rgba(67,52,102,.12);
    --shadow-sm: 0 2px 12px rgba(67,52,102,.08);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1280px;
}

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    color: var(--text);
    line-height: 1.3;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--purple); }

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

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

/* ============ HEADER ============ */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--purple);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.header-top .mobile-toggle {
    position: absolute;
    right: 20px;
}

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

.header-logo img {
    height: 156px;
    width: auto;
    max-width: 390px;
    object-fit: contain;
}

.header-logo .logo-text {
    font-family: 'Roboto Slab', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--purple);
    display: block;
}

.header-logo .logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
    margin-top: -2px;
}

.header-nav {
    background: var(--purple);
    padding: 0 20px;
}

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

.header-nav a {
    color: #fff;
    padding: 14px 18px;
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .2s;
    position: relative;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.header-nav .has-dropdown { position: relative; }
.header-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 100;
}
.header-nav .has-dropdown:hover .dropdown { display: block; }
.header-nav .dropdown a {
    display: block;
    color: var(--text);
    padding: 10px 18px;
    font-size: .85rem;
    text-transform: none;
    letter-spacing: 0;
}
.header-nav .dropdown a:hover { background: var(--bg); color: var(--blue); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 20px;
    justify-content: center;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--light-border);
}

.header-actions .action-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.header-actions .action-btn:hover,
.header-actions .action-btn.active {
    color: var(--blue);
}

.cart-badge {
    position: relative;
}
.cart-badge .count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: .6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============ MOBILE MENU ============ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--purple);
    cursor: pointer;
    padding: 8px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    text-decoration: none;
}
.btn:hover { background: var(--purple); color: #fff; transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { background: #d4a90d; color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #4a9e3f; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c43e43; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .8rem; }
.btn-block { display: block; width: 100%; }

/* ============ HERO BANNER ============ */
.hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--purple);
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-banner .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(67,52,102,.8));
    color: #fff;
}
.hero-banner .overlay h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 8px;
}
.hero-banner .overlay p { color: rgba(255,255,255,.9); }

/* ============ CAROUSEL ============ */
.carousel-section { padding: 40px 0; }
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.carousel-track {
    display: flex;
    transition: transform .5s ease;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}
.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.carousel-slide .slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.35));
    z-index: 1;
}
.carousel-slide .slide-content h2 {
    color: #fff;
    font-size: 2.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    margin-bottom: 12px;
    max-width: 600px;
}
.carousel-slide .slide-content p {
    color: rgba(255,255,255,.92);
    font-size: 1.05rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
    margin-bottom: 16px;
    max-width: 500px;
}
.carousel-slide .slide-content .btn { margin-top: 4px; }
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    z-index: 10;
}
.carousel-nav:hover { background: var(--blue); color: #fff; }
.carousel-nav.prev { left: 16px; }
.carousel-nav.next { right: 16px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--light-border);
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.carousel-dots .dot.active { background: var(--blue); }

/* ============ SECTION TITLES ============ */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ ABOUT SECTION ============ */
.about-section { padding: 60px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.about-text h2 { margin-bottom: 16px; font-size: 1.6rem; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ============ SLIDER PROMOS ============ */
.promo-slider { padding: 40px 0; }

/* ============ COLLECTIONS GRID ============ */
.collections-section { padding: 60px 0; background: var(--bg-warm); }
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.collection-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    text-align: center;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.collection-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.collection-card h3 {
    padding: 16px;
    font-size: 1.1rem;
}

/* ============ PRODUCT GRID ============ */
.products-section { padding: 40px 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card a { display: block; text-decoration: none; }
.product-card .product-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f0fa;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-info { padding: 16px; }
.product-card .product-name {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}
.product-card .product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue);
}
.product-card .product-delivery {
    font-size: .8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-new { background: var(--green); color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-hot { background: var(--yellow); color: var(--text); }

/* ============ PRODUCT DETAIL ============ */
.product-detail { padding: 40px 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.product-gallery { position: relative; }
.product-gallery .main-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: #f5f0fa;
    margin-bottom: 12px;
}
.product-gallery .main-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.product-gallery .thumbnails {
    display: flex;
    gap: 8px;
}
.product-gallery .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    transition: border .2s;
}
.product-gallery .thumbnails img.active,
.product-gallery .thumbnails img:hover { border-color: var(--blue); }

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.product-info-detail .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}
.product-info-detail .delivery {
    color: var(--text-light);
    font-size: .9rem;
    margin-bottom: 16px;
}
.product-info-detail .description {
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text);
}
.product-info-detail .btn-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.share-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.share-buttons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-border);
    color: var(--purple);
    font-size: .9rem;
    transition: all .2s;
}
.share-buttons a:hover { background: var(--blue); color: #fff; }

/* ============ REVIEWS ============ */
.reviews-section { padding: 40px 0; border-top: 1px solid var(--light-border); }
.review-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.review-stars { color: var(--yellow); font-size: 1.1rem; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.review-text { color: var(--text-light); font-size: .9rem; line-height: 1.6; }

.review-form {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

/* ============ CONTACT / WHATSAPP ============ */
.contact-section {
    padding: 60px 0;
    text-align: center;
    background: var(--purple);
    color: #fff;
}
.contact-section h2 { color: #fff; margin-bottom: 12px; }
.contact-section p { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background .2s;
}
.whatsapp-btn:hover { background: #1da851; color: #fff; }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--purple);
    color: rgba(255,255,255,.8);
    padding: 40px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.7);
    padding: 4px 0;
    font-size: .9rem;
}
.footer-col a:hover { color: var(--yellow); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: background .2s;
}
.footer-social a:hover { background: var(--yellow); color: var(--purple); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 16px 0;
    text-align: center;
    font-size: .85rem;
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--light-border);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    transition: border .2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ============ ALERTS ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .9rem;
}
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid var(--green); }
.alert-error { background: #fce4ec; color: #c62828; border-left: 4px solid var(--red); }
.alert-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid var(--blue); }
.alert-warning { background: #fff8e1; color: #f57f17; border-left: 4px solid var(--yellow); }

/* ============ CART ============ */
.cart-section { padding: 40px 0; }
.cart-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cart-table th {
    background: var(--purple);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--light-border);
    vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }
.cart-product-info { display: flex; align-items: center; gap: 12px; }
.cart-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart-qty button {
    width: 32px;
    height: 32px;
    border: 2px solid var(--light-border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.cart-qty button:hover { border-color: var(--blue); color: var(--blue); }
.cart-qty span {
    width: 36px;
    text-align: center;
    font-weight: 700;
}
.cart-summary {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-border);
    font-size: .95rem;
}
.cart-summary .summary-row:last-child { border-bottom: none; }
.cart-summary .summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple);
    border-top: 2px solid var(--purple);
    margin-top: 8px;
    padding-top: 16px;
}

/* ============ USER PANEL ============ */
.user-section { padding: 40px 0; }
.user-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}
.user-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.user-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-border);
}
.user-sidebar a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all .2s;
    font-size: .9rem;
}
.user-sidebar a:hover,
.user-sidebar a.active { background: var(--blue); color: #fff; }
.user-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-warm);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Roboto Slab', serif;
}
.stat-card .stat-label {
    font-size: .85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ============ AUTH PAGES ============ */
.auth-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 440px;
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
}
.auth-card .auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: .9rem;
}
.auth-card .auth-link { text-align: center; margin-top: 16px; font-size: .9rem; }

/* ============ PAGES ============ */
.page-section { padding: 60px 0; }
.page-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin-top: 24px; margin-bottom: 12px; font-size: 1.3rem; }
.page-content p { margin-bottom: 12px; }
.page-content ul, .page-content ol { margin-left: 20px; margin-bottom: 12px; }

/* ============ EMPTY STATE ============ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state h3 { margin-bottom: 12px; color: var(--text); }
.empty-state p { margin-bottom: 20px; }

/* ============ SHOP HEADER ============ */
.shop-header {
    background: var(--purple);
    padding: 40px 0;
    color: #fff;
    text-align: center;
}
.shop-header h1 { color: #fff; font-size: 2.2rem; }
.shop-header p { color: rgba(255,255,255,.8); margin-top: 8px; }

/* ============ FILTERS ============ */
.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px;
    border: 2px solid var(--light-border);
    border-radius: 30px;
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

/* ============ RESPONSIVE — MOBILE ============ */

/* --- Mobile Overlay Menu (hidden on desktop) --- */
.mobile-menu-overlay {
    display: none;
}
.mobile-nav-header {
    display: none;
}

/* --- Tablet (992px) --- */
@media (max-width: 992px) {
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .mobile-menu-overlay.active { opacity: 1; visibility: visible; }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 2px solid var(--light-border);
    }
    .mobile-nav-header h3 {
        font-size: 1rem;
        color: var(--purple);
        margin: 0;
    }
    .mobile-nav-close {
        background: none;
        border: none;
        font-size: 1.3rem;
        color: var(--purple);
        cursor: pointer;
        padding: 8px;
        line-height: 1;
    }

    .header-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        z-index: 2001;
        overflow-y: auto;
        transition: right .35s cubic-bezier(.4,0,.2,1);
        box-shadow: -4px 0 24px rgba(0,0,0,.15);
        padding-top: 0;
    }
    .header-nav.open { right: 0; }
    .header-nav .container {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    .header-nav a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(67,52,102,.06);
        font-size: .95rem;
        color: var(--text);
        transition: all .2s;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
    }
    .header-nav a:hover,
    .header-nav a.active {
        background: rgba(54,130,166,.06);
        color: var(--blue);
    }
    .header-nav .has-dropdown { position: static; }
    .header-nav .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        background: var(--bg);
        border-radius: 0;
        min-width: 0;
    }
    .header-nav .dropdown a {
        padding-left: 44px;
        color: var(--text-light);
        font-size: .9rem;
    }
    .header-nav .dropdown a:hover { color: var(--blue); }

    .mobile-toggle { display: block; }

    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .user-grid { grid-template-columns: 1fr; }

    .header-actions {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
        padding: 5px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .header-actions .action-btn {
        flex-shrink: 0;
        min-height: 34px;
        padding: 4px 10px;
        font-size: .7rem;
    }
    .header-actions .action-btn span { display: none; }

    .carousel-slide img { height: 320px; }
    .carousel-slide .slide-content { left: 24px; max-width: 380px; }
    .carousel-slide .slide-content h2 { font-size: 1.6rem; }
    .carousel-nav { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-nav.prev { left: 12px; }
    .carousel-nav.next { right: 12px; }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    body { font-size: 15px; -webkit-text-size-adjust: 100%; }

    .container { padding: 0 16px; }

    /* Header */
    .header-logo img { height: 100px; max-width: 260px; }
    .header-logo .logo-text { font-size: 1.8rem; }
    .header-logo .logo-sub { font-size: .65rem; letter-spacing: 3px; }
    .header-top { padding: 12px 16px; }

    /* Action bar */
    .header-actions {
        gap: 5px;
        padding: 6px 12px;
        background: var(--white);
        border-bottom: 1px solid var(--light-border);
        justify-content: center;
    }
    .header-actions .action-btn {
        font-size: .65rem;
        padding: 3px 8px;
        min-height: 30px;
        border-radius: 4px;
    }
    .header-actions .action-btn span { display: none; }

    /* Carousel */
    .carousel-section { padding: 16px 0; }
    .carousel-slide img { height: 200px; }
    .carousel-slide .slide-content {
        background: linear-gradient(transparent 30%, rgba(0,0,0,.55));
        padding: 16px;
        justify-content: flex-end;
    }
    .carousel-slide .slide-content h2 {
        font-size: 1.1rem;
        text-shadow: 0 1px 6px rgba(0,0,0,.3);
    }
    .carousel-slide .slide-content p {
        font-size: .85rem;
        margin-bottom: 8px;
    }
    .carousel-slide .slide-content .btn {
        padding: 10px 20px;
        font-size: .8rem;
    }
    .carousel-nav { width: 36px; height: 36px; font-size: .9rem; }

    /* Section titles */
    .section-title { margin-bottom: 24px; }
    .section-title h2 { font-size: 1.5rem; }
    .section-title p { font-size: .9rem; }

    /* About */
    .about-section { padding: 32px 0; }
    .about-text { padding: 24px; }
    .about-text h2 { font-size: 1.3rem; }

    /* Collections */
    .collections-section { padding: 32px 0; }
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .collection-card h3 { padding: 12px; font-size: .95rem; }

    /* Products */
    .products-section { padding: 24px 0; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card { border-radius: 10px; }
    .product-card .product-info { padding: 12px; }
    .product-card .product-name { font-size: .9rem; margin-bottom: 4px; }
    .product-card .product-price { font-size: 1rem; }
    .product-card .product-delivery { font-size: .75rem; }
    .product-card .product-img { aspect-ratio: 1; }

    /* Product detail */
    .product-detail { padding: 16px 0; }
    .product-gallery .thumbnails { gap: 6px; }
    .product-gallery .thumbnails img { width: 60px; height: 60px; }
    .product-info-detail h1 { font-size: 1.4rem; margin-bottom: 8px; }
    .product-info-detail .price { font-size: 1.4rem; margin-bottom: 12px; }
    .product-info-detail .description { font-size: .9rem; margin-bottom: 16px; }
    .product-info-detail .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    .product-info-detail .btn-group .btn { width: 100%; text-align: center; min-height: 48px; }
    .share-buttons { gap: 6px; }
    .share-buttons a { width: 40px; height: 40px; }

    /* Cart */
    .cart-section { padding: 16px 0; }
    .cart-table { font-size: .85rem; border-radius: 10px; }
    .cart-table th { padding: 10px 12px; font-size: .75rem; }
    .cart-table td { padding: 12px; }
    .cart-product-info img { width: 48px; height: 48px; }
    .cart-product-info { gap: 10px; }
    .cart-qty button { width: 36px; height: 36px; min-height: 44px; min-width: 44px; }
    .cart-qty span { width: 32px; font-size: .9rem; }
    .cart-summary { padding: 16px; border-radius: 10px; }

    /* Sticky mobile cart bar */
    .mobile-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 2px solid var(--light-border);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 900;
        box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    }
    .mobile-cart-bar .bar-total {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--purple);
    }
    .mobile-cart-bar .bar-btn {
        padding: 12px 24px;
        background: var(--blue);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: .9rem;
        cursor: pointer;
        min-height: 48px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    /* User panel */
    .user-section { padding: 16px 0; }
    .user-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 10px;
    }
    .user-sidebar::-webkit-scrollbar { display: none; }
    .user-sidebar h3 { display: none; }
    .user-sidebar a {
        flex-shrink: 0;
        padding: 12px 16px;
        font-size: .85rem;
        white-space: nowrap;
        border-radius: 0;
        margin-bottom: 0;
        border-bottom: 3px solid transparent;
    }
    .user-sidebar a.active {
        background: none;
        color: var(--blue);
        border-bottom-color: var(--blue);
    }
    .user-content { padding: 16px; border-radius: 10px; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 1.4rem; }
    .stat-card .stat-label { font-size: .8rem; }

    /* Auth */
    .auth-section { padding: 24px 0; min-height: auto; }
    .auth-card { padding: 24px; border-radius: 14px; }
    .auth-card h2 { font-size: 1.3rem; }

    /* Shop header */
    .shop-header { padding: 24px 0; }
    .shop-header h1 { font-size: 1.6rem; }

    /* Filters */
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filter-btns { justify-content: center; }
    .filter-btn {
        padding: 10px 16px;
        font-size: .85rem;
        min-height: 44px;
    }

    /* Footer */
    .site-footer { padding: 32px 0 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer-social { justify-content: center; }
    .footer-social a { min-width: 44px; min-height: 44px; }
    .footer-bottom { font-size: .8rem; }

    /* Pages */
    .page-section { padding: 24px 0; }
    .page-content { padding: 20px; border-radius: 10px; }

    /* Reviews */
    .reviews-section { padding: 24px 0; }
    .review-card { padding: 16px; }
    .review-form { padding: 16px; }

    /* Contact */
    .contact-section { padding: 40px 0; }
    .contact-section h2 { font-size: 1.3rem; }
    .whatsapp-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 52px;
    }
}

/* --- Small mobile (480px) --- */
@media (max-width: 480px) {
    .header-logo img { height: 80px; max-width: 200px; }
    .header-logo .logo-text { font-size: 1.5rem; }
    .header-logo .logo-sub { font-size: .6rem; letter-spacing: 2px; }
    .header-top { padding: 10px 12px; }

    .section-title h2 { font-size: 1.3rem; }
    .section-title p { font-size: .85rem; }

    .products-grid { gap: 8px; }
    .product-card .product-info { padding: 10px; }
    .product-card .product-name { font-size: .82rem; }
    .product-card .product-price { font-size: .9rem; }

    .collections-grid { gap: 8px; }
    .collection-card h3 { padding: 10px; font-size: .85rem; }

    .product-gallery .thumbnails img { width: 50px; height: 50px; }
    .product-info-detail h1 { font-size: 1.2rem; }
    .product-info-detail .price { font-size: 1.2rem; }

    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) { display: none; }

    .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .admin-content { padding: 12px; }
    .admin-card { padding: 16px; border-radius: 10px; }
    .admin-table { font-size: .8rem; }
    .admin-table th { padding: 8px; font-size: .7rem; }
    .admin-table td { padding: 8px; }
    .admin-table .actions { flex-wrap: wrap; }
}

/* --- Accessibility & Touch --- */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none; }
    .product-card:hover .product-img img { transform: none; }
    .collection-card:hover { transform: none; }
    .btn:hover { transform: none; }

    .product-card:active { transform: scale(.98); transition: transform .15s; }
    .collection-card:active { transform: scale(.98); transition: transform .15s; }
    .btn:active { transform: scale(.97); transition: transform .15s; }
    .filter-btn:active { transform: scale(.96); transition: transform .15s; }
    .carousel-nav:active { transform: scale(.9); transition: transform .15s; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .carousel-track { transition: none; }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-cart-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* Global mobile touch improvements */
@media (max-width: 768px) {
    /* Better tap targets */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px 14px;
    }
    textarea.form-control { min-height: 100px; }

    /* Remove tap highlight */
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(54,130,166,.15);
    }

    /* Smooth scrolling */
    html { -webkit-overflow-scrolling: touch; }

    /* Better link tapping */
    a { min-height: 44px; display: inline-flex; align-items: center; }

    /* Horizontal scroll prevention */
    body { overflow-x: hidden; }

    /* Image loading */
    img { content-visibility: auto; }

    /* Focus visible for accessibility */
    :focus-visible {
        outline: 3px solid var(--blue);
        outline-offset: 2px;
    }

    /* Button consistency */
    .btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        touch-action: manipulation;
    }

    /* Alert padding */
    .alert { padding: 12px 16px; font-size: .85rem; }
}

/* ============ LOADING ============ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250,250,250,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--light-border);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.tab-btn.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* ============ ADMIN ============ */
.admin-sidebar-toggle { display: none; }
.admin-sidebar-overlay {
    display: none;
}
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--purple);
    padding: 20px 0;
    color: #fff;
}
.admin-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 12px;
}
.admin-sidebar .sidebar-header h3 {
    color: #fff;
    font-size: 1.1rem;
}
.admin-sidebar .sidebar-header small {
    color: rgba(255,255,255,.6);
    font-size: .75rem;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: rgba(255,255,255,.75);
    font-size: .9rem;
    transition: all .2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,.15);
    color: #fff;
}
.admin-content {
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.admin-header h1 {
    font-size: 1.6rem;
}
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    background: var(--bg);
    padding: 10px 12px;
    text-align: left;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-light);
    border-bottom: 2px solid var(--light-border);
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--light-border);
    font-size: .9rem;
}
.admin-table tr:hover td { background: rgba(54,130,166,.03); }
.admin-table .thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}
.admin-table .actions { display: flex; gap: 6px; }
.admin-table .actions a,
.admin-table .actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}
.btn-edit { background: var(--blue); color: #fff; }
.btn-delete { background: var(--red); color: #fff; }
.btn-view { background: var(--green); color: #fff; }

@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .admin-sidebar-overlay.active { opacity: 1; visibility: visible; }
    .admin-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        top: 0;
        z-index: 2001;
        overflow-y: auto;
        transition: left .35s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
    }
    .admin-sidebar.open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0,0,0,.2);
    }
    .admin-content { padding: 16px; }
    .admin-header { flex-wrap: wrap; gap: 8px; }
    .admin-header h1 { font-size: 1.3rem; }
    .admin-sidebar-toggle { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 44px; }
    .admin-table { font-size: .85rem; }
    .admin-table .actions { flex-wrap: wrap; }
}

/* ============ CHECKBOX TOGGLE ============ */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}
.toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.toggle input:checked + .slider { background: var(--green); }
.toggle input:checked + .slider::before { transform: translateX(20px); }
