/* ==========================================================================
   Wicker — storefront design system
   --------------------------------------------------------------------------
   Port of the Wicker template (E:\temp\wicker) into the Bagisto storefront.
   Tokens, class names and rules are kept verbatim so the rendered result is
   identical to the source template; only the wiring differs (Blade + Bagisto
   data instead of static HTML).

   Scope: this stylesheet is plain CSS linked after Bagisto's own bundle by
   `components/layouts/index.blade.php`. A handful of rules at the end of each
   section neutralise Bagisto defaults that would otherwise fight the template.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap");

/* ==========================================================================
   01. Tokens  (verbatim from the template)
   ========================================================================== */

:root {
    --bg: #f5ede0;
    --bg-2: #e8dfc9;
    --bg-3: #ddd0b3;
    --surface: #fdf9ef;
    --light: #f8f1e2;
    --text: #2a1f15;
    --text-2: #6b5a4a;
    --text-3: #a0917d;
    --accent: #8a5a2b;
    --accent-dark: #6b4220;
    --accent-bright: #b07235;
    --accent-soft: #f0e3cd;
    --sage: #6b7d4f;
    --sage-soft: #dde2cb;
    --line: #d4c4a8;
    --line-soft: #e0d4b8;
    --radius: 6px;
    --radius-md: 12px;
}

/* ==========================================================================
   02. Base
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { margin-top: 0 !important; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: opacity 0.2s, color 0.2s; }

a:hover { opacity: 0.7; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.serif { font-family: 'Fraunces', Georgia, serif; }

::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   03. Announcement + navigation
   ========================================================================== */

.announce {
    background: var(--text);
    color: #f0e3cd;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 11px 20px;
    font-weight: 500;
}

.announce a { color: var(--accent-bright); border-bottom: 1px solid var(--accent-bright); padding-bottom: 1px; }

.announce em { font-style: normal; color: var(--accent-bright); }

/*
 * The template puts the translucent fill AND the blur on `.nav` itself. That
 * cannot be copied literally here.
 *
 * `backdrop-filter` makes an element a containing block for its `position: fixed`
 * descendants, and Bagisto renders the mini cart's drawer inside `.nav-right`.
 * With the blur on `.nav`, the drawer and its overlay were laid out against the
 * nav's 76px box instead of the viewport — measured at 1440x900: the overlay
 * (`fixed inset-0`) came out h=76, and the drawer (`inset-y-0`) came out
 * y=41 h=76, i.e. a 76px strip pinned to the nav. That is the "cart drawer only
 * appears inside the navbar" bug.
 *
 * Moving the fill and the blur onto a pseudo-element keeps the look pixel-for-
 * pixel identical while removing the trap: a pseudo-element cannot contain DOM
 * children, so it is nobody's ancestor. `z-index: -1` keeps it behind the nav's
 * content but still inside the nav's own stacking context, so it never slips
 * behind the page.
 */
.nav {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(245, 237, 224, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 76px;
    gap: 40px;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-2);
    align-items: center;
}

.nav-right { justify-content: flex-end; }

.brand {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.brand-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.brand em { font-style: italic; color: var(--accent); }

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    color: var(--text);
    transition: background 0.2s;
}

.icon-btn:hover { background: var(--bg-2); opacity: 1; }

/*
 * There is deliberately no `.cart-badge` rule here.
 *
 * The Wicker template has one, but Bagisto's mini cart renders its count as an
 * anonymous `<span class="absolute -top-4 rounded-[44px] bg-navyBlue ...">`
 * with no bespoke class. Styling `.cart-badge` therefore matched nothing, and
 * the class name only served to make the real badge look missing. The count is
 * styled through `.bg-navyBlue` further down.
 */

/* Mobile menu (template ships desktop-first; this is the small-screen fallback) */

/* Mobile menu. The burger is an extra grid child, so above the breakpoint it
   must be kept out of the grid entirely — otherwise it wraps onto a new row. */

.nav .nav-inner .nav-burger { display: none !important; }

.nav .nav-panel { display: none !important; }

@media (max-width: 980px) {
    .nav-inner { padding: 0 24px; height: 64px; gap: 16px; }

    .nav-left,
    .nav-right a { display: none !important; }

    .nav .nav-inner .nav-burger {
        display: grid !important;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: var(--text);
    }

    .nav .nav-panel.open { display: block !important; }

    .nav .nav-panel a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line-soft);
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-2);
    }

    .brand { font-size: 24px; }
}

/* ==========================================================================
   04. Hero
   ========================================================================== */

