/* ============================================
   Pacific Rugs Theme — brand overrides
   Base: ShopsWired default v1.2.5
   ============================================ */

:root {
    --sw-color-primary:       #7c6b50;
    --sw-color-primary-hover: #5d5039;
    --sw-color-primary-dark:  #5e5040;
    --sw-color-bg:            #f8f6f2;
    --sw-color-surface:       #ffffff;
    --sw-color-text-main:     #1c1814;
    --sw-color-text-muted:    #8a7c6e;
    --sw-border:              #e8e0d5;
    --sw-font-sans:           'Jost', 'Inter', system-ui, sans-serif;
    --sw-font-heading:        'Cormorant Garamond', Georgia, serif;
    --sw-radius-sm:           2px;
    --sw-radius-md:           4px;
    --sw-max-w:               1280px;

    /* Parent theme's .sw-head-2xl/xl/lg/md heading scale (default v1.9.0+).
       Setting these instead of overriding h1 classes per-page keeps cart.liquid
       and search.liquid inheritable from parent with zero override files. */
    --sw-head-font:     var(--sw-font-heading);
    --sw-head-weight:   400;
    --sw-head-tracking: -0.01em;
    --sw-head-lg:       clamp(1.75rem, 3vw, 2.5rem);

    /* Mobile nav breakpoint (js/main.js reads this - default v1.9.1+) - matches
       the @media (max-width: 900px) below for .mobile-nav-toggle/.nav-dropdown,
       so js/main.js no longer needs to be overridden at all. */
    --sw-bp-mobile: 900px;

    /* .summary-value (order.liquid's order-number/total, default v1.11.0+) -
       pacific-rugs always used fw-600 there, parent's default is 700. */
    --sw-summary-value-weight: 600;

    /* legacy aliases */
    --primary:      var(--sw-color-primary);
    --text-light:   var(--sw-color-text-muted);
    --danger:       var(--sw-color-error);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--sw-font-sans);
    background: var(--sw-color-bg);
    color: var(--sw-color-text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sw-font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--sw-color-text-main);
}

a { color: inherit; }

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

.container {
    max-width: var(--sw-max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 500px;
}

.container-md {
    max-width: 800px;
}

/* checkout.liquid uses .container-lg (inherited unmodified from parent) for a
   narrower form column. pacific-rugs.css loads after sw-base.css, so without
   this rule its own .container max-width (wider) wins the cascade on any
   element carrying both classes, even though .container-lg is more specific
   in intent - same specificity (0,1,0), later stylesheet wins regardless of
   selector name. Matches parent's value exactly per Faisal's request. */
.container-lg {
    max-width: 900px;
}

/* ── Skip link ── */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--sw-color-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

/* ── Missing utility classes ── */
.text-success   { color: #4a7c59; }
/* Longhand - see .section's comment below (same padding shorthand vs
   .container collision risk if this ever lands on a `container section-hero`
   element). */
.section-hero   { padding-top: 6rem; padding-bottom: 6rem; }
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sw-border);
    gap: 1rem;
}
.list-item:last-child { border-bottom: none; }

/* ── Global fixes ── */
:focus-visible {
    outline: 2px solid var(--sw-color-primary);
    outline-offset: 2px;
}

.pr-page-heading {
    font-family: var(--sw-font-heading) !important;
    font-weight: 400 !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Product page title only - smaller and plain sans-serif instead of the
   decorative heading font used on other pages (cart/pages/search). Scoped
   via .grid-product (product.liquid's own container) so cart/page/search
   titles are untouched. */
.grid-product .pr-page-heading {
    font-family: var(--sw-font-sans) !important;
    font-size: clamp(1.25rem, 1.8vw, 1.625rem);
}

/* product.liquid's product_title block now inherits parent's .sw-head-xl
   (no override) - same "smaller, plain sans" treatment as above, ported to
   the new class. --sw-head-font is global (drives every .sw-head-* size), so
   the sans override has to be scoped here rather than set as a token. */
.grid-product .sw-head-xl {
    font-family: var(--sw-font-sans);
    font-weight: 400;
    font-size: clamp(1.25rem, 1.8vw, 1.625rem);
    letter-spacing: normal;
}

/* B2B/trade account price display (product.liquid's price block) - MSRP
   and Trade Price shown side by side, separated by a thin divider.
   Public/retail view is untouched (still the original compare-price/
   selling-price markup). */
.b2b-price-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
}
.b2b-price-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.b2b-price-row:first-child {
    padding-right: 1.25rem;
    border-right: 1px solid var(--sw-border);
}
.b2b-price-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--sw-color-text-muted);
}
.b2b-msrp-value,
.b2b-price-value {
    font-size: 1.05rem;
    font-weight: 400;
    color: #000;
}

.breadcrumb-sep { opacity: 0.35; }

.section-full-width {
    max-width: none;
    /* Scales from 2rem up to 5rem as the viewport widens, so full-width mode
       still reads as intentional breathing room on an ultra-wide monitor
       instead of edge-to-edge - not just the flat 2rem the default theme uses. */
    padding-left: clamp(2rem, 4vw, 5rem);
    padding-right: clamp(2rem, 4vw, 5rem);
}


