/* === BABURHASHIBD — Storefront chrome =================================== */
/*
   The marketplace layout: a three-row header (info strip, logo + mega search,
   pink category bar), a category rail beside the hero, and the section and
   card furniture the front page is built out of.

   Loads after css/app.css, which still owns the shared pieces — hero copy,
   sections, footer columns, the product/detail pages. Anything here that
   repeats a selector from app.css is a deliberate retune, not a duplicate:
   this file is the last stylesheet in, so it wins.

   Every colour comes from the tokens in css/brand.css — deep violet for
   structure, bright magenta-violet for anything that has to be pressed or noticed.
*/

:root {
    --secondary: var(--accent);
    --light: #f8f9fa;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --radius-md: 12px;

    /* Header geometry, shared by the sticky offsets further down. */
    --pc-nav-h: 48px;
    --pc-rail-w: 258px;
    /* The hero banner's height. The category rail is cut to the same figure,
       so the two sit level however many categories the shop has. */
    --pc-hero-h: 400px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background-color: var(--cream);
    overflow-x: hidden;
    font-size: 0.95rem;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; color: var(--dark); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; color: var(--dark); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; color: var(--dark); }

.container { padding-left: 16px; padding-right: 16px; }


/* === 1. INFO STRIP ==================================================== */
/* The thin line above the logo: delivery promise, language, helpline. */

.pc-topbar {
    background: var(--primary-darker);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 7px 0;
    position: relative;
    z-index: 1090;
}
.pc-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pc-topbar-note { display: flex; align-items: center; gap: 7px; }
.pc-topbar-note i { color: var(--accent-gold); font-size: 0.95rem; }
.pc-topbar-right { display: flex; align-items: center; gap: 6px; }
.pc-topbar-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    transition: var(--transition);
}
.pc-topbar-link:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pc-topbar-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.2); }

