/* ==========================================================================
   CHIC Parfumerie — E-commerce & Boutique Luxury Design System
   ========================================================================== */

:root {
    /* Palette */
    --bg-main: #FAF8F5;
    --bg-header: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-surface: #F4F1EA;
    --bg-dark: #1A1918;

    --text-primary: #1C1B18;
    --text-secondary: #5C5850;
    --text-muted: #8C877D;

    /* Luxury Accent Colors */
    --gold-primary: #C5A059;
    --gold-light: #F7F3EA;
    --gold-hover: #A8833F;
    --gold-border: #E8DCC4;

    /* Promo Badge Colors */
    --promo-ruby: #D90429;
    --promo-ruby-bg: #FFE5E8;
    --promo-emerald: #1B998B;
    --promo-emerald-bg: #E3F8F5;
    --promo-gold: #C5A059;
    --promo-gold-bg: #FFF8E7;
    --promo-dark: #2B2D42;
    --promo-dark-bg: #EDEEF2;
    --promo-sapphire: #1D3557;
    --promo-sapphire-bg: #E8F0F8;

    /* Status Colors */
    --status-green: #2E7D32;
    --status-green-bg: #E8F5E9;
    --status-red: #C62828;
    --status-red-bg: #FFEBEE;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(28, 27, 24, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 27, 24, 0.08);
    --shadow-lg: 0 16px 40px rgba(28, 27, 24, 0.12);
    --shadow-gold: 0 4px 16px rgba(197, 160, 89, 0.25);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Container */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Announcement Bar */
.announcement-bar {
    background: var(--bg-dark);
    color: #FFFFFF;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}
.announcement-bar span {
    color: var(--gold-primary);
    font-weight: 700;
}

/* Header */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--gold-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 20px;
}

/* Logo */
.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--gold-border);
}
.brand-titles {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    line-height: 1.1;
}
.brand-subtitle {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 600;
}

/* Search Bar in Header */
.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 42px 10px 18px;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}
.header-search input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.search-icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-admin {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--gold-border);
}
.btn-admin:hover {
    background: var(--gold-light);
    color: var(--text-primary);
    border-color: var(--gold-primary);
}

