/* =========================================================================
   Princess & Beast — Modern Storefront Theme
   Loads AFTER style.css / responsive.css / color-skin / custom.css and
   overrides them for a clean, premium, mobile-first, RTL-first look.
   Nothing here renames or removes the classes/ids that public/js/custom.js
   and public/js/main.js rely on (.view_product, .wish_product, #size_color,
   .cart_count, .wishlist_count, #add_to_cart_page, .subtotal, .grandtotal,
   etc.) — only their visual presentation changes.
   ========================================================================= */

:root {
    --pb-bg: #FBF8F3;
    --pb-bg-alt: #F4EEE3;
    --pb-surface: #FFFFFF;
    --pb-text: #2A2420;
    --pb-text-muted: #7A6F63;
    --pb-border: #EAE2D3;
    --pb-gold: #AD8A4E;
    --pb-gold-dark: #8C6F3C;
    --pb-gold-light: #EFE3C8;
    --pb-danger: #B23A3A;
    --pb-success: #3F8F5D;
    --pb-radius-sm: 8px;
    --pb-radius: 14px;
    --pb-radius-lg: 22px;
    --pb-shadow: 0 6px 24px rgba(42, 36, 32, 0.07);
    --pb-shadow-lg: 0 16px 48px rgba(42, 36, 32, 0.12);
    --pb-container: 1240px;
    --pb-font: 'Cairo', 'Poppins', -apple-system, Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    background: var(--pb-bg);
    color: var(--pb-text);
    max-width: 100%;
    overflow-x: hidden;
}

html { height: 100%; }

body {
    font-family: var(--pb-font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Every page template renders its content inside a direct <main> child
   of <body>, followed by the <footer>. Growing main to fill any leftover
   viewport height keeps the footer pinned to the bottom on short pages
   (empty wishlist/orders, etc.) instead of floating mid-screen. */
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

html[dir="rtl"] body { direction: rtl; text-align: right; }

h1, h2, h3, h4, h5, h6,
.font-pop, .widget-title {
    font-family: var(--pb-font);
    font-weight: 700;
    color: var(--pb-text);
    letter-spacing: 0;
}

a { color: var(--pb-text); }
a:hover, a:focus { color: var(--pb-gold-dark); text-decoration: none; }

/* the legacy color-skin layer paints price/active-state accents pink (#e56d8e)
   via direct rules on ins/del/etc — override with equal specificity so gold wins */
.price ins, .price del, ins, del { color: var(--pb-gold-dark); text-decoration: none; }
.price del { color: var(--pb-text-muted); text-decoration: line-through; }

::selection { background: var(--pb-gold-light); color: var(--pb-text); }

.container { max-width: var(--pb-container); }

img { max-width: 100%; }

/* -------------------------------------------------------------------------
   Section scaffolding shared across the homepage / listing pages
   ------------------------------------------------------------------------- */
.pb-section { padding: 56px 0; }
.pb-section--tight { padding: 32px 0; }
.pb-section--alt { background: var(--pb-bg-alt); }

.pb-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}
.pb-section-head .pb-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--pb-gold-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}
.pb-section-head h2 {
    font-size: 28px;
    margin: 0 0 10px;
}
.pb-section-head p { color: var(--pb-text-muted); margin: 0; font-size: 15px; }
.pb-section-head .pb-view-all {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pb-gold-dark);
    border-bottom: 1px solid var(--pb-gold);
    padding-bottom: 2px;
}

/* =========================================================================
   HEADER — new from-scratch structure (views/partials/header_nav.php)
   .site-header > .site-header-main (toggle, logo, search, actions) + nav.site-nav
   ========================================================================= */
.site-header {
    background: var(--pb-surface);
    box-shadow: 0 1px 0 var(--pb-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.site-header-main {
    max-width: var(--pb-container);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 56px; width: auto; }

.mobile-menu-toggle {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--pb-border);
    border-radius: 50%;
    background: var(--pb-surface);
    box-shadow: var(--pb-shadow);
    flex-shrink: 0;
    transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
/* A generic legacy `button:hover/:focus { background:#007acc }` rule
   (style.css) ties on specificity with a plain class selector once a
   pseudo-class is added, so it was winning and flashing the toggle blue
   on tap - pin it back down explicitly. */
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--pb-gold-light) !important;
    border-color: var(--pb-gold);
    outline: none;
}
.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--pb-text);
    margin: 0 auto;
    transition: transform .25s ease, opacity .2s ease, width .2s ease;
}
/* animate hamburger -> X while the drawer is open */
body.nav-drawer-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-drawer-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; width: 0; }
body.nav-drawer-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* search box */
.site-search {
    flex: 1 1 auto;
    position: relative;
    max-width: 480px;
}
.site-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px !important;
    height: 18px !important;
    min-width: 0 !important;
    color: var(--pb-text-muted);
    font-size: 13px;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}
.site-search-icon:hover { color: var(--pb-gold-dark); }
html:not([dir="rtl"]) .site-search-icon { right: auto; left: 16px; }
.site-search input,
#site_search_input {
    width: 100%;
    border-radius: 999px;
    background: var(--pb-bg-alt);
    border: 1px solid transparent;
    padding: 11px 44px 11px 18px;
    font-size: 14px;
    direction: rtl;
    text-align: right;
}
html:not([dir="rtl"]) #site_search_input { direction: ltr; text-align: left; padding: 11px 18px 11px 44px; }
.site-search input:focus { background: var(--pb-surface); border-color: var(--pb-gold); box-shadow: none; }

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-lg);
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 50;
}
.site-search.open .search-results { display: block; }
.search-results li { list-style: none; }
.search-results .search-empty { padding: 14px; text-align: center; color: var(--pb-text-muted); font-size: 13px; }
.search-results .search-result a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--pb-radius-sm);
}
.search-results .search-result a:hover { background: var(--pb-bg-alt); }
.search-results .search-result img {
    width: 48px; height: 48px; object-fit: cover; border-radius: var(--pb-radius-sm);
    background: var(--pb-bg-alt);
    flex-shrink: 0;
}
.search-result-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.search-result-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 12px; color: var(--pb-gold-dark); font-weight: 700; }
.search-results .search-see-all { border-top: 1px solid var(--pb-border); margin-top: 4px; }
.search-results .search-see-all a {
    display: block;
    text-align: center;
    padding: 10px 8px 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--pb-gold-dark);
}
.search-results .search-see-all a:hover { text-decoration: underline; }

/* header action icons: search-toggle (mobile), wishlist, cart, account */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn-wrap { position: relative; }
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    color: var(--pb-text-muted);
    position: relative;
    font-size: 16px;
    box-shadow: var(--pb-shadow);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.icon-btn:hover, .icon-btn:focus {
    background: var(--pb-text);
    border-color: var(--pb-text);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--pb-shadow-lg);
}
/* custom.js toggles a legacy .hide class on the cart/wishlist icon when the
   count reaches zero — we keep the icon itself always visible/accessible
   and only the numeric badge communicates the count. */
.icon-btn.hide { display: flex !important; }
.icon-btn .count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: var(--pb-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--pb-surface);
}
.icon-btn .count:empty { display: none; }
.search-toggle { display: none; }

/* mini cart / wishlist / account dropdown
   The dropdown-menu box itself sits flush against the icon (top:100%,
   no gap) and the "floating" look comes from padding-top instead of a
   real gap - that way the whole path from the icon down through the
   visible card is one continuous hoverable box, so moving the mouse
   toward a button anywhere in the card (even far from the icon) can
   never drop :hover the way an external margin/gap would. The actual
   background/border/shadow card lives on the inner wrapper
   (.wish_items / .cart_items / .account-menu). */
.icon-btn-wrap .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s;
    position: absolute;
    top: 100%;
    padding-top: 14px;
    inset-inline-end: -10px;
    min-width: 340px;
    z-index: 90;
}
.icon-btn-wrap:hover .dropdown-menu,
.icon-btn-wrap:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.icon-btn-wrap.account-actions .dropdown-menu { min-width: 220px; }

.wish_items, .cart_items, .account-menu {
    position: relative;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    box-shadow: var(--pb-shadow-lg);
    transform: translateY(8px);
    transition: transform .16s ease;
}
.icon-btn-wrap:hover .wish_items, .icon-btn-wrap:hover .cart_items, .icon-btn-wrap:hover .account-menu,
.icon-btn-wrap:focus-within .wish_items, .icon-btn-wrap:focus-within .cart_items, .icon-btn-wrap:focus-within .account-menu {
    transform: translateY(0);
}
.wish_items:before, .cart_items:before, .account-menu:before {
    content: "";
    position: absolute;
    top: -7px;
    inset-inline-end: 24px;
    width: 14px;
    height: 14px;
    background: var(--pb-surface);
    border-inline-start: 1px solid var(--pb-border);
    border-top: 1px solid var(--pb-border);
    transform: rotate(45deg);
}