/* Language picker — opens on hover on the desktop, on focus everywhere else. */
.pc-lang { position: relative; }
.pc-lang-trigger {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.pc-lang-trigger:hover,
.pc-lang:focus-within .pc-lang-trigger { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pc-lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 120px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1200;
}
.pc-lang:hover .pc-lang-menu,
.pc-lang:focus-within .pc-lang-menu { display: flex; }
.pc-lang-menu a {
    color: var(--dark);
    text-decoration: none;
    padding: 9px 14px;
    font-size: 0.82rem;
    transition: var(--transition);
}
.pc-lang-menu a:hover { background: var(--leaf-tint); }
.pc-lang-menu a.active { background: var(--primary); color: #fff; font-weight: 600; }


/* === 2. MAIN HEADER =================================================== */
/* Logo, the full-width search, and the account/cart pair. */

.pc-header {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}
.pc-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.pc-header-brand { flex: 0 0 auto; }
.pc-header-brand .brand-logo { height: 80px; }

/* Search: a category select, the field, and a gold submit — one pill. */
.pc-search { flex: 1 1 auto; max-width: 620px; margin: 0 auto; }
.pc-search-box {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: var(--transition);
}
.pc-search-box:focus-within { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12); }
.pc-search-cat {
    border: none;
    background-color: var(--leaf-tint);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0 30px 0 18px;
    max-width: 155px;
    cursor: pointer;
    outline: none;
    /* The native arrow sits badly inside a pill, so it is drawn in instead. */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232f6b02'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}
.pc-search-input {
    flex: 1 1 auto;
    border: none;
    outline: none;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--dark);
    min-width: 0;
}
.pc-search-input::placeholder { color: #9aa891; }
.pc-search-btn {
    border: none;
    background: var(--accent);
    color: var(--primary-darker);
    font-size: 1.1rem;
    padding: 0 26px;
    cursor: pointer;
    transition: var(--transition);
}
.pc-search-btn:hover { background: var(--accent-dark); color: #fff; }

/* Account + cart. The labels drop away below the desktop breakpoint. */
.pc-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.pc-header-action {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--dark);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.pc-header-action:hover { background: var(--leaf-tint); color: var(--primary-dark); }
.pc-header-action > i { font-size: 1.5rem; color: var(--primary); }
.pc-action-label { display: flex; flex-direction: column; line-height: 1.25; }
.pc-action-label small { font-size: 0.68rem; color: var(--gray-500); }
.pc-action-label strong { font-size: 0.85rem; font-weight: 600; }
.pc-header-cart { position: relative; }
.pc-header-cart > i { color: var(--primary-dark); }
/* CartBadge mounts inside its placeholder span, which stays unpositioned, so
   the badge resolves against the link — park it on the icon's top-right. */
.pc-header-cart .cart-badge { top: 0; right: auto; left: 22px; }


/* === 3. CATEGORY BAR ================================================== */
/* The green strip: the all-categories rail on the left, links beside it. */

.pc-navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(30, 74, 1, 0.18);
}
.pc-navbar-inner { display: flex; align-items: stretch; gap: 6px; }

.pc-catmenu { position: relative; flex: 0 0 var(--pc-rail-w); }
.pc-catmenu-btn {
    width: 100%;
    height: var(--pc-nav-h);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 18px;
    cursor: pointer;
    transition: var(--transition);
}
.pc-catmenu-btn:hover { background: var(--primary-darker); }
.pc-catmenu-btn .bi-list { font-size: 1.25rem; }
.pc-catmenu-btn .pc-caret { margin-left: auto; font-size: 0.75rem; transition: var(--transition); }
.pc-catmenu:hover .pc-catmenu-btn .pc-caret { transform: rotate(180deg); }

.pc-catmenu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: var(--pc-rail-w);
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1100;
}
.pc-catmenu:hover .pc-catmenu-panel,
.pc-catmenu:focus-within .pc-catmenu-panel { display: block; }

/* Shared by the dropdown and the rail beside the hero. */
.pc-cat-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 16px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}
.pc-cat-link:hover { background: var(--leaf-tint); color: var(--primary-dark); padding-left: 20px; }
.pc-cat-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 26px;
    background: var(--gray-100);
}
.pc-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cat-count { margin-left: auto; font-size: 0.72rem; color: var(--gray-500); }
.pc-cat-all {
    display: block;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--gray-200);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
}
.pc-cat-all:hover { color: var(--primary-dark); }

.pc-nav-links {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
}
.pc-nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 7px;
    height: var(--pc-nav-h);
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.pc-nav-links > li > a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pc-nav-links > li > a.active { background: rgba(0, 0, 0, 0.16); color: #fff; font-weight: 600; }
.pc-nav-links .pc-nav-hot { color: var(--accent-gold); }

.pc-nav-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 4px 0 16px;
    white-space: nowrap;
}
.pc-nav-hotline i { color: var(--accent-gold); font-size: 1.1rem; }
.pc-nav-hotline:hover { color: var(--accent-gold); }


/* === 4. MOBILE HEADER ================================================= */