.btn-cart {
    background: var(--gold-primary);
    color: #FFFFFF;
    position: relative;
    box-shadow: var(--shadow-gold);
}
.btn-cart:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
}
.cart-badge {
    background: var(--promo-ruby);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hero & Promotional Banner */
.hero-banner {
    background: linear-gradient(135deg, #1A1918 0%, #2D2721 100%);
    color: #FFFFFF;
    padding: 44px 0;
    border-bottom: 2px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}
.hero-tag {
    display: inline-block;
    color: var(--gold-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 12px;
}
.hero-desc {
    font-size: 1.05rem;
    color: #D6D2CA;
    line-height: 1.6;
    margin-bottom: 20px;
}
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--gold-primary);
}
.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Filter Navigation */
.filter-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--gold-border);
    padding: 16px 0;
}
.filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition);
}
.chip:hover {
    background: var(--gold-light);
    color: var(--text-primary);
}
.chip.active {
    background: var(--gold-primary);
    color: #FFFFFF;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}
.chip-promo {
    background: var(--promo-ruby-bg);
    color: var(--promo-ruby);
    border: 1px dashed var(--promo-ruby);
}
.chip-promo:hover, .chip-promo.active {
    background: var(--promo-ruby);
    color: #FFFFFF;
    border-color: var(--promo-ruby);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}
.custom-select {
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
}
.toggle-stock-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Product Catalog Grid */
.catalog-section {
    padding: 40px 0 80px;
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.catalog-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.catalog-count strong {
    color: var(--text-primary);
}

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

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

/* Product Media & Floating Badges */
.card-media {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #FFFFFF;
    overflow: hidden;
    cursor: pointer;
}
.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-img {
    transform: scale(1.05);
}

/* GLOBO DE PROMOCIÓN / DISCOUNT BADGE (Configurable) */
.promo-balloon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    animation: promoPulse 2.4s infinite ease-in-out;
}

@keyframes promoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Globo Colors */
.promo-balloon.ruby {
    background: linear-gradient(135deg, #E63946, #D90429);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.promo-balloon.gold {
    background: linear-gradient(135deg, #D4AF37, #AA771C);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.promo-balloon.emerald {
    background: linear-gradient(135deg, #2A9D8F, #1D7066);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.promo-balloon.dark {
    background: linear-gradient(135deg, #1A1918, #333333);
    color: #F4F1EA;
    border: 1px solid var(--gold-primary);
}
.promo-balloon.sapphire {
    background: linear-gradient(135deg, #1D3557, #0B1D36);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Stock Status Badge */
.stock-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.stock-pill.in-stock {
    background: rgba(232, 245, 233, 0.92);
    color: var(--status-green);
    border: 1px solid rgba(46, 125, 50, 0.3);
    backdrop-filter: blur(4px);
}
.stock-pill.out-of-stock {
    background: rgba(255, 235, 238, 0.92);
    color: var(--status-red);
    border: 1px solid rgba(198, 40, 40, 0.3);
    backdrop-filter: blur(4px);
}

/* Product Content */
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.card-brand {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-primary);
}
.card-spec {
    font-size: 0.74rem;
    color: var(--text-muted);
}
.card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 8px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-notes {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pricing Section */
.card-pricing {
    margin-top: auto;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--gold-border);
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.price-regular {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}
.price-offer {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--promo-ruby);
}
.price-original {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-savings {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--status-green);
    background: var(--status-green-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Card Action Buttons */
.card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}
.btn-add-cart {
    background: var(--gold-primary);
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}
.btn-add-cart:hover:not(:disabled) {
    background: var(--gold-hover);
    box-shadow: var(--shadow-gold);
}
.btn-add-cart:disabled {
    background: #D5D1C8;
    color: #8C877D;
    cursor: not-allowed;
}

.btn-view-detail {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--gold-border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-view-detail:hover {
    background: var(--gold-light);
    color: var(--text-primary);
    border-color: var(--gold-primary);
}

/* ==========================================================================
   Shopping Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 27, 24, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}
.cart-close-btn {
    font-size: 1.4rem;
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition);
}
.cart-close-btn:hover {
    color: var(--text-primary);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-surface);
}
.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--gold-border);
}
.cart-item-details {
    display: flex;
    flex-direction: column;
}
.cart-item-brand {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold-primary);
}
.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 6px;
}
.cart-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.qty-btn {
    width: 24px;
    height: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.qty-btn:hover {
    background: var(--gold-light);
    color: var(--gold-hover);
}
.qty-val {
    font-size: 0.86rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.cart-item-remove {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 6px;
    transition: var(--transition);
}
.cart-item-remove:hover {
    color: var(--promo-ruby);
}

.cart-footer {
    padding: 20px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--gold-border);
}
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.cart-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gold-border);
}
.btn-checkout {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    background: var(--gold-primary);
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}
.btn-checkout:hover {
    background: var(--gold-hover);
}

/* ==========================================================================
   Modals (Checkout & Product Detail)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 27, 24, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--text-muted);
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--gold-border);
}
.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
}
.modal-body {
    padding: 24px 28px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

/* Detail Modal Specifics */
.detail-modal-box {
    max-width: 860px;
}
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.detail-media {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
}
.detail-media img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: cover;
}
.detail-info {
    display: flex;
    flex-direction: column;
}
.detail-brand {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-primary);
    margin-bottom: 4px;
}
.detail-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}
.detail-pyramid {
    background: var(--bg-surface);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    border-left: 3px solid var(--gold-primary);
}
.pyramid-level {
    font-size: 0.82rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.pyramid-level strong {
    color: var(--text-primary);
}

/* WhatsApp Order Button */
.btn-whatsapp-order {
    background: #25D366;
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    transition: var(--transition);
}
.btn-whatsapp-order:hover {
    background: #1EBE5B;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: #A39E93;
    padding: 60px 0 30px;
    border-top: 2px solid var(--gold-primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h4 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 380px;
}
.footer-col h5 {
    font-size: 0.88rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}
.footer-col ul {
    list-style: none;
    font-size: 0.88rem;
}
.footer-col li {
    margin-bottom: 8px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #7A756C;
}

/* Botón de acceso admin camuflado en el pie de página */
.camouflaged-admin-trigger {
    color: inherit;
    text-decoration: none;
    opacity: 0.18;
    font-size: 0.95rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}
.camouflaged-admin-trigger:hover,
.camouflaged-admin-trigger:focus,
.camouflaged-admin-trigger:active {
    opacity: 0.95;
    color: var(--gold-primary);
    transform: scale(1.15);
    background: rgba(197, 160, 89, 0.12);
}

/* Mobile Search Bar */
.mobile-search-container {
    display: none;
    padding: 0 16px 12px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--gold-border);
}
.mobile-search-box {
    position: relative;
    width: 100%;
}
.mobile-search-box input {
    width: 100%;
    height: 42px;
    padding: 10px 42px 10px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    font-size: 16px; /* Previene auto-zoom en iOS */
    color: var(--text-primary);
    transition: var(--transition);
}
.mobile-search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}
.mobile-search-box .search-icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* ==========================================================================
   TABLET ADAPTABILITY (769px a 1024px)
   Dispositivos: iPad, iPad Air, iPad Pro 11", Android Tablets en vertical/horizontal
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    /* Header & Brand en Tablet */
    .header-wrapper {
        height: 68px;
        gap: 16px;
    }
    .brand-logo {
        width: 42px;
        height: 42px;
    }
    .brand-title {
        font-size: 1.35rem;
    }
    .brand-subtitle {
        font-size: 0.68rem;
    }
    .header-search {
        max-width: 320px;
    }

    /* Hero Banner en Tablet */
    .hero-banner {
        padding: 36px 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 0.98rem;
        line-height: 1.55;
    }
    .hero-highlights {
        gap: 14px;
        font-size: 0.84rem;
    }

    /* Catálogo en Tablet: 3 columnas perfectamente cuadradas */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .card-content {
        padding: 16px;
    }
    .card-title {
        font-size: 1.15rem;
        min-height: 2.4em;
    }
    .card-pricing {
        margin-bottom: 12px;
    }
    .price-regular, .price-offer {
        font-size: 1.25rem;
    }

    /* Drawer del Carrito en Tablet */
    .cart-drawer {
        max-width: 400px;
    }

    /* Modales en Tablet */
    .modal-box {
        max-width: 90vw;
        max-height: 88vh;
    }
    .detail-layout {
        grid-template-columns: 300px 1fr;
        gap: 24px;
    }
    .detail-media img {
        max-height: 380px;
        object-fit: contain;
    }

    /* Footer en Tablet */
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 28px;
    }
}

/* ==========================================================================
   CELULAR / SMARTPHONES (< 768px)
   Dispositivos: iPhone, Samsung Galaxy, Xiaomi, Motorola, etc.
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    /* Top Announcement Bar */
    .announcement-bar {
        font-size: 0.74rem;
        padding: 7px 10px;
        line-height: 1.35;
        text-align: center;
    }

    /* Header Móvil */
    .header-wrapper {
        height: 60px;
        gap: 10px;
        padding: 0 2px;
    }
    .brand-link {
        gap: 8px;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 4px;
    }
    .brand-titles {
        display: flex;
        flex-direction: column;
    }
    .brand-title {
        font-size: 1.15rem;
        line-height: 1.1;
    }
    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .header-search { display: none; }
    .mobile-search-container { display: block; }

    .btn-header {
        padding: 7px 12px;
        font-size: 0.8rem;
        min-height: 38px;
    }

    /* Hero Banner Móvil */
    .hero-banner {
        padding: 24px 0 26px;
    }
    .hero-tag {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
        margin-bottom: 6px;
    }
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    .hero-desc {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .hero-highlights {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.76rem;
    }
    .hero-highlights span {
        background: rgba(197, 160, 89, 0.14);
        border: 1px solid rgba(197, 160, 89, 0.28);
        border-radius: var(--radius-full);
        padding: 4px 10px;
        color: #F0E6D2;
    }

    /* Barra de Filtros en Móvil */
    .filter-bar {
        padding: 12px 0;
    }
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .categories-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 2px 2px 6px;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .categories-nav::-webkit-scrollbar {
        display: none;
    }
    .chip {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.78rem;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
    }
    .filter-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 6px;
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }
    .toggle-stock-label {
        font-size: 0.82rem;
        min-height: 36px;
    }
    .custom-select {
        font-size: 16px; /* Previene auto-zoom en iOS Safari */
        padding: 6px 10px;
        max-width: 180px;
        height: 36px;
    }

    /* Cuadrícula de Fragancias en Celular: 2 columnas simétricas y elegantes */
    .catalog-section {
        padding: 20px 0 60px;
    }
    .catalog-header {
        margin-bottom: 14px;
    }
    .catalog-count {
        font-size: 0.85rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .product-card {
        border-radius: var(--radius-sm);
    }
    .card-media {
        padding-top: 100%;
    }
    .promo-balloon {
        font-size: 0.62rem;
        font-weight: 800;
        padding: 3px 6px;
        top: 6px;
        left: 6px;
        border-radius: 4px;
        letter-spacing: 0.02em;
    }
    .stock-pill {
        font-size: 0.6rem;
        padding: 2px 5px;
        top: 6px;
        right: 6px;
        border-radius: 4px;
    }
    .card-content {
        padding: 10px 8px 12px;
    }
    .card-meta {
        margin-bottom: 4px;
    }
    .card-brand {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 65%;
    }
    .card-spec {
        font-size: 0.62rem;
        white-space: nowrap;
    }
    .card-title {
        font-size: 0.94rem;
        line-height: 1.22;
        min-height: 2.44em;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .card-notes {
        display: none; /* Oculto en móvil para mantener alturas parejos y limpios */
    }
    .card-pricing {
        margin-top: 6px;
        margin-bottom: 8px;
        padding-top: 6px;
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }
    .price-regular, .price-offer {
        font-size: 1.05rem;
        line-height: 1.1;
    }
    .price-original {
        font-size: 0.78rem;
    }
    .price-savings {
        font-size: 0.64rem;
        padding: 1px 4px;
    }
    .card-actions {
        grid-template-columns: 1fr;
    }
    .btn-add-cart {
        padding: 8px 6px;
        font-size: 0.76rem;
        min-height: 38px;
        border-radius: 4px;
    }
    .btn-view-detail {
        display: none; /* Clic en imagen o título abre la ficha técnica */
    }

    /* Carrito Drawer en Móvil (ocupa pantalla completa con área segura) */
    .cart-drawer {
        width: 100vw;
        max-width: 100%;
        height: 100%;
        height: 100dvh;
    }
    .cart-header {
        padding: 16px 18px;
    }
    .cart-header h3 {
        font-size: 1.25rem;
    }
    .cart-close-btn {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
    .cart-items-list {
        padding: 14px 16px;
        gap: 12px;
    }
    .cart-item {
        grid-template-columns: 52px 1fr auto;
        gap: 10px;
        padding-bottom: 12px;
    }
    .cart-item-img {
        width: 52px;
        height: 52px;
    }
    .cart-item-title {
        font-size: 0.86rem;
    }
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .cart-footer {
        padding: 16px 18px max(18px, env(safe-area-inset-bottom));
    }
    .btn-checkout {
        padding: 14px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Modales en Móvil (Formato Bottom-Sheet con bordes superiores redondeados) */
    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }
    .modal-box {
        max-width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
    }
    .modal-close-btn {
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.05);
        border-radius: var(--radius-full);
    }
    .modal-header {
        padding: 16px 18px 12px;
    }
    .modal-body {
        padding: 14px 18px 24px;
    }
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .detail-media img {
        max-height: 240px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
    }
    .detail-title {
        font-size: 1.35rem;
    }
    .detail-pyramid {
        padding: 10px 12px;
        margin: 10px 0;
    }
    .form-group input, .form-group textarea, .form-group select {
        font-size: 16px !important; /* Previene auto-zoom en iPhone */
        padding: 11px 12px;
    }

    /* Pie de Página Móvil */
    .main-footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 24px;
    }
    .footer-brand h4 {
        font-size: 1.35rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 18px;
    }
}

/* ==========================================================================
   CELULARES EXTRA PEQUEÑOS (<= 360px)
   Dispositivos: iPhone SE 1st gen, Galaxy A01, etc.
   ========================================================================== */
@media (max-width: 360px) {
    .header-wrapper {
        height: 54px;
    }
    .brand-title {
        font-size: 1rem;
    }
    .cart-btn-text {
        display: none;
    }
    .btn-cart {
        padding: 7px 10px;
    }
    .products-grid {
        gap: 8px;
    }
    .card-content {
        padding: 8px 6px 10px;
    }
    .card-title {
        font-size: 0.88rem;
    }
    .price-regular, .price-offer {
        font-size: 0.98rem;
    }
}

/* ==========================================================================
   OPTIMIZACIONES TOUCH (Sin Efectos Hover Problemáticos en Móvil)
   ========================================================================== */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    .product-card:active {
        border-color: var(--gold-primary);
    }
    .card-media:hover .card-img {
        transform: none;
    }
}