/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--sw-border);
    position: sticky;
    top: 0;
    z-index: 100;
    /* sw-base.css sets backdrop-filter:blur(8px) on this element, which
       creates a new containing block for position:fixed descendants -
       .site-nav's mobile off-canvas panel (position:fixed) was being sized
       relative to this header instead of the viewport, collapsing it to a
       ~50px sliver instead of a full-height menu. Cancel it here. */
    backdrop-filter: none;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 72px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: var(--sw-font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--sw-color-text-main);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo img { height: 40px; width: auto; }

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    flex-wrap: nowrap;
}

.site-nav > a,
.site-nav > .nav-item > a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--sw-color-text-main);
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    transition: color 0.15s;
}
.site-nav > a:hover,
.site-nav > .nav-item > a:hover { color: var(--sw-color-primary); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown-arrow { font-size: 0.6rem; margin-left: 0.2rem; opacity: 0.6; }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--sw-border);
    border-top: 2px solid var(--sw-color-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 200;
    padding: 0.5rem 0;
}
.nav-dropdown.dropdown-right { left: auto; right: 0; }
.nav-dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--sw-color-text-main);
    transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:hover {
    background: var(--sw-color-bg);
    color: var(--sw-color-primary);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }

.nav-dropdown-wide {
    min-width: 360px;
    column-count: 2;
    column-gap: 0;
}

.nav-dropdown-cols3 {
    min-width: 480px;
    column-count: 3;
    column-gap: 0;
}

.nav-mega-header {
    column-span: all;
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sw-color-primary);
    padding: 0.55rem 1.25rem;
    border-bottom: 1px solid var(--sw-border);
    margin-bottom: 0.2rem;
    break-inside: avoid;
}
.nav-mega-header:hover {
    background: var(--sw-color-bg);
    color: var(--sw-color-primary);
}

.nav-mega-sep {
    column-span: all;
    display: block;
    padding: 0.4rem 1.25rem 0.1rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sw-color-text-muted);
    border-top: 1px solid var(--sw-border);
    margin-top: 0.25rem;
    break-inside: avoid;
    pointer-events: none;
}

/* Search bar */
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-sm);
    background: var(--sw-color-bg);
    margin-left: auto;
}
/* Search autocomplete */
.search-autocomplete-wrap { position: relative; flex: 1; min-width: 0; }
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--sw-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 9999;
    flex-direction: column;
}
.suggestion-group-header {
    padding: 0.4rem 0.875rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-color-text-muted);
    border-top: 1px solid var(--sw-border);
}
.suggestion-group-header:first-child { border-top: none; }
.search-suggestion-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.875rem 0.45rem 1.1rem;
    text-decoration: none;
    color: var(--sw-color-text-main);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.1s;
    box-sizing: border-box;
}
.search-suggestion-item:hover,
.search-suggestion-item.active { background: #f5f2ee; color: var(--sw-color-primary); }
.search-suggestion-item mark { background: none; color: var(--sw-color-primary); font-weight: 700; font-style: normal; }

.header-search-input {
    border: none;
    background: transparent;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-family: var(--sw-font-sans);
    color: var(--sw-color-text-main);
    outline: none;
    width: 180px;
}
.header-search-input::placeholder { color: var(--sw-color-text-muted); }
.header-search-btn {
    background: var(--sw-color-primary);
    border: none;
    color: #fff;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}
.header-search-btn:hover { background: var(--sw-color-primary-hover); color: #fff; }

/* Cart & Login icons */
.header-icon-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--sw-color-text-main);
    text-decoration: none;
    padding: 0.25rem 0.25rem;
    transition: color 0.15s;
}
.header-icon-link:hover { color: var(--sw-color-primary); }

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--sw-color-text-main);
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}
.cart-link:hover { color: var(--sw-color-primary); }
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--sw-color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--sw-color-text-main);
    margin-left: auto;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .mobile-nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: fixed;
        inset: 72px 0 0 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 0.25rem;
        overflow-y: auto;
        z-index: 99;
        border-top: 1px solid var(--sw-border);
    }
    .site-nav.active { display: flex; }
    .site-nav > a,
    .site-nav > .nav-item > a { font-size: 0.9rem; padding: 0.75rem 0.5rem; width: 100%; }
    .nav-dropdown { position: static; border: none; box-shadow: none; border-top: none; padding-left: 1rem; background: var(--sw-color-bg); }
    .nav-dropdown-wide,
    .nav-dropdown-cols3 { min-width: 0; column-count: 1; width: 100%; }
    .nav-item:hover .nav-dropdown { display: none; }
    .nav-item.active .nav-dropdown { display: block; }
    .header-search-form { width: 100%; margin: 0.5rem 0; }
    .header-search-input { width: 100%; }
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1c1917;
    color: #d6cfc5;
    margin-top: 4rem;
    padding: 3.5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col-title {
    font-family: var(--sw-font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1rem;
}

.footer-col p { font-size: 0.875rem; line-height: 1.7; margin: 0 0 0.75rem; color: #b8afa5; }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font-size: 0.875rem;
    color: #b8afa5;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a {
    font-size: 0.875rem;
    color: #b8afa5;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.625rem; margin-top: 1.25rem; flex-wrap: wrap; }
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 8px;
    color: #b8afa5;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-social-link svg { width: 1.05rem; height: 1.05rem; }
.footer-social-link:hover { background: var(--sw-color-primary); color: #fff; transform: translateY(-1px); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #78716c;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================
   PRODUCT CARD  v1.0.6
   ============================================ */
.product-card {
    background: #fff;
    border: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.09);
}
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f0ece6;
    transition: transform 0.45s ease;
}
.product-card:hover img { transform: scale(1.04); }

/* !important below neutralizes inline style="padding:1rem" / "font-weight:600;
   margin-bottom:0.5rem" on the parent theme's product-card.liquid markup —
   product-card-body/title sit outside any {% block %} region there, so since
   converting to {% extends parent %} that inline markup is inherited verbatim
   and can't be removed any other way. */
.product-card-body { padding: 0.875rem 0.75rem 1.125rem !important; }
.product-card-title {
    font-family: var(--sw-font-heading);
    font-size: 1.0625rem;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem !important;
    color: var(--sw-color-text-main);
    line-height: 1.3;
}
.product-card-price {
    font-size: 0.8125rem;
    color: var(--sw-color-text-muted);
    font-weight: 400;
}
.selling-price {
    color: #0f172a !important;
    font-weight: 500;
}
.compare-price {
    text-decoration: line-through;
    color: var(--sw-color-text-muted);
    margin-right: 0.4rem;
    font-size: 0.8rem;
}
.out-of-stock {
    font-size: 0.7rem;
    color: var(--sw-color-error);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--sw-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-color-text-muted);
    font-size: 0.8rem;
}