.pc-mobile-search { padding-bottom: 10px; background: #fff; }
.pc-mobile-search .pc-search-box { border-width: 1.5px; }
.pc-mobile-search .pc-search-input { padding: 9px 16px; font-size: 0.85rem; }
.pc-mobile-search .pc-search-btn { padding: 0 20px; }

@media (max-width: 991.98px) {
    .pc-header { padding: 10px 0 0; border-bottom: none; }
    .pc-header-inner { gap: 12px; padding-bottom: 10px; }
    .pc-header-brand .brand-logo { height: 38px; }
    .pc-header-actions { margin-left: auto; }
    .pc-header-action { padding: 6px; }
    .pc-action-label { display: none; }
    .pc-navbar { display: none; }
}
@media (max-width: 575.98px) {
    .pc-topbar { font-size: 0.72rem; }
    .pc-topbar-note { display: none; }
    .pc-topbar-inner { justify-content: center; gap: 8px; }
    .pc-header-brand .brand-logo { height: 34px; }
}


/* === 5. HERO ========================================================== */
/* Category rail beside the slider, the way the marketplaces lay it out. */

.pc-hero { padding: 20px 0 0; background: var(--cream); }
.pc-hero-grid { display: grid; grid-template-columns: var(--pc-rail-w) 1fr; gap: 20px; }
@media (max-width: 991.98px) {
    .pc-hero { padding-top: 14px; }
    .pc-hero-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Rail and banner are given the same fixed height so a long category list
   scrolls inside the card instead of hanging below the slider. */
.pc-hero-rail {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: var(--pc-hero-h);
    display: flex;
    flex-direction: column;
}
.pc-hero-rail-head {
    flex: 0 0 auto;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.pc-hero-rail-head i { color: var(--accent-gold); font-size: 1.1rem; }
.pc-hero-rail-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 0; }
.pc-hero-rail-body::-webkit-scrollbar { width: 6px; }
.pc-hero-rail-body::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
.pc-hero-rail .pc-cat-link { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 991.98px) { .pc-hero-rail { display: none; } }

/* The slider: an image banner with the admin's own copy laid over it. */
.pc-hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--primary-darker);
}
.pc-slide-media { position: relative; height: var(--pc-hero-h); }
.pc-slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-slide-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 74, 1, 0.88) 0%, rgba(30, 74, 1, 0.6) 38%, rgba(30, 74, 1, 0.05) 72%);
}
.pc-slide-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0 clamp(20px, 5%, 56px);
    max-width: 62%;
    z-index: 2;
}
.pc-slide-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(253, 161, 2, 0.95);
    color: var(--primary-darker);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 999px;
}
.pc-slide-title {
    color: #fff;
    font-size: clamp(1.2rem, 2.9vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.pc-slide-title span { color: var(--accent-gold); }
.pc-slide-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.78rem, 1.3vw, 1rem);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-slide-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--primary-darker);
    font-weight: 700;
    font-size: clamp(0.75rem, 1.2vw, 0.92rem);
    padding: 9px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
}
.pc-slide-btn:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }

.pc-hero-slider .carousel-control-prev,
.pc-hero-slider .carousel-control-next {
    width: 42px;
    height: 42px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    border-radius: 50%;
    opacity: 0;
    font-size: 1.2rem;
    transition: var(--transition);
}
.pc-hero-slider:hover .carousel-control-prev,
.pc-hero-slider:hover .carousel-control-next,
.pc-hero-slider .carousel-control-prev:focus-visible,
.pc-hero-slider .carousel-control-next:focus-visible { opacity: 1; }
.pc-hero-slider .carousel-control-prev { left: 14px; }
.pc-hero-slider .carousel-control-next { right: 14px; }
.pc-hero-slider .carousel-indicators { margin-bottom: 10px; }
.pc-hero-slider .carousel-indicators [data-bs-target] {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}
.pc-hero-slider .carousel-indicators .active { background: var(--accent); width: 24px; border-radius: 5px; }

@media (max-width: 1199.98px) { :root { --pc-hero-h: 330px; } }
@media (max-width: 991.98px) {
    /* The rail is gone below this width, so the banner can go back to a ratio. */
    .pc-slide-media { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
    .pc-slide-media { aspect-ratio: 16 / 10; }
    .pc-slide-body { max-width: 100%; padding: 0 18px; gap: 8px; }
    .pc-slide-text { display: none; }
    .pc-hero-slider .carousel-control-prev,
    .pc-hero-slider .carousel-control-next { display: none; }
}


/* === 6. SERVICE STRIP ================================================= */
/* Delivery / authenticity / payment / support, sitting under the hero. */

.pc-services { margin-top: 20px; }
.pc-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pc-service {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 15px 17px;
}
.pc-service-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--leaf-tint);
    color: var(--primary);
    font-size: 1.35rem;
}
.pc-service:nth-child(even) .pc-service-icon { background: var(--gold-tint); color: var(--accent-text); }
.pc-service h4 { font-size: 0.88rem; font-weight: 600; margin: 0 0 2px; color: var(--dark); }
.pc-service p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }

@media (max-width: 991.98px) { .pc-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
    .pc-service { padding: 12px; gap: 10px; }
    .pc-service-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.1rem; }
    .pc-service h4 { font-size: 0.78rem; }
    .pc-service p { display: none; }
}


/* === 7. SECTIONS ====================================================== */
/* A tighter rhythm than the old marketing sections: this is a shop front. */

.pc-section { padding: 34px 0; }
.pc-section-tint { background: var(--cream-dark); }
.pc-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.pc-section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: var(--primary-darker);
    margin: 0;
}
.pc-section-head h2::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: var(--brand-gradient);
    flex: 0 0 5px;
}
.pc-section-head h2 i { color: var(--accent-dark); }
.pc-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}
.pc-section-more:hover { color: var(--accent-dark); gap: 10px; }

/* === CAROUSEL (multi-item, scroll-snap) =================================
   A horizontally-scrolling strip that shows N items at a time with arrow
   buttons for the rest, rather than a grid that wraps everything onto more
   rows. Used by both "Shop by Category" and "Customer Reviews" below;
   .pc-cat-grid / .pc-review-grid only set the per-item width. No JS library
   — scroll-snap does the paging, a few lines of vanilla JS (home.blade.php)
   drive the arrow buttons via scrollBy(). */
.pc-carousel-wrap { position: relative; }
.pc-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pc-carousel::-webkit-scrollbar { display: none; }
.pc-carousel > * { scroll-snap-align: start; flex-shrink: 0; }

.pc-carousel-nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--primary);
    transition: var(--transition);
}
.pc-carousel-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pc-carousel-nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.pc-carousel-prev { left: -18px; }
.pc-carousel-next { right: -18px; }
@media (max-width: 767.98px) {
    /* No room for floating arrows on a phone; the strip still scrolls by touch. */
    .pc-carousel-nav { display: none; }
}

/* Category tiles — a round image over the name, marketplace style. */
.pc-cat-tile {
    flex-basis: calc((100% - 5 * 14px) / 6);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border: 1px solid transparent;
}
.pc-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.25);
}
.pc-cat-tile-img {
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--leaf-tint);
    padding: 4px;
}
.pc-cat-tile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-cat-tile:hover .pc-cat-tile-name { color: var(--primary); }

