/*
Theme Name: Redland Rifle Co
Template: storefront
Description: Storefront child theme for Redland Rifle Co.
Version: 2.2.2
*/

/* === GLOBAL FONT === */
body,
.storefront-sorting,
.woocommerce-tabs,
.woocommerce form,
button, input, select, textarea {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === COLORS === */
:root {
    --wp-block-synced-color: #1d1d1f;
    --wp-admin-theme-color: #1d1d1f;
    --wp--preset--color--primary: #1d1d1f;
    --wp--preset--color--secondary: #6e6e73;
    --wp--preset--color--surface: #f5f5f7;
}

body {
    color: #1d1d1f;
    background: #fff;
}

a { color: #1d1d1f; }
a:hover { opacity: 0.72; }

/* Override all focus/active purple outlines */
a:focus, a:active,
button:focus, button:active,
input:focus, select:focus, textarea:focus,
.main-navigation a:focus,
.main-navigation a:active {
    outline-color: #1d1d1f;
    box-shadow: none;
}

*:focus-visible {
    outline: 2px solid rgba(29, 29, 31, 0.4) !important;
    outline-offset: 2px;
}

/* Kill Storefront inline accent color overrides */
.storefront-primary-navigation,
.main-navigation ul li a,
.site-title a,
a:focus {
    color: #1d1d1f !important;
}

.woocommerce-breadcrumb,
.price del,
.woocommerce-result-count,
.storefront-sorting select,
.widget-area .widget-title,
.posted_in, .tagged_as, .sku_wrapper {
    color: #6e6e73;
}

/* === BUTTONS (pill shape) === */
button,
.button,
.wp-element-button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
.woocommerce .widget_price_filter .price_slider_amount .button,
.added_to_cart {
    background-color: #1d1d1f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 980px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 14px 32px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: opacity 0.3s ease !important;
}

button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background-color: #1d1d1f !important;
    opacity: 0.82 !important;
}

/* Facet filter + search plugin buttons — reset from global pill style */
.rrc-ff-facet-toggle,
.rrc-ff-clear-all,
.rrc-ff-show-more,
.rrc-ff-pill,
.rrc-ff-facet-search,
.rrc-search-trigger,
.rrc-search-pill {
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

.rrc-ff-facet-toggle:hover,
.rrc-ff-clear-all:hover,
.rrc-ff-show-more:hover,
.rrc-search-trigger:hover {
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Restore facet plugin's own styles for these elements */
.rrc-ff-facet-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0 !important;
    cursor: pointer;
}

.rrc-ff-pill {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 980px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    cursor: pointer;
}

.rrc-ff-pill:hover {
    background: rgba(0,0,0,0.06) !important;
}

.rrc-ff-load-more {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 980px !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
}

.rrc-ff-load-more:hover {
    background: rgba(0,0,0,0.04) !important;
}

.rrc-ff-facet-search {
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
}

/* Cart quantity +/- buttons — reset from global pill style (classic cart) */
.woocommerce .quantity .plus,
.woocommerce .quantity .minus,
.quantity .plus,
.quantity .minus {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    text-align: center;
    min-height: auto !important;
}

.woocommerce .quantity .plus:hover,
.woocommerce .quantity .minus:hover,
.quantity .plus:hover,
.quantity .minus:hover {
    background-color: #e8e8ed !important;
    opacity: 1 !important;
}

.woocommerce .quantity .qty,
.quantity .qty {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    width: 48px !important;
    height: 36px !important;
    text-align: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
}

/* WooCommerce Block cart quantity selector */
.wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    min-height: auto !important;
    line-height: 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    background-color: #e8e8ed !important;
    opacity: 1 !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
    border: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    width: 44px !important;
    height: 36px !important;
    text-align: center;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #1d1d1f !important;
}

/* Cart remove item / trash button (block cart) */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove-link.wp-element-button {
    background-color: transparent !important;
    color: #6e6e73 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    padding: 4px 0 !important;
    width: auto !important;
    height: auto !important;
    text-decoration: underline;
    opacity: 0.8;
}

.wc-block-cart-item__remove-link:hover {
    background-color: transparent !important;
    color: #ff3b30 !important;
    opacity: 1 !important;
}

/* Classic cart remove button */
.woocommerce-cart .product-remove a,
.woocommerce a.remove {
    background-color: transparent !important;
    color: #6e6e73 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.woocommerce a.remove:hover {
    background-color: transparent !important;
    color: #ff3b30 !important;
    opacity: 1 !important;
}

/* Single product quantity selector — same treatment */
.single-product .quantity .plus,
.single-product .quantity .minus {
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    min-height: auto !important;
}

/* === HEADINGS === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: #1d1d1f;
    letter-spacing: -0.035em;
}

/* === HEADER (frosted glass — Apple Store compact) === */
.site-header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0 !important;
    margin-bottom: 0 !important;
    height: 48px;
}