/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    /* auto-fill instead of a fixed column count: naturally shows 4 columns at
       the normal ~1280px container width (matching the old fixed layout) but
       scales up past 4 on its own when the container is wider than that -
       e.g. with Search's "Full Width Layout" setting on, or any ultra-wide
       viewport - instead of just stretching 4 columns wider. */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem 1.25rem;
}
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; gap: 1.5rem 0.75rem; } }


/* ============================================
   BUTTONS
   ============================================ */
.sw-btn, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-family: var(--sw-font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sw-btn-primary, .btn-primary {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.sw-btn-primary:hover, .btn-primary:hover {
    background: #1e293b;
    border-color: #1e293b;
}
.sw-btn-secondary {
    background: transparent;
    color: var(--sw-color-text-main);
    border-color: var(--sw-border);
}
.sw-btn-secondary:hover {
    background: var(--sw-color-bg);
    border-color: var(--sw-color-primary);
    color: var(--sw-color-primary);
}
.sw-btn-outline, .btn-outline {
    background: transparent;
    color: var(--sw-color-primary);
    border-color: var(--sw-color-primary);
}
.sw-btn-outline:hover {
    background: var(--sw-color-primary);
    color: #fff;
}
.sw-btn-lg { padding: 0.9rem 2.25rem; font-size: 0.78rem; }


/* ============================================
   FORMS & INPUTS
   ============================================ */
.sw-input, input[type="text"], input[type="email"],
input[type="password"], input[type="tel"], textarea, select {
    font-family: var(--sw-font-sans);
    font-size: 0.9rem;
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-sm);
    padding: 0.65rem 0.9rem;
    width: 100%;
    background: #fff;
    color: var(--sw-color-text-main);
    transition: border-color 0.15s;
    outline: none;
}
.sw-input:focus, input:focus, textarea:focus, select:focus {
    border-color: var(--sw-color-primary);
    box-shadow: 0 0 0 3px rgba(124,107,80,0.12);
}


/* ============================================
   SECTIONS & LAYOUT HELPERS
   ============================================ */
/* Longhand on purpose - `padding: 5rem 0` also sets padding-left/right: 0,
   which silently wins over .container's `padding: 0 2rem` (same specificity,
   later in cascade) on any element carrying both classes (e.g.
   `<section class="container section">`, the standard page wrapper used by
   product.liquid and most other page templates). Confirmed live 2026-08-17:
   real computed style on the product page's wrapper showed paddingLeft: 0px
   - every element inside it (image, Add to Cart button, breadcrumb, title,
   price, details) was sitting flush against the viewport edge on mobile. */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-title {
    font-family: var(--sw-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 0.7rem;
    color: var(--sw-color-primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--sw-color-text-muted);
    padding: 1rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.breadcrumb a { color: var(--sw-color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--sw-color-primary); }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--sw-radius-sm);
}
.badge-sale { background: #fee2e2; color: #991b1b; }
.badge-new  { background: #f0fdf4; color: #166534; }

.trade-account-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sw-color-primary);
    background: color-mix(in srgb, var(--sw-color-primary) 12%, transparent);
    border-radius: var(--sw-radius-sm);
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; padding: 2rem 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
    border: 1px solid var(--sw-border); font-size: 0.875rem;
    text-decoration: none; color: var(--sw-color-text-main);
    border-radius: var(--sw-radius-sm); transition: background 0.15s;
}
.pagination a:hover { background: var(--sw-color-bg); }
.pagination .current { background: var(--sw-color-primary); color: #fff; border-color: var(--sw-color-primary); }

/* ── Alerts ── */
.alert { padding: 1rem 1.25rem; border-radius: var(--sw-radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }


/* ============================================
   HOMEPAGE
   ============================================ */

/* Utilities */
.text-center { text-align: center; }
.mt-xl { margin-top: 2.5rem; }
.mb-xl { margin-bottom: 3rem; }

/* ── Hero ── */
.pr-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.pr-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.pr-hero-overlay {
    position: absolute;
    inset: 0;
    background: none;
    z-index: 1;
}
.pr-hero .container { position: relative; z-index: 2; padding-top: 2rem; padding-bottom: 8rem; }
.pr-hero-inner { max-width: 560px; }
.pr-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.1rem;
}
.pr-hero-heading {
    font-family: var(--sw-font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.07;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
    color: #fff;
}
.pr-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 440px;
}
.pr-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.pr-hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}
.pr-hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-1px);
}

