/*
 * EmbroCraft storefront design system (Front End PDF, pages F1-F14).
 * Loaded on every site page through the site panel's local assets in config/pxcommands.php.
 *
 * Contents: 1 tokens and base, 2 header, 3 mobile menu, 4 footer, 5 buttons, 6 section headings,
 * 7 breadcrumb, 8 trust strip, 9 product card, 10 review card, 11 process steps, 12 helpers.
 */

/* ---------- 1. Tokens and base ---------- */
:root {
    --ec-black: #060708;
    --ec-ink: #1a1a1a;
    --ec-muted: #6b6b6b;
    --ec-gold: #c98a35;
    --ec-gold-dark: #a97228;
    --ec-gold-bright: #e0962f;
    --ec-cream: #f5f2ed;
    --ec-cream-soft: #faf8f5;
    --ec-green: #3d6c36;
    --ec-green-soft: #eef6eb;
    --ec-line: #e9e6e1;
    --ec-radius: 8px;
    --ec-font: "Inter", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ec-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --ec-script: "Allura", cursive;
}

body { background: #ffffff; color: var(--ec-ink); font-family: var(--ec-font); font-size: 14px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ec-gold); }
.ec-serif { font-family: var(--ec-serif); }
.ec-script { font-family: var(--ec-script); font-weight: 400; }

/* ---------- 2. Header (light on inner pages, dark on home) ---------- */
.ec-site-header { background: #ffffff; position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s; }
.ec-site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, .1); }
.ec-topbar { background: var(--ec-black); color: #ffffff; font-size: 12.5px; padding: 7px 0; }
.ec-topbar-inner { align-items: center; display: flex; justify-content: space-between; }
.ec-topbar-item { align-items: center; display: flex; gap: 8px; }
.ec-topbar-item i { color: var(--ec-gold-bright); font-size: 15px; }

.ec-header-main { border-bottom: 1px solid var(--ec-line); }
.ec-header-inner { align-items: center; display: flex; gap: 20px; justify-content: space-between; min-height: 72px; }
.ec-logo { display: inline-flex; flex-direction: column; flex: none; line-height: 1; }
.ec-logo-name { color: var(--ec-ink); font-family: var(--ec-serif); font-size: 27px; font-weight: 500; letter-spacing: -.01em; }
.ec-logo-name em { color: var(--ec-gold-bright); font-style: normal; }
.ec-logo-img { display: block; max-height: 42px; max-width: 200px; object-fit: contain; }
.ec-logo-tag { color: var(--ec-ink); font-size: 11.5px; margin-top: 4px; }

.ec-nav { align-items: center; display: flex; flex: 1; gap: 28px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.ec-nav-link { color: var(--ec-ink); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ec-nav-link.active, .ec-nav-link:hover { color: var(--ec-gold-bright); }
.ec-nav .dropdown-menu { border: 1px solid var(--ec-line); border-radius: var(--ec-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); font-size: 13px; margin-top: 12px; }
.ec-nav .dropdown-item:hover, .ec-nav .dropdown-item:focus { background: var(--ec-cream); color: var(--ec-gold-dark); }

.ec-header-actions { align-items: center; display: flex; flex: none; gap: 16px; }
.ec-icon-btn { background: transparent; border: 0; color: var(--ec-ink); font-size: 21px; line-height: 1; padding: 0; position: relative; }
.ec-icon-btn .bi-search { font-size: 18px; }
.ec-cart-count { align-items: center; background: var(--ec-gold-bright); border-radius: 50%; color: #ffffff; display: flex; font-size: 10px; font-weight: 600; height: 16px; justify-content: center; position: absolute; right: -7px; top: -6px; width: 16px; }

.ec-site-header--dark, .ec-site-header--dark .ec-header-main { background: var(--ec-black); border-color: rgba(255, 255, 255, .08); }
.ec-site-header--dark .ec-logo-name, .ec-site-header--dark .ec-logo-tag, .ec-site-header--dark .ec-nav-link, .ec-site-header--dark .ec-icon-btn { color: #ffffff; }
.ec-site-header--dark .ec-nav-link:hover { color: var(--ec-gold-bright); }
.ec-site-header--dark .ec-cart-count { color: var(--ec-black); }

/* ---------- 3. Mobile menu ---------- */
.ec-mobile-nav { background: var(--ec-black); color: #ffffff; max-width: 310px; }
.ec-mobile-nav .ec-logo-name, .ec-mobile-nav .ec-logo-tag { color: #ffffff; }
.ec-mobile-nav .btn-close { filter: invert(1); }
.ec-mobile-link { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #ffffff; display: flex; font-size: 14px; font-weight: 500; justify-content: space-between; padding: 13px 0; width: 100%; }
button.ec-mobile-link { background: transparent; border-width: 0 0 1px; text-align: left; }
.ec-mobile-sub { padding: 6px 0 6px 12px; }
.ec-mobile-sub a { color: rgba(255, 255, 255, .8); display: block; font-size: 13px; padding: 7px 0; }

/* ---------- 4. Footer ---------- */
.ec-footer { background: var(--ec-black); color: #ffffff; font-size: 12.5px; padding: 34px 0 0; }
.ec-footer .ec-logo-name, .ec-footer .ec-logo-tag { color: #ffffff; }
.ec-footer-desc { color: rgba(255, 255, 255, .85); line-height: 1.85; margin: 14px 0; max-width: 240px; }
.ec-social { display: flex; gap: 10px; }
.ec-social a { align-items: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; color: #ffffff; display: flex; font-size: 14px; height: 30px; justify-content: center; width: 30px; }
.ec-social a:hover { border-color: var(--ec-gold-bright); color: var(--ec-gold-bright); }
.ec-footer-heading { background: transparent; border: 0; color: #ffffff; display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; padding: 0; text-align: left; text-transform: uppercase; width: 100%; }
.ec-footer-heading i { display: none; }
.ec-footer-links { list-style: none; margin: 0; padding: 0; }
.ec-footer-links li { margin-bottom: 8px; }
.ec-footer-links a { color: rgba(255, 255, 255, .85); }
.ec-footer-links a:hover { color: var(--ec-gold-bright); }
.ec-contact-item { align-items: center; color: rgba(255, 255, 255, .85); display: flex; gap: 10px; margin-bottom: 9px; }
.ec-contact-item i { font-size: 15px; }
.ec-newsletter-text { color: rgba(255, 255, 255, .85); line-height: 1.8; margin-bottom: 10px; max-width: 200px; }
.ec-newsletter { border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; display: flex; max-width: 240px; overflow: hidden; }
.ec-newsletter input { background: transparent; border: 0; color: #ffffff; flex: 1; font-size: 12.5px; min-width: 0; outline: 0; padding: 9px 12px; }
.ec-newsletter input::placeholder { color: rgba(255, 255, 255, .55); }
.ec-newsletter button { background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); color: #ffffff; padding: 0 12px; }
.ec-newsletter button:hover { color: var(--ec-gold-bright); }
.ec-footer-bottom { align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 22px; padding: 14px 0; }
.ec-pay-list { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; }
.ec-pay { font-size: 13px; font-weight: 700; }
.ec-pay--ssl { background: #3d5a99; border-radius: 3px; font-size: 11px; padding: 2px 7px; }
.ec-pay--bkash { color: #e2136e; }
.ec-pay--nagad { color: #ed1c24; }
.ec-pay--visa { color: #3a6ec9; font-style: italic; font-weight: 800; }
.ec-pay--mastercard { color: #f79e1b; }
.ec-back-top { align-items: center; background: var(--ec-gold); border: 0; border-radius: 6px; bottom: 18px; color: #ffffff; display: none; font-size: 18px; height: 38px; justify-content: center; position: fixed; right: 18px; width: 38px; z-index: 1020; }
.ec-back-top.is-visible { display: flex; }

/* ---------- 5. Buttons ---------- */
.ec-btn { align-items: center; border: 1px solid transparent; border-radius: 4px; cursor: pointer; display: inline-flex; font-size: 12.5px; font-weight: 600; gap: 8px; justify-content: center; letter-spacing: .04em; padding: 11px 22px; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s; }
.ec-btn:disabled { cursor: not-allowed; opacity: .55; }
.ec-btn--gold { background: var(--ec-gold); color: #ffffff; }
.ec-btn--gold:hover { background: var(--ec-gold-dark); color: #ffffff; }
.ec-btn--black { background: var(--ec-black); color: #ffffff; }
.ec-btn--black:hover { background: #2a2a2a; color: #ffffff; }
.ec-btn--outline { background: #ffffff; border-color: #bdb8af; color: var(--ec-ink); }
.ec-btn--outline:hover { border-color: var(--ec-gold); color: var(--ec-gold-dark); }
.ec-btn--outline-gold { background: transparent; border-color: var(--ec-gold); color: var(--ec-gold-dark); }
.ec-btn--outline-gold:hover { background: var(--ec-gold); color: #ffffff; }
.ec-btn--outline-light { background: transparent; border-color: #ffffff; color: #ffffff; }
.ec-btn--outline-light:hover { background: #ffffff; color: var(--ec-black); }
.ec-btn--block { width: 100%; }

/* ---------- 6. Section headings ---------- */
.ec-heading { margin-bottom: 22px; text-align: center; }
.ec-heading-title { align-items: center; color: var(--ec-ink); display: flex; font-size: 19px; font-weight: 700; gap: 18px; justify-content: center; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
.ec-heading-title::before, .ec-heading-title::after { background: var(--ec-gold); content: ""; flex: none; height: 1.5px; width: 30px; }
.ec-heading-sub { color: var(--ec-ink); font-size: 13px; margin: 6px 0 0; }
.ec-heading--dark .ec-heading-title, .ec-heading--dark .ec-heading-sub { color: #ffffff; }
.ec-eyebrow { color: var(--ec-gold); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ec-page-heading { font-family: var(--ec-serif); font-size: 40px; font-weight: 600; line-height: 1.12; margin: 0; }

/* ---------- 7. Breadcrumb ---------- */
.ec-breadcrumb { align-items: center; display: flex; flex-wrap: wrap; font-size: 12.5px; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ec-breadcrumb li + li::before { color: var(--ec-muted); content: "\203A"; margin-right: 8px; }
.ec-breadcrumb [aria-current="page"] { color: var(--ec-gold); }

/* ---------- 8. Trust strip ---------- */
.ec-trust { background: var(--ec-cream); border-radius: var(--ec-radius); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-around; padding: 14px 20px; }
.ec-trust-item { align-items: center; display: flex; gap: 12px; }
.ec-trust-icon { align-items: center; background: #ffffff; border-radius: 50%; display: flex; flex: none; font-size: 17px; height: 36px; justify-content: center; width: 36px; }
.ec-trust-title { font-size: 12px; font-weight: 600; margin: 0; }
.ec-trust-text { color: var(--ec-muted); font-size: 11.5px; margin: 0; }

/* ---------- 9. Product card ---------- */
.ec-product { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.ec-product-media { aspect-ratio: 1 / 1; background: var(--ec-cream-soft); display: block; position: relative; }
.ec-product-media img { height: 100%; object-fit: cover; width: 100%; }
.ec-product-badge { background: var(--ec-gold); border-radius: 3px; color: #ffffff; font-size: 10px; font-weight: 600; left: 8px; letter-spacing: .03em; padding: 3px 8px; position: absolute; text-transform: uppercase; top: 8px; }
.ec-product-wish { align-items: center; background: #ffffff; border: 0; border-radius: 6px; color: var(--ec-ink); display: flex; font-size: 15px; height: 28px; justify-content: center; position: absolute; right: 8px; top: 8px; width: 28px; }
.ec-product-wish:hover { color: var(--ec-gold); }
.ec-product-body { display: flex; flex: 1; flex-direction: column; padding: 10px 10px 12px; }
.ec-swatches { display: flex; gap: 7px; margin-bottom: 9px; }
.ec-swatch { border: 1px solid rgba(0, 0, 0, .15); border-radius: 50%; height: 13px; width: 13px; }
.ec-product-name { font-size: 12.5px; font-weight: 600; margin: 0 0 3px; }
.ec-product-price { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.ec-stars { color: var(--ec-gold); font-size: 11px; letter-spacing: 1px; }
.ec-rating { align-items: center; color: var(--ec-muted); display: flex; font-size: 11px; gap: 5px; margin-bottom: 10px; }
.ec-product .ec-btn { font-size: 11px; margin-top: auto; padding: 8px 10px; }

/* ---------- 10. Review card ---------- */
.ec-review { background: #ffffff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); display: flex; gap: 10px; height: 100%; padding: 12px; }
.ec-review-avatar { background: var(--ec-cream); border-radius: 6px; flex: none; height: 52px; object-fit: cover; width: 52px; }
.ec-review-text { font-size: 11.5px; line-height: 1.5; margin: 4px 0 6px; }
.ec-review-name { font-size: 11.5px; font-weight: 600; margin: 0; }

/* ---------- 11. Process steps ---------- */
.ec-steps { display: flex; flex-wrap: wrap; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.ec-step { flex: 1 1 0; min-width: 130px; padding: 0 8px; position: relative; text-align: center; }
.ec-step:not(:last-child)::after { color: var(--ec-ink); content: "\2192"; font-size: 15px; position: absolute; right: -8px; top: 18px; }
.ec-step-icon { align-items: center; background: var(--ec-cream); border-radius: 50%; display: inline-flex; font-size: 22px; height: 54px; justify-content: center; margin-bottom: 10px; width: 54px; }
.ec-step-title { font-size: 12.5px; font-weight: 600; margin: 0 0 4px; }
.ec-step-text { color: var(--ec-muted); font-size: 11px; line-height: 1.5; margin: 0 auto; max-width: 160px; }

/* ---------- 12. Helpers, px containers and small screens ---------- */
.ec-section { padding: 28px 0; }
.ec-section--cream { background: var(--ec-cream); }
.ec-section--black { background: var(--ec-black); color: #ffffff; }
.ec-inflate { background: transparent; bottom: 50px; min-height: 0; position: fixed; right: 10px; width: 300px; z-index: 500000; }
.ec-loader-img { height: 100px; width: 100px; }
.ec-download-text { color: #ffffff; font-size: 22px; }
.ec-download-text img { height: 40px; width: 40px; }
.ec-close-icon { cursor: pointer; padding: 16px; }

@media (min-width: 992px) {
    /* Footer groups collapse only on small screens */
    .ec-footer .collapse { display: block !important; }
    .ec-footer-heading { pointer-events: none; }
}
@media (max-width: 991.98px) {
    .ec-header-inner { min-height: 58px; }
    .ec-logo { align-items: center; }
    .ec-logo-name { font-size: 22px; }
    .ec-logo-tag { font-size: 9.5px; margin-top: 3px; }
    .ec-site-header { background: var(--ec-black); }
    .ec-header-main { background: var(--ec-black); border-color: rgba(255, 255, 255, .08); }
    .ec-header-main .ec-logo-name, .ec-header-main .ec-logo-tag, .ec-header-main .ec-icon-btn { color: #ffffff; }
    .ec-cart-count { color: var(--ec-black); }
    .ec-footer-col { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .ec-footer-heading { align-items: center; display: flex; justify-content: space-between; margin: 0; padding: 12px 0; pointer-events: auto; }
    .ec-footer-heading i { display: inline-block; transition: transform .2s; }
    .ec-footer-heading[aria-expanded="true"] i { transform: rotate(180deg); }
    .ec-footer .collapse, .ec-footer .collapsing { padding-bottom: 6px; }
    .ec-step { flex: 1 1 100%; margin-bottom: 18px; }
    .ec-step:not(:last-child)::after { display: none; }
    .ec-page-heading { font-size: 30px; }
    .ec-heading-title { font-size: 16px; gap: 10px; }
    .ec-heading-title::before, .ec-heading-title::after { width: 20px; }
    .ec-trust { justify-content: flex-start; }
    .ec-trust-item { flex: 1 1 45%; }
}
