/*
 * DesignStock storefront theme: header, footer and home page.
 * Modelled on the WordPress (Woodmart) designstockbd.com look so the store
 * reads as DesignStock, not the stock marketplace theme. Brand colour and
 * font still come from admin → Appearance → Branding (--fv-green, --fv-font).
 */
:root {
    --ds-green: var(--fv-green, #2eb302);
    --ds-green-dark: var(--fv-green-dark, #259102);
    --ds-ink: #242424;
    --ds-text: #4b4b4b;
    --ds-muted: #777;
    --ds-line: #e9e9e9;
    --ds-soft: #f7f7f7;
    --ds-dark: #2a2b2b;
    --ds-dark-2: #222323;
    --ds-wrap: 1222px;
    --ds-header-h: 76px;
}

body { color: var(--ds-text); }
body.ds-no-scroll { overflow: hidden; }

.ds-wrap { max-width: var(--ds-wrap); margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.ds-topline { height: 3px; background: var(--ds-green); }
.ds-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--ds-line); transition: box-shadow .2s; }
.ds-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.ds-header-inner { max-width: var(--ds-wrap); margin: 0 auto; padding: 0 16px; height: var(--ds-header-h);
    display: flex; align-items: center; gap: 24px; }

.ds-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.ds-logo img { height: 34px; width: auto; display: block; }
.ds-logo-text { font-weight: 800; font-size: 1.2rem; color: var(--ds-ink); letter-spacing: -.02em; }

.ds-nav { flex: 1; display: flex; justify-content: center; }
.ds-nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.ds-nav-item { position: relative; }
.ds-nav-item + .ds-nav-item::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid #dcdcdc; }
.ds-nav-link { display: inline-flex; align-items: center; gap: 5px; height: var(--ds-header-h); padding: 0 14px;
    font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #333; text-decoration: none; white-space: nowrap; }
.ds-nav-link:hover, .ds-nav-item:hover > .ds-nav-link, .ds-nav-item:focus-within > .ds-nav-link { color: var(--ds-green); }
.ds-caret { font-size: 9px; opacity: .6; transition: transform .2s; }
.ds-nav-item:hover .ds-caret { transform: rotate(180deg); }

.ds-mega { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 560px;
    background: #fff; border: 1px solid var(--ds-line); border-top: 2px solid var(--ds-green); border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .1); padding: 16px 18px 18px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; }
.ds-mega--small { min-width: 240px; padding: 10px; }
.ds-nav-item:hover > .ds-mega, .ds-nav-item:focus-within > .ds-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ds-mega-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 10px; margin-bottom: 8px;
    border-bottom: 1px solid var(--ds-line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ds-muted); }
.ds-mega-head a { color: var(--ds-green); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ds-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; }
.ds-mega-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px;
    color: var(--ds-text); text-decoration: none; font-size: 14px; }
.ds-mega-link:hover { background: var(--ds-soft); color: var(--ds-green); }
.ds-mega-link em { font-style: normal; font-size: 11px; color: var(--ds-muted); background: var(--ds-soft); border-radius: 999px; padding: 1px 8px; }

.ds-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ds-icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent;
    color: #333; font-size: 1.15rem; border-radius: 50%; text-decoration: none; cursor: pointer; }
.ds-icon-btn:hover { color: var(--ds-green); background: var(--ds-soft); }
.ds-cart-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
    background: var(--ds-green); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.ds-login { margin-left: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; color: #333; text-decoration: none; white-space: nowrap; }
.ds-login span { color: #bbb; margin: 0 2px; }
.ds-login:hover { color: var(--ds-green); }
.ds-login-icon { display: none; }
.ds-account { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px; font-size: 13px; font-weight: 600; color: #333; text-transform: uppercase; }
.ds-account-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-green); color: #fff; font-size: 13px; }

.ds-search-bar { border-top: 1px solid var(--ds-line); background: #fff; }
.ds-search-inner { max-width: 760px; margin: 0 auto; padding: 14px 16px; }
.ds-search-bar .fv-search { width: 100%; max-width: none; }
.ds-search-bar .fv-nav-search-wrap { width: 100%; }
.ds-search-bar .fv-nav-search-input { width: 100%; height: 46px; font-size: 15px; }
.ds-search-bar .fv-search-panel { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 6px); border-radius: 10px; animation: none; }

.ds-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.ds-burger span { display: block; height: 2px; background: #333; border-radius: 2px; }

/* Mobile drawer */
.ds-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1040; }
.ds-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 1050; overflow-y: auto; box-shadow: 8px 0 30px rgba(0, 0, 0, .15); }
.ds-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--ds-line);
    font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.ds-drawer-nav { display: flex; flex-direction: column; }
.ds-drawer-nav a, .ds-drawer-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--ds-line);
    color: var(--ds-ink); text-decoration: none; font-size: 14px; }