/* ── Antique Collection banner ── */
.pr-antique-banner {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pr-antique-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.pr-antique-overlay {
    position: absolute;
    inset: 0;
    background: none;
    z-index: 1;
}
.pr-antique-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 480px;
    padding: 2rem 1.5rem;
}
.pr-antique-heading {
    font-family: var(--sw-font-sans);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.5rem;
}
.pr-antique-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    padding: 0.85rem 2rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.pr-antique-cta:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}
.pr-antique-caption {
    font-family: var(--sw-font-heading);
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 1.25rem 0 0;
}

/* ── Section with warm background ── */
.pr-section-warm {
    background: #eae5dc;
    padding: 5rem 0;
    border-top: 1px solid var(--sw-border);
    border-bottom: 1px solid var(--sw-border);
}

/* ── Collection Cards (shared base) ── */
.pr-collection-card,
.pr-shape-card,
.pr-featured-card {
    display: block;
    text-decoration: none;
    color: var(--sw-color-text-main);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.pr-collection-card:hover,
.pr-shape-card:hover,
.pr-featured-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    color: var(--sw-color-text-main);
}

/* Image containers */
.pr-collection-img,
.pr-shape-img,
.pr-featured-img {
    overflow: hidden;
}
.pr-collection-img { aspect-ratio: 4/3; }
.pr-shape-img      { aspect-ratio: 3/2; }
.pr-featured-img   { aspect-ratio: 16/9; }

.pr-collection-img-inner,
.pr-shape-img-inner,
.pr-featured-img-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.pr-collection-card:hover .pr-collection-img-inner,
.pr-shape-card:hover .pr-shape-img-inner,
.pr-featured-card:hover .pr-featured-img-inner { transform: scale(1.06); }

/* Card labels */
.pr-collection-body,
.pr-featured-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0.25rem;
    background: transparent;
    border-top: none;
    border-bottom: 1px solid var(--sw-border);
}
.pr-collection-name {
    font-family: var(--sw-font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: none;
}
.pr-collection-arrow { font-size: 1rem; color: var(--sw-color-primary); transition: transform 0.2s; }
.pr-collection-card:hover .pr-collection-arrow,
.pr-shape-card:hover .pr-collection-arrow { transform: translateX(4px); }

.pr-featured-name {
    font-family: var(--sw-font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
}
.pr-featured-cta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sw-color-primary);
    white-space: nowrap;
    transition: letter-spacing 0.2s;
}
.pr-featured-card:hover .pr-featured-cta { letter-spacing: 0.14em; }

/* ── Grids ── */
.pr-collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.pr-style-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}
.pr-shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.pr-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ── Spotlight Cards (Malaga / Menorca) ── */
.pr-editorial-section {
    background: var(--sw-color-bg);
    padding: 5rem 0;
    border-top: 1px solid var(--sw-border);
}
.pr-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.pr-spotlight-card {
    display: grid;
    grid-template: 1fr / 1fr;
    height: 580px;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
}
.pr-spotlight-img,
.pr-spotlight-overlay,
.pr-spotlight-text { grid-area: 1 / 1; }
.pr-spotlight-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.pr-spotlight-card:hover .pr-spotlight-img { transform: scale(1.04); }
.pr-spotlight-overlay {
    background: none;
    z-index: 1;
}
.pr-spotlight-text {
    align-self: end;
    padding: 2.5rem;
    color: #fff;
    z-index: 2;
}
.pr-spotlight-title {
    font-family: var(--sw-font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
}
.pr-spotlight-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    opacity: 0.88;
    max-width: 360px;
}
.pr-spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.55);
    padding-bottom: 0.15rem;
    transition: border-color 0.2s;
}
.pr-spotlight-card:hover .pr-spotlight-cta {
    border-color: #fff;
}
@media (max-width: 700px) {
    .pr-spotlight-grid { grid-template-columns: 1fr; }
    .pr-spotlight-card { height: 420px; }
}