/* Kill all Storefront clearfix pseudo-elements in header */
.site-header::before, .site-header::after,
.site-header .col-full::before, .site-header .col-full::after,
.storefront-primary-navigation::before, .storefront-primary-navigation::after,
.storefront-primary-navigation .col-full::before, .storefront-primary-navigation .col-full::after,
.main-navigation::before, .main-navigation::after {
    display: none !important;
}

/* Branding row — hidden on desktop, logo injected into nav via PHP */
.site-header > .col-full {
    display: none !important;
}

/* Hide mobile-only elements on desktop */
.rrc-mobile-icons {
    display: none;
}

/* ==========================================================================
   MOBILE / TABLET HEADER (max-width: 999px)
   ========================================================================== */
@media (max-width: 999px) {

    /* --- Header bar --- */
    .site-header {
        height: 56px;
        min-height: 56px;
        display: block !important;
        z-index: 10002 !important;
    }

    /* Branding row becomes the single header bar */
    .site-header > .col-full {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        padding: 0 20px !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        position: relative;
    }

    /* Logo — left */
    .site-header .site-branding {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        height: 56px;
        z-index: 10002;
    }

    /* --- Hide desktop nav on mobile/tablet --- */
    .storefront-primary-navigation {
        display: none !important;
    }

    body.rrc-menu-open .storefront-primary-navigation {
        display: none !important;
    }

    /* --- Mobile header right icons — flex group --- */
    .rrc-mobile-icons {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        right: 20px;
        top: 0;
        height: 56px;
        z-index: 10002;
    }

    /* --- RRC Hamburger Button (custom, replaces Storefront's) --- */
    .rrc-hamburger,
    .rrc-hamburger:hover,
    .rrc-hamburger:focus,
    .rrc-hamburger:active {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer;
        width: 44px !important;
        height: 56px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        position: relative;
        z-index: 10003;
        -webkit-tap-highlight-color: transparent;
        font-size: 0 !important;
        color: transparent !important;
    }

    .rrc-hamburger-box {
        width: 22px;
        height: 16px;
        position: relative;
    }

    .rrc-hamburger-line {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 1.5px;
        background: #1d1d1f;
        border-radius: 1px;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        transform-origin: center;
    }

    .rrc-hamburger-line:nth-child(1) { top: 0; }
    .rrc-hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .rrc-hamburger-line:nth-child(3) { bottom: 0; }

    /* Morph to X when open */
    body.rrc-menu-open .rrc-hamburger-line {
        background: #fff;
    }
    body.rrc-menu-open .rrc-hamburger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    body.rrc-menu-open .rrc-hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateY(-50%) scaleX(0);
    }
    body.rrc-menu-open .rrc-hamburger-line:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* Hide Storefront's default menu-toggle */
    button.menu-toggle,
    button#site-navigation-menu-toggle {
        display: none !important;
    }

    /* --- Cart icon in header --- */
    .rrc-mobile-icons .site-header-cart {
        position: static !important;
        height: 56px !important;
        display: flex !important;
        align-items: center;
    }

    .rrc-mobile-icons .site-header-cart .cart-contents {
        height: 56px !important;
        position: relative;
    }

    .rrc-mobile-icons .site-header-cart .cart-contents .count {
        right: -6px;
        top: 12px;
    }

    .storefront-primary-navigation .site-header-cart,
    .storefront-primary-navigation .rrc-search-nav-item {
        display: none !important;
    }

    /* --- Search icon in header --- */
    .rrc-mobile-icons .rrc-search-trigger {
        height: 56px !important;
        padding: 0 !important;
        width: 36px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* --- Hide nav-injected logo on mobile --- */
    .main-navigation ul li.rrc-nav-logo {
        display: none !important;
    }

    .main-navigation ul.nav-menu {
        display: none !important;
    }

    .main-navigation ul.menu:not(.nav-menu) {
        display: none;
    }

    /* --- Hide Storefront handheld footer bar --- */
    .storefront-handheld-footer-bar {
        display: none !important;
    }
}