/* shared "mini panel" chrome: header / list / footer / empty state, used by
   the wishlist + cart dropdowns and the account dropdown */
.pb-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--pb-border);
}
.pb-mini-head h6 { margin: 0; font-size: 14px; font-weight: 700; }
.pb-mini-count {
    background: var(--pb-bg-alt);
    color: var(--pb-text-muted);
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    text-align: center;
}

.pb-mini-list { list-style: none; margin: 0; padding: 6px 10px; max-height: 320px; overflow-y: auto; }
.pb-mini-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--pb-radius-sm); position: relative; }
.pb-mini-item:hover { background: var(--pb-bg-alt); }
.pb-mini-item + .pb-mini-item { border-top: 1px solid var(--pb-border); }
.pb-mini-item-img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: var(--pb-radius-sm);
    overflow: hidden;
    display: block;
    background: var(--pb-bg-alt);
}
.pb-mini-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-mini-item-body { flex: 1; min-width: 0; }
.pb-mini-item-body h6 {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-mini-item-meta {
    display: block;
    font-size: 11px;
    color: var(--pb-text-muted);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-mini-item-row { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.pb-mini-item-qty { color: var(--pb-text-muted); }
.pb-mini-item-price { font-weight: 700; color: var(--pb-gold-dark); }
.pb-mini-item-view { color: var(--pb-text-muted); text-decoration: underline; }
.pb-mini-item-view:hover { color: var(--pb-gold-dark); }
.pb-mini-item-remove {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pb-text-muted);
    background: transparent;
    border: 0;
    font-size: 11px;
    transition: background .15s ease, color .15s ease;
}
.pb-mini-item-remove:hover { background: var(--pb-danger); color: #fff; }

.pb-mini-foot { padding: 14px 18px 16px; border-top: 1px solid var(--pb-border); display: flex; gap: 8px; }
.pb-mini-foot .button {
    flex: 1;
    display: block;
    text-align: center;
    padding: 11px;
    border-radius: 999px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    background: var(--pb-bg-alt);
    color: var(--pb-text) !important;
    border-color: var(--pb-bg-alt);
}
.pb-mini-foot .button.checkout {
    background: var(--pb-text);
    border-color: var(--pb-text);
    color: #fff !important;
}

.pb-mini-empty { padding: 34px 20px; text-align: center; color: var(--pb-text-muted); }
.pb-mini-empty i { display: block; font-size: 30px; color: var(--pb-border); margin-bottom: 10px; }
.pb-mini-empty p { margin: 0; font-size: 13px; }

.pb-account-links { padding: 8px; }
.pb-account-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--pb-radius-sm);
    color: var(--pb-text);
}
.pb-account-links a:hover { background: var(--pb-bg-alt); color: var(--pb-gold-dark); }
.pb-account-links a i { width: 16px; text-align: center; color: var(--pb-text-muted); }

/* -------------------------------------------------------------------------
   Main nav / mega menu
   ------------------------------------------------------------------------- */
.site-nav {
    background: var(--pb-surface);
    border-top: 1px solid var(--pb-border);
}
.site-nav-list {
    max-width: var(--pb-container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}
.site-nav-list > li { list-style: none; position: relative; }
.site-nav-list > li > a {
    display: block;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-text);
}
.site-nav-list > li > a:hover { color: var(--pb-gold-dark); }
.site-nav-list .nav-highlight > a { color: var(--pb-gold-dark); }
.site-nav-list .mega-toggle i { font-size: 10px; margin-inline-start: 4px; }

.mega-panel {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: 0 0 var(--pb-radius) var(--pb-radius);
    box-shadow: var(--pb-shadow-lg);
    padding: 24px;
    min-width: 640px;
    z-index: 90;
}
html[dir="rtl"] .mega-panel { transform: translateX(50%); }
.has-mega:hover .mega-panel { display: block; }
.mega-panel-inner { display: flex; flex-wrap: wrap; gap: 28px; }
.mega-col { min-width: 150px; }
.mega-col h6 { font-size: 13px; margin-bottom: 10px; }
.mega-col h6 a { color: var(--pb-gold-dark); }
.mega-col ul { padding: 0; margin: 0; list-style: none; }
.mega-col ul li { list-style: none; margin-bottom: 6px; }
.mega-col ul li a { font-size: 13px; color: var(--pb-text-muted); }
.mega-col ul li a:hover { color: var(--pb-gold-dark); }

.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 10, .5);
    z-index: 150;
    opacity: 0;
    transition: opacity .25s ease;
}
body.nav-drawer-open .mobile-drawer-backdrop { display: block; opacity: 1; }

/* drawer header (logo + close button) - only exists for the mobile slide-out
   drawer, hidden on the desktop horizontal bar */
.pb-drawer-head { display: none; }
.pb-nav-icon { display: none; }

@media (max-width: 991px) {
    .mobile-menu-toggle { display: flex; }
    .site-search { display: none; }
    .search-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset-inline-start: 0;
        top: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        background: var(--pb-surface);
        transform: translateX(-101%);
        transition: transform .3s ease;
        z-index: 190;
        overflow-y: auto;
        border-top: 0;
        box-shadow: var(--pb-shadow-lg);
        display: flex;
        flex-direction: column;
    }
    html[dir="rtl"] .site-nav { transform: translateX(101%); }
    body.nav-drawer-open .site-nav { transform: translateX(0); }
    body.nav-drawer-open { overflow: hidden; }

    .pb-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px 16px;
        background: var(--pb-bg-alt);
        border-bottom: 1px solid var(--pb-border);
        flex-shrink: 0;
    }
    .pb-drawer-logo img { height: 32px; width: auto; display: block; }
    .pb-drawer-close {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        background: var(--pb-surface);
        border: 1px solid var(--pb-border);
        color: var(--pb-text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
    }
    .pb-drawer-close:hover { background: var(--pb-danger); color: #fff; border-color: var(--pb-danger); }

    .site-nav-list { flex-direction: column; align-items: stretch; padding: 6px 0 24px; gap: 0; }
    .site-nav-list > li { width: 100%; border-bottom: 1px solid var(--pb-border); }
    .site-nav-list > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        font-size: 14.5px;
        font-weight: 700;
        transition: background .15s ease, color .15s ease;
    }
    .site-nav-list > li > a:hover,
    .site-nav-list > li > a:active { background: var(--pb-bg-alt); color: var(--pb-gold-dark); }
    .pb-nav-icon { display: inline-flex !important; width: 16px; font-size: 14px; color: var(--pb-gold-dark); }
    .site-nav-list .mega-toggle { justify-content: space-between; }
    .site-nav-list .mega-toggle i.fa-angle-down { color: var(--pb-text-muted); transition: transform .25s ease, color .25s ease; }
    .has-mega.mega-open > .mega-toggle { background: var(--pb-bg-alt); color: var(--pb-gold-dark); }
    .has-mega.mega-open > .mega-toggle i.fa-angle-down { transform: rotate(180deg); color: var(--pb-gold-dark); }

    .mega-panel {
        display: none;
        position: static;
        transform: none !important;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 6px 18px 16px;
        min-width: 0;
        width: 100%;
        background: var(--pb-bg-alt);
    }
    .has-mega:hover .mega-panel { display: none; }
    .has-mega.mega-open .mega-panel { display: block; }
    .mega-panel-inner { flex-direction: column; gap: 16px; }
    .mega-col { padding-inline-start: 12px; border-inline-start: 2px solid var(--pb-border); }
    .mega-col h6 { font-size: 13.5px; font-weight: 800; }
    .mega-col ul li { margin-bottom: 2px; }
    .mega-col ul li a { display: block; padding: 5px 0; }

    .nav-highlight { border-bottom: 0 !important; padding: 12px 16px 4px; }
    .nav-highlight > a {
        background: linear-gradient(135deg, var(--pb-gold), var(--pb-gold-dark));
        color: #fff !important;
        border-radius: 999px;
        justify-content: center;
        padding: 12px 16px;
        font-weight: 800;
    }
    .nav-highlight > a:hover { background: var(--pb-text); color: #fff !important; }
    .nav-highlight .pb-nav-icon { color: #fff; }

    .site-header-main { padding: 10px 12px; gap: 6px; }
    .site-logo img { height: 34px; }
    .header-actions { gap: 2px; }
    .icon-btn { width: 34px; height: 34px; font-size: 14px; }
    .icon-btn-wrap .dropdown-menu { position: fixed; inset-inline: 12px; top: 68px; min-width: 0; padding-top: 10px; }
    .wish_items:before, .cart_items:before, .account-menu:before { display: none; }

    .site-search.mobile-open {
        display: block;
        position: fixed;
        top: 62px;
        inset-inline: 0;
        padding: 10px 14px;
        background: var(--pb-surface);
        border-bottom: 1px solid var(--pb-border);
        max-width: none;
        z-index: 120;
    }
}

/* =========================================================================
   BUTTONS & FORMS
   ========================================================================= */
.btn, .button, button,
input[type="submit"] {
    font-family: var(--pb-font);
    border-radius: 999px;
}

.button, .btn.btn-default, #add_to_cart, #add_to_cart_page,
.checkout-button, form.checkout .button, .go_check_out,
.woocommerce-tabs ul.tabs li a, input[type="submit"] {
    background: var(--pb-text);
    color: #fff !important;
    border: 1px solid var(--pb-text);
    padding: 13px 28px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    transition: all .15s ease;
}
.button:hover, .btn.btn-default:hover, #add_to_cart:hover, #add_to_cart_page:hover,
.checkout-button:hover, form.checkout .button:hover {
    background: var(--pb-gold-dark);
    border-color: var(--pb-gold-dark);
    color: #fff !important;
}

.button-wish, .wish_product.button-wish {
    background: transparent !important;
    border: 1px solid var(--pb-border) !important;
    color: var(--pb-text) !important;
}
.button-wish:hover { border-color: var(--pb-gold) !important; color: var(--pb-gold-dark) !important; }

input[type="text"], input[type="number"], input[type="email"],
input[type="password"], input[type="tel"], textarea, select {
    font-family: var(--pb-font);
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--pb-text);
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--pb-gold);
    box-shadow: 0 0 0 3px var(--pb-gold-light);
}