.hero {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-tag::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(48px, 6.5vw, 88px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
}

.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero p.lede {
    color: var(--text-2);
    font-size: 18px;
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 12px; margin-bottom: 48px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-primary { background: var(--text); color: var(--bg); }

.btn-primary:hover { background: var(--accent); opacity: 1; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }

.btn-ghost:hover { background: var(--text); color: var(--bg); opacity: 1; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.hero-stat-val {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-val em { font-style: italic; color: var(--accent); }

.hero-stat-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.12em; }

.hero-img {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.hero-img-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--surface);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-img-badge::before { content: ''; width: 8px; height: 8px; background: var(--sage); border-radius: 50%; }

/* ==========================================================================
   05. Marquee
   ========================================================================== */

.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: 14px 0; }

.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: scroll 32s linear infinite;
}

.marquee-track span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-track span::after { content: '◆'; opacity: 0.5; font-size: 8px; }

@keyframes scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ==========================================================================
   06. Sections
   ========================================================================== */

.section { max-width: 1400px; margin: 0 auto; padding: 100px 40px; }

.section-head { text-align: center; margin-bottom: 56px; }

.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-eyebrow::before,
.section-eyebrow::after { content: ''; width: 20px; height: 1px; background: var(--accent); }

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
    color: var(--text-2);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ==========================================================================
   07. Category grid
   ========================================================================== */

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

.cat-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 20px 20px 18px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 240px;
    justify-content: space-between;
}

.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -12px rgba(42, 31, 21, 0.15);
    opacity: 1;
}

.cat-img { aspect-ratio: 1; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }

.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

/*
 * A category created in admin has no logo until one is uploaded, and `.cat-img`
 * already carries a background — so this only centres a letter in it. Without it
 * the tile is a blank square that reads as a failed image load.
 */
.cat-img-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: 'Fraunces', serif;
    font-size: 64px;
    font-weight: 500;
    color: var(--text-3);
    user-select: none;
}

.cat-card:hover .cat-img img { transform: scale(1.05); }

.cat-name {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.cat-name em { font-style: italic; color: var(--accent); }

.cat-count { font-size: 10px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ==========================================================================
   08. Product cards
   ========================================================================== */

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

.p-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -12px rgba(42, 31, 21, 0.18);
    opacity: 1;
}

.p-img-wrap { aspect-ratio: 1; background: var(--bg-2); position: relative; overflow: hidden; }

.p-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }

.p-card:hover .p-img-wrap img { transform: scale(1.05); }

.p-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--line);
    z-index: 2;
}