/* ── Heritage Section ── */
.pr-heritage-section {
    background: #eae5dc;
    padding: 5rem 0;
    border-top: 1px solid var(--sw-border);
    border-bottom: 1px solid var(--sw-border);
}
.pr-heritage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.pr-heritage-body {
    font-size: 0.95rem;
    color: var(--sw-color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.pr-heritage-pillars { display: flex; flex-direction: column; gap: 2rem; }
.pr-pillar { display: flex; flex-direction: column; gap: 0.3rem; }
.pr-pillar-icon { font-size: 1.25rem; color: var(--sw-color-primary); }
.pr-pillar-title {
    font-family: var(--sw-font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}
.pr-pillar-body { font-size: 0.875rem; color: var(--sw-color-text-muted); line-height: 1.7; margin: 0; }

/* ── Showroom Section ── */
.pr-showroom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 1rem 0 2rem;
}
.pr-showroom-desc {
    font-size: 0.95rem;
    color: var(--sw-color-text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}
.pr-showroom-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.pr-showroom-item { display: flex; flex-direction: column; gap: 0.3rem; }
.pr-showroom-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sw-color-text-muted);
}
.pr-showroom-item a,
.pr-showroom-item span {
    font-size: 0.875rem;
    color: var(--sw-color-text-main);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.15s;
}
.pr-showroom-item a:hover { color: var(--sw-color-primary); }
.pr-showroom-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.pr-showroom-visual {
    border: 1px solid var(--sw-border);
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.pr-tapestry-section {
    background: #f1f1f0;
    padding: 4.5rem 0;
}
.pr-tapestry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.pr-tapestry-title {
    font-family: var(--sw-font-sans);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--sw-color-text-main);
    margin-bottom: 1.25rem;
}
.pr-tapestry-desc {
    font-size: 0.9rem;
    color: var(--sw-color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.pr-tapestry-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--sw-color-text-main);
    text-decoration: none;
}
.pr-tapestry-link:hover { color: var(--sw-color-primary); }
.pr-tapestry-visual {
    border: 1px solid var(--sw-border);
    overflow: hidden;
}
.pr-tapestry-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .pr-style-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-shape-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .pr-hero { min-height: 65vh; }
    .pr-antique-banner { min-height: 45vh; }
    .pr-collection-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-featured-grid { grid-template-columns: 1fr; }
    .pr-heritage-grid { grid-template-columns: 1fr; gap: 3rem; }
    .pr-showroom { grid-template-columns: 1fr; }
    .pr-showroom-visual { display: none; }
    .pr-tapestry { grid-template-columns: 1fr; gap: 2rem; }
    .pr-tapestry-visual { order: -1; }
}
@media (max-width: 540px) {
    .pr-hero { min-height: 55vh; }
    .pr-hero-ctas { flex-direction: column; }
    .pr-antique-banner { min-height: 38vh; }
    .pr-collection-grid { grid-template-columns: 1fr; }
    .pr-style-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-shape-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-showroom-details { grid-template-columns: 1fr; }
    .pr-heritage-section { padding: 3rem 0; }
    .pr-tapestry-section { padding: 3rem 0; }
    .pr-section-warm { padding: 3rem 0; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* Map + Info block */
.pr-contact-map-wrap {
    display: flex;
    height: 500px;
}
.pr-contact-map-left {
    flex: 0 0 50%;
    height: 100%;
}
.pr-contact-map-left iframe {
    width: 100%; height: 100%; border: none; display: block;
}
.pr-contact-map-info {
    flex: 0 0 50%;
    background: var(--sw-color-bg);
    padding: 52px 48px;
    box-sizing: border-box;
    overflow-y: auto;
    border-left: 1px solid var(--sw-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pr-cmi-heading {
    font-family: var(--sw-font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--sw-color-text-main);
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
}
.pr-cmi-sub {
    color: var(--sw-color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}
.pr-cmi-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
}
.pr-cmi-label {
    min-width: 72px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-color-text-muted);
    flex-shrink: 0;
}
.pr-cmi-row a, .pr-cmi-row span {
    color: var(--sw-color-text-main);
    text-decoration: none;
}
.pr-cmi-row a:hover { color: var(--sw-color-primary); }
.pr-cmi-directions-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sw-color-primary);
    text-decoration: none;
}
.pr-cmi-directions-link:hover { color: var(--sw-color-primary-hover); }
@media (max-width: 768px) {
    .pr-contact-map-wrap { flex-direction: column; height: auto; }
    .pr-contact-map-left { flex: none; width: 100%; height: 280px; }
    .pr-contact-map-info { flex: none; width: 100%; padding: 28px 20px; border-left: none; border-top: 1px solid var(--sw-border); justify-content: flex-start; }
}

/* ── /contact page ── */
.pr-contact-header { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }
.pr-contact-heading {
    font-family: var(--sw-font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 500;
    margin: 0 0 0.75rem;
}
.pr-contact-subtext { color: var(--sw-color-text-muted); font-size: 1rem; margin: 0; line-height: 1.7; }
.pr-contact-required { color: var(--sw-color-error); }
.pr-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.pr-contact-form-card { padding: 2rem 2.25rem; }
.pr-contact-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pr-contact-textarea { min-height: 130px; resize: vertical; }
.pr-contact-submit { margin-top: 0.25rem; }
.pr-contact-info-col { display: flex; flex-direction: column; gap: 1rem; }
.pr-contact-info-card { padding: 1.5rem; }
.pr-contact-info-heading {
    font-family: var(--sw-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}
.pr-contact-info-list { display: flex; flex-direction: column; gap: 1rem; }
.pr-contact-info-item { display: flex; align-items: flex-start; gap: 0.85rem; }
.pr-contact-info-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--sw-color-bg);
    border: 1px solid var(--sw-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--sw-color-primary);
}
.pr-contact-info-label {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--sw-color-text-muted); margin-bottom: 0.2rem;
}
.pr-contact-info-value { color: var(--sw-color-text-main); font-size: 0.9rem; text-decoration: none; line-height: 1.5; }
.pr-contact-info-value:hover { color: var(--sw-color-primary); }
.pr-contact-success-alert { margin-bottom: 1.5rem; }
.pr-contact-directions-btn { margin-top: 1.25rem; }
.pr-contact-map-embed {
    border-radius: var(--sw-radius-md);
    overflow: hidden;
    border: 1px solid var(--sw-border);
    height: 380px;
}
.pr-contact-map-embed iframe { width: 100%; height: 100%; border: none; display: block; }
@media (max-width: 860px) {
    .pr-contact-grid { grid-template-columns: 1fr; }
    .pr-contact-name-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */

/* Layout */
.grid-product { gap: 3.5rem; align-items: start; }

/* Main image */
.main-image-container {
    background: var(--sw-color-bg);
    border: 1px solid var(--sw-border);
    overflow: hidden;
    margin-bottom: 0.625rem;
    position: relative;
}
.cursor-zoom-in { cursor: zoom-in; }
.product-main-image { width: 100%; display: block; }

/* Zoom wrapper — lens + right panel */
.zoom-wrapper { position: relative; display: block; }
.zoom-lens {
    display: none;
    position: absolute;
    width: 120px; height: 120px;
    border: 2px solid rgba(160,130,100,0.8);
    background: rgba(255,255,255,0.25);
    pointer-events: none;
    z-index: 10;
}
.zoom-result {
    display: none;
    position: absolute;
    left: calc(100% + 14px);
    top: 0;
    width: 440px;
    height: 560px;
    background-repeat: no-repeat;
    background-color: var(--sw-color-bg);
    border: 1px solid var(--sw-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
}
@media (max-width: 900px) {
    .zoom-result, .zoom-lens { display: none !important; }
}

/* Lightbox enhancements */
.lightbox-overlay { background: rgba(0,0,0,0.92) !important; cursor: default !important; }
.lightbox-img { max-width: 90% !important; max-height: 80vh !important; cursor: default; }
.lightbox-caption {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.9rem 4rem;
    text-align: center;
    letter-spacing: 0.01em;
    z-index: 2;
}
.lightbox-close-btn {
    top: 4rem !important;
    right: 1.25rem !important;
    z-index: 3;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 600px) {
    .lightbox-caption { padding: 0.75rem 3.25rem; }
}
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    z-index: 2;
}
.lightbox-nav-btn:hover { background: rgba(255,255,255,0.28); }
#lightbox-prev { left: 1.25rem; }
#lightbox-next { right: 1.25rem; }

/* Thumbnails */
.product-thumbnails { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.625rem; }
.product-thumbnail {
    width: 76px; height: 76px; object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--sw-border);
    cursor: pointer; opacity: 0.6;
    transition: opacity 0.15s, border-color 0.15s;
}
.product-thumbnail:hover { opacity: 1; }
.product-thumbnail.active { border-color: var(--sw-color-primary); opacity: 1; }

