@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #e8618c;
    --primary-dark: #d4507a;
    --primary-light: #fdf2f7;
    --secondary: #8b7ec8;
    --accent: #fbbf24;
    --bg: #fafafa;
    --card: #ffffff;
    --text: #2d3436;
    --text-secondary: #636e72;
    --text-light: #9ca3af;
    --border: #eee;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --gradient: linear-gradient(135deg, #e8618c 0%, #8b7ec8 100%);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --color-price: var(--primary-dark);
    --color-sale: var(--error);
    --color-btn-text: #ffffff;
    --font-family: 'Nunito', -apple-system, sans-serif;
    --focus-ring: rgba(244,114,182,0.1);
    --btn-hover-shadow: rgba(244,114,182,0.3);
    --cart-fly-shadow: rgba(244,114,182,0.4);
    --footer-bg: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    --footer-cta-bg: linear-gradient(135deg, #e84393, #fd79a8);
    --footer-cta-color: #e84393;
    --footer-link-hover: #fd79a8;
    --pill-bg: #f8f5ff;
    --pill-hover-bg: #ede8ff;
    --pill-active-bg: linear-gradient(135deg, #fd79a8, #fab1a0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ===== HEADER ===== */
.header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 22px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo span { font-size: 20px; -webkit-text-fill-color: initial; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text);
    font-size: 20px;
    transition: var(--transition);
}
.header-btn:hover { background: var(--primary-light); }
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-dark);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-toggle {
    padding: 4px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle svg { border-radius: 4px; }

/* ===== SEARCH BAR ===== */
.search-bar {
    padding: 0 16px 12px;
    max-width: 1280px;
    margin: 0 auto;
}
.search-wrap {
    position: relative;
}
.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--card);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-ring); }
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-light);
}
.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}
.search-results.active { display: block; }
.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    transition: var(--transition);
    cursor: pointer;
}
.search-item:hover { background: var(--primary-light); }
.search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.search-item-info { flex: 1; }
.search-item-name { font-weight: 600; font-size: 14px; }
.search-item-price { font-size: 13px; color: var(--primary-dark); font-weight: 700; }

/* ===== HERO ===== */
.hero {
    background: var(--gradient);
    padding: 40px 16px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero h1 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===== CATEGORY PILLS ===== */
.cat-pills {
    padding: 16px 16px 0;
    max-width: 1280px;
    margin: 0 auto;
}
.cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 24px;
    border: 2px solid var(--border);
    background: var(--card);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    white-space: nowrap;
}
.cat-pill:hover,
.cat-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== FILTERS ===== */
.filters-bar {
    padding: 12px 16px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-select {
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--text);
}
.filter-count {
    font-size: 13px;
    color: var(--text-light);
    margin-left: auto;
}
.filter-panel {
    display: none;
    padding: 16px;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-left: 16px;
    margin-right: 16px;
}
.filter-panel.active { display: block; }
.filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-input {
    flex: 1;
    min-width: 80px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}
.filter-input:focus { border-color: var(--primary); }
.filter-apply {
    padding: 10px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.filter-clear {
    padding: 10px 16px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* ===== PRODUCT GRID ===== */
.products-section {
    padding: 16px;
    max-width: 1280px;
    margin: 0 auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); transform: translateY(-2px); }
.product-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--primary-light);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-sale { background: var(--color-sale); color: white; }
.badge-new { background: var(--success); color: white; }
.product-quick-add {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    z-index: 2;
}
.product-quick-add:hover { background: var(--primary); color: white; transform: scale(1.1); }
.product-info {
    padding: 12px;
}
.product-cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-price);
}
.price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}
.price-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-sale);
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== PRODUCT DETAIL ===== */
.pd-page { padding: 0 16px 40px; max-width: 1280px; margin: 0 auto; }
.pd-gallery {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--primary-light);
    margin-bottom: 20px;
}
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-gallery-nav::-webkit-scrollbar { display: none; }
.pd-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 0; }
.pd-cat { font-size: 12px; font-weight: 700; color: var(--secondary); text-transform: uppercase; }
.pd-name { font-size: 24px; font-weight: 800; margin: 8px 0; line-height: 1.2; }
.pd-price { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pd-price .price-current { font-size: 28px; }
.pd-price .price-old { font-size: 18px; }
.pd-stock { font-size: 13px; color: var(--success); font-weight: 600; margin-bottom: 16px; }
.pd-stock.low { color: var(--warning); }
.pd-options { margin-bottom: 20px; }
.pd-option-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pd-sizes, .pd-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.size-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.size-btn:hover, .size-btn.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.color-btn:hover, .color-btn.active { border-color: var(--primary-dark); transform: scale(1.1); }
.size-btn.out-of-stock, .color-btn.out-of-stock { opacity: 0.35; cursor: not-allowed; position: relative; }
.size-btn.out-of-stock:hover { border-color: #d1d5db; background: transparent; color: #9ca3af; }
.color-btn.out-of-stock::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.5); border-radius: 50%; }
.color-btn.out-of-stock::before { content: ''; position: absolute; top: 50%; left: -2px; right: -2px; height: 2px; background: #ef4444; transform: rotate(-45deg); z-index: 1; }
.pd-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--primary); }
.qty-val {
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    outline: none;
}
.pd-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
    padding: 16px;
    background: var(--gradient);
    color: var(--color-btn-text);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--btn-hover-shadow); }