.p-tag.bestseller { background: var(--accent); color: #fff; border-color: var(--accent); }

.p-tag.new { background: var(--sage); color: #fff; border-color: var(--sage); }

.p-tag.limited { background: var(--text); color: var(--bg); border-color: var(--text); }

.p-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.p-cat {
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.p-name {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 8px;
}

.p-spec { font-size: 12px; color: var(--text-2); margin-bottom: 14px; flex: 1; line-height: 1.5; }

.p-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.p-price { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; color: var(--text); }

.p-price .old {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

.p-add {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    padding: 7px 14px;
    border-radius: 100px;
    transition: all 0.2s;
}

.p-add:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   09. Tech story
   ========================================================================== */

.tech {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 80px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tech-text { max-width: 480px; }

.tech-text h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--text);
}

.tech-text h2 em { font-style: italic; color: var(--accent); }

.tech-text p { color: var(--text-2); font-size: 15px; margin-bottom: 16px; line-height: 1.7; }

.tech-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.tech-stat-val {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.tech-stat-label { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.12em; }

.tech-img { aspect-ratio: 4/5; background: var(--bg-2); border-radius: var(--radius); overflow: hidden; }

.tech-img img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   10. CTA band
   ========================================================================== */

.cta-band { background: var(--text); color: #f0e3cd; padding: 80px 40px; }

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-inner h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-inner h2 em { font-style: italic; color: var(--accent-bright); }

.cta-inner p { color: rgba(245, 237, 224, 0.7); font-size: 16px; max-width: 480px; line-height: 1.6; }

.cta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.cta-stat { padding: 16px 0; border-top: 1px solid rgba(245, 237, 224, 0.15); }

.cta-stat-val {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--accent-bright);
    line-height: 1;
    margin-bottom: 6px;
}

.cta-stat-label { font-size: 11px; color: rgba(245, 237, 224, 0.6); text-transform: uppercase; letter-spacing: 0.12em; }

/* ==========================================================================
   12. Newsletter
   ========================================================================== */

.newsletter { padding: 100px 40px; background: var(--sage-soft); }

.news-inner { max-width: 700px; margin: 0 auto; text-align: center; }

.news-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: var(--sage);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.news-inner h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 14px;
}

.news-inner h2 em { font-style: italic; color: var(--sage); }

.news-inner p { color: var(--text-2); font-size: 15px; margin-bottom: 28px; }

.news-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }

.news-input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.news-input:focus { outline: none; border-color: var(--sage); }

.news-submit {
    padding: 14px 24px;
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.wk-footer { background: var(--text); color: rgba(245, 237, 224, 0.7); padding: 80px 40px 32px; margin-top: 0; }

/*
 * Brand column plus five link columns. The gap is tighter than the four-column
 * version so the extra track does not squeeze the link labels — at 1400px each
 * column still gets ~177px, enough for "Wicker+ membership".
 */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 40px;
}

.footer-brand p { margin-top: 16px; max-width: 320px; line-height: 1.7; font-size: 13px; }

.wk-footer h4 {
    color: #f0e3cd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.wk-footer ul { list-style: none; }

.wk-footer li { margin-bottom: 8px; }

.wk-footer a { font-size: 13px; }

.wk-footer a:hover { color: var(--accent-bright); opacity: 1; }

.footer-bottom {
    max-width: 1400px;
    margin: 56px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 237, 224, 0.12);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(245, 237, 224, 0.5);
}

.footer-brand .brand { color: #f0e3cd; justify-content: flex-start; font-size: 26px; }

.footer-brand .brand-dot { background: var(--accent-bright); }

.wk-footer .news-input {
    background: rgba(253, 249, 239, 0.08);
    border-color: rgba(240, 227, 205, 0.24);
    color: #f0e3cd;
}

.wk-footer .news-input::placeholder { color: rgba(240, 227, 205, 0.45); }

.wk-footer .news-submit { background: var(--accent-bright); color: var(--text); }

/* ==========================================================================
   14. Breadcrumb
   ========================================================================== */

.crumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px 0;
    font-size: 12px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.crumb span.sep { color: var(--text-3); }

.crumb-current { color: var(--text); }

/* ==========================================================================
   15. Catalog (category + search)
   ========================================================================== */

.catalog-section { max-width: 1400px; margin: 0 auto; padding: 32px 40px 80px; }

.catalog-section .section-eyebrow { display: inline-block; margin-bottom: 12px; }

.catalog-section h1,
.catalog-section h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.catalog-section h1 em,
.catalog-section h2 em { font-style: italic; color: var(--accent); }

.catalog-section p.intro { color: var(--text-2); font-size: 16px; max-width: 600px; margin-bottom: 48px; }

.cat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }

/*
 * Second column of `.cat-layout`. Bagisto renders its product grid and toolbar
 * in here; `min-width: 0` stops the grid track from being widened by long
 * product names, which would otherwise push a horizontal scrollbar onto the page.
 */
.catalog-results { min-width: 0; }

.filter-side h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
    color: var(--text);
}

.filter-group { border-top: 1px solid var(--line-soft); padding: 20px 0; }

.filter-group h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-options { display: flex; flex-direction: column; gap: 8px; }

/*
 * Bagisto renders filter facets through its own `accordion` and `range-slider`
 * components, which carry Tailwind utility classes and Bagisto's `navyBlue`
 * brand colour. The template's `.filter-group` / `.filter-options` markup is not
 * what those components emit, so the Wicker skin is applied to the utilities
 * they actually use. Two-class selectors beat the single-class utilities on
 * specificity, so no `!important` is needed.
 */
.filter-side > div { border-top: 1px solid var(--line-soft); }

/*
 * Bagisto's filter panel carries `min-w-[342px]`, which is 122px wider than the
 * template's 220px rail — the facet lists therefore spilled out of the rail and
 * floated over the product grid. The two-class selector outranks the utility, so
 * no `!important` is needed.
 */
.filter-side .panel-side {
    min-width: 0;
    max-width: 100%;
}

.filter-side p.text-lg {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.filter-side .text-base { font-size: 12px; }

.filter-side .bg-navyBlue { background-color: var(--accent); }

.filter-side .ring-navyBlue { --tw-ring-color: var(--accent); }

.filter-side .bg-gray-200 { background-color: var(--line-soft); }

.filter-side input[type="range"] { accent-color: var(--accent); }

.filter-side input[type="text"] {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px 12px 8px 34px;
    font-size: 13px;
    color: var(--text);
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
}

.filter-options input[type="checkbox"] { accent-color: var(--accent); }

.filter-count { color: var(--text-3); font-weight: 400; margin-left: auto; }

.price-range { display: flex; gap: 8px; align-items: center; }

.price-range input {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
}

.cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.cat-toolbar .count { font-size: 14px; color: var(--text-2); }

.cat-toolbar .count strong { color: var(--text); font-weight: 600; }

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
}

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.product {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s;
}

.product:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(42, 31, 21, 0.12);
    opacity: 1;
}

/*
 * `display: block` is load-bearing. The template's `.product-img` is a <div>, but
 * Bagisto's product card renders it on an <a>, which is inline by default — and
 * `aspect-ratio` does nothing on an inline box, so the image grew to its natural
 * height, overflowed the card, and `overflow: hidden` cut the name and price off
 * the bottom of every card in the grid.
 */
.product-img { display: block; position: relative; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }

.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }

.product:hover .product-img img { transform: scale(1.04); }

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    z-index: 2;
}