/* Title — Cormorant, weight 400 (overrides fw-700 utility) */
.grid-product h1 {
    font-family: var(--sw-font-heading);
    font-size: clamp(1.75rem, 2.8vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

/* Price block */
.product-price {
    font-family: var(--sw-font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--sw-color-text-main);
    margin: 0.75rem 0 1.25rem;
}
.product-price .selling-price { font-size: 1.5rem; font-weight: 600; color: var(--sw-color-text-main); }
.product-price .compare-price { font-size: 1rem; font-weight: 400; color: var(--sw-color-text-muted); margin-right: 0.5rem; }

/* Section separators (Details / Description) */
.product-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sw-border);
}
.product-description h2 {
    font-family: var(--sw-font-sans);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sw-color-text-muted);
    margin-bottom: 0.875rem;
}

/* Attributes table (Collection, Size, Color, Origin, Material…) */
.attr-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.attr-table td {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--sw-border);
    vertical-align: top;
    line-height: 1.5;
}
.attr-table td:first-child {
    color: var(--sw-color-text-muted);
    font-size: 0.8rem;
    width: 38%;
    padding-right: 0.75rem;
}
.attr-table tr:last-child td { border-bottom: none; }

/* Volume pricing table */
.price-tiers-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; margin: 0.75rem 0 1.25rem; }
.price-tiers-table th {
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--sw-color-text-muted);
    padding: 0.4rem 0.75rem 0.4rem 0;
    border-bottom: 1px solid var(--sw-border); text-align: left;
}
.price-tiers-table td { padding: 0.4rem 0.75rem 0.4rem 0; border-bottom: 1px solid var(--sw-border); }
.price-tiers-table tr:last-child td { border-bottom: none; }

/* Product tags */
.product-tags { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sw-badge {
    border: 1px solid var(--sw-border);
    color: var(--sw-color-text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--sw-radius-sm);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.sw-badge:hover { border-color: var(--sw-color-primary); color: var(--sw-color-primary); }

/* Add to cart wrapper */
#add-to-cart-wrapper { margin-top: 0.75rem; }

/* Prose — product description rich text */
.lh-relaxed p { margin-bottom: 0.7rem; }
.lh-relaxed ul, .lh-relaxed ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.lh-relaxed li { margin-bottom: 0.25rem; }
.lh-relaxed p:last-child { margin-bottom: 0; }

/* Product page responsive */
@media (max-width: 768px) {
    .grid-product { grid-template-columns: 1fr !important; gap: 2rem; }
}


/* ============================================================
   CART PAGE
   ============================================================ */

.grid-cart { align-items: start; gap: 3rem; }

.cart-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--sw-border);
}
.cart-item:first-child { padding-top: 0; }