.btn-secondary {
    padding: 14px;
    background: var(--card);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-secondary:hover { background: var(--primary-light); }
.pd-desc { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.pd-desc h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pd-desc p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ===== CART PAGE ===== */
.page-header {
    padding: 24px 16px 16px;
    max-width: 1280px;
    margin: 0 auto;
}
.page-title {
    font-size: 24px;
    font-weight: 800;
}
.cart-section { padding: 0 16px 40px; max-width: 1280px; margin: 0 auto; }
.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.cart-item-img {
    width: 80px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-light);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 2px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-val { width: 30px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-remove {
    background: none;
    border: none;
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}
.cart-summary {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}
.cart-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-row.total { font-size: 18px; font-weight: 800; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 4px; }
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cart-empty-state p { color: var(--text-light); margin-bottom: 20px; }

/* ===== CHECKOUT ===== */
.checkout-section { padding: 0 16px 40px; max-width: 600px; margin: 0 auto; }
.form-section { margin-bottom: 24px; }
.form-section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    background: var(--card);
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-ring); }
.form-textarea { resize: vertical; min-height: 80px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-opt:hover { border-color: var(--primary-light); }
.payment-opt.selected { border-color: var(--primary); background: var(--primary-light); }
.payment-opt input { display: none; }
.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}
.payment-opt.selected .payment-radio { border-color: var(--primary-dark); }
.payment-opt.selected .payment-radio::after { content: ''; width: 10px; height: 10px; background: var(--primary-dark); border-radius: 50%; }
.payment-icon { font-size: 24px; }
.payment-label { font-weight: 600; font-size: 14px; }

/* ===== ORDER SUCCESS ===== */
.success-section { text-align: center; padding: 60px 16px; max-width: 500px; margin: 0 auto; }
.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    color: white;
    animation: pop 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.success-section h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.success-section p { color: var(--text-secondary); margin-bottom: 24px; }
.order-ref { background: var(--primary-light); padding: 16px; border-radius: 12px; margin-bottom: 24px; }
.order-ref-label { font-size: 12px; color: var(--text-light); font-weight: 600; }
.order-ref-number { font-size: 24px; font-weight: 800; color: var(--primary-dark); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 12px 16px;
    max-width: 1280px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a { color: var(--primary-dark); font-weight: 600; }
.breadcrumb span { margin: 0 6px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--footer-bg);
    clip-path: ellipse(60% 100% at 50% 100%);
}
.footer-cta {
    background: var(--footer-cta-bg);
    padding: 28px 16px;
    text-align: center;
    position: relative;
}
.footer-cta h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.footer-cta-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 25px;
    font-weight: 700; font-size: 13px; transition: all .2s;
}
.footer-cta-btn.phone { background: #fff; color: var(--footer-cta-color); }
.footer-cta-btn.phone:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.footer-cta-btn.whatsapp { background: var(--gradient); color: #fff; }
.footer-cta-btn.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--btn-hover-shadow); }
.footer-cta-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.footer-cta-btn.instagram:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,39,67,.3); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo-img { max-height: 40px; margin-bottom: 10px; }
.footer-logo { font-size: 22px; font-weight: 900; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-logo span { font-size: 26px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 16px; line-height: 1.7; }
.footer-section { }
.footer-title { font-size: 12px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); }
.footer-link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.55); padding: 5px 0; transition: all .2s; }
.footer-link:hover { color: var(--footer-link-hover); transform: translateX(3px); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: all .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-pay { display: flex; gap: 8px; align-items: center; font-size: 11px; color: rgba(255,255,255,.3); }
.footer-pay span { background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 600; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.toast.toast-success { background: linear-gradient(135deg, #10b981, #34d399); }

/* ===== ADD-TO-CART ANIMATION ===== */
.cart-fly-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px var(--cart-fly-shadow);
    opacity: 1;
    transition: none;
}
.cart-fly-item.fly {
    transition: all 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    transform: scale(0.3);
}
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.cart-bounce .cart-badge {
    animation: cartBounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56);
}
@keyframes cartPulseRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}
.cart-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: var(--primary);
    animation: cartPulseRing 0.5s ease-out forwards;
    pointer-events: none;
    z-index: -1;
}
@keyframes addedCheck {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(-45deg); opacity: 1; }
    100% { transform: scale(1) rotate(-45deg); opacity: 1; }
}
.btn-primary.added {
    background: linear-gradient(135deg, #10b981, #34d399);
    pointer-events: none;
}
.btn-primary.added::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 6px;
    border-left: 2.5px solid white;
    border-bottom: 2.5px solid white;
    transform: rotate(-45deg);
    animation: addedCheck 0.3s ease-out forwards;
    margin-left: 4px;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
}
.page-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.page-btn.active, .page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== SIZE FILTER BAR ===== */
.size-filter-bar { padding: 8px 16px 0; }
.size-filter-inner { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: white; border-radius: 10px; border: 1.5px solid var(--border); box-shadow: 0 2px 8px rgba(108,92,231,.04); justify-content: center; }
.size-filter-label { font-size: 11px; font-weight: 700; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.size-filter-pills { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex: 1; justify-content: center; }
.size-filter-pills::-webkit-scrollbar { display: none; }
.size-pill { flex-shrink: 0; padding: 5px 14px; border-radius: 16px; background: var(--pill-bg); border: 1.5px solid transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.size-pill:hover { background: var(--pill-hover-bg); border-color: var(--primary-light); }
.size-pill.active { background: var(--pill-active-bg); color: white; border-color: transparent; box-shadow: 0 3px 10px rgba(253,121,168,.2); }
.size-pill .size-count { font-size: 9px; opacity: .7; font-weight: 800; }

/* ===== ICONS ===== */
.icon { vertical-align: middle; flex-shrink: 0; }
.icon-flag-al, .icon-flag-en { stroke: none; }

/* ===== FILTER TITLE ===== */
.filter-title { padding: 20px 16px 0; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-title h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.clear-filter-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.clear-filter-btn:hover { background: var(--primary); color: #fff; }

/* ===== STATIC PAGES ===== */
.page-content-area { max-width: 800px; margin: 0 auto; padding: 24px 16px 48px; }
.page-body { font-size: 15px; line-height: 1.8; color: var(--text); }
.page-body h2, .page-body h3 { margin: 24px 0 12px; font-weight: 700; color: var(--text); }
.page-body h2 { font-size: 20px; }
.page-body h3 { font-size: 17px; }
.page-body p { margin: 0 0 16px; }
.page-body ul, .page-body ol { margin: 0 0 16px; padding-left: 24px; }
.page-body li { margin-bottom: 6px; }
.page-body strong { font-weight: 600; }
.page-body a { color: var(--primary); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hero h1 { font-size: 36px; }
}
@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .hero { padding: 60px 32px; }
    .hero h1 { font-size: 42px; }
    .pd-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 20px; }
    .pd-gallery { margin-bottom: 0; }
    .header-inner { height: 68px; }
    .cart-item-img { width: 100px; height: 120px; }
    .footer-inner { display: block; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-cta-links { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* ===== QUICK ADD MODAL ===== */
.qa-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.qa-overlay.active { display: flex; animation: qaFadeIn .2s ease; }
@keyframes qaFadeIn { from { opacity: 0; } to { opacity: 1; } }
.qa-modal {
    background: var(--card);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
    animation: qaSlideUp .3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes qaSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (min-width: 640px) {
    .qa-overlay { align-items: center; }
    .qa-modal { border-radius: var(--radius); }
}
.qa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.qa-header h3 {
    font-size: 17px;
    font-weight: 800;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qa-x {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: var(--transition);
}
.qa-x:hover { background: var(--error); color: white; }
.qa-section { margin-bottom: 16px; }
.qa-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.qa-options { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-add-btn { width: 100%; margin-top: 8px; }

/* ===== THEME: ELEGANCE (Fashion / Clothing) ===== */
body.theme-elegance .hero::before,
body.theme-elegance .hero::after { display: none; }
body.theme-elegance .hero { padding: 48px 16px; }
body.theme-elegance .hero h1 { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 24px; }
body.theme-elegance .hero p { font-weight: 400; letter-spacing: 0.5px; }
body.theme-elegance .btn-primary { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: 14px; border-radius: 8px; }
body.theme-elegance .btn-secondary { border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
body.theme-elegance .product-badge { border-radius: 4px; letter-spacing: 1px; }
body.theme-elegance .product-card { border-radius: 8px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
body.theme-elegance .product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
body.theme-elegance .cat-pill { border-radius: 6px; text-transform: uppercase; letter-spacing: 0.8px; font-size: 11px; }
body.theme-elegance .size-pill { border-radius: 6px; }
body.theme-elegance .footer-cta { letter-spacing: 0.5px; }
body.theme-elegance .footer-cta-btn { border-radius: 6px; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
body.theme-elegance .footer-title { letter-spacing: 2px; }
body.theme-elegance .search-input { border-radius: 8px; }
body.theme-elegance .form-input,
body.theme-elegance .form-textarea { border-radius: 8px; }
body.theme-elegance .cart-item { border-radius: 8px; }
body.theme-elegance .card { border-radius: 8px; }

/* ===== THEME: NATURA (Pharmacy / Health) ===== */
body.theme-natura .hero::before { border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%; background: rgba(255,255,255,0.06); }
body.theme-natura .hero::after { border-radius: 60% 40% 30% 70% / 40% 60% 70% 30%; background: rgba(255,255,255,0.04); }
body.theme-natura .hero h1 { font-weight: 800; }
body.theme-natura .product-card { border: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
body.theme-natura .product-card:hover { box-shadow: 0 4px 16px rgba(13,148,136,0.12); border-color: var(--primary-light); }
body.theme-natura .btn-primary { border-radius: 12px; }
body.theme-natura .btn-secondary { border-radius: 12px; }
body.theme-natura .product-badge { border-radius: 6px; }
body.theme-natura .cat-pill { border-radius: 10px; }
body.theme-natura .footer-cta-btn { border-radius: 20px; }
body.theme-natura .search-input { border-radius: 12px; }
body.theme-natura .form-input,
body.theme-natura .form-textarea { border-radius: 10px; }
body.theme-natura .size-pill { border-radius: 10px; }

/* ===== THEME: GLAMOUR (Cosmetics / Beauty) ===== */
body.theme-glamour .hero::before,
body.theme-glamour .hero::after { display: none; }
body.theme-glamour .hero { padding: 48px 16px; }
body.theme-glamour .hero h1 { font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 22px; }
body.theme-glamour .hero p { letter-spacing: 0.5px; font-weight: 400; }
body.theme-glamour .btn-primary { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: 14px; border-radius: 8px; }
body.theme-glamour .btn-secondary { border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
body.theme-glamour .product-card { border-radius: 8px; box-shadow: 0 2px 12px rgba(190,24,93,0.06); }
body.theme-glamour .product-card:hover { box-shadow: 0 8px 28px rgba(190,24,93,0.15); }
body.theme-glamour .product-badge { border-radius: 4px; letter-spacing: 1px; }
body.theme-glamour .cat-pill { border-radius: 6px; text-transform: uppercase; letter-spacing: 0.8px; font-size: 11px; }
body.theme-glamour .size-pill { border-radius: 6px; }
body.theme-glamour .footer-cta-btn { border-radius: 6px; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
body.theme-glamour .footer-title { letter-spacing: 2px; }
body.theme-glamour .search-input { border-radius: 8px; }
body.theme-glamour .form-input,
body.theme-glamour .form-textarea { border-radius: 8px; }
body.theme-glamour .cart-item { border-radius: 8px; }
body.theme-glamour .card { border-radius: 8px; }
body.theme-glamour .footer-social a { border-radius: 6px; }

/* Shipping Label Print */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}
