:root {
    --primary: #111;
    --primary-hover: #333;
    --pink-header: #f8c0d8;
    --link-color: #1773b0;
    --bg: #fafafa;
    --card-bg: #fff;
    --text: #2c2c2c;
    --text-muted: #666;
    --border: #e2e2e2;
    --border-light: #ececec;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 50px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body { 
    background: var(--bg); 
    color: var(--text); 
    padding-bottom: calc(90px + var(--safe-bottom)); 
    min-height: 100vh;
    animation: page-enter 0.32s ease-out both;
}

a { 
    color: var(--link-color); 
    text-decoration: none; 
}

a, button, input, select, textarea {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

@keyframes page-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Utilities */
.mt-lg { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
[hidden] { display: none !important; }

.section-title {
    font-size: 16px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: #1e293b;
}

/* Header */
header.e-mood-header {
    background: var(--pink-header);
    padding: 0.8rem 1rem;
    position: sticky; 
    top: 0; 
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.header-top, 
.header-left, 
.header-right, 
.desktop-nav, 
.search-capsule, 
.sub-nav, 
.catalog-toolbar, 
.view-switchers {
    display: flex;
    align-items: center;
}

.header-top, 
.catalog-toolbar, 
.summary-accordion-bar, 
.section-header, 
.modal-header, 
.product-footer {
    display: flex;
    justify-content: space-between;
}

.header-left, .header-right { gap: 1rem; }
.desktop-nav { display: none; gap: 1.8rem; }
.desktop-nav a { color: var(--primary); font-weight: 700; font-size: 0.95rem; }

.logo-container { display: inline-flex; align-items: center; }
.brand-logo { width: 104px; height: 42px; object-fit: contain; display: block; }

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    position: relative;
}

.search-capsule-wrapper { width: 100%; }

.search-capsule {
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.8rem 0.45rem 1.1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.search-capsule .search-icon { color: #555; font-size: 1rem; margin-right: 0.6rem; }
.search-capsule input { border: none; outline: none; background: transparent; width: 100%; font-size: 0.92rem; color: var(--primary); }

.capsule-lang-select {
    border: none; 
    background: transparent;
    font-weight: 700; 
    font-size: 0.85rem; 
    color: var(--primary);
    cursor: pointer; 
    outline: none; 
    padding-left: 0.4rem;
}

/* Layout */
.main-container { max-width: 1000px; margin: 0 auto; padding: 0.8rem 0.8rem 2rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sub Navigation & Transitions */
.sub-nav { justify-content: center; gap: 1.2rem; margin-bottom: 1rem; }
.sub-link {
    background: none; 
    border: none;
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #777;
    cursor: pointer; 
    padding: 0.4rem 0.6rem; 
    position: relative;
}
.sub-link.active { color: #000; }
.sub-link.active::after {
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    right: 0;
    height: 2px; 
    background: #000; 
    border-radius: 2px;
}

.subtab-pane {
    display: none;
}
.subtab-pane.active-pane {
    display: block;
    animation: subtab-enter 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.subtab-pane.is-leaving {
    display: block;
    pointer-events: none;
    animation: subtab-exit 0.16s ease both;
}

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

@keyframes subtab-exit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-5px); }
}

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 40px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
}
.home-hero h2 { font-size: 28px; margin-bottom: 8px; }
.home-hero p { color: #94a3b8; font-size: 14px; margin-bottom: 20px; }
.btn-hero-shop { max-width: 200px; margin: 0 auto; display: block; }

/* Category Grid & Cards */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.cat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cat-card i { font-size: 24px; color: #2563eb; margin-bottom: 8px; display: block; }
.cat-card span { font-size: 13px; font-weight: 600; color: #1e293b; }

/* Category Filter Chips */
.account-page .demo-form>.demo-change-number{background:none;color:#8c8c8c;font-size:13px;text-decoration:underline;padding:5px;justify-self:center;width:auto}
.account-page .demo-form>.demo-resend{background:white;color:#888;border:1px solid #ddd}
.account-page .demo-form input::placeholder{color:#9a9a9a;opacity:1}
.product-img-wrap,.product-image-link{position:relative}
.product-card .image-discount{position:absolute;inset-inline-start:0;bottom:0;z-index:2;border-radius:0;padding:5px 9px;font-size:12px;line-height:1}
.products-grid.view-grid .product-price{min-height:42px;display:flex;align-items:center;align-content:center;flex-wrap:wrap;gap:5px}
.account-page .demo-form>.profile-save{width:180px;justify-self:start}
.account-page .demo-form>.profile-save:disabled{background:#e5e5e5;color:#999;cursor:default}
.account-page .demo-form>.profile-logout{display:flex;align-items:center;gap:10px;width:100%;margin-top:32px;padding:30px 12px 10px;border-top:1px solid #e3e3e3;border-radius:0;background:none;color:#333;text-align:start;font-size:14px}
.profile-logout svg{flex:none}
.account-page{background:#fff;min-height:100vh}.account-page-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:#f4bfd7}.account-page-header nav{display:flex;align-items:center;gap:24px}.account-page-header a{color:#171717;text-decoration:none}.account-page-header select{border:1px solid #d6a4bb;border-radius:8px;background:white;padding:8px}
.account-page .demo-account{position:static;margin:60px auto;width:min(480px,calc(100% - 40px));max-height:none;overflow:visible;padding:0;border-radius:0;box-shadow:none}.account-page .demo-account.is-signed-in{width:min(1000px,calc(100% - 40px))}.account-page .is-signed-in h2{text-align:start}.account-page .is-signed-in .demo-form{grid-template-columns:220px minmax(0,480px);column-gap:44px}.account-page .is-signed-in .demo-tabs{grid-column:1;grid-row:1 / span 8;flex-direction:column;align-self:start}.account-page .is-signed-in .demo-tabs button{flex:none;text-align:start}.account-page .is-signed-in .demo-form>label,.account-page .is-signed-in .demo-form>button,.account-page .is-signed-in .demo-form>p{grid-column:2}.account-page .demo-notice{margin-bottom:24px}
@media(max-width:600px){.account-page .demo-account{margin:30px auto}.account-page .is-signed-in .demo-form{grid-template-columns:1fr}.account-page .is-signed-in .demo-tabs{grid-column:1;grid-row:auto;flex-direction:row}.account-page .is-signed-in .demo-form>label,.account-page .is-signed-in .demo-form>button,.account-page .is-signed-in .demo-form>p{grid-column:1}}
.header-top>.header-right{order:1}.header-top>.desktop-nav{order:2}.header-top>.header-left{order:3}
.demo-account{width:min(640px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:0;border-radius:18px;padding:40px;color:#171717;background:white;box-shadow:0 20px 80px #0003}
.demo-account::backdrop{background:#0007}.demo-account h2{text-align:center;font-size:28px;margin:18px 0 28px}.demo-notice{text-align:center;font-size:12px;color:#805138;background:#fff4df;padding:10px;border-radius:8px}
.demo-close{position:absolute;inset-inline-end:12px;top:8px;border:0;background:none;font-size:28px;cursor:pointer}.demo-form{display:grid;gap:18px}.demo-form label{display:grid;gap:8px;font-size:13px;color:#666}.demo-form input{width:100%;min-width:0;padding:14px;border:1px solid #ccc;border-radius:9px;font:inherit;color:#171717;background:white}.demo-form input:focus{outline:2px solid #8c4569;outline-offset:1px}.demo-form>button{padding:14px;border:0;border-radius:10px;background:#8c4569;color:white;font:inherit;cursor:pointer}.demo-form>button:disabled{background:#e5e5e5;color:#888;cursor:default}.demo-code{display:flex;justify-content:center;gap:10px}.demo-code input{width:60px;height:64px;text-align:center;font-size:24px}.demo-error{color:#c42535;font-size:13px;margin:0}.demo-tabs{display:flex;gap:12px}.demo-tabs button{flex:1;padding:12px;border:1px solid #ddd;border-radius:9px;background:#fafafa;font:inherit;cursor:pointer}.demo-tabs button.active{border-color:#8c4569;color:#8c4569}.demo-account input[readonly]{background:#f5f5f5}
@media(max-width:600px){.demo-account{padding:32px 20px}.demo-account h2{font-size:24px}}
.sale-price{color:#d92737}.old-price{font-size:.8em;color:#888;font-weight:400;white-space:nowrap}.discount-label{display:inline-block;background:#e52235;color:white;font-size:11px;font-weight:700;border-radius:3px;padding:3px 5px}.product-price:has(.sale-price){display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.categories-grid.featured-categories{display:block}
.featured-category-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.featured-category-track::-webkit-scrollbar{display:none}
.featured-category-card{flex:0 0 calc((100% - (var(--category-columns) - 1)*12px)/var(--category-columns));min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px;font:inherit}
.featured-category-card img{width:100%;height:220px;object-fit:contain;border-radius:8px;background:#f5f5f5}
.featured-category-card span{font-size:16px}.featured-category-card small{font-size:12px;color:#777}
.categories-grid.has-category-arrows{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:8px;align-items:center}
.category-scroll-arrow{width:32px;height:40px;border:1px solid #ddd;border-radius:10px;background:white;font-size:26px;cursor:pointer}.category-scroll-arrow:disabled{opacity:.3;cursor:default}
@media(max-width:600px){.has-category-arrows .featured-category-track{--category-columns:2!important}.featured-category-card img{height:150px}.featured-category-card span{font-size:13px}}
.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip-btn.active, .chip-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Hot Offers Banner */
.hot-banner {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hot-banner h3 { font-size: 18px; font-weight: 700; }
.hot-banner p { font-size: 12px; opacity: 0.9; }
.hot-banner-icon { font-size: 32px; opacity: 0.8; }

/* Catalog Toolbar */
.catalog-toolbar { margin-bottom: 1rem; }
.view-switchers { gap: 0.4rem; }

.view-btn {
    background: #fff; 
    border: 1px solid var(--border);
    width: 36px; 
    height: 36px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #666;
}
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.filter-btn {
    background: #fff; 
    border: 1px solid var(--border);
    padding: 0.45rem 0.9rem; 
    border-radius: var(--radius-pill);
    font-weight: 600; 
    font-size: 0.85rem; 
    cursor: pointer; 
    outline: none;
}

/* Products Layout */
.products-grid.view-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.products-grid.view-list { display: flex; flex-direction: column; gap: 0.85rem; }

/* Interactive Product Card */
.product-card {
    background: var(--card-bg); 
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light); 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.catalog-layout{display:flex;align-items:flex-start;gap:24px}.catalog-sidebar{flex:0 0 180px;display:flex;flex-direction:column;gap:5px}.catalog-sidebar[hidden],.filter-dropdown[hidden]{display:none}.catalog-sidebar h3{font-size:15px;margin:0 0 12px}.subcategory-link{border:0;background:transparent;text-align:start;padding:10px 12px;border-radius:9px;color:#666;cursor:pointer}.subcategory-link.active{background:#f0e5ec;color:#743753;font-weight:700}.catalog-results{flex:1;min-width:0}.catalog-price-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.catalog-price-filter input{width:100px;min-width:0;border:1px solid #dfd0dc;border-radius:9px;padding:10px;font:inherit}.catalog-price-filter span{font-size:13px;color:#743753}@media(max-width:700px){.catalog-layout{flex-direction:column;gap:15px}.catalog-sidebar{flex-basis:auto;width:100%;flex-direction:row;flex-wrap:wrap;gap:4px}.catalog-sidebar h3{width:100%;margin-bottom:2px}.catalog-results{width:100%}.subcategory-link{padding:8px 10px}}
.product-card.is-out-of-stock { background:#dfe2e5;border-color:#c4c9ce;box-shadow:0 1px 4px rgba(0,0,0,.025); }
.product-card.is-out-of-stock .product-info { background:#dfe2e5; }
.product-card.is-out-of-stock .product-image-link,.product-card.is-out-of-stock .product-img-wrap { background:#cdd2d7; }
.product-card.is-out-of-stock img { filter:grayscale(1);opacity:.6; }
.product-card.is-out-of-stock .product-price { color:#555d65; }
.product-card.is-out-of-stock .btn-add { background:#c8cdd2;color:#555d65;cursor:not-allowed; }

.product-card.card-enter {
    animation: card-reveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--card-index, 0) * 45ms);
}

@keyframes card-reveal {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.products-grid.view-list .product-card { flex-direction: row; height: 140px; }

.product-img-wrap {
    width: 100%; 
    aspect-ratio: 1 / 1; 
    position: relative;
    background: #f4f4f4; 
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.product-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.25s linear infinite;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

.product-img-wrap.image-ready::after {
    opacity: 0;
}

.products-grid.view-list .product-img-wrap { width: 140px; height: 100%; aspect-ratio: auto; }

.product-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover .product-img.is-loaded {
    transform: scale(1.03);
}

/* Product-card skeletons shown while catalog data is loading */
.product-skeleton {
    pointer-events: none;
    cursor: default;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.products-grid.view-list .skeleton-image {
    width: 140px;
    height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.skeleton-info {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #eceff1 25%, #f8f9fa 50%, #eceff1 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.25s linear infinite;
}

.skeleton-line {
    height: 10px;
    border-radius: 999px;
}

.skeleton-line-title { width: 76%; height: 14px; }
.skeleton-line-short { width: 54%; }
.skeleton-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 12px; }
.skeleton-price { width: 58px; height: 16px; border-radius: 999px; }
.skeleton-button { width: 86px; height: 32px; border-radius: var(--radius-sm); }

@keyframes skeleton-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Category Badge */
.category-badge {
    position: absolute; 
    top: 10px; 
    left: 10px;
    background-color: #000;
    color: #fff; 
    font-size: 10px; 
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase; 
    padding: 4px 8px; 
    border-radius: 4px;
    z-index: 2; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.product-info { padding: 0.85rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }

.product-title, .product-desc {
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}
.product-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--primary); line-height: 1.25; }
.product-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.6rem; line-height: 1.3; }
.product-rating { display: flex; align-items: center; gap: 5px; min-height: 18px; margin-bottom: 0.65rem; color: #b7791f; font-size: 0.76rem; font-weight: 700; }
.product-rating .no-rating { color: var(--text-muted); font-weight: 500; }

.product-footer { margin-top: auto; gap: 8px; align-items: center; min-width: 0; }
.product-price { font-size: 0.95rem; font-weight: 800; color: #000; white-space: nowrap; }

/* Keep price and CTA inside narrow grid cards on every screen size. */
.products-grid.view-grid .product-footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.products-grid.view-grid .product-price {
    align-self: flex-start;
}

.products-grid.view-grid .btn-add {
    width: 100%;
    max-width: 100%;
}

.products-grid.view-list .product-info {
    min-width: 0;
}

.products-grid.view-list .product-footer {
    flex-wrap: wrap;
}

.products-grid.view-list .btn-add {
    flex: 1 1 110px;
    max-width: 100%;
}

/* Styled Add To Cart Button */
.btn-add {
    background: var(--primary); 
    color: #fff; 
    border: none;
    padding: 0.55rem 0.85rem; 
    border-radius: var(--radius-sm);
    font-weight: 700; 
    font-size: 0.75rem; 
    letter-spacing: 0.5px;
    cursor: pointer; 
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    min-height: 38px;
    min-width: 0;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-add:hover {
    background: var(--primary-hover);
}

.btn-add:active {
    transform: scale(0.96);
}

.btn-add.is-added,
.btn-add.is-added:hover,
.btn-action-cart.is-added,
.btn-action-cart.is-added:hover {
    background: #16803b;
}

.btn-add:disabled,
.btn-action-cart:disabled {
    cursor: default;
}

/* Badges */
.badge {
    position: absolute; 
    top: -4px; 
    right: -6px;
    background: #ef4444; 
    color: #fff;
    font-size: 0.65rem; 
    padding: 2px 6px; 
    border-radius: 10px; 
    font-weight: bold;
}

.badge.is-bumping {
    animation: cart-bump 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    45% { transform: scale(1.38) rotate(7deg); }
    100% { transform: scale(1); }
}

.cart-toast {
    position: fixed;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 3500;
    max-width: min(88vw, 420px);
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    background: rgba(18, 24, 21, 0.94);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* Modal */
.contact-modal-overlay {
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px); 
    z-index: 2000; 
    display: flex;
    justify-content: center; 
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.contact-modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.contact-modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: 16px 16px 0 0;
    padding: 1.25rem;
    transform: translateY(18px);
    transition: transform 0.25s ease;
}
.contact-modal-overlay.active .contact-modal-content { transform: translateY(0); }

.modal-close { background: var(--bg); border: none; font-size: 1.2rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.contact-card-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem; }
.contact-buttons { display: flex; gap: 0.5rem; }

.btn-social {
    flex: 1; 
    padding: 0.5rem; 
    font-size: 0.88rem; 
    border-radius: 6px;
    text-align: center; 
    font-weight: 600; 
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    color: #fff;
}
.btn-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-wa { background: #25D366; }

/* Responsive Media Queries */
@media (min-width: 650px) {
    .products-grid.view-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .products-grid.view-grid { grid-template-columns: repeat(4, 1fr); }
    body { padding-bottom: 0 !important; }
    .menu-btn { display: none !important; }
    .desktop-nav { display: flex !important; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-loader { display: none; }
.customer-auth {max-width:440px;margin:24px auto}
.customer-error {color:#b42342;min-height:20px;font-size:14px}
.customer-password {position:relative}
.demo-form .customer-password input {padding-inline-end:48px}
.demo-form .customer-password-eye {position:absolute;inset-inline-end:8px;bottom:8px;width:32px;height:32px;padding:0;background:transparent;color:#655963;border:0}
.demo-form .customer-text-button {background:transparent;color:#8c4569;font-size:14px;border:0}
.customer-account-layout {display:grid;grid-template-columns:220px minmax(0,1fr);gap:44px;align-items:start;margin-top:28px}
.customer-account-layout .demo-tabs {display:flex;flex-direction:column;margin:0;gap:10px}
.customer-account-content .demo-form {margin:0;max-width:480px}
.account-page .is-signed-in .customer-account-content .demo-form {grid-template-columns:1fr}
.account-page .is-signed-in .customer-account-content .demo-form>* {grid-column:1}
.customer-orders {display:grid;gap:12px}.customer-order {border:1px solid #eadfe5;border-radius:16px;background:#fff;overflow:hidden}
.customer-order summary {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;cursor:pointer}
.customer-order summary span {display:grid;gap:7px}.customer-order small {color:#83777f;font-size:12px}.customer-order-status {color:#8c4569;font-size:14px}
.customer-order-status[data-state=delivered] {color:#247549}.customer-order-status[data-state=cancelled] {color:#777}
.customer-order-lines {padding:0 22px 18px;border-top:1px solid #eee;font-size:14px;color:#645761}.customer-orders-notice {color:#80717a}
@media(max-width:680px){.customer-account-layout{grid-template-columns:1fr;gap:24px}.customer-account-layout .demo-tabs{flex-direction:row}.customer-order summary{padding:16px;font-size:13px}}
.js .app-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #fff8fb;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    animation: loader-failsafe 0.3s ease 7s forwards;
}
.js .app-loader.loaded { opacity: 0; visibility: hidden; }
.app-loader img { width: min(220px, 55vw); height: auto; }
.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(132, 81, 43, 0.18);
    border-top-color: #a66d40;
    border-radius: 50%;
    animation: loader-spin 0.75s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-failsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}