.cart-item-image {
    width: 88px; height: 88px;
    object-fit: cover; flex-shrink: 0;
    border: 1px solid var(--sw-border);
    background: var(--sw-color-bg);
}

.cart-item-link {
    font-family: var(--sw-font-heading);
    font-size: 1.1rem; font-weight: 400;
    text-decoration: none; color: var(--sw-color-text-main);
    line-height: 1.3; display: block; margin-bottom: 0.2rem;
}
.cart-item-link:hover { color: var(--sw-color-primary); }

.sw-btn-ghost {
    background: none; border: none; cursor: pointer;
    color: var(--sw-color-text-muted);
    font-size: 1.1rem; padding: 0.25rem;
    transition: color 0.15s; line-height: 1; flex-shrink: 0;
}
.sw-btn-ghost:hover { color: var(--sw-color-error); }

.qty-input, .qty-input-sm {
    width: 64px !important; text-align: center; padding: 0.5rem 0.4rem !important;
}

.sw-card { background: var(--sw-color-surface); border: 1px solid var(--sw-border); padding: 1.75rem; }
/* Sticky offset now lives on .checkout-summary-col (default v1.22.1 moved it off
   the card itself, off the old .sw-card-sticky class - that class no longer
   appears on any element). 88px = 72px header height + 16px breathing room. */
.checkout-summary-col { top: 88px; }

.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; padding: 0.6rem 0;
    border-bottom: 1px solid var(--sw-border);
    color: var(--sw-color-text-muted);
}
.summary-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 0 0.5rem; font-size: 0.9rem;
}
.summary-total .fs-xl {
    font-family: var(--sw-font-heading);
    font-size: 1.6rem; font-weight: 400; color: var(--sw-color-text-main);
}

.empty-state { padding: 5rem 1rem; text-align: center; color: var(--sw-color-text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1.25rem; display: block; opacity: 0.45; }

/* ── Order Confirmation ── */
.pr-order-confirm-sub {
    color: var(--sw-color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.75rem auto 2rem;
    max-width: 440px;
}
.pr-order-confirm-card {
    text-align: left;
    margin-bottom: 0;
}
.pr-order-confirm-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ── Static Pages (page.liquid) ── */
.pr-page-layout { max-width: 760px; }
.pr-page-body {
    font-size: 0.975rem;
    color: var(--sw-color-text-muted);
    line-height: 1.85;
}
.pr-page-body h2 {
    font-family: var(--sw-font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--sw-color-text-main);
    margin: 2.5rem 0 0.75rem;
}
.pr-page-body h3 {
    font-family: var(--sw-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sw-color-text-muted);
    margin: 2rem 0 0.625rem;
}
.pr-page-body p { margin-bottom: 1rem; }
.pr-page-body p:last-child { margin-bottom: 0; }
.pr-page-body ul, .pr-page-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.pr-page-body li { margin-bottom: 0.4rem; }
.pr-page-body a { color: var(--sw-color-primary); }
.pr-page-body a:hover { text-decoration: underline; }
.pr-page-body strong { color: var(--sw-color-text-main); font-weight: 600; }
.pr-page-body em { font-style: italic; color: var(--sw-color-text-muted); font-size: 0.875rem; }
.pr-page-body hr {
    border: none;
    border-top: 1px solid var(--sw-border);
    margin: 2.5rem 0;
}

/* ── Error Page ──
   error.liquid now extends parent (default v1.9.1+ exposes error_title/
   error_actions blocks) - the outer <section class="section-hero"> is
   parent's own unblocked markup, so the old .pr-error-page padding is
   reapplied page-scoped instead of via a class on that element. */
body.page-error .section-hero { padding-top: 6rem; padding-bottom: 6rem; }
.pr-error-title { margin-bottom: 1rem; }
.pr-error-desc {
    color: var(--sw-color-text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}
.pr-error-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.pr-error-nav { padding-top: 2.5rem; border-top: 1px solid var(--sw-border); }
.pr-error-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1.5rem;
}
.pr-error-links a {
    font-family: var(--sw-font-heading);
    font-size: 1.05rem;
    color: var(--sw-color-text-main);
    text-decoration: none;
    transition: color 0.15s;
}
.pr-error-links a:hover { color: var(--sw-color-primary); }
.pr-error-contact { font-size: 0.85rem; color: var(--sw-color-text-muted); }
.pr-error-contact a { color: var(--sw-color-primary); }


/* ============================================================
   SEARCH PAGE — Pacific Rugs overrides (rugsandlinen-inspired)
   ============================================================ */

/* Page heading */
.search-toolbar {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sw-border);
    margin-bottom: 2rem;
}
.search-toolbar h1 {
    font-family: var(--sw-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--sw-color-text-main);
}
.search-result-count {
    font-size: 0.8rem;
    color: var(--sw-color-text-muted);
    margin-top: 0.2rem;
}

/* Layout gap */
.search-layout {
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar dimensions */
.search-sidebar {
    width: 210px;
    flex-shrink: 0;
}
.search-sidebar-inner {
    position: sticky;
    top: 80px;
    padding-right: 1.5rem;
    border-right: 1px solid var(--sw-border);
}

/* Sort select */
.sort-select-sidebar {
    border: 1px solid var(--sw-border);
    border-radius: 0;
    font-family: var(--sw-font-sans);
    font-size: 0.8rem;
    color: var(--sw-color-text-main);
    background: #fff;
    padding: 0.45rem 0.6rem;
    width: 100%;
}

/* Facet group */
.facet-group {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sw-border);
    margin-bottom: 1.25rem;
}
.facet-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Facet title row */
.facet-title {
    font-family: var(--sw-font-sans);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sw-color-text-main);
    margin-bottom: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.facet-toggle-icon {
    font-size: 0.7rem;
    color: var(--sw-color-text-muted);
    transition: transform 0.2s;
}
.facet-group.open .facet-toggle-icon { transform: rotate(180deg); }

/* Facet items */
.facet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.45rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--sw-color-text-main);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.facet-link:hover {
    background: #f0ece6;
    color: var(--sw-color-primary);
}
.facet-link.active,
.facet-link[aria-current="true"] {
    color: var(--sw-color-primary);
    font-weight: 500;
}