.ds-drawer-top, .ds-drawer-nav summary { font-weight: 600; text-transform: uppercase; font-size: 13px !important; cursor: pointer; list-style: none; }
.ds-drawer-nav summary::-webkit-details-marker { display: none; }
.ds-drawer-nav details[open] summary i { transform: rotate(180deg); }
.ds-drawer-nav details a { padding-left: 30px; background: #fcfcfc; }
.ds-drawer-nav details a em { font-style: normal; font-size: 12px; color: var(--ds-muted); }
.ds-drawer-all { color: var(--ds-green) !important; font-weight: 600; }

@media (max-width: 1100px) {
    .ds-nav-link { padding: 0 10px; font-size: 12px; }
}
@media (max-width: 991.98px) {
    :root { --ds-header-h: 64px; }
    .ds-nav { display: none; }
    .ds-burger { display: flex; flex-shrink: 0; }
    .ds-header-inner { gap: 10px; }
    .ds-logo { margin-right: auto; flex: 0 1 auto; min-width: 0; }
    .ds-logo img { height: auto; max-height: 28px; max-width: 100%; }
    .ds-icon-btn { flex-shrink: 0; }
}
@media (max-width: 575.98px) {
    .ds-header-inner { gap: 6px; padding: 0 10px; }
    .ds-actions { gap: 0; }
    .ds-icon-btn { width: 36px; height: 36px; font-size: 1.05rem; }
    .ds-login { display: none; }
    .ds-login-icon { display: inline-grid; }
    .ds-account-label { display: none; }
    .ds-banner-label { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; font-size: 13px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.ds-footer { background: var(--ds-dark); color: #b9b9b9; margin-top: 0; font-size: 14px; }
.ds-footer-inner { max-width: var(--ds-wrap); margin: 0 auto; padding: 56px 16px 40px;
    display: grid; grid-template-columns: 1.4fr repeat(var(--ds-footer-cols, 4), 1fr); gap: 32px; }
.ds-footer h5 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 16px; }
.ds-footer-col a { display: block; color: #cfcfcf; text-decoration: none; padding: 5px 0; transition: color .15s; }
.ds-footer-col a:hover { color: #fff; }
.ds-footer-logo { display: inline-block; margin-bottom: 14px; color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.ds-footer-logo img { height: 30px; width: auto; display: block; background: #fff; padding: 6px 10px; border-radius: 6px; box-sizing: content-box; }
.ds-footer-brand p { line-height: 1.7; margin: 0 0 16px; max-width: 320px; }
.ds-socials { display: flex; gap: 8px; }
.ds-socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.ds-socials a:hover { background: var(--ds-green); }
.ds-pay-img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.ds-pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-pay-badges span { background: #fff; color: #333; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.ds-footer-secure { margin: 14px 0 0; font-size: 13px; color: #9d9d9d; }
.ds-footer-bottom { background: var(--ds-dark-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.ds-footer-bottom-inner { max-width: var(--ds-wrap); margin: 0 auto; padding: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8f8f8f; }

@media (max-width: 991.98px) {
    .ds-footer-inner { grid-template-columns: 1fr 1fr; }
    .ds-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .ds-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 40px; }
    .ds-footer-made { display: none; }
}

/* ── Home ───────────────────────────────────────────────────────────────── */
.ds-hero { background: #1c1d1d radial-gradient(ellipse at top, #2c2e2e 0%, #1c1d1d 70%); padding: 56px 0 64px; }
.ds-hero-title { text-align: center; color: #fff; margin: 0 auto 32px; max-width: 760px; }
.ds-hero-title h1 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 700; line-height: 1.2; margin: 0 0 10px; color: #fff; letter-spacing: -.01em; }
.ds-hero-title h1 span { color: var(--ds-green); }
.ds-hero-title p { color: #b5b5b5; margin: 0; font-size: 16px; }
.ds-banners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; }
.ds-banner { display: block; text-decoration: none; transition: transform .25s ease; }
.ds-banner-img { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 334 / 501; background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: box-shadow .25s ease; }
.ds-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ds-banner:hover { transform: translateY(-6px); }
.ds-banner:hover .ds-banner-img { box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.ds-banner:hover img { transform: scale(1.03); }
.ds-banner-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 4px 0;
    color: #fff; font-weight: 600; font-size: 14px; }
.ds-banner:hover .ds-banner-label { color: var(--ds-green); }
.ds-banner-label em { font-style: normal; font-size: 12px; font-weight: 500; color: #9a9a9a; }

.ds-section { padding: 72px 0; }
.ds-section--soft { background: var(--ds-soft); }
.ds-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.ds-section-head .ds-sub { display: block; font-size: 13px; color: var(--ds-muted); margin-bottom: 10px; }
.ds-section-head h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; color: var(--ds-ink); margin: 0 0 12px; letter-spacing: -.01em; }
.ds-section-head p { color: var(--ds-muted); margin: 0; line-height: 1.7; font-size: 14px; }
.ds-section-head--row { display: flex; justify-content: space-between; align-items: end; text-align: left; max-width: none; gap: 16px; }
.ds-section-head--row h2 { margin: 0; }
.ds-link-more { color: var(--ds-green); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 14px; }
.ds-link-more:hover { color: var(--ds-green-dark); }

.ds-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1000px; margin: 0 auto; }
.ds-feature { background: #fff; border: 1px solid var(--ds-line); border-radius: 4px; padding: 26px 22px; text-align: center; color: inherit; text-decoration: none;
    transition: box-shadow .2s, transform .2s, border-color .2s; }
a.ds-feature:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .07); transform: translateY(-3px); border-color: transparent; }
.ds-feature-icon { font-size: 34px; line-height: 1; margin-bottom: 14px; display: inline-block; }
.ds-feature h3 { font-size: 18px; font-weight: 600; color: var(--ds-ink); margin: 0 0 10px; }
.ds-feature p { font-size: 14px; color: var(--ds-muted); margin: 0; line-height: 1.6; }

.ds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.ds-makes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1000px; margin: 0 auto; }
.ds-make { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--ds-line); border-radius: 999px; background: #fff;
    color: var(--ds-ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .15s, color .15s; }
.ds-make em { font-style: normal; font-size: 12px; color: var(--ds-muted); }
.ds-make:hover { border-color: var(--ds-green); color: var(--ds-green); }

.ds-cta { background: linear-gradient(135deg, var(--ds-green) 0%, var(--ds-green-dark) 100%); color: #fff; border-radius: 10px; padding: 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ds-cta h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; font-weight: 700; }
.ds-cta p { margin: 0; opacity: .92; }
.ds-cta-btn { background: #fff; color: var(--ds-green-dark); font-weight: 700; padding: 13px 26px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.ds-cta-btn:hover { background: var(--ds-ink); color: #fff; }

@media (max-width: 991.98px) {
    .ds-banners { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
    .ds-grid { grid-template-columns: repeat(3, 1fr); }
    .ds-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .ds-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ds-section { padding: 52px 0; }
}
@media (max-width: 575.98px) {
    .ds-hero { padding: 36px 0 44px; }
    .ds-banners { gap: 12px; }
    .ds-features { grid-template-columns: 1fr; }
    .ds-cta { padding: 28px 22px; }
    .ds-section-head--row { flex-direction: column; align-items: flex-start; }
}