.product-tag.bestseller { background: var(--accent); color: #fff; border-color: var(--accent); }

.product-tag.new { background: var(--sage); color: #fff; border-color: var(--sage); }

.product-tag.limited { background: var(--text); color: var(--bg); border-color: var(--text); }

.product-cat {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 20px 20px 0;
}

.product-name {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 500;
    padding: 6px 20px 0;
    line-height: 1.25;
    min-height: 50px;
}

.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 8px 20px 0; }

.product-rating .stars { color: var(--accent); letter-spacing: 1px; font-size: 13px; }

.product-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 20px; }

.product-price { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; }

.product-price .old {
    font-size: 12px;
    color: var(--text-3);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

.add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

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

/* ==========================================================================
   16. Product detail
   ========================================================================== */

.pdp {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px 80px;
}

.gallery-thumbs { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; align-self: start; }

.gallery-thumbs button.thumb {
    background: var(--surface);
    border: 2px solid var(--line-soft);
    border-radius: 6px;
    padding: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.gallery-thumbs button.thumb.active { border-color: var(--accent); }

.gallery-thumbs button.thumb:hover { border-color: var(--accent); }

.gallery-thumbs button.thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-main { position: sticky; top: 100px; align-self: start; }

.main-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-soft);
}

.main-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity 0.15s; }

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, color 0.2s;
}

.gallery-arrow:hover { background: var(--accent); color: #fff; }

.gallery-arrow.prev { left: 16px; }

.gallery-arrow.next { right: 16px; }

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.info { padding-top: 8px; }

.info-cat {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.info h1 {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.15;
}

.info-sub { color: var(--text-2); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }

.info-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; color: var(--text-2); }

.info-rating .stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }

.info-rating strong { color: var(--text); font-weight: 600; }

.info-rating a { color: var(--accent); font-weight: 500; }

.info-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }

.spec-chip {
    background: var(--bg-2);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
}

.spec-chip strong { color: var(--accent); font-weight: 700; margin-right: 4px; }

.info-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }

.info-price .price-now { font-family: 'Fraunces', serif; font-size: 40px; font-weight: 500; color: var(--text); }

.info-price .price-old { font-size: 18px; color: var(--text-3); text-decoration: line-through; }

.info-price .price-save {
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.info-pay { font-size: 12px; color: var(--text-2); margin-bottom: 28px; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }

.qty-label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.qty-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }

.qty-input button { width: 32px; height: 32px; font-size: 16px; color: var(--text-2); }

.qty-input button:hover { color: var(--text); }

.qty-input .qty-val { width: 40px; text-align: center; font-size: 14px; font-weight: 500; }