.site-header .site-description {
    display: none !important;
}

.site-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.site-title a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    text-decoration: none;
    white-space: nowrap;
}

/* Nav bar — full width, centers nav links */
.storefront-primary-navigation {
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 22px !important;
}

.storefront-primary-navigation > .col-full {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Primary nav — centered */
.main-navigation {
    float: none !important;
    width: auto !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    height: 48px;
}

.main-navigation div {
    height: 48px;
    display: flex;
    align-items: center;
}

/* Show only the primary nav-menu, hide handheld duplicate */
.main-navigation ul.nav-menu {
    display: flex !important;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 48px;
}

.main-navigation ul.menu:not(.nav-menu) {
    display: none !important;
}

.main-navigation ul li {
    float: none !important;
    display: flex;
    align-items: center;
    height: 48px;
}

/* Logo item in nav */
.main-navigation ul li.rrc-nav-logo a {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    opacity: 1;
    padding: 0 24px 0 0;
}

.main-navigation ul li.rrc-nav-logo a:hover {
    opacity: 1;
}

.main-navigation ul li a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: #1d1d1f;
    text-transform: none;
    padding: 0 10px;
    line-height: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    opacity: 0.8;
}

.main-navigation ul li a:hover {
    color: #1d1d1f;
    opacity: 1;
}

/* Cart — absolute right */
.site-header-cart {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    right: 22px;
    top: 0;
    display: flex;
    align-items: center;
    height: 48px;
}

.site-header-cart .cart-contents {
    padding: 0 !important;
    height: 48px;
    display: flex;
    align-items: center;
    color: #1d1d1f;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.site-header-cart .cart-contents:hover {
    opacity: 1;
}

/* Bag icon via SVG — hide Storefront's Font Awesome cart icon */
.site-header-cart .cart-contents::after {
    display: none !important;
}

.site-header-cart .cart-contents .amount {
    display: none;
}

.site-header-cart .cart-contents {
    position: relative;
}