.quantity-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    overflow: hidden;
}
.quantity-wrap span.minus, .quantity-wrap span.add {
    width: 36px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    color: var(--pb-text-muted);
}
.quantity-wrap input.qty {
    border: 0;
    width: 46px;
    text-align: center;
    padding: 0;
}

/* =========================================================================
   PRODUCT CARDS
   Real markup (home/category/related): ul.products > [a >] li.product >
     figure > (.icons, .product-wrap > a + img) , + .content > h6 + .bottom .price
   .product-wrap is only the image box, NOT the whole card — the card is li.product.
   ========================================================================= */
ul.products { display: flex; flex-wrap: wrap; margin: 0 -12px; list-style: none; padding: 0; }
ul.products li.product {
    display: block;
    float: none;
    list-style: none;
    padding: 0 12px;
    margin: 0 0 28px 0 !important;
    width: 25%;
}
ul.products li.product.big { width: 100%; }

ul.products li.product > figure,
ul.products li.product a > figure {
    display: block;
    height: auto !important;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    position: relative;
    margin: 0;
}
ul.products li.product:hover > figure,
ul.products li.product:hover a > figure { box-shadow: var(--pb-shadow-lg); transform: translateY(-3px); }

.product-wrap,
li.product figure .product-wrap {
    display: block !important;
    width: 100%;
    height: auto !important;
    background: var(--pb-bg-alt);
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-list .product .product-wrap img,
ul.products li.product .product-wrap img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
ul.products li.product:hover .product-wrap img { transform: scale(1.06); }

/* quick-shop icons: always visible (works on touch too), small + subtle
   Note: legacy style.css has a more specific "ul.products li.product .icons .btn"
   rule (white text, border-radius:0, absolute+rotateX flip animation) — match
   its ancestor chain here so ours reliably wins instead of losing on specificity. */
ul.products li.product figure .icons,
ul.products li.product a figure .icons {
    position: absolute !important;
    inset-inline-end: 12px;
    top: 12px;
    bottom: auto !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    transform: none !important;
    text-align: center;
}
ul.products li.product figure .icons a.btn,
ul.products li.product a figure .icons a.btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(42,36,32,.06) !important;
    border-radius: 50% !important;
    background: var(--pb-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(42,36,32,.18);
    color: var(--pb-text) !important;
    font-size: 15px;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
ul.products li.product figure .icons a.btn:hover,
ul.products li.product a figure .icons a.btn:hover {
    background: var(--pb-gold);
    border-color: var(--pb-gold) !important;
    color: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(173,138,78,.4);
}
figure .icons .loading { display: none; }

/* discount badge */
.pb-badge {
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    z-index: 5;
    background: var(--pb-text);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
}

.content { padding: 14px 12px; text-align: center; background: var(--pb-surface); }
.content h6 {
    font-size: 13.5px;
    font-weight: 600;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.content h6 a { color: var(--pb-text); }
.content .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pb-gold-dark);
}
.content .price del {
    color: var(--pb-text-muted);
    font-weight: 400;
    font-size: 12px;
    margin-inline-start: 6px;
}
.content .price ins { text-decoration: none; }

@media (max-width: 767px) {
    ul.products { margin: 0 -6px; }
    ul.products li.product { padding: 0 6px; margin: 0 0 16px 0 !important; width: 50%; }
    .content { padding: 10px 8px; }
    .content h6 { font-size: 12.5px; }
    ul.products li.product figure .icons,
    ul.products li.product a figure .icons { inset-inline-end: 8px; top: 8px; gap: 8px; }
    ul.products li.product figure .icons a.btn,
    ul.products li.product a figure .icons a.btn { width: 30px; height: 30px; font-size: 13px; }
    .pb-badge { font-size: 10px; padding: 3px 7px; inset-inline-start: 6px; top: 6px; }
}

/* =========================================================================
   HOMEPAGE — new from-scratch layout (views/index/index.php)
   ========================================================================= */

/* ---- shop by category tiles ----
   markup: a.pb-cat-tile > span.pb-cat-tile-img > img, span.pb-cat-tile-label
   Image on top, a solid always-visible label bar below — legible regardless
   of what the underlying photo looks like. */
.pb-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.pb-cat-tile {
    display: block;
    border-radius: var(--pb-radius);
    overflow: hidden;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    transition: box-shadow .2s ease, transform .2s ease;
}
.pb-cat-tile:hover { box-shadow: var(--pb-shadow-lg); transform: translateY(-3px); }
.pb-cat-tile-img { display: block; aspect-ratio: 1 / 1; background: var(--pb-bg-alt); overflow: hidden; }
.pb-cat-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pb-cat-tile:hover .pb-cat-tile-img img { transform: scale(1.06); }
.pb-cat-tile-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    text-align: center;
    background: var(--pb-text);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.pb-cat-tile-label i { font-size: 12px; color: var(--pb-gold-light); }
.pb-cat-tile:hover .pb-cat-tile-label { background: var(--pb-gold-dark); }
@media (max-width: 767px) {
    .pb-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pb-cat-tile-label { font-size: 13px; padding: 10px; }
}

/* ---- main categories showcase (from the header menu) ----
   Full-bleed photo tiles with a bottom gradient + the category name
   sitting directly on the image, so the section reads as a big, obvious
   "pick where to go" - the header's own menu is small and easy to miss. */
.pb-maincat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pb-maincat-grid-1 { grid-template-columns: 1fr; }
.pb-maincat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pb-maincat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pb-maincat-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--pb-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--pb-text), var(--pb-gold-dark));
    box-shadow: var(--pb-shadow);
    transition: box-shadow .25s ease, transform .25s ease;
}
.pb-maincat-tile:hover { box-shadow: var(--pb-shadow-lg); transform: translateY(-5px); }
.pb-maincat-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.pb-maincat-tile:hover img { transform: scale(1.08); }
.pb-maincat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 14, 10, .8) 0%, rgba(20, 14, 10, .2) 45%, rgba(20, 14, 10, 0) 68%);
}
.pb-maincat-label {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.pb-maincat-name {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.pb-maincat-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pb-gold-light);
    font-size: 12.5px;
    font-weight: 700;
    opacity: .85;
    transition: opacity .2s ease, gap .2s ease;
}
.pb-maincat-tile:hover .pb-maincat-cta { opacity: 1; gap: 10px; }

/* When the category count doesn't divide evenly into the 4-column grid, the
   leftover tile(s) on the last row stretch to fill it instead of leaving
   empty columns next to a single small tile. */