.qty-input input {
    width: 46px;
    border: 0;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.cart-row { display: flex; gap: 12px; margin-bottom: 28px; }

.btn-addcart {
    flex: 1;
    background: var(--text);
    color: var(--bg);
    padding: 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-addcart:hover { background: var(--accent); }

.btn-secondary-cart {
    background: var(--bg-2);
    color: var(--text);
    padding: 18px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
}

.info-section {
    background: var(--bg-2);
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.info-section-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.info-section strong { display: block; margin-bottom: 4px; font-size: 14px; }

.info-section span { font-size: 12px; color: var(--text-2); line-height: 1.55; }

.related-section { max-width: 1400px; margin: 0 auto; padding: 80px 40px; background: var(--bg-2); }

.related-section .section-eyebrow { display: inline-block; }

.related-section h2 {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 32px;
}

.related-section h2 em { font-style: italic; color: var(--accent); }

.related-section .products { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   17. Templates for Bagisto defaults
   --------------------------------------------------------------------------
   Bagisto renders its own header, mini cart, drawers and pagination. These
   rules bring them onto the Wicker palette without touching the package.
   ========================================================================== */

.skip-to-main-content-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: var(--text);
    color: var(--bg);
}

.skip-to-main-content-link:focus { left: 50%; transform: translateX(-50%); }

/*
 * Bagisto surfaces.
 *
 * `bg-white` is Bagisto's universal card surface — cards, modals, drawers,
 * dropdowns, accordions, checkout panels, storefront forms, datagrids, 33 views
 * in all. Wicker's palette contains **no white surface anywhere**: every panel is
 * a warm off-white (`--surface` #fdf9ef) on a warmer page (`--bg` #f5ede0), and
 * `theme.css` only ever uses white for text on dark.
 *
 * Left as pure #fff it reads as a cold, blue-grey patch against the warm beige.
 * On the checkout page it was worse than ugly: the address form became a white
 * card while the cart summary beside it sat flat on the page, so the two halves
 * of one screen were treated differently.
 *
 * Remapped globally rather than by overriding each view, so every Bagisto
 * surface picks up the same treatment and any new one inherits it for free.
 * `!important` because the Tailwind utility is a single class and some of these
 * elements are styled inline by their Vue components.
 */
.bg-white,
.z-\[1000\].bg-white,
.z-\[1000\] .bg-white { background-color: var(--surface) !important; }

/*
 * Form controls are painted white by Bagisto's own control-group component too.
 * `--light` rather than `--surface` so a field still reads as a field when it
 * sits inside a `--surface` card.
 */
input.bg-white,
select.bg-white,
textarea.bg-white { background-color: var(--light) !important; }

/*
 * Bagisto's **text inputs carry no background class at all** — their white was
 * the browser's own default for form controls, which is why remapping `bg-white`
 * fixed the selects and the cards but left every text field pure white. There is
 * no utility to override, so the controls are styled directly.
 *
 * The border colours are Bagisto's cool `zinc`/`gray` utilities, which sit just
 * as cold against the warm palette as the white fill did.
 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="url"],
textarea {
    background-color: var(--light);
    border-color: var(--line);
}

select { border-color: var(--line) !important; }

input::placeholder,
textarea::placeholder { color: var(--text-3); }

/*
 * Checkout's own minimal header.
 *
 * Bagisto strips the nav and footer from checkout (`:has-header="false"`) and
 * draws its own bar, so the brand has to be re-drawn from the theme rather than
 * inherited. Same wordmark as the navigation, scaled to the 29px-tall logo it
 * replaces, as HTML text so it renders in Fraunces.
 */
.wk-checkout-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text);
}

.wk-checkout-brand .brand-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.wk-checkout-brand em { font-style: italic; color: var(--accent); }

/* Buttons that Bagisto styles itself */

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.primary-button:hover { background: var(--accent); opacity: 1; }

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.secondary-button:hover { background: var(--text); color: var(--bg); }

/* Pagination + form controls on catalog pages */

.catalog-section nav[role="navigation"] a,
.catalog-section nav[role="navigation"] span {
    border-radius: var(--radius);
}

.catalog-section input[type="text"],
.catalog-section input[type="search"],
.catalog-section select {
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* Bagisto's Vue product card, restyled onto the Wicker card */

.p-card.group,
.products-grid .group.w-full {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/*
 * Bagisto's mini cart, left as shipped.
 *
 * Its markup already wraps the icon and count in a `span.relative` and
 * absolutely positions the badge, so the theme only supplies the circular
 * button treatment. Earlier revisions added structural rules here
 * (`display: contents` on the wrapper, a hand-rolled panel) which broke the
 * drawer's own trigger — do not reintroduce them.
 */

.nav-right .icon-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text);
    transition: background 0.2s;
}

.nav-right .icon-cart:hover {
    background: var(--bg-2);
}

.relative {
    position: relative;
}

/*
 * The package badge is identified only by `bg-navyBlue`. Every shape property is
 * set here rather than relying on the Tailwind utilities in its class list
 * (`rounded-[44px]`, `-top-4`, `ltr:left-5`), because arbitrary-value utilities
 * are not guaranteed to be present in the compiled bundle — and if they are
 * absent the badge renders as an unstyled box.
 */
.nav-right .bg-navyBlue {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: var(--accent) !important;
    color: #fff;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* ==========================================================================
   CMS / editorial pages

   Bagisto renders admin-authored CMS HTML with no meaningful styling of its
   own, so headings came out at body size with no rhythm. These rules give the
   seeded editorial pages (`/page/stories`, `/page/care`, …) the same voice as
   the rest of the theme. The markup comes from `views/cms/page.blade.php`.
   ========================================================================== */

.wk-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.wk-page-title {
    font-family: 'Fraunces', serif;
    font-size: 46px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 28px;
}

.wk-page-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-2);
}

.wk-page-body > :first-child { margin-top: 0; }

.wk-page-body h2 {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    margin: 44px 0 14px;
}

.wk-page-body h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin: 32px 0 10px;
}

.wk-page-body p { margin: 0 0 18px; }

.wk-page-body ul,
.wk-page-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.wk-page-body li { margin-bottom: 8px; }

.wk-page-body a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.wk-page-body a:hover { color: var(--accent-dark); }

.wk-page-body em {
    font-style: normal;
    color: var(--text-3);
}

.wk-page-body strong { color: var(--text); font-weight: 600; }

.wk-page-body blockquote {
    margin: 0 0 18px;
    padding-left: 18px;
    border-left: 2px solid var(--line);
    font-family: 'Fraunces', serif;
    font-size: 20px;
    color: var(--text);
}