.site-header-cart .cart-contents::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Cart count badge — pill that expands for "10+" */
.site-header-cart .cart-contents .count {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4px;
    right: -10px;
    background: #1d1d1f;
    color: #fff;
    font-size: 9px !important;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

/* Hide mini-cart dropdown */
.site-header-cart > li:last-child {
    display: none;
}

.site-header-cart > li {
    list-style: none;
}

/* Dropdown menus */
.main-navigation ul.sub-menu,
.main-navigation ul.children {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 8px 0;
}

.main-navigation ul.sub-menu li a {
    font-size: 13px;
    padding: 8px 20px;
}

.main-navigation ul.sub-menu li a:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Header cart icon */
.site-header-cart .cart-contents {
    color: #1d1d1f;
    transition: opacity 0.3s ease;
}

.site-header-cart .cart-contents:hover {
    opacity: 0.5;
}

.site-header-cart .count {
    background: #1d1d1f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* === SCRIPTURE BANNER === */
.rrc-scripture-banner {
    background: #1d1d1f;
    padding: 16px 24px;
    text-align: center;
}

.rrc-scripture-text {
    color: #fff;
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.rrc-scripture-ref {
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* === PAGE TITLE BANNER === */
.rrc-page-banner {
    background: #f5f5f7;
    padding: clamp(3.5rem, 6vw, 5rem) 24px clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}

.rrc-page-title {
    font-size: clamp(36px, 6vw, 64px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    margin: 0;
}

.rrc-page-subtitle {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 300;
    color: #6e6e73;
    letter-spacing: -0.005em;
    margin-top: 16px;
}

/* Hide repeated page title and breadcrumb on pages with banner */
.page .entry-title,
.woocommerce-page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-title {
    display: none !important;
}

/* Hide WooCommerce archive page title (shop, category pages) */
.woocommerce-products-header__title,
.woocommerce-page .page-title,
.post-type-archive-product .page-title {
    display: none !important;
}

/* Hide breadcrumb on all pages (banner provides context) */
.storefront-breadcrumb,
.woocommerce-breadcrumb {
    display: none !important;
}

/* Collapse WooCommerce products header (title already hidden) */
.woocommerce-products-header {
    display: none !important;
}

/* Tighten content area below banner */
.page .hentry,
.page .site-main > .type-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page .site-main,
.page #primary,
.post-type-archive-product .site-main,
.post-type-archive-product #primary {
    padding-top: 0 !important;
}

#content > .col-full {
    padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

/* === HOMEPAGE SECTIONS === */
.rrc-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(4rem, 6vw, 6rem) 24px;
    text-align: center;
}

.rrc-section--surface {
    background: #f5f5f7;
    max-width: 100%;
}

.rrc-section--surface > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.rrc-section-title {
    font-size: clamp(32px, 5vw, 56px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 12px;
}

.rrc-section-subtitle {
    font-size: clamp(17px, 2vw, 21px) !important;
    font-weight: 300 !important;
    color: #6e6e73 !important;
    letter-spacing: -0.005em !important;
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.rrc-section-cta a {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    text-decoration: none;
    margin-top: clamp(2rem, 3vw, 3rem);
    display: inline-block;
}

.rrc-section-cta a:hover { opacity: 0.82; }

/* Hero */
.rrc-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    text-align: center;
}

.rrc-hero-headline {
    font-size: clamp(44px, 7.5vw, 80px) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.035em !important;
    max-width: 800px;
}

.rrc-hero-subtext {
    font-size: clamp(17px, 2.2vw, 21px) !important;
    font-weight: 300 !important;
    color: #6e6e73;
    letter-spacing: -0.005em;
    max-width: 520px;
    margin-top: 24px;
}

.rrc-hero-cta a {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    text-decoration: none;
    margin-top: 40px;
    display: inline-block;
}

/* Category cards grid */
.rrc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.rrc-category-card {
    display: block;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    text-decoration: none;
    color: #1d1d1f;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rrc-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    color: #1d1d1f;
}

.rrc-category-icon {
    height: 120px;
    border-radius: 12px 12px 0 0;
}

.rrc-category-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 14px;
}

/* Help cards */
.rrc-help-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rrc-help-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: clamp(2rem, 3vw, 3rem) 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rrc-help-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.rrc-help-card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.rrc-help-card-desc {
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #6e6e73 !important;
    margin-top: 8px;
}

/* Difference cards */
.rrc-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.rrc-diff-card {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rrc-diff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.rrc-diff-card-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.rrc-diff-card-desc {
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #6e6e73 !important;
    margin-top: 6px;
}

/* === SHOP SIDEBAR / FACET FILTERS === */

/* Shop archive layout: sidebar + product grid */
.post-type-archive-product #content > .col-full,
.tax-product_cat #content > .col-full,
.tax-product_tag #content > .col-full {
    display: flex !important;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar container */
.post-type-archive-product #secondary,
.tax-product_cat #secondary,
.tax-product_tag #secondary {
    width: 240px !important;
    min-width: 240px;
    flex-shrink: 0;
    order: -1;
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Product grid fills remaining space */
.post-type-archive-product #primary,
.tax-product_cat #primary,
.tax-product_tag #primary {
    flex: 1;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* Adjust product columns to 3 when sidebar is present */
.post-type-archive-product ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    display: grid !important;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-type-archive-product ul.products li.product,
.tax-product_cat ul.products li.product,
.tax-product_tag ul.products li.product {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Filter widget base styling */
.rrc-filter-widget {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rrc-filter-widget:last-child {
    border-bottom: none;
}

.rrc-filter-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1d1d1f;
    margin: 0 0 12px 0 !important;
}

/* Filter list items (checkboxes, links, etc.) */
.rrc-filter-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rrc-filter-widget ul li {
    margin-bottom: 6px;
}

.rrc-filter-widget ul li a,
.rrc-filter-widget ul li label {
    font-size: 13px;
    font-weight: 400;
    color: #6e6e73;
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrc-filter-widget ul li a:hover,
.rrc-filter-widget ul li label:hover {
    color: #1d1d1f;
}

/* Active filter state */
.rrc-filter-widget ul li.chosen a,
.rrc-filter-widget ul li.active a,
.rrc-filter-widget ul li a.active {
    color: #1d1d1f;
    font-weight: 600;
}

/* Filter counts */
.rrc-filter-widget .count {
    font-size: 11px;
    color: #6e6e73;
    margin-left: auto;
}

/* WooCommerce layered nav widget overrides */
.widget_layered_nav ul li a,
.widget_layered_nav_filters ul li a,
.widget_rating_filter ul li a {
    font-size: 13px !important;
    color: #6e6e73 !important;
}

.widget_layered_nav ul li a:hover {
    color: #1d1d1f !important;
}

/* Price filter widget */
.widget_price_filter .price_slider_wrapper {
    margin-bottom: 12px;
}

.widget_price_filter .ui-slider {
    background: #e8e8ed !important;
    border: none !important;
    border-radius: 3px;
    height: 4px !important;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: #1d1d1f !important;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background: #1d1d1f !important;
    border: 2px solid #fff !important;
    border-radius: 50%;
    width: 16px !important;
    height: 16px !important;
    top: -6px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Placeholder styling */
.rrc-filter-placeholder {
    padding: 0;
}

/* Responsive: collapse sidebar on mobile */
@media (max-width: 768px) {
    .post-type-archive-product #content > .col-full,
    .tax-product_cat #content > .col-full,
    .tax-product_tag #content > .col-full {
        flex-direction: column;
    }

    .post-type-archive-product #secondary,
    .tax-product_cat #secondary,
    .tax-product_tag #secondary {
        width: 100% !important;
        min-width: 100%;
        position: static;
        max-height: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding-bottom: 24px !important;
        margin-bottom: 24px !important;
    }

    .post-type-archive-product ul.products,
    .tax-product_cat ul.products,
    .tax-product_tag ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* === WOOCOMMERCE PRODUCT STYLING === */
ul.products li.product {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

ul.products li.product img,
.woocommerce-product-gallery img {
    border-radius: 12px;
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #1d1d1f;
}

ul.products li.product .price,
.single-product .price {
    font-weight: 600 !important;
    color: #1d1d1f !important;
}

ul.products li.product .price del {
    color: #6e6e73 !important;
    opacity: 0.6;
}

/* Sale badge */
.woocommerce span.onsale {
    background: #1d1d1f !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: normal !important;
}

/* Star rating */
.star-rating span::before {
    color: #1d1d1f;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px !important;
    color: #6e6e73 !important;
    margin-bottom: 2rem;
}

.woocommerce-breadcrumb a {
    color: #6e6e73 !important;
}

.woocommerce-breadcrumb a:hover {
    color: #1d1d1f !important;
}

/* Single product title */
.single-product .product_title {
    font-size: clamp(28px, 4vw, 40px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em;
}

/* Single product price */
.single-product .price {
    font-size: 24px !important;
    font-weight: 600 !important;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 3rem;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}

/* Cart & checkout */
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review {
    border-radius: 18px;
    background: #f5f5f7;
}

/* WooCommerce Block product grid cards (cart "New in store", etc.) */
.wc-block-grid__product {
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    padding: 16px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    text-align: center;
}

.wc-block-grid__product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.wc-block-grid__product .wc-block-grid__product-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wc-block-grid__product .wc-block-grid__product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em;
    color: #1d1d1f;
}

.wc-block-grid__product .wc-block-grid__product-price {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1d1d1f;
}

.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-element-button {
    background-color: #1d1d1f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 980px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
}

.wc-block-grid__product .wp-block-button__link:hover,
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-element-button:hover {
    opacity: 0.82 !important;
}

/* Hide Add to Bag button on out-of-stock products (block grid) */
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-element-button.wp-block-button__link[disabled],
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-element-button[disabled] {
    display: none !important;
}

/* Hide Add to Bag on out-of-stock products (classic loop) */
ul.products li.product.outofstock .button,
ul.products li.product.outofstock .add_to_cart_button {
    display: none !important;
}

/* SKU */
.sku_wrapper .sku {
    font-size: 13px;
    color: #6e6e73;
}

/* === FOOTER === */
.site-footer {
    background: #f5f5f7 !important;
}

/* 4-column footer layout */
.rrc-footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(3rem, 5vw, 5rem) 22px 2rem;
}

.rrc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rrc-footer-col ul li {
    margin-bottom: 8px;
}

.site-footer a {
    color: #6e6e73;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.005em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #1d1d1f;
    opacity: 1;
}

.rrc-footer-heading {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.rrc-footer-address,
.rrc-footer-hours {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Hide empty Storefront footer widgets container */
.site-footer .footer-widgets {
    display: none;
}

/* Hide Storefront's default "Shop by Brand" section */
.storefront-woocommerce-brands {
    display: none !important;
}

.site-info {
    font-size: 12px;
    font-weight: 300;
    color: #6e6e73;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
    margin-top: 0;
}

/* === ANIMATIONS === */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.rrc-hero-animate-1 {
    opacity: 0; transform: translateY(28px);
    animation: fadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
}

.rrc-hero-animate-2 {
    opacity: 0; transform: translateY(22px);
    animation: fadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s forwards;
}

.rrc-hero-animate-3 {
    opacity: 0; transform: translateY(18px);
    animation: fadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s forwards;
}

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll, .rrc-hero-animate-1,
    .rrc-hero-animate-2, .rrc-hero-animate-3 {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .rrc-hero { min-height: 80vh; }
    .rrc-category-grid { grid-template-columns: repeat(2, 1fr); }
    .rrc-help-grid { grid-template-columns: repeat(2, 1fr); }
    .rrc-diff-grid { grid-template-columns: 1fr; }
    .rrc-footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

@media (max-width: 480px) {
    .rrc-help-grid { grid-template-columns: 1fr; }
    .rrc-category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === CINEMATIC FULL-SCREEN MOBILE MENU === */

/* The overlay — dark, immersive, full-screen */
.rrc-mobile-menu {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0.5s;
}

.rrc-mobile-menu.rrc-mobile-menu-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0s;
}

body.rrc-menu-open {
    overflow: hidden;
}

/* Invert header elements when menu is open */
body.rrc-menu-open .site-header {
    background: transparent !important;
    transition: background 0.4s ease;
}

body.rrc-menu-open .site-title a,
body.rrc-menu-open .site-branding a {
    color: #fff !important;
}

body.rrc-menu-open .rrc-mobile-icons .rrc-search-trigger svg {
    stroke: #fff;
}

body.rrc-menu-open .rrc-mobile-icons .cart-contents::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E") !important;
}

body.rrc-menu-open .rrc-mobile-icons .cart-contents .count {
    background: #fff !important;
    color: #0a0a0a !important;
}

/* Nav container inside overlay */
.rrc-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 100px 40px 80px;
    min-height: 100vh;
    justify-content: flex-start;
}

/* Main nav links — big editorial typography */
.rrc-mobile-link {
    display: block;
    padding: 0;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 7vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    padding-block: 8px;
}

/* Stagger animation when menu opens */
.rrc-mobile-menu-open .rrc-mobile-link {
    animation: rrc-link-cascade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.rrc-mobile-menu-open .rrc-mobile-link:nth-child(1)  { animation-delay: 0.08s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(2)  { animation-delay: 0.13s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(3)  { animation-delay: 0.18s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(4)  { animation-delay: 0.23s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(5)  { animation-delay: 0.28s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(6)  { animation-delay: 0.33s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(7)  { animation-delay: 0.38s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(8)  { animation-delay: 0.43s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(9)  { animation-delay: 0.48s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(10) { animation-delay: 0.53s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(11) { animation-delay: 0.58s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(12) { animation-delay: 0.63s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(13) { animation-delay: 0.68s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(14) { animation-delay: 0.73s; }
.rrc-mobile-menu-open .rrc-mobile-link:nth-child(15) { animation-delay: 0.78s; }

@keyframes rrc-link-cascade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover/focus: shift right with accent line */
.rrc-mobile-link:hover,
.rrc-mobile-link:focus-visible {
    opacity: 1 !important;
    color: #fff !important;
    padding-left: 16px;
    transition: padding-left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.rrc-mobile-link:active {
    opacity: 0.6 !important;
}

/* Sub-links — smaller, muted, indented */
.rrc-mobile-link.rrc-mobile-sub {
    font-size: clamp(16px, 3.5vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 24px;
    padding-block: 4px;
    letter-spacing: -0.01em;
}

.rrc-mobile-link.rrc-mobile-sub:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    padding-left: 36px;
}

/* Separator between sections */
.rrc-mobile-separator {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 20px 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
}

.rrc-mobile-menu-open .rrc-mobile-separator {
    animation: rrc-sep-grow 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.35s;
}

@keyframes rrc-sep-grow {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}

/* Footer section inside menu */
.rrc-mobile-menu-footer {
    margin-top: auto;
    padding: 40px 0 0;
    opacity: 0;
}

.rrc-mobile-menu-open .rrc-mobile-menu-footer {
    animation: rrc-link-cascade 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.7s;
}

.rrc-mobile-menu-footer p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.6;
}