.pb-maincat-tile-wide { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
.pb-maincat-tile-half { grid-column: span 2; aspect-ratio: 3 / 2; }

@media (max-width: 767px) {
    .pb-maincat-grid, .pb-maincat-grid-3, .pb-maincat-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pb-maincat-tile { aspect-ratio: 1 / 1; }
    .pb-maincat-tile-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .pb-maincat-tile-half { grid-column: span 1; aspect-ratio: 1 / 1; }
    .pb-maincat-name { font-size: 16px; }
    .pb-maincat-label { padding: 16px 12px; }
}

/* ---- trust badges ---- */
.pb-trust { padding: 30px 0; border-top: 1px solid var(--pb-border); border-bottom: 1px solid var(--pb-border); }
.pb-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pb-trust-item { display: flex; align-items: center; gap: 12px; text-align: start; }
.pb-trust-item img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.pb-trust-item h6 { font-size: 13px; margin: 0 0 2px; }
.pb-trust-item span { font-size: 12px; color: var(--pb-text-muted); }
@media (max-width: 767px) {
    .pb-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---- newsletter box ---- */
.pb-newsletter {
    margin-top: 30px;
    background: var(--pb-text);
    color: #fff;
    border-radius: var(--pb-radius-lg);
    padding: 30px;
    text-align: center;
}
.pb-newsletter h4 { color: #fff; margin: 0 0 6px; }
.pb-newsletter p { color: #D9CFC0; margin: 0 0 18px; font-size: 13px; }
.pb-newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.pb-newsletter input {
    flex: 1 1 0%;
    width: auto !important;
    min-width: 0;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--pb-radius-sm);
}
.pb-newsletter button {
    flex: 0 0 auto;
    width: auto !important;
    background: var(--pb-gold);
    border-color: var(--pb-gold);
    color: #fff !important;
    white-space: nowrap;
    padding: 12px 22px;
    border-radius: var(--pb-radius-sm);
}
@media (max-width: 480px) {
    .pb-newsletter form { flex-wrap: wrap; }
    .pb-newsletter input, .pb-newsletter button { flex: 1 1 100%; }
}

/* ---- brand story ---- */
.pb-story-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow);
    padding: 40px;
}
.pb-story { display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }
.pb-story-figure { flex: 1 1 380px; margin: 0; min-width: 260px; }
.pb-story-figure img {
    width: 100%;
    border-radius: var(--pb-radius-lg);
    display: block;
    min-height: 260px;
    object-fit: cover;
    box-shadow: var(--pb-shadow-lg);
    outline: 2px solid var(--pb-gold);
    outline-offset: 10px;
}
.pb-story-text { flex: 1 1 380px; min-width: 260px; }
.pb-story-text h2 { margin: 6px 0 20px; padding-bottom: 18px; position: relative; }
.pb-story-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--pb-gold);
    border-radius: 2px;
}
.pb-story-text p { color: var(--pb-text-muted); line-height: 2; font-size: 15px; }
@media (max-width: 767px) {
    .pb-story-card { padding: 24px; }
    .pb-story-figure img { outline-offset: 8px; }
}
@media (max-width: 480px) {
    .pb-story-figure img { outline-offset: 6px; }
}

/* ---- news ---- */
.pb-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pb-news-item { display: flex; gap: 16px; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); overflow: hidden; }
.pb-news-item figure { margin: 0; flex: 0 0 140px; }
.pb-news-item img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; display: block; }
.pb-news-content { padding: 14px 16px 14px 0; }
html[dir="rtl"] .pb-news-content { padding: 14px 0 14px 16px; }
.pb-news-content h5 { font-size: 15px; margin: 0 0 6px; }
.pb-news-date { font-size: 12px; color: var(--pb-text-muted); display: block; margin-bottom: 6px; }
.pb-news-content p { font-size: 13px; color: var(--pb-text-muted); margin: 0; }
@media (max-width: 767px) {
    .pb-news-grid { grid-template-columns: 1fr; }
}

/* featured photos strip */
ul.instaslide {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    list-style: none;
    padding: 4px 4px 12px;
    margin: 0;
    scroll-snap-type: x proximity;
}
ul.instaslide li { list-style: none; flex: 0 0 220px; scroll-snap-align: start; }
ul.instaslide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--pb-radius);
    display: block;
    box-shadow: var(--pb-shadow);
    transition: transform .2s ease;
}
ul.instaslide img:hover { transform: translateY(-4px); }
@media (max-width: 480px) {
    ul.instaslide li { flex-basis: 160px; }
    ul.instaslide img { height: 160px; }
}