@media (max-width: 620px) {
    .wk-page { padding: 32px 24px 64px; }

    .wk-page-title { font-size: 32px; }

    .wk-page-body h2 { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   Bagisto product page, wired to the template's PDP classes

   The template's `.pdp` is a three-column grid (`100px 1fr 1fr`) with thumbs,
   main image and info as siblings. Bagisto renders the gallery as one element
   containing thumbs + main, so the outer grid here has two columns and the
   gallery splits itself internally via `.wk-gallery`. Net proportions match.
   -------------------------------------------------------------------------- */

.wk-pdp {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px 80px;
}

.wk-gallery {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* Thumbnails rail. `.gallery-thumbs` already stacks and sticks; these are the
   bits the template expected on <button class="thumb"> that Bagisto needs too. */
.gallery-thumbs .thumb-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 540px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gallery-thumbs .thumb-scroll::-webkit-scrollbar { display: none; }

.gallery-thumbs .thumb-arrow {
    display: grid;
    place-items: center;
    width: 100%;
    height: 24px;
    color: var(--text-3);
    cursor: pointer;
}

.gallery-thumbs .thumb-arrow:hover { color: var(--text); }

.gallery-thumbs video.thumb { object-fit: cover; cursor: pointer; }

.main-img .main-shimmer {
    position: absolute;
    inset: 0;
    background: var(--bg-3);
    animation: wk-shimmer 1.4s ease-in-out infinite;
}

@keyframes wk-shimmer {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

.main-img video { width: 100%; height: 100%; object-fit: cover; }

/* Head: name plus the wishlist toggle, which the template does not have. */
.info-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.info-wishlist {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.info-wishlist:hover { border-color: var(--accent); color: var(--accent); }

.info-wishlist.is-active { color: var(--accent); border-color: var(--accent); }

/* The rating component brings its own markup; this only spaces it. */
.info-rating-inner { display: inline-flex; cursor: pointer; }

.info-rating-inner:hover { opacity: 0.8; }

/* Bagisto renders the price through `getPriceHtml()`, whose markup differs by
   branch, so the template's `.price-now` / `.price-old` are mapped onto it by
   position rather than by class:
     - no discount  -> one <p class="final-price">, which is the current price
     - discounted   -> <p class="final-price"> (struck) then a plain <p> (current)
     - configurable -> a `.price-label`, a sometimes-hidden `.regular-price`, then
                       the current price
   The price being charged is therefore always the LAST <p>, and anything before
   it is the old price. Keying off `:last-child` survives every branch, whereas
   keying off `.final-price` gets the struck price backwards for non-discounted
   products — which is exactly what it did first time round. */
.info-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.info-price > p:last-child {
    order: 2;
    font-family: 'Fraunces', serif;
    font-size: 40px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

.info-price > p:not(:last-child) {
    order: 1;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-3);
    text-decoration: line-through;
}

.info-price > .price-label {
    order: 0;
    flex: 1 0 100%;
    font-size: 13px;
    color: var(--text-2);
    text-decoration: none;
}

.info-price > p[style*="display: none"] { display: none !important; }

.info-pay p { margin: 0 0 4px; }

/*
 * Quantity: Bagisto's own changer, restyled into the template's `.qty-input`.
 *
 * `.qty-input` is passed to `<x-shop::quantity-changer>` and reaches the rendered
 * root through Vue's attribute fallthrough. Do NOT write `v-quantity-changer` in a
 * selector here: Vue replaces that tag with the component's root element when it
 * mounts, so such a rule silently matches nothing — which is exactly what the
 * first version of this block did.
 */
.qty-row .qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.qty-row .qty-input > div { display: flex; align-items: center; }

.qty-row .qty-input .icon-minus,
.qty-row .qty-input .icon-plus {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    transition: color 0.2s;
}

.qty-row .qty-input .icon-minus:hover,
.qty-row .qty-input .icon-plus:hover { color: var(--text); }

.qty-row .qty-input p {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}

.qty-sku { font-size: 12px; color: var(--text-3); }

.qty-sku strong { color: var(--text-2); font-weight: 600; margin-right: 4px; }

/* The Add-to-cart button is `<x-shop::button button-type="secondary-button">`.
   A class passed to that component lands on its wrapper, because the component
   computes the inner <button>'s class from `button-type` — so the template's
   solid `.btn-addcart` look is applied here instead. */
.cart-row .secondary-button {
    flex: 1;
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
    padding: 18px;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.cart-row .secondary-button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.info-compare {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--text-2);
}

.info-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.info-compare-btn:hover { color: var(--text); }

.info-compare-btn .icon-compare { font-size: 16px; }

/* ==========================================================================
   Blog / journal

   Served by the `webbycrown/blog-for-bagisto` package, but its storefront views
   are built for Bagisto's Velocity theme (Bootstrap grid, its own stylesheet, a
   jQuery CDN). The theme ships its own views, so this is designed in the Wicker
   language rather than layered over someone else's markup.
   ========================================================================== */

.wk-blog .section-head { margin-bottom: 40px; }

.wk-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.wk-post-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wk-post {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wk-post:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(42, 31, 21, 0.12);
    opacity: 1;
}

.wk-post-img { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }

.wk-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

.wk-post:hover .wk-post-img img { transform: scale(1.04); }

.wk-post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }

.wk-post-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.wk-post-title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.22;
    color: var(--text);
    margin: 0;
}

.wk-post-excerpt { font-size: 14px; line-height: 1.65; color: var(--text-2); margin: 0; }

.wk-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 12px;
    color: var(--text-3);
}

.wk-post-meta a { color: var(--text-2); border-bottom: 1px solid var(--line); }

.wk-post-meta .sep { color: var(--line); }

/* Sidebar: the same 220px rail as the catalogue, so both page types agree. */
.blog-side {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.blog-side-group h3 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 14px;
}

.blog-side-list { list-style: none; margin: 0; padding: 0; }

.blog-side-list li + li { border-top: 1px solid var(--line-soft); }

.blog-side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-2);
}