/* Count badge */
.facet-count {
    background: var(--sw-color-bg);
    border: 1px solid var(--sw-border);
    color: var(--sw-color-text-muted);
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Active filter pills */
.active-refinements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--sw-color-primary);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.15s;
}
.filter-pill:hover {
    background: var(--sw-color-primary-dark);
    color: #fff;
}
.filter-pill-x {
    font-size: 0.8rem;
    opacity: 0.75;
    line-height: 1;
}

/* Clear all link */
.clear-all-link {
    font-size: 0.72rem;
    color: var(--sw-color-text-muted);
    text-decoration: underline;
    letter-spacing: 0.04em;
}
.clear-all-link:hover { color: var(--sw-color-primary); }

/* Mobile filter toggle */
.mobile-filter-toggle {
    border-radius: 0;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid var(--sw-border);
    background: #fff;
    color: var(--sw-color-text-main);
    padding: 0.65rem 1.25rem;
    cursor: pointer;
}

/* No results state */
.search-no-results {
    padding: 4rem 0;
    text-align: center;
    color: var(--sw-color-text-muted);
    font-size: 0.95rem;
}

/* View More / Load More button */
[data-load-more] {
    min-width: 200px;
    letter-spacing: 0.1em;
}

/* "Show N more ... options" toggle: was an unstyled browser button. Link look. */
.facet-more {
    display: inline-block;
    background: none;
    border: none;
    padding: 0.25rem 0.45rem;
    margin: 0.25rem 0 0;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--sw-color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.facet-more:hover { text-decoration-thickness: 2px; }

/* Show results button stays reachable: pins to the viewport bottom while the
   filter list is on screen. No inner scrollbar: the sidebar grows and scrolls with
   the page (a sticky column taller than the viewport would hide its lower facets). */
@media (min-width: 901px) {
    .search-sidebar-inner {
        position: static;
    }
}
.filter-apply {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--sw-color-bg-card, #fff);
    padding: 0.75rem 0;
    border-top: 1px solid var(--sw-border);
}

/* Search page responsive */
@media (max-width: 900px) {
    .search-sidebar {
        width: 100%;
        border-bottom: 1px solid var(--sw-border);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .search-sidebar-inner {
        position: static;
        border-right: none;
        padding-right: 0;
    }
    .search-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
}
@media (max-width: 700px) {
    .search-toolbar h1 { font-size: 1.5rem; }
}

/* ============================================
   ATLANTA SERVICES (homepage)
   ============================================ */
.pr-atlanta-accent {
    width: 3rem;
    height: 2px;
    background: var(--sw-color-primary);
    margin: 0 auto 1.5rem;
}
.pr-atlanta-lead {
    color: var(--sw-color-text-muted);
    font-size: 0.95rem;
}
.pr-atlanta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pr-atlanta-card {
    display: block;
    background: var(--sw-color-surface);
    border: 1px solid var(--sw-border);
    border-radius: var(--sw-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pr-atlanta-card:hover {
    box-shadow: var(--sw-shadow);
    transform: translateY(-2px);
}
.pr-atlanta-img {
    position: relative;
    aspect-ratio: 4 / 3;
}
.pr-atlanta-img-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.pr-atlanta-body {
    padding: 1.5rem;
}
.pr-atlanta-title {
    font-family: var(--sw-font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.pr-atlanta-desc {
    font-size: 0.9rem;
    color: var(--sw-color-text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
}
.pr-atlanta-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sw-color-primary);
    background: none;
    border: none;
    padding: 0.5rem 0;
    margin: 0;
    cursor: pointer;
}
@media (max-width: 768px) {
    .pr-atlanta-grid { grid-template-columns: 1fr; }
}

.list-item {
    padding: 1rem;
    border-bottom: 1px solid var(--sw-border);
}

.list-item:last-child {
    border-bottom: none;
}

/* Payment method badges (checkout page, snippets/payment-icons.liquid) */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid var(--sw-border);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}
.payment-icon-visa { background: #1a1f71; color: #fff; font-style: italic; }
.payment-icon-mastercard { background: #fff; padding: 0 4px; }
.payment-icon-amex { background: #006fcf; color: #fff; }
.payment-icon-discover { background: #ff6000; color: #fff; }
.payment-icon-applepay { background: #000; color: #fff; }
.payment-icon-googlepay { background: #fff; color: #5f6368; }