@media (max-width: 991.98px) { .pc-cat-tile { flex-basis: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 575.98px) {
    .pc-cat-grid { gap: 10px; }
    .pc-cat-tile { flex-basis: calc((100% - 2 * 10px) / 3); padding: 12px 6px; }
    .pc-cat-tile-img { width: 56px; height: 56px; }
    .pc-cat-tile-name { font-size: 0.72rem; }
}

/* Review cards — a rating, the words, and who said it. */
.pc-review-card {
    flex-basis: calc((100% - 2 * 14px) / 3);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    border: 1px solid transparent;
    transition: var(--transition);
}
.pc-review-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--primary-rgb), 0.2); }
.pc-review-stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.pc-review-title { font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.pc-review-body {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.pc-review-meta { display: flex; align-items: center; gap: 10px; }
.pc-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex: none;
}
.pc-review-name { font-weight: 700; font-size: 0.85rem; color: var(--dark); }
.pc-review-product { font-size: 0.72rem; color: var(--gray-500); }
.pc-review-verified { color: var(--success); font-size: 0.7rem; }

@media (max-width: 991.98px) { .pc-review-card { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 575.98px) { .pc-review-card { flex-basis: 86%; } }

/* The deal block: a banner-headed panel wrapped around a product row. */
.pc-deal { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.pc-deal-head {
    background: linear-gradient(100deg, var(--primary-dark) 0%, var(--primary) 45%, var(--accent-dark) 100%);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.pc-deal-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.pc-deal-head h2 i { color: var(--accent-gold); }
.pc-deal-head p { margin: 2px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); }
.pc-deal-more {
    color: var(--primary-darker);
    background: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
}
.pc-deal-more:hover { background: #fff; color: var(--primary-dark); }
.pc-deal-body { padding: 16px; }

/* Wide promo tiles between the product rows. */
.pc-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pc-promo {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.pc-promo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 74, 1, 0.85), rgba(30, 74, 1, 0.35));
}
.pc-promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pc-promo > * { position: relative; z-index: 2; }
.pc-promo small { color: var(--accent-gold); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pc-promo h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin: 6px 0 10px; }
.pc-promo span { color: #fff; font-size: 0.8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767.98px) { .pc-promo-grid { grid-template-columns: 1fr; } }


/* === 8. PRODUCT CARD ================================================== */
/* Retunes the card app.css defines, so the shop and detail pages follow. */

.product-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: none;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-md);
}
.product-card-image { background: #fff; }
/* app.css crops the shot to fill the square. A jar or a bottle photographed on
   white has to be shown whole, so it is fitted inside the square instead —
   which is what the storefront actually did before this file existed. */
.product-card-image img { object-fit: contain; padding: 10px; }

/* The discount flag, in the brand's gold. */
.badge-discount {
    background: var(--accent-dark);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(240, 123, 0, 0.35);
}
.product-card-body { padding: 12px 14px 6px; }
.product-category {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.product-name { font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; }
.price-current { color: var(--primary-dark); font-weight: 700; font-size: 1.05rem; }
.price-original { color: var(--gray-500); font-size: 0.82rem; }
.product-card-footer { padding: 0 14px 14px; }
/* Keeps app.css's filled green button, pilled and sized down for the tighter card. */
.btn-add-cart { border-radius: 999px; font-size: 0.8rem; padding: 9px 12px; }

/* Add to Cart and Buy Now stacked: the card is too narrow to share a row. */
.product-card-actions { display: grid; gap: 6px; }

/* Buy Now — the accent tone, so it reads apart from the green Add to Cart. */
.btn-buy-now {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-buy-now:hover {
    background: linear-gradient(135deg, var(--accent-text), var(--accent-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.3);
}
.btn-buy-now:disabled { opacity: 0.7; cursor: wait; transform: none; box-shadow: none; }
.btn-add-cart.btn-buy-now { border-radius: 999px; font-size: 0.8rem; padding: 9px 12px; width: 100%; }

@media (max-width: 767.98px) {
    .product-detail-info .btn-buy-now { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .product-card-body { padding: 10px 10px 4px; }
    .product-card-footer { padding: 0 10px 10px; }
    .product-name { font-size: 0.82rem; }
    .price-current { font-size: 0.95rem; }
    .product-category { display: none; }
}


/* === 9. FOOTER ======================================================== */

.pc-payments { background: #fff; border-top: 1px solid var(--gray-200); padding: 18px 0; }
.pc-payments-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pc-payments-label { font-size: 0.82rem; font-weight: 600; color: var(--gray-500); }
.pc-payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}
.pc-payment-chip i { color: var(--primary); font-size: 1rem; }

/* app.css already paints the footer's green gradient; only the pieces the new
   bottom row adds are defined here. */
.footer-title { color: #fff; }
.pc-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pc-footer-bottom-inner p { margin: 0; }
.pc-footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.pc-footer-bottom-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.82rem; }
.pc-footer-bottom-links a:hover { color: var(--accent-gold); }


/* === 10. MOBILE BOTTOM NAV ============================================ */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 18px rgba(30, 74, 1, 0.1);
    border-top: 1px solid var(--gray-200);
    border-radius: 0;
    z-index: 2000;
}
.mobile-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.68rem;
    transition: var(--transition);
}
.mobile-nav a i { font-size: 1.35rem; margin-bottom: 0; }
.mobile-nav a.active { color: var(--primary); font-weight: 700; }

main { padding-bottom: 74px; }
@media (min-width: 992px) { main { padding-bottom: 0; } }

.nav-icon-btn { font-size: 1.5rem; color: var(--dark); transition: var(--transition); display: flex; align-items: center; }
.nav-icon-btn:hover { color: var(--primary); }


/* === 11. INNER PAGE HEAD ============================================== */
/*
   The strip under the category bar on shop, cart, checkout and the account
   pages. Each of those wrote its own tall dark-green banner in its own
   <style> block; they had already drifted into three different greens, and a
   second green band directly beneath the green nav read as one heavy slab.
   One light strip instead, defined once.
*/

.pc-page-head {
    background: var(--cream-dark);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    margin-bottom: 28px;
}
.pc-page-head h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-darker);
    margin: 0;
}
.pc-page-head h1 i { color: var(--accent-dark); }
.pc-page-lead { margin: 6px 0 0; color: var(--gray-500); font-size: 0.88rem; }

.pc-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--gray-500);
}
.pc-crumbs a { color: var(--primary); text-decoration: none; }
.pc-crumbs a:hover { color: var(--accent-dark); }
.pc-crumbs .pc-crumb-sep { opacity: 0.45; }