/* footer */
footer { background: var(--pb-text); color: #E9E2D6; margin-top: 40px; }
footer .footer { background: transparent; padding: 22px 0; }
footer .copy-right { color: #C9BFAF; font-size: 13px; }
footer a { color: #E9E2D6; }
footer a.primary-color { color: var(--pb-gold-light) !important; }
footer ul.social-icons { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
html[dir="rtl"] footer ul.social-icons { justify-content: flex-start; }
footer ul.social-icons li { list-style: none; }
footer ul.social-icons a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
}
footer ul.social-icons a:hover { background: var(--pb-gold); }

/* =========================================================================
   LISTING / CATEGORY PAGE
   ========================================================================= */
.storefront-sorting, .shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 12px 18px;
    margin-bottom: 24px;
}
.storefront-sorting select { width: auto; padding: 8px 12px; }
.storefront-sorting form { margin: 0; }
.pagination, .woocommerce-pagination { text-align: center; }
.woocommerce-pagination ul.page-numbers,
.pagination ul { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.woocommerce-pagination ul.page-numbers li { list-style: none; }
.woocommerce-pagination li .page-numbers, .pagination li .page-numbers, .pagination>li>a {
    border: 1px solid var(--pb-border);
    border-radius: 50% !important;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    color: var(--pb-text);
}
.woocommerce-pagination li .page-numbers.current,
.woocommerce-pagination li .page-numbers:hover {
    background: var(--pb-text);
    border-color: var(--pb-text);
    color: #fff;
}

@media (max-width: 767px) {
    .storefront-sorting { flex-direction: column; align-items: stretch; }
    .storefront-sorting .woocommerce-result-count { order: 3; text-align: center; font-size: 12px; }
    .storefront-sorting form { width: 100%; }
    .storefront-sorting select { width: 100%; }
    .storefront-sorting nav.woocommerce-pagination { order: 2; }
}

/* =========================================================================
   SEARCH RESULTS PAGE (views/search/index.php)
   ========================================================================= */
.pb-search-box {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto 24px;
}
.pb-search-box input {
    flex: 1;
    min-width: 0;
}
.pb-search-box button {
    flex: 0 0 auto;
    width: auto !important;
    background: var(--pb-text);
    color: #fff;
    border: 1px solid var(--pb-text);
    padding: 0 22px;
    border-radius: var(--pb-radius-sm);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.pb-search-box button:hover { background: var(--pb-gold-dark); border-color: var(--pb-gold-dark); }

.pb-search-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}
.pb-search-sort-form { margin: 0; }
.pb-search-sort-form select { width: auto; padding: 8px 12px; }

.pb-search-filters {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px;
    position: sticky;
    top: 90px;
}
.pb-filter-group { margin-bottom: 18px; }
.pb-filter-group h6 { font-size: 13px; font-weight: 700; margin: 0 0 10px; }

.pb-price-chips { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pb-price-chip {
    display: block;
    padding: 9px 12px;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pb-text);
    text-align: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pb-price-chip:hover { border-color: var(--pb-gold); color: var(--pb-gold-dark); }
.pb-price-chip.active { background: var(--pb-text); border-color: var(--pb-text); color: #fff; }

.pb-price-custom { font-size: 12.5px; }
.pb-price-custom summary {
    cursor: pointer;
    color: var(--pb-text-muted);
    font-weight: 600;
    padding: 4px 0;
}
.pb-price-custom summary:hover { color: var(--pb-gold-dark); }
.pb-price-custom .pb-filter-price-row { margin-top: 10px; }
.pb-filter-price-row { display: flex; align-items: center; gap: 8px; }
.pb-filter-price-row input { padding: 10px 12px; font-size: 13px; }
.pb-filter-price-row span { color: var(--pb-text-muted); flex-shrink: 0; }
.pb-search-filters select { padding: 10px 12px; font-size: 13px; }
.pb-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pb-filter-checkbox input { width: auto; accent-color: var(--pb-gold-dark); cursor: pointer; }
.pb-subsub-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; clear: both; width: 100%; }
.pb-subsub-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    background: var(--pb-surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--pb-text);
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pb-subsub-btn span { font-size: 11px; font-weight: 500; color: var(--pb-text-muted); }
.pb-subsub-btn:hover { border-color: var(--pb-gold-dark); color: var(--pb-gold-dark); }
.pb-subsub-btn.active { background: var(--pb-text); border-color: var(--pb-text); color: #fff; }
.pb-subsub-btn.active span { color: var(--pb-gold-light); }
.pb-subsub-wrap { position: relative; clear: both; }
.pb-subsub-more { display: none; }
@media (max-width: 767px) {
    .pb-subsub-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pb-subsub-bar::-webkit-scrollbar { display: none; }
    /* Left-edge fade + arrow: the list continues off-screen to the left
       (RTL), so this tells the shopper there are more types to swipe to. */
    .pb-subsub-more {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 6px;
        width: 46px;
        padding: 0 8px;
        border: 0;
        background: linear-gradient(to right, var(--pb-surface) 40%, rgba(255, 255, 255, 0));
        color: var(--pb-gold-dark);
        font-size: 24px;
        cursor: pointer;
        animation: pbNudge 1.4s ease-in-out infinite;
    }
    /* legacy button:hover/:focus paints a solid blue background */
    .pb-subsub-more:hover,
    .pb-subsub-more:focus,
    .pb-subsub-more:active {
        background: linear-gradient(to right, var(--pb-surface) 40%, rgba(255, 255, 255, 0)) !important;
        color: var(--pb-gold-dark) !important;
        outline: none;
        box-shadow: none;
    }
    .pb-subsub-wrap.is-end .pb-subsub-more,
    .pb-subsub-wrap.no-overflow .pb-subsub-more { display: none; }
}
@keyframes pbNudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
.pb-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--pb-border);
    box-shadow: inset 0 0 0 2px var(--pb-surface);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.pb-color-swatch:hover { border-color: var(--pb-gold-dark); }
.pb-color-swatch.active { border-color: var(--pb-gold-dark); box-shadow: inset 0 0 0 2px var(--pb-surface), 0 0 0 2px var(--pb-gold-dark); }
.pb-search-filters .button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}
.pb-filter-clear {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--pb-text-muted);
    text-decoration: underline;
}
.pb-filter-clear:hover { color: var(--pb-gold-dark); }

.pb-search-empty { text-align: center; padding: 70px 20px; }
.pb-search-empty i { font-size: 56px; color: var(--pb-border); display: block; margin-bottom: 18px; }
.pb-search-empty h2 { font-size: 20px; margin: 0 0 8px; }
.pb-search-empty p { color: var(--pb-text-muted); margin: 0 0 22px; }

@media (max-width: 991px) {
    .pb-search-layout { grid-template-columns: minmax(0, 1fr); }
    .pb-search-layout .pb-search-main { order: 1; min-width: 0; }
    .pb-search-filters { position: static; order: 2; }
}
@media (max-width: 575px) {
    .pb-search-box { flex-direction: column; }
    .pb-search-box button { padding: 12px; }
}

/* =========================================================================
   PRODUCT SINGLE PAGE
   ========================================================================= */
.product-single .product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.product-single .images { flex: 1 1 460px; min-width: 280px; }
.product-single .summary.entry-summary {
    flex: 1 1 420px;
    min-width: 280px;
    border: 0 !important;
    padding: 0 !important;
}
/* Simple click-to-swap gallery — shared by the product page and the
   quick-view popup (public/js/gallery.js). No slider library: the main
   image is a plain <img> whose src gets swapped on thumbnail click, so
   there's nothing that can mis-measure, autoplay, or silently break. */
.pb-gallery-main {
    border-radius: var(--pb-radius);
    overflow: hidden;
    background: var(--pb-bg-alt);
    aspect-ratio: 1 / 1;
}
.pb-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pb-gallery-thumb {
    display: block;
    width: 68px;
    height: 68px;
    border-radius: var(--pb-radius-sm);
    overflow: hidden;
    border: 2px solid var(--pb-border);
    flex-shrink: 0;
}
.pb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-gallery-thumb.active, .pb-gallery-thumb:hover { border-color: var(--pb-gold); }
.single-product .summary .product_title { font-size: 24px; font-weight: 700; }
.single-product .summary .product-code { display: block; font-size: 12px; color: var(--pb-text-muted); font-weight: 400; margin-top: 6px; }
.single-product .summary .price { font-size: 22px; font-weight: 700; color: var(--pb-gold-dark); }
.single-product .summary .price del { color: var(--pb-text-muted); font-size: 15px; font-weight: 400; }
.single-product .stock-info { color: var(--pb-success); font-weight: 600; }
.single-product table.variations td.value select#size_color { max-width: 260px; }

/* When a product has only one available size/color, show it as plain
   text instead of a single-item dropdown — nothing to choose from. */
.pb-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pb-single-option { display: inline-block; font-weight: 700; color: var(--pb-text); padding: 8px 0; }
/* No real size/color data to show at all (single item, empty attributes)
   — hide the whole row rather than show a meaningless "one option" label. */
tr.pb-visually-hidden-row { display: none; }

/* sticky add-to-cart bar on mobile product page */
@media (max-width: 767px) {
    .single-product .variations_button {
        position: sticky;
        bottom: 0;
        background: var(--pb-surface);
        padding: 10px 0;
        box-shadow: 0 -6px 20px rgba(0,0,0,.06);
        z-index: 20;
    }
    .single-product .variations_button #add_to_cart_page,
    .single-product .variations_button .button.alt { width: 100%; }
}

/* =========================================================================
   CART / MINI-CART TABLE / CHECKOUT
   ========================================================================= */
table.cart, table.shop_table, .cart-list, .wish-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
}
table.cart th, table.shop_table th {
    background: var(--pb-bg-alt);
    font-size: 13px;
    padding: 14px;
    font-weight: 700;
}
table.cart td, table.shop_table td, .cart-list td, .wish-list td {
    padding: 14px;
    border-top: 1px solid var(--pb-border);
    vertical-align: middle;
}
.wish-list tbody img, .cart-list tbody img { border-radius: var(--pb-radius-sm); }

.cart-collaterals, .cart_totals {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 6px;
}
.order-total th, .order-total td { font-size: 16px; font-weight: 700; }

.checkout-button, .go_check_out { display: inline-block; }

/* =========================================================================
   SIMPLE PAGE HEADER — replaces the old dark photo-banner + breadcrumb
   used above utility pages (cart, etc.) with a light, minimal bar.
   ========================================================================= */
.pb-page-header {
    background: var(--pb-bg-alt);
    border-bottom: 1px solid var(--pb-border);
    padding: 22px 0;
}
.pb-breadcrumb {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--pb-text-muted);
}
.pb-breadcrumb li { list-style: none; }
.pb-breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; color: var(--pb-border); }
.pb-breadcrumb li.active { color: var(--pb-gold-dark); font-weight: 600; }
.pb-breadcrumb a { color: var(--pb-text-muted); }
.pb-breadcrumb a:hover { color: var(--pb-gold-dark); }
.pb-page-header h1 { font-size: 22px; margin: 0; }

/* =========================================================================
   CART PAGE — redesigned (views/cart/cartlist.php)
   Two-column layout: item cards + a sticky order-summary sidebar.
   ========================================================================= */
.pb-cart-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.pb-cart-items-head h2 { font-size: 18px; margin: 0; font-weight: 700; }
.pb-continue-shopping { font-size: 13px; font-weight: 700; color: var(--pb-gold-dark); }
.pb-continue-shopping i { margin-inline-start: 4px; }