.blog-side-list a:hover { color: var(--accent); }

.blog-side-list .count { font-size: 11px; color: var(--text-3); }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-2);
    background: var(--surface);
    transition: border-color 0.2s, color 0.2s;
}

.blog-tag:hover { border-color: var(--accent); color: var(--accent); }

.blog-tag .count { font-size: 10px; color: var(--text-3); }

.wk-empty { padding: 48px 0; font-size: 15px; color: var(--text-2); }

.wk-pager { margin-top: 48px; }

/* Article */

.wk-article { max-width: 780px; margin: 0 auto; padding: 16px 40px 0; }

.wk-article-head { margin-bottom: 28px; }

.wk-article-head h1 {
    font-family: 'Fraunces', serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}

.wk-article-head .section-eyebrow { margin-bottom: 14px; }

.wk-article-hero {
    aspect-ratio: 16 / 9;
    background: var(--bg-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 40px;
}

.wk-article-hero img { width: 100%; height: 100%; object-fit: cover; }

.wk-article-tags { margin-top: 36px; }

/* Rendered WYSIWYG — the same treatment the CMS pages get, so an article and an
   editorial page read alike. */
.wk-prose { font-size: 17px; line-height: 1.78; color: var(--text-2); }

.wk-prose > :first-child { margin-top: 0; }

.wk-prose h2 {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    margin: 40px 0 14px;
}

.wk-prose h3 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin: 32px 0 10px;
}

.wk-prose p { margin: 0 0 20px; }

.wk-prose ul,
.wk-prose ol { margin: 0 0 20px; padding-left: 22px; }

.wk-prose li { margin-bottom: 8px; }

.wk-prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }

.wk-prose blockquote {
    margin: 0 0 20px;
    padding-left: 20px;
    border-left: 2px solid var(--line);
    font-family: 'Fraunces', serif;
    font-size: 21px;
    color: var(--text);
}

.wk-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

.wk-related { padding-top: 0; }

/* Comments */

.wk-comments-sub {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 16px;
}

.wk-comment-form {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 40px;
}

.wk-reply .wk-comment-form { margin: 16px 0 0; padding: 18px; background: var(--light); }

.wk-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.wk-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.wk-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

.wk-field input,
.wk-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--light);
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
}

.wk-field textarea { resize: vertical; }

.wk-comment-list { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

.wk-comment {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}

.wk-comment-children {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--line-soft);
}

.wk-comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.wk-comment-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 600;
}

.wk-comment-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }

.wk-comment-date { display: block; font-size: 11px; color: var(--text-3); }

.wk-comment-body { font-size: 14px; line-height: 1.7; color: var(--text-2); }

.wk-reply { margin-top: 12px; }

.wk-reply summary {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
    list-style: none;
}

.wk-reply summary::-webkit-details-marker { display: none; }

.wk-reply summary:hover { color: var(--accent-dark); }

/* ==========================================================================
   Error pages

   One view — `resources/themes/bamboo/views/errors/index.blade.php` — serves
   404, 401, 403, 500 and 503, with the code and copy coming from
   `admin::app.errors.{code}`. It renders with the header, feature strip and
   footer disabled, so this section *is* the page and has to fill the viewport.

   These `.bt-error` / `.bt-btn` names come from that view and are used nowhere
   else. Until now they had no rules at all, and the page rendered as four lines
   of unstyled text in the top-left corner.

   `.bt-btn` deliberately repeats `.btn` rather than extending it, because this
   view is reachable when the theme's own stylesheet may have failed to load and
   it should not depend on the rest of the sheet.
   ========================================================================== */

.bt-error {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 80px 40px;
    background: var(--bg);
    text-align: center;
}

.bt-error__inner { max-width: 620px; }

/*
 * The status number as a watermark rather than a heading: it is `aria-hidden`
 * in the markup and the real heading is the title below it, so this must not
 * compete with it for attention.
 */
.bt-error__code {
    font-family: 'Fraunces', serif;
    font-size: 132px;
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--accent-soft);
    margin: 0 0 8px;
    user-select: none;
}

.bt-error__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

.bt-error__title {
    font-family: 'Fraunces', serif;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 16px;
}

.bt-error__title em { font-style: italic; color: var(--accent); }