@media (max-width: 575.98px) {
    .pc-page-head { padding: 14px 0; margin-bottom: 20px; }
}

/* The strip already supplies the gap, so the section under it starts flush. */
.pc-page-head + .section { padding-top: 0; }


/* === 11b. STATIC & POLICY PAGES ========================================
   Terms, privacy, returns, shipping. These were a bare white card with a
   full-opacity leaf emoji from the old organic-food theme sitting across the
   text, and rich-text markup that nothing styled — every heading came out the
   same weight, so a page of policy read as one undifferentiated block.

   The prose scale below is the whole point: an admin writes h2/h3/ul/ol in the
   editor and gets a readable document without touching CSS.
*/
.legal-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 30px 34px;
    overflow: hidden;
}
/* --- the prose scale ---------------------------------------------------- */
/* A measure, not the full card width: policy text runs long, and a 120-character
   line is where people start losing which row they were on. */
.legal-prose {
    max-width: 68ch;
    color: #3d3548;
    font-size: 1.02rem;
    line-height: 1.85;
}
.legal-prose > *:first-child { margin-top: 0; }
.legal-prose > *:last-child { margin-bottom: 0; }

/* h2 opens a section and carries a brand rule; h3 is a heading inside one. */
.legal-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 2.2rem 0 0.85rem;
    padding-left: 14px;
    border-left: 4px solid var(--accent);
    line-height: 1.4;
}
.legal-prose h3 {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 1.9rem 0 0.6rem;
    line-height: 1.5;
}
.legal-prose h4 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #4a4155;
    margin: 1.5rem 0 0.5rem;
}
.legal-prose p { margin: 0 0 1.05rem; }
.legal-prose strong { color: var(--primary-dark); font-weight: 700; }
.legal-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-prose a:hover { color: var(--accent-dark); }

/* Markers in the brand colour, and the text hanging off them rather than
   wrapping back under the bullet. */
.legal-prose ul,
.legal-prose ol {
    margin: 0 0 1.15rem;
    padding-left: 0;
    list-style: none;
}
.legal-prose li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.55rem;
}
.legal-prose ul > li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.legal-prose ol { counter-reset: legal-step; }
.legal-prose ol > li { counter-increment: legal-step; }
.legal-prose ol > li::before {
    content: counter(legal-step);
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
}
.legal-prose blockquote {
    margin: 1.2rem 0;
    padding: 14px 18px;
    border-left: 3px solid var(--primary-light);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #4a4155;
}
.legal-prose table {
    width: 100%;
    margin: 1.2rem 0;
    border-collapse: collapse;
    font-size: 0.94rem;
}
.legal-prose th,
.legal-prose td {
    border: 1px solid var(--gray-200);
    padding: 9px 12px;
    text-align: left;
}
.legal-prose th { background: var(--cream-dark); color: var(--primary-dark); font-weight: 700; }
.legal-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.legal-prose hr { margin: 1.8rem 0; border: 0; border-top: 1px solid var(--gray-200); }

