/* Zerlin's Store: mobile-first styles. Brand colours are set as CSS variables from the Core settings. */
:root {
    --zs-bg: #FFF9F2;
    --zs-pink: #F6DCE5;
    --zs-lavender: #E8E2F5;
    --zs-sky: #DCEFFA;
    --zs-text: #33323A;
    --zs-muted: #777777;
    --zs-white: #FFFFFF;
    --zs-radius: 16px;
    --zs-radius-sm: 10px;
    --zs-shadow: 0 1px 2px rgba(51, 50, 58, .06), 0 4px 14px rgba(51, 50, 58, .05);
    --zs-accent: #33323A;
    --zs-accent-text: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.zs-body {
    margin: 0;
    background: var(--zs-bg);
    color: var(--zs-text);
    font-family: "Inter", "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.zs-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.zs-btn, .button.zs-btn, button.zs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--zs-accent); color: var(--zs-accent-text);
    font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
    transition: transform .15s ease, opacity .15s ease;
}
.zs-btn:hover { opacity: .92; transform: translateY(-1px); text-decoration: none; }
.zs-btn-outline { background: transparent; color: var(--zs-accent); box-shadow: inset 0 0 0 1.5px var(--zs-accent); }
.zs-btn-small { padding: 7px 14px; font-size: 13px; }
.zs-btn-buy-now { background: var(--zs-pink); color: var(--zs-text); margin-left: 8px; }

/* Announcement */
.zs-announce { background: var(--zs-lavender); text-align: center; font-size: 14px; padding: 8px 12px; }
.zs-announce p { margin: 0; }

/* Header */
.zs-header { background: var(--zs-white); border-bottom: 1px solid rgba(51,50,58,.08); position: sticky; top: 0; z-index: 50; }
.zs-header-inner { display: flex; align-items: center; gap: 14px; min-height: 66px; flex-wrap: wrap; }
.zs-logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 20px; }
.zs-logo-img, .custom-logo { max-height: 44px; width: auto; }
.zs-menu-toggle { display: inline-flex; background: none; border: 0; padding: 6px; cursor: pointer; order: -1; }
.zs-burger, .zs-burger::before, .zs-burger::after {
    display: block; width: 22px; height: 2px; background: var(--zs-text); border-radius: 2px; position: relative;
}
.zs-burger::before, .zs-burger::after { content: ""; position: absolute; left: 0; }
.zs-burger::before { top: -7px; }
.zs-burger::after { top: 7px; }
.zs-nav { display: none; width: 100%; }
.zs-nav.is-open { display: block; }
.zs-nav-list, .zs-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.zs-nav-list a { display: block; padding: 8px 0; font-weight: 500; }
.zs-header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.zs-search { display: flex; align-items: center; background: var(--zs-bg); border-radius: 999px; padding: 4px 4px 4px 14px; flex: 1 1 180px; max-width: 320px; }
.zs-search input { border: 0; background: transparent; flex: 1; min-width: 0; font: inherit; padding: 6px 0; outline: none; }
.zs-search-btn { background: none; border: 0; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.zs-tool { font-size: 14px; font-weight: 500; white-space: nowrap; }
.zs-cart { background: var(--zs-pink); padding: 8px 14px; border-radius: 999px; }
.zs-cart-count { display: inline-block; min-width: 20px; margin-left: 4px; background: var(--zs-accent); color: #fff; border-radius: 999px; font-size: 12px; padding: 0 6px; }
.zs-lang-switch { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; font-size: 13px; }

@media (min-width: 900px) {
    .zs-menu-toggle { display: none; }
    .zs-nav { display: block; width: auto; }
    .zs-nav-list { flex-direction: row; gap: 22px; }
    .zs-header-tools { width: auto; margin-left: auto; }
}

/* Hero */
.zs-hero { background: var(--zs-lavender) center/cover no-repeat; padding: 56px 0; }
.zs-hero-inner { display: flex; }
.zs-hero-copy { background: rgba(255,255,255,.88); border-radius: var(--zs-radius); padding: 28px; max-width: 520px; }
.zs-hero h1 { font-size: clamp(28px, 4.5vw, 44px); }
.zs-hero p { font-size: 17px; color: var(--zs-muted); }

/* Sections */
.zs-section { padding: 44px 0; }
.zs-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.zs-section-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.zs-section-more { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Categories */
.zs-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zs-cat-tile a { display: block; text-align: center; }
.zs-cat-media { display: block; background: var(--zs-pink); border-radius: var(--zs-radius); aspect-ratio: 1 / 1; overflow: hidden; }
.zs-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.zs-cat-tile a:hover .zs-cat-media img { transform: scale(1.04); }
.zs-cat-name { display: block; margin-top: 8px; font-weight: 600; font-size: 15px; }
@media (min-width: 900px) { .zs-cat-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }

/* Products */
.zs-product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.zs-product-card { background: var(--zs-white); border-radius: var(--zs-radius); box-shadow: var(--zs-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.zs-product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(51,50,58,.10); }
.zs-product-thumb { position: relative; display: block; background: var(--zs-bg); aspect-ratio: 1 / 1; overflow: hidden; }
.zs-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zs-badge-sale { position: absolute; top: 10px; left: 10px; background: var(--zs-pink); color: var(--zs-text); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.zs-product-info { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.zs-product-name { font-size: 15px; margin: 0; font-weight: 600; }
.zs-product-name a:hover { text-decoration: underline; }
.zs-product-price { font-size: 15px; }
.zs-product-price del { color: var(--zs-muted); margin-right: 4px; }
.zs-product-price ins { text-decoration: none; font-weight: 700; }
.zs-stock { font-size: 13px; }
.zs-stock-in { color: #2E7D4F; }
.zs-stock-low { color: #B26A00; }
.zs-stock-out { color: #A33A3A; }
.zs-product-actions { margin-top: auto; padding-top: 8px; }
.zs-product-actions .zs-btn { width: 100%; padding: 9px 12px; font-size: 14px; }
@media (min-width: 700px) { .zs-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .zs-product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Banners */
.zs-banner-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.zs-banner { position: relative; min-height: 180px; border-radius: var(--zs-radius); background: var(--zs-sky) center/cover no-repeat; display: flex; align-items: flex-end; overflow: hidden; }
.zs-banner-copy { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: rgba(255,255,255,.85); margin: 12px; border-radius: var(--zs-radius-sm); }
@media (min-width: 800px) { .zs-banner-grid { grid-template-columns: repeat(3, 1fr); } }

/* Reviews */
.zs-review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.zs-review { background: var(--zs-white); border-radius: var(--zs-radius); box-shadow: var(--zs-shadow); padding: 18px; }
.zs-stars { color: #C98A00; letter-spacing: 2px; }
.zs-review-text { margin: 8px 0; }
.zs-review-meta { font-size: 14px; color: var(--zs-muted); margin: 0; }
@media (min-width: 800px) { .zs-review-grid { grid-template-columns: repeat(3, 1fr); } }

/* Newsletter */
.zs-section-newsletter { background: var(--zs-pink); }
.zs-newsletter { text-align: center; max-width: 560px; }
.zs-newsletter-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.zs-newsletter-form input { flex: 1 1 220px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(51,50,58,.15); font: inherit; }

/* Empty states */
.zs-empty { background: var(--zs-white); border: 1px dashed rgba(51,50,58,.2); border-radius: var(--zs-radius); padding: 28px; text-align: center; color: var(--zs-muted); }
.zs-empty-title { color: var(--zs-text); font-size: 18px; }

/* Footer */
.zs-footer { background: var(--zs-text); color: #F3F1F5; padding-top: 40px; margin-top: 40px; }
.zs-footer a { color: #F3F1F5; }
.zs-footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-bottom: 28px; }
.zs-footer h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--zs-pink); }
.zs-footer-brand { font-size: 20px; font-weight: 700; }
.zs-footer-links li { padding: 3px 0; font-size: 14px; }
.zs-social { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.zs-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13px; color: #CFCBD4; }
.zs-footer-bottom p { margin: 0; }
@media (min-width: 900px) { .zs-footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* Content pages, search, 404 */
.zs-content { padding: 36px 0 20px; }
.zs-page-title { font-size: clamp(26px, 4vw, 36px); }
.zs-entry-body { max-width: 720px; }
.zs-post-list { display: grid; gap: 18px; }
.zs-post { background: var(--zs-white); border-radius: var(--zs-radius); box-shadow: var(--zs-shadow); padding: 20px; }
.zs-entry-meta { font-size: 13px; color: var(--zs-muted); }
.zs-404 { text-align: center; padding: 60px 0; }
.zs-404 .zs-search { margin: 20px auto; max-width: 420px; }

/* WooCommerce shop + product pages */
.zs-shop-grid { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 24px 0 8px; }
.zs-shop-sidebar .widget { background: var(--zs-white); border-radius: var(--zs-radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--zs-shadow); }
.zs-shop-sidebar .widget-title { font-size: 15px; margin-top: 0; }
.zs-cat-intro { background: var(--zs-white); border-radius: var(--zs-radius); padding: 20px; margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.zs-cat-image img { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--zs-radius-sm); }
.woocommerce-result-count, .woocommerce-ordering { font-size: 14px; }
.woocommerce-ordering select { border-radius: 999px; padding: 6px 12px; font: inherit; border: 1px solid rgba(51,50,58,.2); background: var(--zs-white); }
.woocommerce-pagination ul.page-numbers { display: flex; gap: 6px; list-style: none; padding: 0; justify-content: center; flex-wrap: wrap; }
.woocommerce-pagination .page-numbers li a, .woocommerce-pagination .page-numbers li span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--zs-white); }
.woocommerce-pagination .page-numbers .current { background: var(--zs-accent); color: #fff; }
@media (min-width: 900px) { .zs-shop-grid { grid-template-columns: 240px 1fr; } }

.zs-product-page div.product { display: grid; gap: 28px; grid-template-columns: 1fr; }
.zs-product-page div.product .summary { display: flex; flex-direction: column; gap: 10px; }
.zs-product-page .product_title { font-size: clamp(24px, 3.5vw, 32px); margin: 0; }
.zs-product-page .price { font-size: 22px; font-weight: 700; }
.zs-product-page .variations td { padding: 6px 0; }
.zs-product-page .variations select { border-radius: 999px; padding: 8px 14px; font: inherit; border: 1px solid rgba(51,50,58,.2); }
.zs-product-page form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zs-product-page .quantity .qty { width: 80px; padding: 9px; border-radius: 999px; border: 1px solid rgba(51,50,58,.2); text-align: center; font: inherit; }
.zs-product-page .single_add_to_cart_button { background: var(--zs-accent); color: #fff; border-radius: 999px; padding: 12px 22px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.zs-product-page .woocommerce-tabs { margin-top: 24px; }
.zs-product-page .related.products ul.products, .zs-product-page .upsells ul.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; }
@media (min-width: 900px) { .zs-product-page div.product { grid-template-columns: 1fr 1fr; } }

.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--zs-white); border-left: 4px solid var(--zs-pink); padding: 14px 18px; border-radius: var(--zs-radius-sm); margin: 16px 0; list-style: none; }
.zs-wc-page, .zs-shop-layout { padding-top: 24px; padding-bottom: 24px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
    width: 100%; padding: 11px 14px; border-radius: var(--zs-radius-sm); border: 1px solid rgba(51,50,58,.18); font: inherit; background: var(--zs-white);
}
.woocommerce table.shop_table { background: var(--zs-white); border-radius: var(--zs-radius); overflow: hidden; border-collapse: separate; }
.woocommerce #place_order, .woocommerce a.checkout-button, .woocommerce button.button.alt { background: var(--zs-accent); color: #fff; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600; border: 0; }
.zs-manual-payment { background: var(--zs-bg); padding: 14px; border-radius: var(--zs-radius-sm); }
.zs-send-number { font-weight: 700; letter-spacing: .04em; }

/* Ensure WooCommerce's default payment box doesn't hide our fields */
.woocommerce-checkout .payment_box { background: var(--zs-bg) !important; }

/* Desktop refinements */
@media (min-width: 700px) {
    .zs-hero { padding: 80px 0; }
    .zs-section { padding: 56px 0; }
}