.pb-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.pb-cart-item {
    display: grid;
    grid-template-columns: 84px 1fr 90px 90px 90px 40px;
    align-items: center;
    gap: 16px;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 16px;
    margin-bottom: 14px;
}
.pb-cart-item-img {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: var(--pb-radius-sm);
    overflow: hidden;
    background: var(--pb-bg-alt);
    flex-shrink: 0;
}
.pb-cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pb-cart-item-info h6 { font-size: 14px; margin: 0 0 4px; font-weight: 600; }
.pb-cart-item-info h6 a { color: var(--pb-text); }
.pb-cart-item-variant { display: block; font-size: 12px; color: var(--pb-text-muted); margin-bottom: 4px; }
.pb-cart-item-stock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.pb-cart-item-stock.in-stock-color { color: var(--pb-success); }
.pb-cart-item-stock.out-stock-color { color: var(--pb-danger); }
.pb-cart-item-actions { display: flex; gap: 14px; }
.pb-cart-item-edit, .pb-cart-item-notes-toggle {
    font-size: 12px;
    font-weight: 600;
    color: var(--pb-text-muted);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.pb-cart-item-edit:hover, .pb-cart-item-notes-toggle:hover { color: var(--pb-gold-dark); }
.pb-cart-item-notes { margin-top: 10px; display: flex; gap: 8px; max-width: 420px; }
.pb-cart-item-notes textarea {
    flex: 1;
    resize: none;
    font-size: 12px;
    padding: 8px 10px;
}
.pb-cart-item-notes .save_item_notes {
    flex-shrink: 0;
    background: var(--pb-text);
    color: #fff;
    border: 0;
    border-radius: var(--pb-radius-sm);
    padding: 0 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pb-cart-item-qty, .pb-cart-item-price, .pb-cart-item-total {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.pb-cart-item-price, .pb-cart-item-total { color: var(--pb-gold-dark); font-weight: 700; }
.pb-cart-item-col-label { display: none; }
/* The quantity on a basket line (owner, 2026-10-02). It was a bare number input inside a grey pill: the
   browser's own spinner arrows on one side, no border, nothing to say it could be changed. Now it is a field
   that looks like a field — centred, bordered, large enough to touch, and with the spinner left in place
   because it is the one control that changes the number. */
.pb-cart-item .quantity-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pb-border);
    background: var(--pb-surface);
    border-radius: 999px;
    padding: 0;
    min-width: 76px;
    height: 40px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.pb-cart-item .quantity-wrap:focus-within {
    border-color: var(--pb-gold);
    box-shadow: 0 0 0 3px rgba(173, 138, 78, .15);
}
.pb-cart-item .quantity-wrap input.qty {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--pb-text);
    padding: 0 4px;
}
.pb-cart-item .quantity-wrap input.qty:focus { outline: 0; }

/* Removing a line. It was a bare ✕ with a square focus ring around it, which read as a broken image more than
   as a control. A quiet circle that fills in on hover, and turns the shop's red only when it is about to be
   pressed — it is the one destructive control on the page and should not shout until then. */
button.pb-cart-item-remove, .pb-cart-item-remove {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: var(--pb-text-muted);
    justify-self: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
button.pb-cart-item-remove:hover, .pb-cart-item-remove:hover,
button.pb-cart-item-remove:focus-visible, .pb-cart-item-remove:focus-visible {
    background: #fdf3f2;
    border-color: var(--pb-danger, #a4262c);
    color: var(--pb-danger, #a4262c);
    outline: 0;
}

/* order summary sidebar */
.pb-cart-summary {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.pb-cart-summary h2 { font-size: 17px; margin: 0 0 16px; }
.pb-cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--pb-text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--pb-border);
}
.pb-cart-summary-row span:last-child { color: var(--pb-text); font-weight: 600; }
.pb-cart-summary-total { border-bottom: 0; padding-top: 14px; }
.pb-cart-summary-total span { font-size: 17px !important; font-weight: 700 !important; color: var(--pb-text) !important; }
.pb-cart-summary-total span:last-child { color: var(--pb-gold-dark) !important; }

/* The coupon box. The apply button was styled as `input[type=submit]` and the page renders a `<button>`, so it
   matched nothing at all: a tall white pill with its label invisible against it, beside a field squeezed to
   whatever was left. Both are now sized together and the button looks like the thing you press. */
.pb-coupon-box { margin: 18px 0; }
.pb-coupon-box label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.pb-coupon-input {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.pb-coupon-input input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    background: var(--pb-surface);
    font-size: 13px;
    color: var(--pb-text);
}
.pb-coupon-input input[type="text"]:focus {
    outline: 0;
    border-color: var(--pb-gold);
    box-shadow: 0 0 0 3px rgba(173, 138, 78, .15);
}
.pb-coupon-input button.button, .pb-coupon-input .button,
.pb-coupon-input input[type="submit"] {
    flex: 0 0 auto;
    /* The theme gives `.button` a full width; here the field beside it needs the room. */
    width: auto;
    height: 44px;
    min-width: 96px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--pb-gold);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease;
}
.pb-coupon-input button.button:hover, .pb-coupon-input .button:hover,
.pb-coupon-input input[type="submit"]:hover { background: var(--pb-gold-dark); }

@media (max-width: 575px) {
    .pb-coupon-input { flex-wrap: wrap; }
    .pb-coupon-input button.button, .pb-coupon-input .button { width: 100%; }
}
.pb-coupon-box .alert { margin-top: 10px; font-size: 12px; padding: 10px 12px; border-radius: var(--pb-radius-sm); }

.pb-cart-summary .checkout-button { display: block; width: 100%; text-align: center; margin-top: 6px; }

/* empty cart state */
.pb-cart-empty { text-align: center; padding: 70px 20px; }
.pb-cart-empty i { font-size: 56px; color: var(--pb-border); display: block; margin-bottom: 18px; }
.pb-cart-empty h2 { font-size: 20px; margin: 0 0 8px; }
.pb-cart-empty p { color: var(--pb-text-muted); margin: 0 0 22px; }

@media (max-width: 991px) {
    .pb-cart-layout { grid-template-columns: 1fr; }
    .pb-cart-summary { position: static; }
}

@media (max-width: 767px) {
    .pb-cart-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-areas:
            "img info remove"
            "qty price total";
        row-gap: 10px;
    }
    .pb-cart-item-img { grid-area: img; width: 72px; height: 72px; }
    .pb-cart-item-info { grid-area: info; }
    .pb-cart-item-remove { grid-area: remove; }
    .pb-cart-item-qty { grid-area: qty; }
    .pb-cart-item-price { grid-area: price; }
    .pb-cart-item-total { grid-area: total; }
    .pb-cart-item-qty, .pb-cart-item-price, .pb-cart-item-total {
        text-align: center;
        background: var(--pb-bg-alt);
        border-radius: var(--pb-radius-sm);
        padding: 6px 4px;
    }
    .pb-cart-item-col-label { display: block; font-size: 10px; color: var(--pb-text-muted); font-weight: 400; margin-bottom: 2px; }
    .pb-cart-items-head h2 { font-size: 16px; }
}

/* =========================================================================
   WISHLIST PAGE — redesigned (views/wishlist/index.php)
   Same visual language as the cart page's item rows, single column
   (no order summary - wishlist has no checkout/subtotal concept).
   ========================================================================= */
.pb-wish-list { max-width: 900px; margin: 0 auto; }
.pb-wish-item {
    display: grid;
    grid-template-columns: 84px 1fr 90px 170px 40px;
    align-items: center;
    gap: 16px;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 16px;
    margin-bottom: 14px;
}
.pb-wish-item-price { text-align: center; font-size: 14px; font-weight: 700; color: var(--pb-gold-dark); }
.pb-wish-item-actions { display: flex; justify-content: center; }
.pb-wish-item-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 12.5px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .pb-wish-item {
        grid-template-columns: 72px 1fr auto;
        grid-template-areas:
            "img info remove"
            "price actions actions";
        row-gap: 10px;
    }
    .pb-wish-item .pb-cart-item-img { grid-area: img; width: 72px; height: 72px; }
    .pb-wish-item .pb-cart-item-info { grid-area: info; }
    .pb-wish-item .pb-cart-item-remove { grid-area: remove; }
    .pb-wish-item-price { grid-area: price; text-align: right; }
    .pb-wish-item-actions { grid-area: actions; justify-content: flex-start; }
    .pb-wish-item-add { width: 100%; justify-content: center; }
}

form.checkout abbr.required { color: var(--pb-danger); text-decoration: none; margin-inline-start: 2px; }

/* =========================================================================
   CHECKOUT PAGE — redesigned (views/cart/checkout.php)
   Same pattern as the cart page: form card(s) on one side, a sticky
   order-summary sidebar (reusing .pb-cart-summary) on the other.
   ========================================================================= */
.pb-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}
.pb-checkout-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px;
    margin-bottom: 16px;
}
.pb-checkout-card h2 { font-size: 16px; margin: 0 0 16px; }

.pb-form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-form-row { margin-bottom: 14px; }
.pb-form-row:last-child { margin-bottom: 0; }
.pb-form-row label { font-size: 13px; font-weight: 600; margin-bottom: 5px; display: block; }
.pb-form-row textarea { resize: vertical; min-height: 56px; }

.pb-checkout-notes { margin-top: 2px; }
.pb-checkout-notes summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pb-gold-dark);
    cursor: pointer;
    list-style: none;
}
.pb-checkout-notes summary::-webkit-details-marker { display: none; }
.pb-checkout-notes[open] summary i { transform: rotate(45deg); }
.pb-checkout-notes textarea { margin-top: 10px; resize: vertical; min-height: 56px; }