.bt-error__text {
    max-width: 460px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-2);
}

/* Shows the path that failed, so the message is not abstract. */
.bt-error__requested {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 0 0 32px;
    font-size: 12px;
    color: var(--text-3);
}

.bt-error__requested code {
    padding: 3px 8px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--light);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--text-2);
    word-break: break-all;
}

/* Search: the one thing a 404 should always offer. */
.bt-search {
    display: flex;
    align-items: stretch;
    max-width: 420px;
    margin: 0 auto 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.bt-search:focus-within { border-color: var(--accent); }

.bt-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 15px 18px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.bt-search input:focus { outline: none; }

.bt-search input::placeholder { color: var(--text-3); }

.bt-search button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--light);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.bt-search button:hover { background: var(--text); color: var(--bg); }

.bt-error__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.bt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 1px solid var(--text);
    border-radius: var(--radius);
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.bt-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    opacity: 1;
}

.bt-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }

.bt-btn--ghost:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Collection shortcuts — a dead end is the one thing a 404 must not be. */
.bt-collections {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.bt-collections__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 18px;
}

.bt-collections ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bt-collections a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
    font-size: 13px;
    color: var(--text-2);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bt-collections a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Visually hidden, for the search label. */
.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;
}

/* Rendered only when JavaScript is off (see the category view). Crawlers that do
   not execute JS see this instead of an empty catalogue, and a real visitor with
   JS disabled gets a usable list rather than a shimmer that never resolves. */
.catalog-noscript {
    margin: 0 0 40px;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.catalog-noscript__label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.catalog-noscript ul { list-style: none; margin: 0; padding: 0; }

.catalog-noscript li + li { border-top: 1px solid var(--line-soft); }

.catalog-noscript a {
    display: block;
    padding: 11px 0;
    font-size: 15px;
    color: var(--text);
}

.catalog-noscript a:hover { color: var(--accent); }

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .cats-grid,
    .products-grid,
    .related-section .products { grid-template-columns: repeat(2, 1fr); }

    .products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding: 60px 24px; gap: 40px; }

    .hero h1 { font-size: 42px; }

    /* Blog: one column, and the sticky rail becomes a normal block above it. */
    .wk-post-grid,
    .wk-post-grid--related { grid-template-columns: 1fr; }

    .blog-side { position: static; }

    .wk-article { padding: 16px 24px 0; }

    .wk-article-head h1 { font-size: 32px; }

    .wk-form-row { grid-template-columns: 1fr; }

    /* Error pages: the watermark would overflow on a phone, and the two action
       buttons stack full-width rather than wrapping raggedly. */
    .bt-error { padding: 60px 24px; }

    .bt-error__code { font-size: 84px; }

    .bt-error__title { font-size: 28px; }

    .bt-error__actions .bt-btn { flex: 1 1 auto; justify-content: center; }

    .bt-search { max-width: 100%; }

    .bt-collections { margin-top: 40px; }

    .section { padding: 60px 24px; }

    .section-head { margin-bottom: 36px; }

    .tech { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }

    .cta-inner { grid-template-columns: 1fr; gap: 32px; }

    .cta-band { padding: 60px 24px; }

    .newsletter { padding: 60px 24px; }

    .news-form { flex-direction: column; }

    .wk-footer { padding: 60px 24px 28px; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

    .footer-bottom { flex-direction: column; gap: 8px; }

    .crumb { padding: 20px 24px 0; }

    .catalog-section { padding: 24px 24px 60px; }

    .cat-layout { grid-template-columns: 1fr; gap: 28px; }

    .pdp,
    .wk-pdp { grid-template-columns: 1fr; gap: 32px; padding: 24px 24px 60px; }

    /*
     * Below 1180 Bagisto swaps in its own mobile gallery, which is `w-screen`
     * (100vw). Inside a container with horizontal padding that is wider than the
     * available space and pushed a 24px horizontal scrollbar onto the page, so
     * the padding moves to the info column instead and the carousel goes
     * edge to edge as intended.
     */
    .wk-pdp { padding: 0 0 60px; }

    .wk-pdp .info { padding: 0 24px; }

    .gallery-thumbs { flex-direction: row; order: 2; position: static; overflow-x: auto; }

    .gallery-main { position: static; }

    /* Below 1180 Bagisto hides the desktop gallery and shows its own mobile
       carousel, so the thumbs/main split is not used at all. */
    .wk-gallery { grid-template-columns: 1fr; }

    .info h1 { font-size: 28px; }

    .cart-row { flex-direction: column; }

    .related-section { padding: 60px 24px; }
}

@media (max-width: 620px) {
    .cats-grid,
    .products-grid,
    .products,
    .related-section .products { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr; }

    .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }

    .cta-stats { grid-template-columns: 1fr 1fr; }

    .tech-stats { grid-template-columns: 1fr 1fr; }
}