/* --- the sidebar -------------------------------------------------------- */
.legal-aside { position: sticky; top: 90px; }
.legal-nav {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 16px;
}
.legal-nav h2 {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin: 0 0 12px;
    padding: 0 6px;
}
.legal-nav ul { list-style: none; padding: 0; margin: 0; }
.legal-nav li + li { margin-top: 2px; }
.legal-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: #4a4155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.legal-nav a i { font-size: 0.55rem; opacity: 0.4; }
.legal-nav a:hover {
    background: var(--cream-dark);
    color: var(--primary);
}
.legal-nav a:hover i { opacity: 0.7; }
.legal-nav a.is-current {
    background: linear-gradient(135deg, var(--primary), var(--primary-brand));
    color: #fff;
    font-weight: 600;
}
.legal-nav a.is-current i { opacity: 1; }

.legal-help {
    margin-top: 16px;
    background: linear-gradient(150deg, var(--cream-dark), var(--gold-tint));
    border-radius: var(--radius);
    padding: 20px 18px;
    text-align: center;
}
.legal-help > i {
    font-size: 1.7rem;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}
.legal-help h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-darker);
    margin: 0 0 4px;
}
.legal-help p {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0 0 14px;
    line-height: 1.6;
}
.legal-help .btn-primary-custom {
    font-size: 0.85rem;
    padding: 9px 18px;
    justify-content: center;
    width: 100%;
}

@media (max-width: 991.98px) {
    /* Sticky is pointless once the sidebar sits above the article. */
    .legal-aside { position: static; }
    .legal-help { margin-bottom: 4px; }
}
@media (max-width: 575.98px) {
    .legal-card { padding: 20px 18px 26px; border-radius: var(--radius); }
    .legal-prose { font-size: 0.97rem; line-height: 1.8; }
    .legal-prose h2 { font-size: 1.13rem; }
}

/* === 12. ACCOUNT PAGES ================================================ */
/*
   The dashboard, the profile screen and an order's detail page all draw the
   customer's initial in a circle marked up as
   `.avatar-placeholder .bg-primary-light`. Neither class was ever defined —
   Bootstrap has no bg-primary-light — so the circle rendered as a bare green
   letter on nothing. Styled here rather than three times over.
*/
.avatar-placeholder {
    background: var(--leaf-tint);
    color: var(--primary-dark);
    border: 2px solid rgba(var(--primary-rgb), 0.15);
}


/* === 13. COUPON BOX =================================================== */
/* The discount-code field in the cart summary, and the flag on a line the
   code actually beat. */

.cart-coupon { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--gray-200); }
.cart-coupon-form { display: flex; gap: 8px; }
.cart-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    text-transform: uppercase;
    outline: none;
    transition: var(--transition);
}
.cart-coupon-input::placeholder { text-transform: none; color: #9aa891; }
.cart-coupon-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12); }
.cart-coupon-btn {
    flex: 0 0 auto;
    border: none;
    background: var(--accent);
    color: var(--primary-darker);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}
.cart-coupon-btn:hover:not(:disabled) { background: var(--accent-dark); color: #fff; }
.cart-coupon-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.cart-coupon-on {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--leaf-tint);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
}
.cart-coupon-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
    letter-spacing: 0.03em;
}
.cart-coupon-drop {
    border: none;
    background: none;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
}
.cart-coupon-drop:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-coupon-error { margin: 8px 0 0; font-size: 0.78rem; color: var(--danger); }

/* On a cart line where the code beat the product's own offer. */
.cart-coupon-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    background: var(--gold-tint);
    color: var(--accent-text);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.summary-row.summary-discount { color: var(--accent-text); font-weight: 600; }
.summary-row.summary-discount small { font-weight: 400; font-size: 0.72rem; }

/* === STAR RATING INPUT ===================================================
   Five radio buttons, reversed in the DOM and in flex direction, so the CSS
   "checked ~ label" sibling selector — which only ever reaches forward —
   ends up lighting up everything to the *left* of the chosen star. No JS. */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--gray-200);
    cursor: pointer;
    transition: color 0.15s;
}
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: var(--accent);
}