.pb-payment-confirm {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--pb-bg-alt);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
}
.pb-payment-confirm i { font-size: 19px; color: var(--pb-success); flex-shrink: 0; }
.pb-payment-confirm strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.pb-payment-confirm span { display: block; font-size: 11.5px; color: var(--pb-text-muted); }

.pb-checkout-summary .pb-checkout-items {
    margin-bottom: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.pb-checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pb-border);
}
.pb-checkout-item:last-child { border-bottom: 0; }
.pb-checkout-item-img { position: relative; flex-shrink: 0; }
.pb-checkout-item-img img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--pb-radius-sm);
    background: var(--pb-bg-alt);
    display: block;
}
.pb-checkout-item-qty {
    position: absolute;
    top: -6px;
    left: -6px;
    background: var(--pb-text);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pb-checkout-item-info { flex: 1; min-width: 0; }
.pb-checkout-item-info h6 {
    font-size: 12.5px;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pb-checkout-item-info span { font-size: 11px; font-weight: 600; }
.pb-checkout-item-info span.in-stock-color { color: var(--pb-success); }
.pb-checkout-item-info span.out-stock-color { color: var(--pb-danger); }
.pb-checkout-item-total { font-size: 13px; font-weight: 700; color: var(--pb-gold-dark); flex-shrink: 0; }

.pb-checkout-summary input[type="submit"].checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    border: 0;
    cursor: pointer;
}

.wc_payment_methods.payment_methods input[type="radio"] { margin-inline-end: 4px; }

@media (max-width: 991px) {
    .pb-checkout-layout { grid-template-columns: 1fr; }
    .pb-checkout-summary { position: static; }
}
@media (max-width: 575px) {
    .pb-form-row-group { grid-template-columns: 1fr; gap: 0; }
    .pb-checkout-card { padding: 18px; }
}

/* =========================================================================
   MY ORDERS — orders/index (logged-in customer order history)
   ========================================================================= */
.pb-orders-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.pb-order-card {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: 20px;
}
.pb-order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--pb-border);
}
.pb-order-number { font-weight: 700; font-size: 14px; }
.pb-order-date { color: var(--pb-text-muted); font-size: 12px; margin-inline-start: 10px; }
.pb-order-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    flex-shrink: 0;
}
.pb-order-badge.is-pending { background: #FBF3E3; color: #A9741C; }
.pb-order-badge.is-done { background: rgba(63, 143, 93, 0.12); color: var(--pb-success); }
.pb-order-card-foot { margin-top: 4px; }

/* =========================================================================
   ORDER STATUS PAGES — order_complete / order_complete_ondev / order_cancelled
   ========================================================================= */
.pb-order-status {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-lg);
    padding: 50px 30px;
}
.pb-order-status figure { margin: 0 0 22px; }
.pb-order-status figure span { font-size: 72px; line-height: 1; }
.pb-order-status h2 { font-size: 19px; line-height: 1.6; margin: 0 0 26px; }
.pb-order-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pb-order-actions .button {
    background: var(--pb-text);
    color: #fff;
    border: 1px solid var(--pb-text);
    padding: 13px 26px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
}
.pb-order-actions .button:hover { background: var(--pb-gold-dark); border-color: var(--pb-gold-dark); color: #fff; }
.pb-order-actions .button.alt { background: transparent !important; color: var(--pb-text) !important; border-color: var(--pb-border); }
.pb-order-actions .button.alt:hover { border-color: var(--pb-gold); color: var(--pb-gold-dark) !important; }
@media (max-width: 575px) {
    .pb-order-status { padding: 36px 20px; }
    .pb-order-actions { flex-direction: column; }
    .pb-order-actions .button { width: 100%; }
}

/* checkout progress steps
   Legacy style.css floats each .wrap left (float is always physical —
   it never flips for RTL) at a 126px-circle scale. Force the three
   steps into a real (RTL-aware) flex row, keep each circle+line at a
   fixed 34px-tall reference box, and put the label *outside* that box
   (absolutely positioned below) so the connecting line's vertical
   center lines up with the circle and never crosses the label text. */
.checkout-steps { padding: 26px 0 46px; }
.checkout-steps .row > div {
    display: flex !important;
    width: 100% !important;
}
.checkout-steps .wrap {
    float: none !important;
    width: auto !important;
    height: 34px;
    flex: 1 1 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center !important;
}
.checkout-steps .wrap:before,
.checkout-steps .wrap:after {
    top: 50% !important;
}
/* the outer dangling half-line: with RTL flex order "first" (01) sits on
   the visual right and "final" (03) on the visual left, so it's their
   *outer* physical side that should have no line, not the other way
   around like in the original LTR layout. */
.checkout-steps .wrap.first:after { display: none; }
.checkout-steps .wrap.final:before { display: none; }
.checkout-steps .wrap h6 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px !important;
    white-space: nowrap;
}
.checkout-steps .circle {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 2px solid var(--pb-border);
    background: var(--pb-surface) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700;
    color: var(--pb-text-muted);
}
.checkout-steps .wrap.active .circle {
    background: var(--pb-gold) !important;
    border-color: var(--pb-gold) !important;
    color: #fff !important;
}
.checkout-steps .active.wrap:before,
.checkout-steps .active.wrap:after,
.checkout-steps .half.wrap:after,
.checkout-steps .full.wrap:before,
.checkout-steps .full.wrap:after { background: var(--pb-gold); border-color: var(--pb-gold); color: #fff; }
/* the "half" step (upcoming, not reached yet) should only show the line
   *arriving* from the active step as lit — its own :before (physical
   left-half) points onward to the next, not-yet-reached step and must
   stay the default gray, or progress visually bleeds past where it is. */
.checkout-steps .half.wrap:before { background: var(--pb-border) !important; border-color: var(--pb-border) !important; }
.checkout-steps h6 { font-size: 13px; margin: 0; font-weight: 600; }

/* payment method list */
.wc_payment_methods.payment_methods { list-style: none; margin: 0; padding: 0; }
.wc_payment_methods.payment_methods li {
    list-style: none;
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wc_payment_methods.payment_methods li label { margin: 0 !important; font-weight: 600; }
.wc_payment_methods.payment_methods input[type="radio"] { width: auto; }

/* Mobile row-stacking (data-title labels) is already handled by responsive.css
   — we only add the modern card/color treatment on top of it. */
@media (max-width: 767px) {
    table.cart, table.shop_table { border-radius: var(--pb-radius); }
    tr.cart_item { border-radius: var(--pb-radius-sm); overflow: hidden; }
}

/* =========================================================================
   MODALS (login / register / forgot password / quick view)
   ========================================================================= */
.modal-content, .modal.login .modal-dialog {
    border-radius: var(--pb-radius-lg);
    border: 0;
    box-shadow: var(--pb-shadow-lg);
}
.modal.login .modal-dialog { background: var(--pb-surface); padding: 30px; }
.modal.login h2 { font-size: 20px; }
.modal.login button[type="submit"] { width: 100%; }

/* Quick-view gallery uses the same plain click-to-swap .pb-gallery
   markup/CSS as the product page (see PRODUCT SINGLE PAGE section) — no
   slider library, so nothing to mis-measure or silently break. */
@media (max-width: 767px) {
    #quick-view .pb-gallery-main { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   MISC
   ========================================================================= */
.susbend_screen { background: rgba(251, 248, 243, 0.85); }
.scrollup {
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pb-text);
    color: #fff;
}

@media (max-width: 480px) {
    .pb-section { padding: 36px 0; }
    .pb-section-head h2 { font-size: 22px; }
}

/* ── Card badges and variant chips (owner, 2026-10-02) ──────────────────────────────────────────────────
   The badges were one absolute span in the corner; now they stack there, so a discount and "last one" can
   both be true without one covering the other. `.pb-badge` keeps its own look — these only place it.
   The variant chips sit under the name, inside the card's existing padding, and wrap rather than widen the
   card: the grid's column width is the theme's and nothing here may change it. */
.pb-badges {
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.pb-badges .pb-badge { position: static; inset-inline-start: auto; top: auto; }
.pb-badge--new { background: var(--pb-gold); }
.pb-badge--last { background: #a4262c; }
.pb-badge--out { background: #6b6b6b; }

.pb-card-variants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 0 8px;
}
.pb-card-variant {
    display: inline-block;
    border: 1px solid var(--pb-border, #e4ded5);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--pb-text);
    background: #fff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pb-card-variant:hover,
.pb-card-variant:focus {
    background: var(--pb-gold);
    border-color: var(--pb-gold);
    color: #fff;
}

@media (max-width: 575px) {
    .pb-card-variants { gap: 3px; }
    .pb-card-variant { font-size: 10px; padding: 2px 6px; }
}
/* The "+N" chip is a count, not a choice, so it reads as the quieter of the two. */
.pb-card-variant--more { border-style: dashed; color: var(--pb-muted, #7a7a7a); }

/* ── Promotional video (owner, 2026-10-02) ──────────────────────────────────────────────────────────────
   A facade: the shop's own poster and a play control, with the player inserted only on click. The frame keeps
   a 16:9 box either way, so the page does not jump when the iframe replaces the picture. */
.pb-section--wide > .container { max-width: 1320px; }

.pb-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #16120d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.pb-video iframe,
.pb-video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.pb-video-facade { position: absolute; inset: 0; display: block; }
.pb-video-play {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--pb-text);
    display: grid;
    place-items: center;
    font-size: 22px;
    transition: transform .15s ease, background .15s ease;
}
/* The play triangle points the way the page reads; in RTL the icon would otherwise point backwards. */
html[dir="ltr"] .pb-video-play { transform: translate(-50%, -50%); }
.pb-video-facade:hover .pb-video-play { background: #fff; transform: translate(50%, -50%) scale(1.06); }
html[dir="ltr"] .pb-video-facade:hover .pb-video-play { transform: translate(-50%, -50%) scale(1.06); }

.pb-video-text {
    max-width: 760px;
    margin: 0 auto 18px;
    text-align: center;
    color: var(--pb-text-muted);
}

@media (max-width: 575px) {
    .pb-video { border-radius: 10px; }
    .pb-video-play { width: 52px; height: 52px; font-size: 18px; }
}

/* =============================================================================
   /me - the address printed on the loyalty card (D-135).

   A customer opens this standing in the shop with the card in one hand, so it is
   built mobile-first and centred: one column of controlled width rather than a
   form stranded against one edge of a wide page.

   Several rules name the element beside the class (button.pb-me-submit). The old
   theme styles bare button[type="submit"] and the generic inputs in
   responsive.css, which loads after this file, so a lone class loses to it -
   which is exactly how the submit button came out looking like a plain box.
   ========================================================================== */

.pb-me { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.pb-me-intro { text-align: center; margin-bottom: 26px; }

.pb-me-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; margin-bottom: 14px; border-radius: 50%;
    background: var(--pb-gold-light); color: var(--pb-gold-dark); font-size: 24px;
}

.pb-me-intro h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: var(--pb-text); }
.pb-me-intro p { margin: 0; color: var(--pb-text-muted); font-size: 15px; line-height: 1.7; }

/* The segmented control: the pill carries the shape, so no heavy borders. */
.pb-me-tabs {
    display: flex; gap: 4px; padding: 4px; margin: 0 auto 20px; max-width: 420px;
    border-radius: 999px; background: var(--pb-bg-alt);
}

button.pb-me-tab, .pb-me-tab {
    flex: 1 1 0; min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px;
    background: transparent; color: var(--pb-text-muted); font-family: inherit;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

button.pb-me-tab:hover, .pb-me-tab:hover { color: var(--pb-gold-dark); }

/* The default outline stays on the pill after a tap and reads as a mis-drawn border; a keyboard user still
   gets a ring, through :focus-visible. */
button.pb-me-tab:focus, .pb-me-tab:focus { outline: 0; }

button.pb-me-tab:focus-visible, .pb-me-tab:focus-visible {
    outline: 0; box-shadow: 0 0 0 3px rgba(173, 138, 78, .35);
}

button.pb-me-tab.is-on, .pb-me-tab.is-on {
    background: #fff; color: var(--pb-gold-dark); box-shadow: 0 1px 3px rgba(42, 36, 32, .10);
}

.pb-me-panel { display: none; }
.pb-me-panel.is-on { display: block; }

.pb-me-card {
    padding: 22px 20px 24px; border: 1px solid #ECE3D6; border-radius: 18px;
    background: #fff; box-shadow: 0 10px 30px rgba(42, 36, 32, .06);
}

.pb-me-form { display: flex; flex-direction: column; gap: 16px; }
.pb-me-field { display: block; }

.pb-me-field > span {
    display: block; margin-bottom: 7px; color: var(--pb-text); font-size: 14px; font-weight: 600;
}

input.pb-me-input, .pb-me-input {
    display: block; width: 100%; min-height: 52px; padding: 12px 14px;
    border: 1px solid #E0D5C4; border-radius: 12px; background: var(--pb-bg);
    color: var(--pb-text); font-family: inherit; font-size: 16px; line-height: 1.4;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input.pb-me-input::placeholder, .pb-me-input::placeholder { color: #B6A897; }

input.pb-me-input:focus, .pb-me-input:focus {
    outline: 0; background: #fff; border-color: var(--pb-gold);
    box-shadow: 0 0 0 3px rgba(173, 138, 78, .16);
}

.pb-me-note { margin: 0; color: var(--pb-text-muted); font-size: 13px; line-height: 1.7; }

button.pb-me-submit, .pb-me-submit {
    display: block; width: 100%; min-height: 54px; padding: 0 24px; border: 0;
    border-radius: 14px; background: var(--pb-gold-dark); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: .2px;
    cursor: pointer; transition: background .18s ease, box-shadow .18s ease, transform .06s ease;
}

button.pb-me-submit:hover, .pb-me-submit:hover {
    background: #75593f; box-shadow: 0 8px 20px rgba(140, 111, 60, .28);
}

button.pb-me-submit:active, .pb-me-submit:active { transform: translateY(1px); }

button.pb-me-submit:focus-visible, .pb-me-submit:focus-visible {
    outline: 0; box-shadow: 0 0 0 3px rgba(173, 138, 78, .35);
}

.pb-me-error {
    margin: 16px 0 0; padding: 13px 15px; border: 1px solid #F0D9D9; border-radius: 12px;
    background: #FDF4F4; color: #9E3B3B; font-size: 14px; line-height: 1.7;
}

.pb-me-result {
    margin-top: 18px; padding: 18px; border: 1px solid #ECE3D6; border-radius: 16px;
    background: var(--pb-bg);
}

.pb-me-result-head {
    margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #EDE4D7;
    color: var(--pb-text-muted); font-size: 14px; font-weight: 600;
}

.pb-me-points { margin: 0; font-size: 46px; font-weight: 800; line-height: 1.05; color: var(--pb-gold-dark); }
.pb-me-worth { margin: 6px 0 16px; color: var(--pb-text-muted); font-size: 15px; }

.pb-me-items { margin: 0; padding: 0; list-style: none; }

.pb-me-item {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 13px 0; border-top: 1px solid #EDE4D7;
}

.pb-me-item:first-child { border-top: 0; }

.pb-me-item-name {
    flex: 1 1 150px; min-width: 0; color: var(--pb-text); font-size: 15px; font-weight: 600;
    overflow-wrap: anywhere;
}

.pb-me-item-term { color: var(--pb-text-muted); font-size: 13px; }

.pb-me-badge {
    display: inline-block; padding: 6px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}

.pb-me-badge.is-active { background: #E8F4EC; color: #2C7A4B; }
.pb-me-badge.is-expired { background: #FDF0F0; color: #9E3B3B; }
.pb-me-badge.is-none { background: var(--pb-bg-alt); color: var(--pb-text-muted); }

.pb-me-aside { display: none; }

@media (min-width: 900px) {
    .pb-me { max-width: 940px; }

    /* Two columns, so the page reads as a composition rather than a form adrift in white. */
    .pb-me-grid {
        display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 26px; align-items: start;
    }

    .pb-me-aside {
        display: block; padding: 24px 22px; border: 1px solid #ECE3D6; border-radius: 18px;
        background: linear-gradient(160deg, var(--pb-bg-alt) 0%, #FFFDF9 100%);
    }

    .pb-me-aside h3 { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: var(--pb-text); }
    .pb-me-aside ul { margin: 0; padding: 0; list-style: none; }

    .pb-me-aside li {
        display: flex; gap: 10px; padding: 11px 0;
        border-top: 1px solid rgba(173, 138, 78, .16);
        color: var(--pb-text-muted); font-size: 14px; line-height: 1.7;
    }

    .pb-me-aside li:first-child { border-top: 0; }
    .pb-me-aside li i { color: var(--pb-gold); margin-top: 3px; }
}
