/**
 * KRP WooCommerce Styles
 *
 * Custom styles for all WooCommerce pages: shop archive, single product,
 * cart, checkout, order confirmation, and my account.
 *
 * @package KRP
 */

/* ==========================================================================
   Shop Archive / Category Page
   ========================================================================== */

/* ── Search Results Header (inside hero) ──────────────────────────────────── */
.shop-search-header-title {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.shop-search-header-title h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-slate-900);
    margin: 0;
    line-height: 1.2;
}

@media (min-width: 1024px) {
    .shop-search-header-title h1 { font-size: 2.25rem; }
}

.shop-search-header-count {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-slate-500);
}

.shop-search-header-query {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    font-size: 0.9375rem;
    color: var(--color-slate-600);
    flex-wrap: wrap;
}

.shop-search-header-query svg {
    flex-shrink: 0;
    color: var(--color-slate-400);
}

.shop-search-header-query strong {
    color: var(--color-slate-900);
}

.shop-search-header-sep {
    color: var(--color-slate-300);
    margin: 0 var(--space-1);
}

.shop-search-header-clear-wrap {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.shop-search-header-clear {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.shop-search-header-clear:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Desktop: match the regular shop hero height (~306px) */
@media (min-width: 1024px) {
    .shop-hero-content:has(.shop-search-header) {
        min-height: 306px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Mobile: center the search header text, stack query below */
@media (max-width: 639px) {
    .shop-search-header {
        text-align: center;
    }

    .shop-search-header-title {
        justify-content: center;
    }

    .shop-search-header-title h1 {
        font-size: 1.5rem;
    }

    .shop-search-header-query {
        justify-content: center;
        font-size: 0.875rem;
    }
}

/* ── Shop Hero ───────────────────────────────────────────────────────────── */
.shop-hero {
    background: linear-gradient(to right, #ffffff, var(--color-primary-50));
    color: var(--color-slate-900);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-6);
}

/* Desktop layout: hidden below 1024px */
.shop-hero-desktop { display: none; }

@media (min-width: 1024px) {
    .shop-hero-desktop {
        display: block;
        position: relative;
        max-width: 80rem; /* keeps content readable even when hero is full-bleed */
        margin: 0 auto;
        padding: 0 2rem;
    }

    .shop-hero-img-wrap {
        position: absolute;
        top: 51%;
        transform: translateY(-50%);
        right: 15px;
        pointer-events: none;
    }
}

@media (min-width: 1280px) {
    .shop-hero-img { width: 600px; }
}

.shop-hero-img { width: 500px; height: auto; }

.shop-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 3rem;
    padding-bottom: 3rem;
    max-width: 28rem;
}

.shop-hero-content .krp-breadcrumbs {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.shop-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .shop-hero-title { font-size: 3rem; }
}

.shop-hero-desc {
    font-size: 1.125rem;
    color: var(--color-slate-700);
    line-height: 1.625;
}

/* Tablet layout: hidden below 640px and above 1023px */
.shop-hero-tablet { display: none; }

@media (min-width: 640px) and (max-width: 1023px) {
    .shop-hero-tablet {
        display: block;
        max-width: 80rem;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .shop-hero-tablet .krp-breadcrumbs { padding: 1rem 0 0.75rem; }

    .shop-hero-tablet-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 2rem;
        padding-top: 2rem;
    }

    .shop-hero-tablet-text { flex-shrink: 1; min-width: 0; }

    .shop-hero-title-tablet {
        font-size: clamp(1.5rem, 5vw, 5.25rem);
        font-weight: 700;
        color: var(--color-slate-900);
        margin-bottom: 0.75rem;
    }

    .shop-hero-desc-tablet {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
        color: var(--color-slate-700);
        line-height: 1.625;
    }

    .shop-hero-img-tablet {
        width: clamp(280px, 40vw, 400px);
        height: auto;
        flex-shrink: 0;
    }
}

/* Mobile layout: shown below 640px */
.shop-hero-mobile { display: block; }

@media (min-width: 640px) { .shop-hero-mobile { display: none; } }

.shop-hero-mobile .krp-breadcrumbs { padding: 1rem 1rem 0.75rem; }

.shop-hero-mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1rem 1rem;
}

.shop-hero-img-mobile { width: 100%; height: auto; display: block; }

.shop-hero-mobile-text { text-align: center; padding: 0.5rem 0.5rem 0; }

.shop-hero-title-mobile {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.shop-hero-desc-mobile {
    font-size: 0.875rem;
    color: var(--color-slate-700);
    line-height: 1.625;
}

/* ── Subcategory Navigation Cards ───────────────────────────────────────── */
.subcat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 639px) {
    .subcat-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
}

.subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    width: 8rem;
    flex-shrink: 0;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 150ms ease;
    cursor: pointer;
}

.subcat-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.subcat-card--active {
    border-color: var(--color-primary-300);
    background-color: var(--color-primary-50);
}

@media (max-width: 639px) {
    .subcat-card { padding: 0.75rem; width: 7rem; }
}

.subcat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: var(--color-slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-600);
    transition: all 150ms ease;
}

.subcat-card:hover .subcat-card-icon {
    background-color: var(--color-primary);
    color: white;
}

.subcat-card-icon--active {
    background-color: var(--color-primary-100);
    color: var(--color-primary-600);
}

.subcat-card--active:hover .subcat-card-icon {
    background-color: var(--color-primary-100);
    color: var(--color-primary-600);
}

@media (max-width: 639px) {
    .subcat-card-icon { width: 2.5rem; height: 2.5rem; }
}

.subcat-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-700);
    line-height: 1.25;
    transition: color 150ms ease;
}

.subcat-card:hover .subcat-card-label { color: var(--color-primary-600); }
.subcat-card-label--active { color: var(--color-primary-600); }

/* ── Mobile Search Bar (above mobile toolbar, hidden at 760px+) ─────────── */
.shop-mobile-search {
    margin-bottom: 0.75rem;
}

@media (min-width: 760px) {
    .shop-mobile-search { display: none; }
}

/* ── Mobile Toolbar ──────────────────────────────────────────────────────── */
.shop-toolbar-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 760px) { .shop-toolbar-mobile { display: none; } }

.shop-toolbar-mobile-count {
    font-size: 0.875rem;
    color: var(--color-slate-600);
}

.shop-toolbar-mobile-count-num {
    font-weight: 500;
    color: var(--color-slate-900);
}

.shop-toolbar-mobile-actions { display: flex; gap: 0.5rem; }

.shop-toolbar-mobile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    background: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.shop-toolbar-mobile-btn:hover { background-color: var(--color-slate-50); }

/* ── Shop Toolbar (desktop) ──────────────────────────────────────────────── */
.shop-toolbar {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding: var(--space-3) var(--space-4);
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

@media (min-width: 760px) {
    .shop-toolbar { display: flex; }
}

/* Search — far left, grows to fill space; full row when toolbar wraps */
.shop-toolbar-search {
    flex: 1 1 220px;
    min-width: 0;
}

.shop-search-wrap {
    position: relative;
}

.shop-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--color-slate-400);
    flex-shrink: 0;
}

.shop-search-input {
    padding-left: 2.25rem !important; /* room for the search icon */
    font-size: var(--text-sm);
    height: 2.25rem;
}

/* Right group: results count + sort + columns — pushed right */
.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

/* "X results" text */
.shop-results-count {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

/* WooCommerce wraps results count in a <p> tag (legacy compat) */
.shop-results-count p.woocommerce-result-count,
.shop-results-count .woocommerce-result-count {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    margin: 0;
    line-height: 1.5;
}

/* Loading spinner — appears next to results count while filter is running */
.shop-results-count.loading::after {
    content: '';
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.shop-toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Sort Dropdown */
.woocommerce-ordering select,
.shop-sort-select {
    padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-foreground);
    background-color: var(--color-background);
    cursor: pointer;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.woocommerce-ordering select:focus,
.shop-sort-select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--color-primary); /* focus:ring-2 focus:ring-orange-500 */
}

/* Column Toggle Buttons */
.column-toggle {
    display: none;
    align-items: center;
    gap: var(--space-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .column-toggle {
        display: flex;
    }
}

/* Hide the 4-col button at ≤1312px — 4 columns is too narrow below this width */
@media (max-width: 1312px) {
    .column-toggle [data-columns="4"] {
        display: none;
    }
}

.column-toggle button {
    padding: var(--space-2);
    background: none;
    border: none;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.column-toggle button:hover,
.column-toggle button.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
}

/* ==========================================================================
   Shop Sidebar / Filter Panel
   ========================================================================== */
.shop-sidebar {
    padding: 0;
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    align-self: flex-start; /* don't stretch to page height */
    overflow: hidden; /* clips full-width hover highlights to border-radius */
    /* Sidebar scrolls naturally with page — NOT sticky */
}

.shop-sidebar .widget {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; /* filter-accordion handles its own dividers */
}

.shop-sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-sidebar .widget-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #334155;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.shop-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-filter-list li,
.shop-filter-item {
    padding: 0;
    list-style: none;
    margin-top: 0.25rem;
}

.shop-filter-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-filter-link,
.shop-filter-list a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.shop-filter-link:hover,
.shop-filter-list a:hover {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
}

.shop-filter-list .count {
    font-size: var(--text-xs);
    color: var(--color-slate-400);
    float: right;
}

/* Active / current parent */
.shop-filter-item.current-cat > .shop-filter-row > .shop-filter-link,
.shop-filter-list .current-cat > a {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

.shop-filter-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    color: var(--color-slate-500);
    transition: background-color 150ms ease;
}

.shop-filter-toggle:hover {
    background-color: var(--color-slate-100);
}

/* Show/hide chevrons based on aria-expanded */
.shop-filter-toggle .chevron-up { display: none; }
.shop-filter-toggle .chevron-down { display: block; }
.shop-filter-toggle[aria-expanded="true"] .chevron-up { display: block; }
.shop-filter-toggle[aria-expanded="true"] .chevron-down { display: none; }

.shop-filter-subcats {
    margin-left: 1rem; /* ml-4 */
    margin-top: 0.25rem; /* mt-1 */
    border-left: 2px solid var(--color-border);
    padding-left: 0.5rem; /* pl-2 */
    list-style: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
}

/* Hidden state */
.shop-filter-subcats[hidden],
.shop-filter-subcats:not(.expanded) {
    display: none;
}

.shop-filter-subcats.expanded {
    display: block;
}

.shop-filter-subcats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    width: 100%;
    transition: all var(--transition-fast);
}

.shop-filter-subcats a:hover {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
}

.shop-filter-subcats .current-cat > a {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

.color-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.375rem; /* tightened from 0.75rem — was overflowing sidebar border */
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.25rem; /* compact padding to fit 4-col */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 150ms ease;
    min-width: 0; /* prevent grid blowout */
}

.color-swatch-item:hover {
    background-color: var(--color-slate-50);
}

.color-swatch-item.active {
    background-color: var(--color-primary-50);
}

.color-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

/* Hover — matches product page sp-color-option:hover */
.color-swatch:hover { border-color: #cbd5e1; }

/* Active state — matches product page sp-color-option--selected */
.color-swatch.active {
    border-color: #f97316;
    box-shadow: 0 0 0 2px #fed7aa;
    transform: scale(1.1);
}

/* Check mark inside selected swatch */
.color-swatch.active::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center center no-repeat;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.color-swatch-label {
    font-size: 0.625rem; /* 10px — compact for 4-col fit */
    line-height: 1.2;
    color: var(--color-slate-600);
    text-align: center;
    transition: color 150ms ease;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.color-swatch-item.active .color-swatch-label {
    color: var(--color-primary-600);
    font-weight: 500;
}

.price-range-filter {
    padding: var(--space-2) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.price-range-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.price-range-option input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-slate-300);
    accent-color: var(--color-primary);
}

.price-range-option label {
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    cursor: pointer;
}

/* Legacy price range inputs (keep for backward compat) */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-range-inputs input {
    width: 5rem;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    text-align: center;
}

.price-range-inputs span {
    color: var(--color-slate-400);
}

/* Stock Filter */
.stock-filter label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    cursor: pointer;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    background: none;
    color: var(--color-foreground);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-filter-toggle {
        display: none;
    }
}

/* ==========================================================================
   Product Card
   ========================================================================== */
.wc-product-card {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 300ms ease;
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.wc-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: none; /* issue #14: no lift on hover */
    border-color: var(--color-primary-300);
}

/* Image area */
.wc-product-card-image-wrap { display: block; text-decoration: none; }

.wc-product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--color-slate-100);
}

.wc-product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
    display: block;
}

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

.wc-product-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-300);
}

/* Out of Stock Overlay */
.wc-product-card-oos-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-product-card-oos-overlay span {
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Badges top-left */
.wc-product-card-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1;
}

/* Image container — position:relative context for Quick View overlay */
.wc-product-card-image-container {
    position: relative;
}

/* Quick View button — bottom center, slide up on hover */
.wc-product-card-quick-view-wrap {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 640px) {
    .wc-product-card-quick-view-wrap { display: flex; }

    .wc-product-card:hover .wc-product-card-quick-view-wrap {
        opacity: 1;
        pointer-events: auto;
        animation: quickViewIn 200ms ease forwards;
    }
}

.wc-product-card-quick-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem; /* 16px */
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    transition: background-color 150ms ease;
}

.wc-product-card-quick-view-btn:hover { background-color: var(--color-primary-600); }

@keyframes quickViewIn {
    from { opacity: 0; transform: translateY(0.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Desktop card body: hidden on mobile */
.wc-product-card-body {
    padding: 1rem;
    display: none;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 640px) {
    .wc-product-card-body { display: flex; }
}

/* Category badge + In Stock row */
.wc-product-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.wc-product-card-cat-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.wc-product-card-instock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-secondary-600);
}

/* Show the Package SVG icon — do NOT hide it */
.wc-product-card-instock svg {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
}

/* Remove the old green circle pseudo-element */
.wc-product-card-instock::before { display: none; }

/* ── Stock indicator used by AJAX-rendered cards and Quick View ── */
.wc-product-card-stock {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.wc-product-card-stock.in-stock  { color: #16a34a; }
.wc-product-card-stock.out-of-stock { color: #dc2626; }

/* issue #19: filled circle dot */
.stock-dot {
    display: inline-block;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.in-stock  .stock-dot { background-color: #16a34a; }
.out-of-stock .stock-dot { background-color: #dc2626; }

.wc-product-card-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
    line-height: var(--leading-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.wc-product-card-title a { color: inherit; text-decoration: none; transition: color 300ms ease; }
.wc-product-card:hover .wc-product-card-title { color: var(--color-primary-600); }
.wc-product-card:hover .wc-product-card-title a { color: var(--color-primary-600); }

/* Price row */
.wc-product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.wc-product-card-price-lg {
    font-size: 1.1rem; /* issue #16: was 1.5rem */
    font-weight: 600;
    color: var(--color-slate-900);
}

.wc-product-card-price-lg del {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-slate-400);
}

/* issue #15: /ea suffix */
.wc-product-card-price-ea {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-slate-400);
    margin-left: 0.125rem;
}

.wc-product-card-price-lg ins {
    text-decoration: none;
    color: var(--color-primary);
}

.wc-product-card-sku {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--color-slate-500);
}

/* Out-of-stock badge in price row (replaces SKU) */
.wc-product-card-oos-badge {
    font-size: 0.75rem;
    color: #ef4444;
    background: #fef2f2;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

/* Actions row */
.wc-product-card-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Qty stepper */
.wc-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.wc-qty-btn {
    padding: 0 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    transition: background-color 150ms ease;
}

.wc-qty-btn:hover { background-color: var(--color-slate-50); }

.wc-qty-value {
    padding: 0 0.25rem; /* keep same control width, free more space for 2-3 digits */
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 2rem;
    width: 2.5rem;
    height: 2.5rem; /* match button height */
    line-height: 1;
    text-align: center;
    border: none;
    background: none;
    outline: none;
    color: var(--color-slate-900);
    font-family: inherit;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.wc-qty-value::-webkit-outer-spin-button,
.wc-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add button */
.wc-product-card-add-btn {
    flex: 1;
    min-width: 0;   /* allow shrink/wrap in narrow cards */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-primary);
    color: white;
    padding: 0.625rem 1rem; /* issue #13: taller */
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    min-height: 2.5rem; /* issue #13: ensure minimum height */
}

.wc-product-card-add-btn:hover { background-color: var(--color-primary-600); }

/* Notify Me button */
.wc-product-card-notify-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--color-slate-700);
    color: white;
    padding: 0.625rem 1rem; /* issue #13: taller */
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    min-height: 2.5rem; /* issue #13: ensure minimum height */
}

.wc-product-card-notify-btn:hover { background-color: var(--color-slate-800); }

/* Mobile card body */
.wc-product-card-body-mobile {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) { .wc-product-card-body-mobile { display: none; } }

.wc-product-card-title-mobile {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-product-card-mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wc-product-card-mobile-stock { font-size: 0.75rem; font-weight: 500; }
.wc-product-card-mobile-stock--in  { color: var(--color-secondary-600); }
.wc-product-card-mobile-stock--out { color: #dc2626; }

.wc-product-card-mobile-sku {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--color-slate-500);
}

.wc-product-card-mobile-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-top: 0.25rem;
}

/* Product Card List View */
.product-grid.list-view .wc-product-card {
    display: grid;
    grid-template-columns: 12rem 1fr;
}

.product-grid.list-view .wc-product-card-image {
    aspect-ratio: auto;
    height: 100%;
}

/* ── Sort By Bottom Sheet ────────────────────────────────────────────────── */
.sort-bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.sort-bottom-sheet-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sort-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
    transition: transform 300ms ease;
}

.sort-bottom-sheet.open { transform: translateY(0); }

.sort-bottom-sheet-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.sort-bottom-sheet-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-slate-900);
}

.sort-bottom-sheet-options { padding: 0.5rem; }

.sort-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    text-decoration: none;
    transition: background-color 150ms ease;
}

.sort-option:hover { background-color: var(--color-slate-50); }

.sort-option--active {
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    font-weight: 500;
}

/* ── Sidebar Collapse ────────────────────────────────────────────────────── */
.shop-sidebar { transition: width 300ms ease; }

.layout-sidebar.sidebar-collapsed {
    width: 4rem !important;
    overflow: hidden;
}

.layout-sidebar.sidebar-collapsed .shop-sidebar {
    padding: 1rem 0.5rem;
}

.layout-sidebar.sidebar-collapsed .widget-title,
.layout-sidebar.sidebar-collapsed .shop-filter-list,
.layout-sidebar.sidebar-collapsed .color-swatches,
.layout-sidebar.sidebar-collapsed .price-range-filter,
.layout-sidebar.sidebar-collapsed .stock-filter {
    display: none;
}

.sidebar-expand-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.layout-sidebar.sidebar-collapsed .sidebar-expand-btn { display: flex; }
.layout-sidebar.sidebar-collapsed .sidebar-collapse-btn { display: none; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    margin-bottom: 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-600);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:hover { color: var(--color-primary); }

/* ==========================================================================
   Filter Accordion — collapsible filter sections (sidebar + mobile sheet)
   ========================================================================== */

/* Each widget is an accordion wrapper */
.filter-accordion {
    border-bottom: 1px solid var(--color-border);
}
.filter-accordion:last-child {
    border-bottom: none;
}

/* Trigger button (section header) — full-width, edge-to-edge hover */
.filter-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 1rem var(--space-4);
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    color: inherit;
    text-align: left;
    transition: background-color 150ms ease;
}
.filter-accordion-trigger:hover {
    background-color: var(--color-slate-100);
}

.filter-accordion-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #334155;
    letter-spacing: 0.05em;
}

/* Chevron rotates when collapsed */
.filter-accordion-chevron {
    flex-shrink: 0;
    color: var(--color-slate-400);
    transition: transform 200ms ease;
}
.filter-accordion-trigger[aria-expanded="false"] .filter-accordion-chevron {
    transform: rotate(-90deg);
}

/* Body: height-animated open/close — JS drives the height value */
.filter-accordion-body {
    overflow: hidden;
    height: 0; /* all sections start collapsed; JS animates open/close */
    /* No padding here — padding on body bleeds through when height:0 */
    transition: height 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner wrapper provides the visual padding; sits inside the clipped body */
.filter-accordion-inner {
    padding: 0.25rem var(--space-4) 0.75rem;
}

/* ==========================================================================
   Checkbox Category Items — multi-selectable
   ========================================================================== */

/* "All Products" clear button */
.shop-filter-all-btn {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-align: left;
}
.shop-filter-all-btn:hover {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
}
.shop-filter-all-btn.active {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

/* Checkbox label wrapper */
.shop-filter-cat-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    transition: all var(--transition-fast);
    width: 100%;
}
.shop-filter-cat-label:hover {
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
}
.shop-filter-cat-label:has(.shop-filter-cat-check:checked) {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

/* Mobile: larger touch targets to match sort-by button sizing */
.shop-filter-cat-label--mobile {
    padding: 0.75rem 1rem;
    font-size: var(--text-base, 1rem);
    gap: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
}
.shop-filter-cat-label--mobile:hover { background: none; }
.shop-filter-list--mobile .shop-filter-item:last-child .shop-filter-cat-label--mobile { border-bottom: none; }

/* Empty state message inside attribute filter sections */
.shop-filter-empty-msg {
    font-size: var(--text-sm);
    color: var(--color-slate-400);
    margin: 0;
    padding: 0.25rem 0;
}

/* Custom checkbox — uniform across all sidebar/mobile filter checkboxes */
.shop-filter-cat-check {
    appearance: none;
    -webkit-appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 3px;
    border: 2px solid var(--color-slate-300);
    background-color: white;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.shop-filter-cat-check:hover {
    border-color: var(--color-slate-400);
}
.shop-filter-cat-check:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
}
.shop-filter-cat-check:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.shop-filter-cat-name { flex: 1; }

/* Override sidebar collapsed hide (accordion label + body) */
.layout-sidebar.sidebar-collapsed .filter-accordion-body,
.layout-sidebar.sidebar-collapsed .filter-accordion-trigger { display: none; }

/* ==========================================================================
   Active Filter Pills Bar (mobile filter sheet top)
   ========================================================================== */

.filter-active-pills-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    min-height: 0;
    /* hidden when empty via JS (display:none set inline) */
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--color-primary-50);
    color: var(--color-primary-700, #c2410c);
    border: 1px solid var(--color-primary-200, #fed7aa);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    white-space: nowrap;
}

.filter-pill-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary-600, #ea580c);
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.filter-pill-remove:hover { color: var(--color-primary-800, #9a3412); }

.filter-pill-clear-all {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--color-slate-300);
    color: var(--color-slate-600);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.filter-pill-clear-all:hover {
    border-color: var(--color-slate-400);
    color: var(--color-slate-900);
}

/* Single-button footer variant */
.filter-bottom-sheet-actions--single {
    padding: 1rem 1.5rem;
}
.filter-bottom-sheet-actions--single .btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
}

/* ==========================================================================
   Product Grid Loading State
   ========================================================================== */

.product-grid.loading {
    position: relative;
    pointer-events: none;
}
.product-grid.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 5;
    border-radius: var(--radius-lg);
}
/* Spinner on top of the overlay */
.product-grid.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 2.5rem;
    height: 2.5rem;
    margin: -1.25rem 0 0 -1.25rem;
    border: 3px solid var(--color-slate-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: krp-spin 0.7s linear infinite;
}
@keyframes krp-spin { to { transform: rotate(360deg); } }

/* Sort option as button (mobile sheet) */
.sort-bottom-sheet-options .sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

/* ==========================================================================
   Mobile Quick View Bottom Sheet
   ========================================================================== */

.mobile-qv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms ease;
}
.mobile-qv-overlay.open { opacity: 1; visibility: visible; }

.mobile-qv-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 61;
    background: white;
    border-radius: 1rem 1rem 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 300ms ease;
}
.mobile-qv-sheet.open { transform: translateY(0); }

/* Only display on mobile */
@media (min-width: 640px) {
    .mobile-qv-overlay,
    .mobile-qv-sheet { display: none !important; }
}

/* Floating close button */
.mobile-qv-close-wrap {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}
.mobile-qv-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    color: var(--color-slate-700);
}

.mobile-qv-image-area {
    position: relative;
    height: 16rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-slate-100);
}
.mobile-qv-main-img {
    max-width: 16rem;
    max-height: 16rem;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Gallery nav arrows */
.mobile-qv-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-slate-800);
    z-index: 5;
}
.mobile-qv-prev { left: 0.75rem; }
.mobile-qv-next { right: 0.75rem; }

/* Scrollable content area */
.mobile-qv-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.mobile-qv-info-top {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-qv-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin: 0;
    line-height: 1.3;
}
.mobile-qv-cat-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary-600, #ea580c);
    background: var(--color-primary-50);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    align-self: flex-start;
}

/* Colors section */
.mobile-qv-section-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    margin: 0 0 0.5rem;
}
.mobile-qv-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mobile-qv-color-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.5rem;
}
.mobile-qv-color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid var(--color-slate-300);
    flex-shrink: 0;
}
.mobile-qv-color-name { font-size: 0.75rem; color: var(--color-slate-700); }

.mobile-qv-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.mobile-qv-meta-item {
    background: var(--color-slate-50);
    border-radius: 0.5rem;
    padding: 0.75rem;
}
.mobile-qv-meta-label {
    font-size: 0.6875rem;
    color: var(--color-slate-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mobile-qv-meta-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-900);
}
.mobile-qv-meta-value--in  { color: var(--color-secondary-600, #059669); }
.mobile-qv-meta-value--out { color: #dc2626; }

/* Full details link */
.mobile-qv-details-link {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary-600, #ea580c);
    padding: 0.375rem;
    text-decoration: none;
    align-self: center;
}
.mobile-qv-details-link:hover { color: var(--color-primary-700, #c2410c); text-decoration: underline; }

/* Sticky bottom action bar */
.mobile-qv-actions {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    background: white;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mobile-qv-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-qv-price-value {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--color-slate-900);
    line-height: 1;
}
.mobile-qv-price-ea {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--color-slate-500);
    margin-left: 0.05rem;
}
/* Qty stepper inside mobile QV */
.mobile-qv-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    overflow: hidden;
}
.mobile-qv-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-700);
    transition: background-color 150ms;
}
.mobile-qv-qty-btn:hover { background: var(--color-slate-50); }
.mobile-qv-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mobile-qv-qty-val {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 3rem;
    text-align: center;
    border-left: 1px solid var(--color-slate-200);
    border-right: 1px solid var(--color-slate-200);
}
/* Full-width Add to Cart */
.mobile-qv-add-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    font-family: inherit;
}
.mobile-qv-add-btn:hover { background: var(--color-primary-600); }
.mobile-qv-add-btn:disabled {
    background: var(--color-slate-300);
    cursor: not-allowed;
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */
.single-product-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: white; /* bg-white, NOT slate-100 */
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-3);
}

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

/* Thumbs: grid-cols-3 gap-3 (NOT horizontal scroll) */
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.product-gallery-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    padding: 0;
}

.product-gallery-thumb:hover {
    border-color: var(--color-primary-200);
}

.product-gallery-thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-200); /* ring-2 ring-orange-200 */
}

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

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-info .product-category {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    background-color: var(--color-primary-50);
    padding: 0.25rem var(--space-3);
    border-radius: var(--radius-full);
}

.product-info .product-category a {
    color: inherit;
    text-decoration: none;
}

/* Also used in quick view */
.product-category-badge {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-primary);
    background-color: var(--color-primary-50);
    padding: 0.25rem var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.product-info h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-foreground);
    line-height: var(--leading-tight);
}

@media (min-width: 640px) {
    .product-info h1 {
        font-size: var(--text-4xl);
    }
}

.product-price-display {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.product-price-display del {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    color: var(--color-slate-400);
    margin-left: var(--space-2);
}

.product-short-description {
    font-size: var(--text-base);
    color: var(--color-slate-600);
    line-height: var(--leading-relaxed);
}

.product-color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.product-color-option {
    width: 2rem;       /* 32px, NOT 40px */
    height: 2rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    outline: none;
}

.product-color-option:hover {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.product-color-option.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-100);
    transform: scale(1.1);
}

/* Check mark on selected color option */
.product-color-option.selected::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center center no-repeat;
}

.product-cart-card {
    background-color: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Add to Cart Row */
.product-add-to-cart {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.product-add-to-cart .qty-stepper {
    flex-shrink: 0;
}

.product-add-to-cart .btn {
    flex: 1;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

/* Add-to-cart success state — 2s emerald flash */
.product-add-to-cart .btn.btn-add-to-cart.success,
.ajax-add-to-cart.success {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* Heart + Share action buttons */
.product-action-buttons {
    display: none; /* hidden on mobile */
}

@media (min-width: 1024px) {
    .product-action-buttons {
        display: flex;
        gap: var(--space-2);
    }
}

.product-action-btn {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-lg);
    background: none;
    color: var(--color-slate-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.product-action-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-50);
}

/* Feature Boxes — emerald theme (NOT slate/orange) */
.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.product-feature-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: var(--color-secondary-50);
    border-radius: var(--radius-lg);
}

.product-feature-box .feature-icon-wrap {
    width: 3rem;    /* 48px */
    height: 3rem;
    min-width: 3rem;
    background-color: var(--color-secondary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* Fallback: bare .icon class without wrapper still renders correctly */
.product-feature-box > .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.product-feature-box .feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.product-feature-box .feature-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgb(0, 79, 59); /* dark emerald title */
}

.product-feature-box span,
.product-feature-box .feature-desc {
    font-size: var(--text-xs);
    color: var(--color-secondary-700, #047857);
}

/* Specifications Card */
.product-specs {
    background-color: var(--color-slate-50);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
}

.product-specs h3 {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
}

.product-specs-table {
    width: 100%;
}

.product-specs-table tr {
    border-bottom: 1px solid var(--color-border);
}

.product-specs-table tr:last-child {
    border-bottom: none;
}

.product-specs-table th {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--color-slate-500);
    text-align: left;
    width: 40%;
}

.product-specs-table td {
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-foreground);
}

/* Product Tabs (Full Details, Specs) */
.woocommerce-tabs {
    margin-top: var(--space-12);
}

.woocommerce-tabs .tabs {
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-slate-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--color-primary);
}

.woocommerce-tabs .tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.woocommerce-tabs .panel {
    padding: var(--space-8) 0;
}

/* Related Products / Recently Viewed */
.related-products,
.recently-viewed {
    margin-top: var(--space-16);
}

.related-products h2,
.recently-viewed h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.cart-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 22rem;
    }
}

.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cart-item-card {
    display: flex;
    gap: var(--space-4);
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    align-items: flex-start;
}

@media (min-width: 640px) {
    .cart-item-card {
        padding: var(--space-6);
        gap: var(--space-6);
    }
}

.cart-item-img-wrap {
    width: 6rem;     /* 96px */
    height: 6rem;
    min-width: 6rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--color-slate-100);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .cart-item-img-wrap {
        width: 8rem;   /* 128px */
        height: 8rem;
        min-width: 8rem;
    }
}

.cart-item-img-wrap img,
.cart-item-img-wrap a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cart-item-name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-foreground);
}

.cart-item-name a {
    color: inherit;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: var(--color-primary);
}

.cart-item-category {
    font-size: var(--text-xs);
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-item-sku {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--color-slate-400);
}

/* Controls row: qty stepper + price + remove */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}

.cart-item-price {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
}

.cart-item-total {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-foreground);
    margin-left: auto;
}

.cart-item-remove {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background-color: #fef2f2;
    color: var(--color-destructive);
}

/* Shipping Progress Bar — bg-white border (NOT orange tint) */
.shipping-progress {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
}

.shipping-progress-text {
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    margin-bottom: var(--space-3);
}

.shipping-progress-text strong {
    color: var(--color-secondary); /* emerald for free shipping unlock */
}

/* Track: bg-slate-200 h-3 (12px, NOT 8px) */
.shipping-progress-bar {
    height: 0.75rem;
    background-color: var(--color-slate-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

/* Fill: emerald gradient (NOT solid orange) */
.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-secondary), var(--color-secondary-400, #34d399));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Cart footer row: coupon + update */
.cart-footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* Cart info blocks in sidebar (Fast Delivery + Secure Packaging) */
.cart-info-blocks {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.cart-info-block {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.cart-info-icon {
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.cart-info-title {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-foreground);
}

.cart-info-desc {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
}

/* Coupon Code */
.coupon-section {
    margin-top: var(--space-4);
}

.coupon-toggle {
    font-size: var(--text-sm);
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-medium);
}

.coupon-form {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.coupon-form input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

/* Order Summary Sidebar */
.order-summary {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.order-summary h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    /* No border-bottom on cart section h2 */
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.order-summary-row dt {
    color: var(--color-slate-600);
}

.order-summary-row dd {
    font-weight: var(--font-medium);
    color: var(--color-foreground);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: var(--space-4) 0 0;
    margin-top: var(--space-2);
    border-top: 2px solid var(--color-border);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.order-summary-total dd {
    color: var(--color-primary);
}

/* Cross-Sell Bundles */
.cross-sell-section {
    margin-top: var(--space-8);
}

.cross-sell-section h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

/* Checkout Progress Indicator */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #62748e;
}

.checkout-step.completed {
    color: #0f172b;
}

.checkout-step.active {
    color: #0f172b;
}

.checkout-step-number {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: none;                      /* solid fill, no outline border */
    background-color: #e2e8f0;
    color: #62748e;
    line-height: 1;
}

.checkout-step:not(.completed):not(.active) { color: #62748e; } /* inactive label text */

.checkout-step.completed .checkout-step-number {
    background-color: var(--color-secondary);
    border: none;
    color: white;
}

.checkout-step.active .checkout-step-number {
    background-color: #F97316;
    border: none;
    color: white;
}

.checkout-step-divider {
    width: 2.5rem;
    height: 2px;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    background-color: #cbd5e1;
    flex-shrink: 0;
}

/* All dividers use bg-slate-300 (#cbd5e1) regardless of step completion */
/* .checkout-step.completed + .checkout-step-divider { background-color: var(--color-secondary); } */

/* Checkout Layout */
.checkout-layout {
    display: grid;
    gap: var(--space-8);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr 1fr;
    }
}

/* Checkout Form Sections */
.checkout-section {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #0f172a;
    margin-top: 0;              /* prevent browser h3 default 1em */
    margin-bottom: var(--space-4);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

/* WooCommerce form field overrides */
.woocommerce-checkout .form-row {
    margin-bottom: var(--space-4);
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #334155;
    margin-bottom: 0.25rem;
}

.woocommerce-checkout .form-row .required {
    color: #ef4444;
}

/* "(optional)" label suffix — WC auto-appends <span class="optional"> on non-required fields.
   Slightly lighter than the label text. */
.woocommerce-checkout .form-row label .optional {
    color: #64748b;
    font-weight: 400;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 0.6875rem 1rem;  /* ~11px top/bottom → 46px total height */
    min-height: 2.875rem;     /* 46px — fix #8 */
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #ffffff;
    color: #0f172a;
    font-family: var(--font-body);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-checkout .form-row input.input-text:hover,
.woocommerce-checkout .form-row select:hover,
.woocommerce-checkout .form-row textarea:hover {
    border-color: #94a3b8;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px #f97316;   /* focus:ring-2 ring-orange-500 — fix #5 */
}

/* Placeholder: slate-900 at 50% opacity across browsers — fix #4 */
.woocommerce-checkout .form-row input.input-text::-webkit-input-placeholder,
.woocommerce-checkout .form-row textarea::-webkit-input-placeholder,
.ck-promo-input::-webkit-input-placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.woocommerce-checkout .form-row input.input-text::-moz-placeholder,
.woocommerce-checkout .form-row textarea::-moz-placeholder,
.ck-promo-input::-moz-placeholder {
    color: rgba(15, 23, 42, 0.5);
    opacity: 1;
}

.woocommerce-checkout .form-row input.input-text:-ms-input-placeholder,
.woocommerce-checkout .form-row textarea:-ms-input-placeholder,
.ck-promo-input:-ms-input-placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.woocommerce-checkout .form-row input.input-text::-ms-input-placeholder,
.woocommerce-checkout .form-row textarea::-ms-input-placeholder,
.ck-promo-input::-ms-input-placeholder {
    color: rgba(15, 23, 42, 0.5);
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder,
.ck-promo-input::placeholder {
    color: rgba(15, 23, 42, 0.5);
    opacity: 1;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(15, 23, 42, 0.5) !important;
    opacity: 1;
}

/* ── Select2 (WC enhanced select for State/Country) — fix #9 ───────────────
   Match native input: 2.875rem height, same border/focus, same font. */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: 2.875rem !important;  /* 46px — same as native input */
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.875rem !important;
    padding-left: 1rem !important;
    padding-right: 2.5rem !important;
    color: #0f172a !important;
    font-size: 1rem !important;
    font-family: var(--font-body) !important;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 2.875rem !important;
    right: 0.5rem !important;
}
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 2px #f97316 !important;
    outline: none !important;
}
.woocommerce-checkout .select2-search--dropdown .select2-search__field {
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
}
.woocommerce-checkout .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px #f97316;
}
.woocommerce-checkout .select2-dropdown {
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.woocommerce-checkout .select2-results__option {
    font-size: 0.875rem;
    color: #0f172a;
    padding: 0.5rem 1rem;
}
.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
    background-color: #fff7ed;
    color: #f97316;
}

/* ── Hidden fields (country, company — kept in DOM for WC JS but not shown) ── */
.woocommerce-checkout .form-row.ck-hide-field,
.woocommerce-checkout p.form-row.ck-hide-field {
    display: none !important;
}

/* ── Two-column name row ───────────────────────────────────────────────────
   Wraps billing_first_name + billing_last_name.
   Reset WC's inline-block/float approach inside the grid. */
.ck-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ck-name-row .form-row {
    width: auto !important;
    display: block !important;
    margin-right: 0 !important;
    float: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* ── Three-column city/state/zip ────────────────────────────────────────────
   Wraps billing_city + billing_state + billing_postcode. */
.ck-city-state-zip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ck-city-state-zip .form-row {
    width: auto !important;
    display: block !important;
    margin-right: 0 !important;
    float: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Keep WC's form-row-first/last working outside our grids */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: calc(50% - 0.5rem);
    display: inline-block;
    vertical-align: top;
}
.woocommerce-checkout .form-row-first { margin-right: 1rem; }

/* ── Select: add custom dropdown arrow (appearance:none removes native arrow) ── */
.woocommerce-checkout .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ── Email field hint: "We'll send your order confirmation here" ─────────────
   Placed directly after the billing_email form-row.
   Pull up via negative margin to sit snug under the input. */
.ck-field-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: -0.625rem;  /* close the gap from form-row's margin-bottom */
    margin-bottom: 1rem;
}

/* ── Custom checkbox rows (newsletter, save-info) ────────────────────────── */
.ck-checkbox-row-wrap {
    margin-top: 0.25rem;
    margin-bottom: 0;
}
.ck-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
    user-select: none;
}
.ck-checkbox-row .ck-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    accent-color: #f97316;
    flex-shrink: 0;
    margin: 0.1875rem 0 0 0;    /* optically align checkbox top with first line of text */
    padding: 0;
    cursor: pointer;
}

/* Checkbox styling — fix #7: appearance:none for custom rounded orange checkbox */
.woocommerce-checkout .form-row input[type="checkbox"],
.woocommerce-checkout input.input-checkbox,
.woocommerce-checkout input.ck-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    transition: border-color 150ms ease, background-color 150ms ease;
}
.woocommerce-checkout .form-row input[type="checkbox"]:checked,
.woocommerce-checkout input.input-checkbox:checked,
.woocommerce-checkout input.ck-checkbox:checked {
    background-color: #f97316;
    border-color: #f97316;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}
.woocommerce-checkout .form-row input[type="checkbox"]:focus,
.woocommerce-checkout input.input-checkbox:focus,
.woocommerce-checkout input.ck-checkbox:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px #f97316;
}

/* Placeholder note (optional label suffix) */
.woocommerce-checkout .optional {
    color: #94a3b8;
    font-weight: 400;
}

/* Checkout Order Summary */
.checkout-order-items {
    margin-bottom: var(--space-4);
}

.checkout-order-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.checkout-order-item-image {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-slate-100);
    flex-shrink: 0;
}

.checkout-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-order-item-name {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-foreground);
    min-width: 0;
}

.checkout-order-item-qty {
    font-size: var(--text-xs);
    color: var(--color-slate-400);
}

.checkout-order-item-total {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4);
    background-color: var(--color-slate-50);
    border-radius: var(--radius-xl);
    margin-top: var(--space-6);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-slate-600);
}

.trust-badge .icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* ==========================================================================
   Checkout Page — ck-* classes
   Use hex — NOT CSS vars.
   ========================================================================== */

/* ==========================================================================
   Minimal Checkout Header  (ck-site-header)  — fix #3
   Logo centred (or left) + cart icon right. No nav, no search, no mega-menu.
   ========================================================================== */

.ck-site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 100;
}
.ck-header-inner {
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height, 4rem);
}
@media (min-width: 640px) { .ck-header-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .ck-header-inner { padding-left: 2rem; padding-right: 2rem; } }

/* Logo: same as site-logo but contained */
.ck-site-header .site-logo { display: flex; align-items: center; text-decoration: none; }
.ck-site-header .logo-img { height: 2rem; width: auto; }

/* Cart button: icon + count badge */
.ck-header-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #475569;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: color 150ms ease;
}
.ck-header-cart-btn:hover { color: #f97316; }
.ck-header-cart-btn svg { flex-shrink: 0; }

/* ==========================================================================
   Checkout Page — main layout
   ========================================================================== */

/* Applied to body.woocommerce-checkout (slate-50) so it doesn't bleed into other pages. */
body.woocommerce-checkout {
    background-color: #f8fafc;
    overflow-x: clip;
}

/* Main checkout content container */
.ck-container {
    --ck-container-pad: 1rem;
    max-width: 76rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem var(--ck-container-pad) 2rem;
}
@media (min-width: 640px) { .ck-container { --ck-container-pad: 1.5rem; } }
@media (min-width: 1024px) { .ck-container { --ck-container-pad: 2rem; } }

/* The checkout page is rendered inside page.php's shared `.container.section`.
   Override only that wrapper here so the top stack matches the screenshots
   without changing site-wide section spacing. */
body.woocommerce-checkout .site-main > .container.section {
    padding-top: 0;
}

/* ── Header: mb-8 ──────────────────────────────────────────────────────── */
.ck-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

/* ── Right column: hidden on mobile, sticky on desktop ─────────────────── */
.ck-summary-col {
    display: none;
}
@media (min-width: 1024px) {
    .ck-summary-col {
        display: block;
        position: sticky;
        top: 6rem;
    }
}

/* ── Checkout Summary Column: separate panels instead of one stacked card ── */
.ck-order-summary {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ck-summary-title,
h2.ck-summary-title {
    font-size: 1.125rem !important;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

/* ── Summary Panels: Order Summary / Order Details ───────────────────────── */
.ck-summary-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.ck-summary-panel-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: #0f172a;
}

.ck-summary-panel-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    min-width: 0;
}

.ck-summary-title--toggle {
    margin-bottom: 0;
}

.ck-summary-panel-count {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #94a3b8;
}

.ck-summary-panel-symbol {
    flex-shrink: 0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
}

.ck-summary-panel-symbol::before {
    content: '+';
}

.ck-summary-panel-toggle[aria-expanded="true"] .ck-summary-panel-symbol::before {
    content: '-';
}

.ck-summary-panel-body {
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    transition: max-height 300ms ease;
}

.ck-summary-panel-body.is-collapsed {
    max-height: 0;
    border-top-color: transparent;
}

.ck-summary-panel-body-inner {
    padding: 0 1.25rem 1.25rem;
}

/* ── Order Items: space-y-4 inside compact details body ─────────────────── */
.ck-order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.ck-summary-panel--details .ck-summary-panel-body-inner {
    padding-top: 1rem;
}

.ck-order-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Image wrap: relative (for qty badge) */
.ck-order-item-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.ck-order-item-img {
    position: relative;
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    background-color: #ffffff;
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #cbd5e1, inset 0 0 0 2px rgba(241, 245, 249, 0.9);
}
.ck-order-item-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #cbd5e1;
    border-radius: inherit;
    pointer-events: none;
}
.ck-order-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Item info: flex-1 min-w-0 */
.ck-order-item-info { flex: 1; min-width: 0; }

.ck-order-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

.ck-order-item-cat {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
    margin-bottom: 0;
}

.woocommerce-checkout .ck-order-item-info .ck-order-item-cat {
    margin-top: 0.125rem;
    margin-bottom: 0;
}

.ck-order-item-qty {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
    margin-bottom: 0;
}

.woocommerce-checkout .ck-order-item-info .ck-order-item-qty {
    margin-top: 0.125rem;
    margin-bottom: 0;
}

.ck-order-item-total {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    flex-shrink: 0;
}
.ck-order-item-total .amount { color: #0f172a; }

/* ── Promo Code: exposed input/button below summary panel ────────────────── */
.ck-promo-inline {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.ck-promo-input-row { display: flex; gap: 0.5rem; }

.ck-promo-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    font-family: var(--font-body);
}
.ck-promo-input:focus { border-color: #f97316; box-shadow: 0 0 0 2px #f97316; }  /* fix #5 */
.ck-promo-input::placeholder {
    color: rgba(15, 23, 42, 0.5);
    opacity: 1;
}
.ck-promo-input:disabled { background-color: #f1f5f9; cursor: not-allowed; }
.ck-promo-input.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.ck-promo-apply-btn {
    padding: 0.5rem 1rem;
    background-color: #f97316;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
    white-space: nowrap;
}
.ck-promo-apply-btn:hover { background-color: #ea580c; }
.ck-promo-apply-btn:disabled { background-color: #cbd5e1; cursor: not-allowed; }

.ck-promo-applied {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: #059669;
}

.coupon-error-notice {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.krp-remove-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.375rem;
    color: #64748b;
    text-decoration: none;
    vertical-align: middle;
    transition: color 150ms ease, opacity 150ms ease;
}

.krp-remove-coupon:hover,
.krp-remove-coupon:focus {
    color: #ef4444;
    text-decoration: none;
}

.krp-remove-coupon.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.krp-remove-coupon::before {
    content: "\00d7";
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Order Bump: redesigned summary offer card ──────────────────────────── */
.ck-order-bump {
    position: relative;
    padding: 1.125rem 1.125rem 1.25rem;
    border: 1px solid #5ee3b3;
    border-radius: 0.75rem;
    background: #ecf7f2;
    overflow: hidden;
}

.ck-order-bump-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem 0.45rem;
    background: #0f9f6e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0 0.75rem 0 0.75rem;
}


.ck-order-bump-header {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ck-order-bump-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #0f9f6e;
    color: #ffffff;
    flex-shrink: 0;
}

.ck-order-bump-icon .ck-order-bump-thumbnail,
.ck-order-bump-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-order-bump-copy {
    min-width: 0;
}

.ck-order-bump-copy > h4,
.ck-order-bump-copy > p,
.ck-order-bump-offer-copy > span {
    margin-top: 0;
    margin-bottom: 0;
}

.ck-order-bump-title {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

.ck-order-bump-description {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #334155;
}

.ck-order-bump-offer {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    padding: 1rem 1rem 1rem 0.875rem;
    border: 1px solid #5ee3b3;
    border-radius: 0.625rem;
    background: #ffffff;
    width: 100%;
    text-align: left;
    font: inherit;
}

.ck-order-bump-checkbox {
    position: relative;
    width: 1.375rem;
    height: 1.375rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.25rem;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.ck-order-bump-checkbox::after {
    content: '';
    position: absolute;
    inset: 0;
    background: center / 0.75rem 0.75rem no-repeat;
    opacity: 0;
    transition: opacity 150ms ease;
}

.ck-order-bump-offer-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.2rem;
}

.ck-order-bump-offer-title {
    font-size: 0.9375rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

.ck-order-bump-offer-subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #475569;
}

.ck-order-bump-price {
    margin-left: auto;
    padding-left: 0.75rem;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.ck-order-bump-price .amount {
    color: #0f172a;
}

.ck-order-bump-offer--live {
    cursor: pointer;
    transition: box-shadow 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.ck-order-bump-offer--live:hover {
    border-color: #31c48d;
    box-shadow: 0 8px 20px rgba(15, 159, 110, 0.12);
    transform: translateY(-1px);
}

.ck-order-bump-offer.is-selected {
    border-color: #0f9f6e;
    background: #f4fbf7;
}

.ck-order-bump-offer.is-selected .ck-order-bump-checkbox {
    border-color: #0f9f6e;
    background: #0f9f6e;
    box-shadow: none;
}

.ck-order-bump-offer.is-selected .ck-order-bump-checkbox::after {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5 6.2 11.5 13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ck-order-bump-offer.is-loading {
    cursor: progress;
    pointer-events: none;
}

.ck-order-bump-offer.is-loading .ck-order-bump-checkbox {
    display: none;
}

.ck-order-bump-offer.is-loading::before {
    content: '';
    width: 1.375rem;
    height: 1.375rem;
    flex-shrink: 0;
    border: 2px solid rgba(15, 159, 110, 0.2);
    border-top-color: #0f9f6e;
    border-radius: 9999px;
    animation: ck-order-bump-spin 0.8s linear infinite;
}

.ck-order-bump-offer:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes ck-order-bump-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .ck-summary-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.125rem;
    }

    .ck-summary-panel-toggle {
        padding: 1rem;
    }

    .ck-summary-panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .ck-promo-input-row {
        flex-direction: column;
    }

    .ck-promo-apply-btn {
        width: 100%;
    }

    .ck-order-bump {
        padding-top: 1rem;
    }

    .ck-order-bump-badge {
        position: static;
        display: inline-flex;
        margin: 0 0 0.875rem auto;
        border-radius: 0.625rem;
    }

    .ck-order-bump-header {
        padding-right: 0;
    }

    .ck-order-bump-offer {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ck-order-bump-offer-copy {
        flex: 1 1 12rem;
    }

    .ck-order-bump-price {
        margin-left: 2.25rem;
        padding-left: 0;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Mobile Order Summary (top + bottom panels, hidden on desktop)
   ========================================================================== */

/* ── Hide on desktop ── */
.ck-mobile-summary-top,
.ck-mobile-summary-bottom,
.ck-mobile-order-bump {
    display: none;
}

/* ── Hide back-to-cart + progress steps on mobile ── */
@media (max-width: 1023px) {
    .woocommerce-checkout .cp-back-link {
        display: none;
    }
    .woocommerce-checkout .checkout-progress {
        display: none;
    }

    /* Cap left column at 600px and center it below desktop breakpoint */
    .ck-forms-col {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 1023px) {
    .ck-mobile-summary-top,
    .ck-mobile-summary-bottom,
    .ck-mobile-order-bump {
        display: block;
    }

    /* Hide header entirely on mobile — back link + progress are both hidden */
    .ck-header {
        display: none;
    }

    /* Kill .ck-container top padding so the summary bar is flush with header */
    .ck-container {
        padding-top: 0;
    }

    /* ── TOP SUMMARY BAR (full-viewport-width band via negative margins) ── */
    .ck-mobile-summary-top {
        background: #f1f5f9;
        border-bottom: 1px solid #e2e8f0;
        margin-left: calc(-1 * (var(--ck-container-pad) + var(--container-padding)));
        margin-right: calc(-1 * (var(--ck-container-pad) + var(--container-padding)));
        margin-bottom: 1.5rem;
        overflow: hidden;
    }

    .ck-mobile-top-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        /* Align inner content edges with .ck-forms-col content boxes */
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 1.3125rem 1.25rem;
        background: none;
        border: none;
        cursor: pointer;
        font-family: var(--font-body);
    }

    .ck-mobile-top-left {
        display: flex;
        align-items: center;
        gap: 0.375rem;
    }

    .ck-mobile-top-label {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #0f172a;
    }

    .ck-mobile-top-total {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #0f172a;
    }

    .ck-mobile-top-body {
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        overflow: hidden;
        transition: max-height 300ms ease, border-top-color 300ms ease;
    }

    .ck-mobile-top-body-inner {
        /* Align expanded content with .ck-forms-col content boxes */
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.75rem 1.25rem 1rem;
    }

    .ck-mobile-top-body.is-collapsed {
        max-height: 0;
        border-top-color: transparent;
    }

    .ck-order-items {
        margin-top: 1.5rem;
    }

    /* ── BOTTOM SUMMARY BAR ─────────────────────────────────────────── */
    .ck-mobile-summary-bottom {
        border-top: 1px solid #e2e8f0;
        padding-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .ck-mobile-bottom-discount-btn {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        background: none;
        border: 1px solid #e2e8f0;
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #475569;
        cursor: pointer;
        font-family: var(--font-body);
        margin: 2rem 0 0.75rem;
        transition: border-color 150ms ease, color 150ms ease;
    }

    .ck-mobile-bottom-discount-btn:hover {
        border-color: #f97316;
        color: #f97316;
    }

    .ck-mobile-bottom-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        font-family: var(--font-body);
    }

    .ck-mobile-bottom-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .ck-mobile-bottom-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .ck-mobile-bottom-total-label {
        font-size: 1.125rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
    }

    .ck-mobile-bottom-item-count {
        font-size: 0.8125rem;
        color: #64748b;
        line-height: 1.2;
    }

    .ck-mobile-bottom-right {
        display: flex;
        align-items: center;
        gap: 0.625rem;
    }

    .ck-mobile-bottom-currency {
        display: inline-flex;
        align-items: center;
        font-size: 0.625rem;
        font-weight: 600;
        letter-spacing: 0.025em;
        color: #64748b;
        background: #f1f5f9;
        border-radius: 0.25rem;
        padding: 0.125rem 0.3125rem;
        line-height: 1;
    }

    .ck-mobile-bottom-price {
        font-size: 1.125rem;
        font-weight: 700;
        color: #0f172a;
    }

    .ck-promo-inline {
        margin: 1.5rem 0;
        padding-top: 1.5rem;
    }

    /* ── Thumbnail stack ── */
    .ck-mobile-bottom-thumbs {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .ck-mobile-thumb {
        display: inline-block;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.375rem;
        border: 1px solid #e2e8f0;
        overflow: hidden;
        background: #f1f5f9;
        position: relative;
    }

    .ck-mobile-thumb + .ck-mobile-thumb {
        margin-left: -0.375rem;
    }

    .ck-mobile-thumb img,
    .ck-mobile-thumb .ck-mobile-thumb-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.375rem;
        display: block;
    }

    .ck-mobile-thumb-more {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6875rem;
        font-weight: 600;
        color: #475569;
        background: #e2e8f0;
    }

    /* ── Expanded body ── */
    .ck-mobile-bottom-body {
        padding-top: 0;
        margin-top: 0.75rem;
        border-top: 1px solid #e2e8f0;
        overflow: hidden;
        transition: max-height 300ms ease, border-top-color 300ms ease;
    }

    .ck-mobile-bottom-body.is-collapsed {
        max-height: 0;
        border-top-color: transparent;
    }

    /* ── Chevron rotation ── */
    .ck-chevron {
        transition: transform 200ms ease;
        flex-shrink: 0;
        color: #64748b;
    }

    [aria-expanded="true"] > .ck-mobile-top-left > .ck-chevron,
    [aria-expanded="true"] > .ck-mobile-bottom-right > .ck-chevron {
        transform: rotate(180deg);
    }

    /* ── Mobile order bump wrapper ── */
    .ck-mobile-order-bump {
        margin: 0.75rem 0;
    }

    /* ── Mobile promo: keep inline (row direction) ── */
    .ck-mobile-summary-top .ck-promo-input-row,
    .ck-mobile-summary-bottom .ck-promo-input-row {
        flex-direction: row;
    }
}

/* ── Checkout: small-viewport padding reduction ────────────────────────────
   Below 480px, strip the stacked container/column padding so checkout-section
   cards sit nearly full-width with ~5px gap from viewport edges. ────────── */
@media (max-width: 480px) {
    body.woocommerce-checkout .site-main > .container {
        padding-left: 0;
        padding-right: 0;
    }

    .ck-container {
        --ck-container-pad: 0.3125rem;
    }

    .ck-forms-col {
        padding-left: 0;
        padding-right: 0;
    }

    .ck-mobile-summary-top {
        margin-left: calc(-1 * var(--ck-container-pad));
        margin-right: calc(-1 * var(--ck-container-pad));
    }

    .ck-mobile-top-toggle {
        max-width: none;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .ck-mobile-top-body-inner {
        max-width: none;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .checkout-section {
        border-radius: 0.375rem;
    }
}

.ck-totals {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ck-totals--summary {
    margin-bottom: 0;
    margin-top: 0.75rem;
}

/* Totals row — fix #19: 1rem (16px) */
.ck-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: #475569;
}
.ck-totals-row .amount { color: #475569; }

.ck-totals-row--discount { color: #059669; }
.ck-totals-row--discount .amount { color: #059669; }

.ck-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* Total label — fix #19: 1rem (16px) */
.ck-total-label { font-weight: 600; color: #0f172a; font-size: 1rem; }

.ck-total-amount { font-size: 1.5rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.ck-total-amount .amount { color: #0f172a; font-size: 1.5rem; font-weight: 700; }

/* fix #20: padding-top creates the visual gap above the divider, no extra margin-top needed */
.ck-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0;
}

.ck-trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ck-trust-badge-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #059669;
}

.ck-trust-badge-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 0;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

.ck-trust-badge-desc { font-size: 0.75rem; color: #475569; margin: 0 !important; }

/* ── Shipping method radio card styling ─────────────────────────────────── */
#shipping_method { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }

/* Explicitly reset li to kill any browser-default list bullet / left-indent — fix #11 */
#shipping_method li {
    list-style: none;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    gap: 0.75rem;
}
#shipping_method li:hover { border-color: #cbd5e1; }

#shipping_method li:has(input:checked) {
    border-color: #f97316;
    background-color: #fff7ed;
}

#shipping_method li input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #f97316;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

#shipping_method li label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 500;
    margin: 0;
}

/* ── "Continue to Payment" / Place Order button: shadow-lg ──────────────── */
.woocommerce-checkout #place_order,
.woocommerce #place_order {
    width: 100%;
    background-color: #f97316;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    text-align: center;
    display: block;
    line-height: 1.1;
}
.woocommerce-checkout #place_order:hover,
.woocommerce #place_order:hover { background-color: #ea580c; }

/* ── PayPal-selected button state ───────────────────────────────────────── */
/* JS adds .ck-btn-paypal when ppcp-gateway radio is selected */
.woocommerce-checkout #place_order.ck-btn-paypal,
.woocommerce #place_order.ck-btn-paypal {
    background-color: #0070ba;
    box-shadow: none;
}
.woocommerce-checkout #place_order.ck-btn-paypal:hover,
.woocommerce #place_order.ck-btn-paypal:hover {
    background-color: #005ea6;
}
.woocommerce-checkout #payment .place-order,
.woocommerce #payment .place-order {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.woocommerce-checkout #payment #place_order,
.woocommerce #payment #place_order {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.woocommerce-checkout #payment #place_order.ck-place-order-hidden,
.woocommerce #payment #place_order.ck-place-order-hidden,
.woocommerce-checkout #payment .ppcp-dcc-order-button.ck-place-order-hidden,
.woocommerce #payment .ppcp-dcc-order-button.ck-place-order-hidden,
.woocommerce-checkout #payment .place-order.ck-place-order-wrapper-hidden,
.woocommerce #payment .place-order.ck-place-order-wrapper-hidden {
    display: none !important;
}
.woocommerce-checkout #payment .ppcp-dcc-order-button,
.woocommerce #payment .ppcp-dcc-order-button {
    width: 100%;
    background-color: #f97316;
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    text-align: center;
    display: block;
    line-height: 1.1;
}
.woocommerce-checkout #payment .ppcp-dcc-order-button:hover,
.woocommerce #payment .ppcp-dcc-order-button:hover {
    background-color: #ea580c;
}
.woocommerce-checkout #place_order .ck-place-order-content,
.woocommerce #place_order .ck-place-order-content,
.woocommerce-checkout #payment .ppcp-dcc-order-button .ck-place-order-content,
.woocommerce #payment .ppcp-dcc-order-button .ck-place-order-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
    overflow: visible;
}
.woocommerce-checkout #place_order .ck-place-order-prefix,
.woocommerce #place_order .ck-place-order-prefix,
.woocommerce-checkout #payment .ppcp-dcc-order-button .ck-place-order-prefix,
.woocommerce #payment .ppcp-dcc-order-button .ck-place-order-prefix {
    display: inline-block;
}
.woocommerce-checkout #place_order .ck-place-order-paypal-logo,
.woocommerce #place_order .ck-place-order-paypal-logo,
.woocommerce-checkout #payment .ppcp-dcc-order-button .ck-place-order-paypal-logo,
.woocommerce #payment .ppcp-dcc-order-button .ck-place-order-paypal-logo {
    display: block;
    height: 1.25rem;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    overflow: visible;
}

/* ==========================================================================
   Express Checkout Section  (ck-express-*)
   Sits at the top of the left column, above the form sections.
   The PHP filter `woocommerce_paypal_payments_checkout_button_renderer_hook`
   (in inc/woocommerce-setup.php) redirects the PPCP button to fire on the
   `krp_checkout_express_buttons` hook, which is called inside .ck-express-buttons.
   ========================================================================== */

/* fix #1/#2: Express checkout — no card container, just label + inline buttons. */
.ck-express-checkout {
    margin-bottom: 1.5rem;
    /* no background, border, border-radius, or padding */
}

/* "Express checkout" label */
.ck-express-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* Button row — fix #2: buttons side-by-side (inline), constrained to ~480px */
.ck-express-buttons {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    max-width: 19rem;
    margin: 0 auto 1rem;
}
/* Each button wrapper fills its share equally */
.ck-express-buttons > div,
.ck-express-buttons > iframe {
    flex: 1;
    min-width: 0;
}

/* ── Force the PPCP button visible in the express section ──────────────
   The PPCP plugin JS sets inline `display: none` on #ppc-button-ppcp-gateway
   whenever ppcp-gateway is not the active payment method in the payment section.
   Since the express button is always-on (not tied to payment selection),
   we override with !important.
   The zoid SDK auto-resizes its container; min-height is the initial floor
   so the buttons are visible before the resize callback fires (~55px/button). */
.ck-express-buttons #ppc-button-ppcp-gateway {
    display: block !important;
    width: 100%;
    max-width: 19rem;
    margin: 0 auto;
}
.ck-express-buttons [id^="zoid-paypal-buttons"] {
    min-height: 46px;
    max-width: 100%;
}

/* Hide the whole section if no buttons were injected (modern browsers) */
.ck-express-checkout:has(.ck-express-buttons:empty) {
    display: none;
}

/* "——— or ———" divider */
.ck-express-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ck-express-divider::before,
.ck-express-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}
.ck-express-divider span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Suppress WC "Billing details" sub-heading inside Contact section ──
   WC auto-injects an <h3>Billing details</h3> inside .woocommerce-billing-fields.
   Our section already has a "Contact & Shipping Information" h3; this is redundant. */
.woocommerce-billing-fields > h3 {
    display: none;
}

/* ── Suppress PPCP Pay Later messaging on the checkout page ────────────
   "Pay in 4 interest-free payments…" banner is injected by the PPCP plugin.
   Pay Later is already available via the express button flow. */
.woocommerce-checkout .ppcp-messages {
    display: none !important;
}

/* ── PayPal hosted card fields — align labels with embedded inputs ──────────
   The inputs live inside provider iframes, so we only style the safe outer shell. */
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form {
    border: 0 !important;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
    background: transparent;
    box-shadow: none;
}

#payment fieldset#wc-ppcp-credit-card-gateway-cc-form legend {
    display: none;
}

#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .form-row,
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .wc-ppcp-credit-card-gateway__form-row {
    margin-bottom: 0;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
}

#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .input-text,
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .woocommerce-input-wrapper > div,
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .wc-ppcp-credit-card-gateway__form-row > div,
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form div[id*="hosted"],
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form iframe {
    border-color: #cbd5e1 !important;
}

#payment fieldset#wc-ppcp-credit-card-gateway-cc-form label,
#payment fieldset#wc-ppcp-credit-card-gateway-cc-form .wc-ppcp-credit-card-gateway__label {
    display: block;
    padding-left: 0.5rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: #0f172a;
}

/* ==========================================================================
   Payment Section Header  (ck-payment-*)
   ========================================================================== */

/* fix #17: Payment section — overflow:hidden keeps Place Order button inside the card.
   Extra padding-bottom ensures the button doesn't sit flush against the card edge. */
.ck-payment-section {
    display: flow-root;
    padding-bottom: 1.5rem;
    overflow: visible;
    position: relative;
}

/* Header: h3 + security line sit above the WC payment radio list */
.ck-payment-header {
    margin-bottom: 1rem;
}

.ck-payment-header h3 {
    margin-bottom: 0;
}

.ck-payment-security {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.ck-payment-security svg {
    flex-shrink: 0;
    color: #64748b;
}

/* ==========================================================================
   WC Payment Method Radio Cards  (#payment .wc_payment_method)
   Card pattern aligned with shipping method radios above.
   ========================================================================== */

/* Reset WC default #payment wrapper */
#payment {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* Payment method list */
#payment ul.wc_payment_methods,
#payment .wc_payment_methods {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background-color: transparent;
    position: static;
}
#payment ul.wc_payment_methods > li,
#payment .wc_payment_methods > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#payment ul.wc_payment_methods > li::before,
#payment .wc_payment_methods > li::before,
#payment ul.wc_payment_methods > li::after,
#payment .wc_payment_methods > li::after {
    content: none !important;
}

/* Each payment method: accordion row inside one shared container */
#payment .wc_payment_method {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    overflow: visible;
    position: relative;
    background-color: #ffffff;
    background-clip: padding-box;
}

/* Separate stacked cards: active state lives on the whole card again. */
#payment .wc_payment_method.ck-payment-method--active {
    border-color: #f97316;
}

/* Hover on unselected */
#payment .wc_payment_method:not(.ck-payment-method--active):hover {
    border-color: #cbd5e1;
}

/* Hide native radio visually but keep it accessible + functional */
#payment .wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#payment .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9375rem 1rem 0.9375rem 0.875rem;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    margin: 0;
    position: relative;
    user-select: none;
    transition: background-color 150ms ease;
    border-radius: 0.625rem 0.625rem 0 0;
}

/* Collapsed payment cards should keep all four rounded corners. */
#payment .wc_payment_method:not(.ck-payment-method--active) > label {
    border-radius: inherit;
}

#payment .wc_payment_method > label::before {
    content: '';
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

/* Selected radio circle: orange fill with white inner dot */
#payment .wc_payment_method.ck-payment-method--active > label {
    background-color: #fff7ed;
    border-radius: 0.625rem 0.625rem 0 0;
}
#payment .wc_payment_method:not(.ck-payment-method--active):hover > label {
    background-color: #f8fafc;
}
#payment .wc_payment_method.ck-payment-method--active > label::before {
    border-color: #f97316;
    background-color: #f97316;
    box-shadow: inset 0 0 0 3px #ffffff;
}

/* fix #14: Payment label — push logos to the right */
#payment .wc_payment_method > label {
    justify-content: space-between;
}

/* fix #13: Card logo row in the credit-card gateway label */
.ck-card-logos {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.ck-card-logo {
    height: 1.5rem;
    width: auto;
    border-radius: 0.25rem;
    display: block;
    margin-left: 0;
}
.ck-card-more-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
/* "+X more" chip */
.ck-card-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 0.25rem;
    padding: 0 0.375rem;
    line-height: 1;
    white-space: nowrap;
    outline: none;
    cursor: pointer;
}
.ck-card-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.625rem);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 0.625rem;
    background: #1e293b;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
    z-index: 20;
}
.ck-card-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}
.ck-card-more-wrap:hover .ck-card-tooltip,
.ck-card-more-wrap:focus-within .ck-card-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-2px);
}
.ck-card-more:focus-visible {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.28);
}
.ck-card-tooltip .ck-card-logo {
    height: 1.5rem;
    border-radius: 0.25rem;
    background: #ffffff;
}
/* PayPal logo in PayPal gateway label */
.ck-paypal-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-height: 1.25rem;
    line-height: 1;
    overflow: visible;
    flex-shrink: 0;
}
.ck-paypal-logo {
    height: 0.95rem;
    width: auto;
    display: block;
    max-width: none;
    overflow: visible;
    flex-shrink: 0;
    fill: currentColor;
}

#payment .wc_payment_method > label .ck-paypal-logo-wrap {
    margin-left: auto;
}

/* The PayPal wordmark needs its own flex wrapper so it can center cleanly
   without inheriting the generic card-logo sizing below. */
#payment .wc_payment_method > label .ck-paypal-logo {
    width: auto !important;
    height: 0.95rem !important;
    display: block !important;
    max-width: none;
    max-height: none !important;
    overflow: visible;
    border-radius: 0;
}

#payment .wc_payment_method > label .ck-paypal-logo path {
    vector-effect: non-scaling-stroke;
}

/* Payment method images (card logos, PayPal logo) — sit after the label text */
#payment .wc_payment_method > label img:not(.ck-paypal-logo) {
    height: 1.25rem;
    width: auto;
    margin-left: auto;              /* push right */
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
}

/* Payment box: expanded content below the radio header row */
#payment .payment_box {
    display: none;                  /* WC JS shows/hides via slideDown/slideUp */
    padding: 1rem 1rem 1.125rem;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 0.75rem 0.75rem;
}

#payment .payment_box::after {
    content: '';
    display: table;
    clear: both;
}

/* Ensure payment box text legibility */
#payment .payment_box p {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem
}

/* PayPal redirect message — inside PayPal payment box when smart button is in express section */
.ck-paypal-box-msg {
    font-size: 0.875rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
    text-align: center;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
}

/* PayPal Pay Later (Buy Now Pay Later) messaging — Pay in 4 offer */
.ck-paypal-paylater-msg {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.25rem auto 0;
    line-height: 1.5;
    text-align: center;
    max-width: 18rem;
}

/* PayPal Smart Buttons inside payment method box (popup flow) */
#ppcp-radio-smart-button,
#ppcp-paylater-smart-button {
    max-width: 100%;
    margin-top: 0.75rem;
}

/* Pay Later radio button icon: PayPal logo + "Pay Later" badge */
.ck-paylater-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
    flex-shrink: 0;
}
.ck-paylater-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #003087;           /* PayPal blue */
    background: #e8eef8;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

/* Place order wrapper: margin above */
#payment .place-order {
    margin-top: 1.25rem;
    max-width: 100%;
}
#payment #place_order,
#payment .ppcp-dcc-order-button {
    max-width: 100%;
}

/* ── Suppress WC privacy policy text before Place Order ───────────────
   "Your personal data will be used…" is rendered inside
   .woocommerce-terms-and-conditions-wrapper by WooCommerce.
   Also handled by remove_action in woocommerce-setup.php (belt + suspenders). */
.woocommerce-privacy-policy-text {
    display: none;
}

/* ==========================================================================
   Shipping Method Card  (ck-shipping-*)
   ========================================================================== */

body.woocommerce-checkout .ck-shipping-methods,
.woocommerce-checkout .ck-shipping-methods {
    list-style: none;
    padding: 0;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
/* Remove browser default list bullets from <li> wrappers */
body.woocommerce-checkout .ck-shipping-methods li,
.woocommerce-checkout .ck-shipping-methods li {
    list-style: none;
    list-style-type: none;
    padding: 0;
    padding-left: 0;
    margin: 0;
}

.ck-shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.875rem 0.625rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
    gap: 0.5rem;
    margin: 0;
}
.ck-shipping-option:hover {
    border-color: #cbd5e1;
}
.ck-shipping-option:has(input:checked),
.ck-shipping-option--checked {
    border-color: #f97316;
    background-color: #fff7ed;
}
/* Hide native radio, use custom circle via ::after on the label */
.ck-shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom radio circle — matches payment method radio styling */
.ck-shipping-option::before {
    content: '';
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

/* Selected state: orange fill with white inner dot */
.ck-shipping-option:has(input:checked)::before,
.ck-shipping-option--checked::before {
    border-color: #f97316;
    background-color: #f97316;
    box-shadow: inset 0 0 0 3px #ffffff;
}
.ck-shipping-option-info {
    flex: 1;
    min-width: 0;
}
.ck-shipping-option-name {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
}
.ck-shipping-option-eta {
    display: block;
    font-size: 0.875rem;
    color: #45556c;
    margin-top: 0.125rem;
}
.ck-shipping-option-price {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    flex-shrink: 0;
}
.ck-shipping-option-price .amount { color: #0f172a; }
.ck-shipping-free { color: #059669; font-weight: 600; }

/* Unavailable message */
.ck-shipping-option--unavailable {
    font-size: 0.875rem;
    color: #64748b;
    padding: 0.75rem 0;
}

/* ==========================================================================
   Billing Address Section  (ck-billing-*)
   Rendered inside the payment card above the final submit area.
   ========================================================================== */

.ck-payment-billing {
    margin: 1.25rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.ck-payment-billing h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

/* Option list: same flex-column gap as shipping methods */
.ck-billing-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Billing fields: hidden by default, revealed by JS when "different" is chosen */
.ck-billing-fields[hidden] { display: none; }
.ck-billing-fields {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Billing rows sit inside `#payment`, which has broader label/form styling.
   Reassert the intended inline radio + text layout for this embedded block. */
body.woocommerce-checkout #payment .ck-payment-billing .ck-shipping-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

body.woocommerce-checkout #payment .ck-payment-billing .ck-shipping-option-info {
    flex: 0 1 auto;
}

body.woocommerce-checkout #payment .ck-payment-billing .ck-shipping-option-name {
    display: inline;
}

/* ==========================================================================
   Secure Checkout Row  (ck-secure-checkout)
   Shield icon + "Secure checkout" • Lock icon + "SSL encrypted"
   Rendered via woocommerce_review_order_after_submit hook
   ========================================================================== */

.ck-secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0;
    padding-top: 0.75rem;  /* padding can't collapse — consistent gap above badges */
    clear: both;           /* Clear PPCP's float:right on .ppcp-dcc-order-button so we appear below, not beside */
    width: 100%;
}
.ck-secure-checkout-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ck-secure-checkout-dot {
    color: #94a3b8;
}

/* ── WC checkout responsive progress (max-width:475px) ─────────────────── */
@media (max-width: 475px) {
    .checkout-step-number {
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
        font-size: 0.75rem;
    }
    .checkout-step { font-size: 0.75rem; }
    .checkout-step-divider { width: 1.5rem; margin-left: 0.375rem; margin-right: 0.375rem; }
}

/* ==========================================================================
   Order Confirmation — oc-* classes
   ========================================================================== */

/* ── Page wrapper ── */
.oc-page {
    min-height: 100vh;
    background-color: var(--color-slate-50);
    padding: 3rem 0;
}

/* ── Success Header ── */
.oc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.oc-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background-color: #d1fae5;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    color: #059669;
}

.oc-header-icon--muted {
    background-color: var(--color-slate-100);
    color: var(--color-slate-400);
}

.oc-header-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.oc-header-subtitle {
    font-size: var(--text-lg);
    color: #475569;
    margin-bottom: 1rem;
}

.oc-order-number-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-slate-100);
    border-radius: var(--radius-lg);
}

.oc-order-number-label {
    font-size: var(--text-sm);
    color: #475569;
}

.oc-order-number-value {
    font-size: var(--text-lg);
    font-family: var(--font-mono);
    font-weight: var(--font-bold);
    color: #0f172a;
}

/* ── Two-Column Grid ── */
.oc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .oc-grid { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .oc-grid {
        grid-template-columns: 1fr 1fr;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.oc-left-col,
.oc-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Generic Card ── */
.oc-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.oc-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #0f172a;
    margin-bottom: 1.5rem;
}

/* ── Timeline ── */
.oc-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.oc-timeline-step {
    display: flex;
    gap: 1rem;
    transition: all 300ms ease;
}

.oc-timeline-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-slate-100);
    color: var(--color-slate-400);
    transition: all 300ms ease;
    transform: scale(0.9);
}

.oc-timeline-icon--emerald {
    background-color: #d1fae5;
    color: #059669;
    transform: scale(1);
}

.oc-timeline-icon--orange {
    background-color: #ffedd5;
    color: #ea580c;
    transform: scale(1);
    animation: oc-pulse 2s ease-in-out infinite;
}

.oc-timeline-icon--blue {
    background-color: #dbeafe; /* blue-100 */
    color: #2563eb;            /* blue-600 */
    transform: scale(1);
    animation: oc-pulse 2s ease-in-out infinite;
}

@keyframes oc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.oc-timeline-content {
    flex: 1;
}

.oc-timeline-label {
    font-weight: var(--font-semibold);
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-size: var(--text-base);
    transition: color 300ms ease;
}

.oc-timeline-step:not(.oc-timeline-step--active) .oc-timeline-label {
    color: var(--color-slate-500);
}

.oc-timeline-desc {
    font-size: var(--text-sm);
    color: #475569;
    margin: 0;
}

.oc-timeline-date {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    margin-top: 0.25rem;
}

/* Timeline Badges */
.oc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.oc-badge--emerald {
    background-color: #ecfdf5;
    color: #047857;
}

.oc-badge--orange {
    background-color: #fff7ed;
    color: #c2410c;
}

.oc-badge--blue {
    background-color: #eff6ff; /* blue-50 */
    color: #1d4ed8;            /* blue-700 */
}

.oc-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    animation: oc-pulse 2s ease-in-out infinite;
}

.oc-badge-dot--orange { background-color: #f97316; }
.oc-badge-dot--blue   { background-color: #3b82f6; }

/* Delivered Banner */
.oc-delivered-banner {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #ecfdf5;
    border-radius: var(--radius-lg);
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #059669;
}

.oc-delivered-banner-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #064e3b;
    margin-bottom: 0.25rem;
}

.oc-delivered-banner-date {
    font-size: var(--text-xs);
    color: #047857;
    margin: 0;
}

/* ── Whatcha Building? CTA ── */
.oc-cta-building {
    background: linear-gradient(to bottom right, #10b981, #0d9488);
    border-radius: var(--radius-xl);
    padding: 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.oc-cta-building-inner {
    position: relative;
    z-index: 1;
}

.oc-cta-building-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.oc-cta-building-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oc-cta-building-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.oc-cta-building-subtitle {
    font-size: var(--text-base);
    color: #ecfdf5;
    margin: 0;
}

.oc-cta-building-rewards {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

.oc-cta-building-rewards-title {
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.oc-cta-building-rewards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oc-cta-building-rewards-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: #ecfdf5;
}

.oc-cta-building-rewards-list li svg { flex-shrink: 0; margin-top: 0.125rem; }

.oc-cta-building-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.oc-btn-share {
    padding: 0.625rem 1.25rem;
    background-color: #ffffff;
    color: #059669;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 150ms ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.oc-btn-share:hover { background-color: #ecfdf5; }

.oc-btn-gallery {
    padding: 0.625rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 150ms ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.oc-btn-gallery:hover { background-color: rgba(255, 255, 255, 0.3); }

/* ── Made a Mistake? Alert ── */
.oc-alert-mistake {
    background-color: #fff7ed;
    border-left: 4px solid #f97316;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.oc-alert-mistake-inner {
    display: flex;
    gap: 1rem;
}

.oc-alert-mistake-icon {
    flex-shrink: 0;
    color: #ea580c;
}

.oc-alert-mistake-title {
    font-weight: var(--font-semibold);
    color: #7c2d12;
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
}

.oc-alert-mistake-desc {
    font-size: var(--text-sm);
    color: #9a3412;
    margin-bottom: 0.75rem;
}

.oc-alert-mistake-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.oc-btn-email-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ea580c;
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 150ms ease;
}

.oc-btn-email-support:hover { background-color: #c2410c; }

.oc-btn-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 2px solid #fdba74;
    color: #c2410c;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 150ms ease;
}

.oc-btn-call:hover { background-color: #fff7ed; }

/* ── Order Items ── */
.oc-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.oc-item {
    display: flex;
    gap: 0.75rem;
}

.oc-item-img {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-slate-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

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

.oc-item-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-slate-100);
}

.oc-item-details {
    flex: 1;
    min-width: 0;
}

.oc-item-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.oc-item-qty {
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    margin: 0;
}

.oc-item-price {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #0f172a;
    white-space: nowrap;
}

/* ── Totals ── */
.oc-totals {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oc-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: #475569;
}

.oc-totals-row--discount {
    color: #059669;
}

.oc-free-shipping {
    color: #059669;
    font-weight: var(--font-medium);
}

.oc-totals-row--total {
    font-weight: var(--font-semibold);
    color: #0f172a;
    font-size: var(--text-lg);
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ── Shipping Address ── */
.oc-address {
    font-size: var(--text-sm);
    color: #475569;
    line-height: var(--leading-relaxed);
}

.oc-address p:first-child {
    font-weight: var(--font-medium);
    color: #0f172a;
}

/* ── Return Policy ── */
.oc-return-intro {
    font-size: var(--text-sm);
    color: #475569;
    margin-bottom: 1rem;
}

.oc-return-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oc-return-feature {
    display: flex;
    gap: 0.75rem;
}

.oc-return-feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oc-return-feature-icon--emerald { background-color: #d1fae5; color: #059669; }
.oc-return-feature-icon--blue    { background-color: #dbeafe; color: #2563eb; }
.oc-return-feature-icon--orange  { background-color: #ffedd5; color: #ea580c; }

.oc-return-feature-title {
    font-weight: var(--font-medium);
    color: #0f172a;
    font-size: var(--text-sm);
    margin-bottom: 0.125rem;
}

.oc-return-feature-desc {
    font-size: var(--text-xs);
    color: #475569;
    margin: 0;
}

.oc-return-policy-link {
    font-size: var(--text-sm);
    color: #f97316;
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: color 150ms ease;
}

.oc-return-policy-link:hover { color: #ea580c; }

/* ── Help Section ── */
.oc-help-section {
    background: linear-gradient(to right, #fff7ed, #ecfdf5);
    border-radius: var(--radius-lg);
    border: 1px solid #fdba74;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .oc-help-section { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .oc-help-section { padding-left: 2rem; padding-right: 2rem; }
}

.oc-help-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.oc-help-desc {
    font-size: var(--text-sm);
    color: #475569;
    margin-bottom: 1rem;
}

.oc-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.oc-help-links a {
    font-size: var(--text-sm);
    color: #f97316;
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: color 150ms ease;
}

.oc-help-links a:hover { color: #ea580c; }

/* ── Action Buttons ── */
.oc-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .oc-action-buttons {
        flex-direction: row;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .oc-action-buttons { padding-left: 2rem; padding-right: 2rem; }
}

.oc-btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    color: #334155;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    font-family: var(--font-body);
    transition: border-color 150ms ease;
}

.oc-btn-action:hover { border-color: #cbd5e1; }

/* ── Continue Shopping ── */
.oc-continue-shopping {
    text-align: center;
}

.oc-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #f97316;
    color: #ffffff;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background-color 150ms ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.oc-btn-continue:hover { background-color: #ea580c; }

/* ── Page-level container padding (matches oc-grid padding) ── */
.oc-header,
.oc-continue-shopping {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .oc-header,
    .oc-continue-shopping {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .oc-header,
    .oc-continue-shopping {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ==========================================================================
   My Account
   ========================================================================== */
.woocommerce-MyAccount-navigation {
    margin-bottom: var(--space-6);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
}

.woocommerce-MyAccount-navigation li a {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-slate-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: var(--color-primary-50);
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .woocommerce-MyAccount-content {
        padding-left: var(--space-4);
    }
}

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.woocommerce-message {
    background-color: var(--color-secondary-50);
    border: 1px solid var(--color-secondary-100);
    color: #166534;
}

.woocommerce-info {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
}

.woocommerce-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    list-style: none;
    padding-left: var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

/* Reset .prose ul li spacing on error notices */
.woocommerce-error li {
    margin: 0;
    padding-left: 0;
    line-height: var(--leading-normal);
    display: list-item;
}

.woocommerce-message a,
.woocommerce-info a {
    font-weight: var(--font-semibold);
    text-decoration: underline;
}

/* Red border highlight on invalid checkout fields */
form.checkout .woocommerce-invalid input,
form.checkout .woocommerce-invalid select,
form.checkout .woocommerce-invalid textarea {
    border-color: #ef4444 !important; /* red-500 */
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.wc-empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.wc-empty-state .icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-4);
    color: var(--color-slate-300);
}

.wc-empty-state h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.wc-empty-state p {
    color: var(--color-slate-500);
    margin-bottom: var(--space-6);
}

/* ==========================================================================
   Cart Page cp-* classes 
   ========================================================================== */

.cp-page-wrapper {
    min-height: 100vh;
    background-color: #f8fafc;
    padding-bottom: 4rem;
}

.cp-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
}
@media (min-width: 640px) { .cp-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .cp-container { padding-left: 2rem; padding-right: 2rem; } }

/* Page header: mb-8 */
.cp-page-header { margin-bottom: 2rem; }

.cp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    transition: color 150ms ease;
}
.cp-back-link:hover { color: #f97316; }

.woocommerce-checkout .cp-back-link {
    color: #45556c;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    text-decoration: none;
}

.woocommerce-checkout .cp-back-link:hover {
    color: #45556c;
    text-decoration: none;
}

/* Override base.css h1 { font-weight: 700; text-transform: uppercase } */
.cp-page-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
    margin-bottom: 0;
}

.cp-item-count {
    color: #475569;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 1rem;
}

.cp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .cp-grid { grid-template-columns: 1fr 22rem; }
}

.cp-items-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cp-item-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 1rem;
}
@media (min-width: 640px) { .cp-item-card { padding: 1.5rem; } }

.cp-item-inner {
    display: flex;
    gap: 1rem;
}
@media (min-width: 640px) { .cp-item-inner { gap: 1.5rem; } }

.cp-item-img-wrap {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .cp-item-img-wrap { width: 8rem; height: 8rem; min-width: 8rem; }
}
.cp-item-img-wrap img,
.cp-item-img-wrap a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-item-img-wrap a { display: block; width: 100%; height: 100%; }

.cp-item-details { flex: 1; min-width: 0; }

.cp-item-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cp-item-name-group { flex: 1; min-width: 0; }

/* Override base.css h3 for line item title */
.cp-item-name {
    font-weight: 500;
    color: #0f172a;
    font-size: 1rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cp-item-name a { color: inherit; text-decoration: none; }
.cp-item-name a:hover { color: #f97316; }

.cp-item-category { font-size: 0.875rem; color: #475569; margin-bottom: 0.5rem; }

.cp-item-sku { font-size: 0.75rem; font-family: var(--font-mono); color: #64748b; margin: 0; }

.cp-item-remove {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 150ms ease;
    padding: 0.25rem;
    border-radius: 9999px;
}
.cp-item-remove:hover { color: #ef4444; }

.cp-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Qty stepper: single outer border; inline-flex row with no gap between cells */
.cp-qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
}

/* Qty buttons — inner border dividers; hover background
   Uses .cp-qty-stepper parent for specificity over any generic .qty-stepper-btn */
.cp-qty-stepper .cp-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #334155;
    cursor: pointer;
    transition: background-color 150ms ease;
    flex-shrink: 0;
    padding: 0;
}
.cp-qty-stepper .cp-qty-btn.qty-minus { border-right: 1px solid #cbd5e1; }
.cp-qty-stepper .cp-qty-btn.qty-plus  { border-left: 1px solid #cbd5e1; }
.cp-qty-stepper .cp-qty-btn:hover { background-color: #f1f5f9; }
.cp-qty-stepper .cp-qty-btn:disabled { opacity: 0.4; cursor: default; background: transparent; }

/* Uses .cp-qty-stepper parent for specificity over any generic .qty-stepper-input */
.cp-qty-stepper .cp-qty-input {
    width: 3.5rem;
    height: 2.5rem;
    text-align: center;
    font-weight: 500;
    border: none;
    font-size: 0.9375rem;
    line-height: 2.5rem;
    color: #0f172a;
    background: #ffffff;
    padding: 0;
    outline: none;
    font-family: inherit;
    transition: background-color 150ms ease;
    -moz-appearance: textfield;     /* hide spinner Firefox */
}
.cp-qty-stepper .cp-qty-input::-webkit-inner-spin-button,
.cp-qty-stepper .cp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cp-qty-stepper .cp-qty-input:focus { outline: none; background-color: #f1f5f9; }

.cp-item-price-col { text-align: right; }

.cp-item-line-total { font-weight: 600; color: #0f172a; font-size: 1rem; }
.cp-item-line-total .amount { color: #0f172a; }

.cp-item-unit-price { font-size: 0.875rem; color: #64748b; }
.cp-item-unit-price .amount { color: #64748b; }

.cp-progress-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* Track: progress bar — sits below the text row */
.cp-progress-track {
    width: 100%;
    height: 0.75rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0;
}

/* Fill: emerald gradient with smooth width transition */
.cp-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #34d399);
    border-radius: 9999px;
    transition: width 500ms ease-out;
}

/* Header row: single line above bar — message left, ratio right */
.cp-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cp-progress-ratio {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}
.cp-progress-ratio .amount { color: #64748b; }

.cp-progress-text { font-size: 0.8125rem; color: #475569; margin: 0; }

.cp-progress-amount { font-weight: 600; color: #059669; }
.cp-progress-amount .amount { color: #059669; }

.cp-progress-unlocked {
    font-size: 0.8125rem;
    color: #059669;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

/* ── Cart Toast Notification ──────────────────────────────────────────── */
.cp-toast {
    position: fixed;
    top: calc(var(--header-height, 4rem) + 0.75rem);  /* just below sticky header */
    left: 50%;
    transform: translateX(-50%) translateY(-1rem);     /* starts above, slides down */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #f97316;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}
.cp-toast svg { color: #ffffff; flex-shrink: 0; }
.cp-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);         /* slides down into position */
}

.cp-bundle-card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.cp-bundle-header { margin-bottom: 1.5rem; }

.cp-bundle-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Override base.css h3 */
.cp-bundle-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin: 0;
}

.cp-bundle-save-badge {
    font-size: 0.75rem;
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    white-space: nowrap;
}

.cp-bundle-desc { font-size: 0.875rem; color: #475569; margin: 0; }

.cp-bundle-list { display: flex; flex-direction: column; gap: 1rem; }

.cp-bundle-row {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: border-color 150ms ease;
}
.cp-bundle-row:hover { border-color: #fdba74; }

.cp-bundle-img-wrap {
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cp-bundle-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cp-bundle-details { flex: 1; min-width: 0; }

.cp-bundle-item-name {
    font-weight: 500;
    color: #0f172a;
    font-size: 0.875rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.25rem;
}

.cp-bundle-item-desc { font-size: 0.75rem; color: #475569; margin-bottom: 0.5rem; }

.cp-bundle-price-row { display: flex; align-items: center; justify-content: space-between; }

.cp-bundle-price-group { display: flex; align-items: center; gap: 0.5rem; }

.cp-bundle-price { font-size: 1.125rem; font-weight: 600; color: #0f172a; }

.cp-bundle-original-price { font-size: 0.75rem; color: #64748b; text-decoration: line-through; }

.cp-bundle-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background-color: #f97316;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms ease;
    white-space: nowrap;
}
.cp-bundle-add-btn:hover { background-color: #ea580c; color: #ffffff; }

.cp-bundle-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cp-bundle-footer-text { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #475569; }

.cp-bundle-free-ship { font-weight: 500; color: #059669; }

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cp-sidebar-col {}

.cp-order-summary {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

/* Override base.css h2 { font-weight: 700; text-transform: uppercase } */
.cp-summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1.5rem;
}

.cp-promo-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.cp-promo-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: background-color 150ms ease;
}
.cp-promo-toggle:hover { background-color: #f8fafc; }

.cp-promo-label-group { display: flex; align-items: center; gap: 0.5rem; }

.cp-promo-label { font-size: 0.875rem; font-weight: 500; color: #0f172a; }

.cp-promo-chevron { flex-shrink: 0; transition: transform 200ms ease, stroke 150ms ease; }
.cp-promo-toggle:hover .cp-promo-chevron { stroke: #f97316; }
.cp-promo-toggle[aria-expanded="true"] .cp-promo-chevron { transform: rotate(180deg); }

/* Promo body: hidden by default */
.cp-promo-body { padding-top: 0.75rem; }
.cp-promo-body[hidden] { display: none; }

.cp-promo-input-row { display: flex; gap: 0.5rem; }

.cp-promo-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cp-promo-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px #fed7aa;
}
.cp-promo-input.has-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}
.cp-promo-input:disabled { background-color: #f1f5f9; cursor: not-allowed; }

.cp-promo-apply-btn {
    padding: 0.5rem 1rem;
    background-color: #f97316;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
    white-space: nowrap;
}
.cp-promo-apply-btn:hover { background-color: #ea580c; }
.cp-promo-apply-btn:disabled { background-color: #cbd5e1; cursor: not-allowed; }

.cp-promo-applied {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #059669;
}

.cp-totals-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cp-totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    font-size: 1rem;
}
.cp-totals-row .amount { color: #475569; }

/* ── Handling-fee tooltip ───────────────────────────────────────────── */
.cp-fee-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: help;
}
.cp-fee-tooltip-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}
.cp-fee-tooltip {
    position: fixed;
    width: 260px;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    background: #1e293b;
    color: #ffffff;
    font-size: 0.8125rem;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 150ms ease, visibility 150ms ease;
    z-index: 9999;
    transform: translate(-50%, -100%);
    margin-top: -0.5rem;
}
.cp-fee-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}
.cp-fee-tooltip-wrap:hover .cp-fee-tooltip,
.cp-fee-tooltip-wrap:focus-within .cp-fee-tooltip,
.cp-fee-tooltip-wrap.is-active .cp-fee-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ── Shipping block (cart-shipping.php override) ──────────────────── */
/* Outer wrapper — stacks the price row + destination + calculator vertically */
.cp-shipping-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Price text (right-aligned in .cp-totals-row) */
.cp-shipping-price {
    font-size: 1rem;
    color: #475569;
}
.cp-shipping-price .amount { color: #475569; }

/* Muted state: no location detected, show helper text instead of price */
.cp-shipping-price--muted {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    max-width: 10rem;
    line-height: 1.3;
}

/* Multiple methods list */
.cp-shipping-methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.cp-shipping-method-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    font-size: 0.875rem;
}

/* Destination row: right-aligned, smaller text */
.cp-shipping-destination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    flex-wrap: wrap;
}
.cp-shipping-destination strong {
    font-weight: 600;
    color: #64748b;
}

/* "Change" link inside destination */
.cp-shipping-change-link,
.cp-shipping-destination .shipping-calculator-button {
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
}
.cp-shipping-change-link:hover,
.cp-shipping-destination .shipping-calculator-button:hover {
    color: #ea580c;
    text-decoration: underline;
}

/* ── Shipping Calculator Form ──────────────────────────────────── */
/* The form is inline (inside .cp-shipping-destination), not overlay */
.cp-shipping-calc-form {
    display: inline;
}

/* Fields container — pushes content down, full width */
.cp-shipping-calc-fields {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Individual field wrapper */
.cp-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Labels */
.cp-calc-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
}

/* Inputs — match checkout page styling */
.cp-calc-input,
.cp-calc-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    min-height: 2.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    background-color: #ffffff;
    color: #0f172a;
    font-family: var(--font-body);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cp-calc-input:hover,
.cp-calc-select:hover {
    border-color: #94a3b8;
}

.cp-calc-input:focus,
.cp-calc-select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.cp-calc-input::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

/* Select dropdown arrow */
.cp-calc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.25rem;
}

/* Update button */
.cp-calc-update-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background-color 150ms ease;
}
.cp-calc-update-btn:hover {
    background-color: #ea580c;
}

/* Override WC default styles that might interfere */
.woocommerce-shipping-calculator .form-row { margin: 0; padding: 0; }
.woocommerce-shipping-calculator .button {
    width: 100%;
    margin: 0;
}

.cp-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.cp-total-label { font-weight: 600; color: #0f172a; font-size: 1rem; }

/* Total amount — cart sidebar (1.5rem, semibold) */
.cp-total-amount { font-size: 1.5rem; font-weight: 600; color: #0f172a; line-height: 1.2; }
.cp-total-amount .amount { color: #0f172a; font-size: 1.5rem; font-weight: 600; }

.cp-checkout-btn {
    display: block;
    width: 100%;
    background-color: #f97316;
    color: #ffffff;
    padding: 1rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-body);
    margin-bottom: 0.75rem;
    transition: background-color 150ms ease;
}
.cp-checkout-btn:hover { background-color: #ea580c; color: #ffffff; }

.cp-continue-btn {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 150ms ease, color 150ms ease;
}
.cp-continue-btn:hover { border-color: #f97316; color: #f97316; }

.cp-info-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.cp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cp-info-row--last { margin-bottom: 0; }

.cp-info-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.cp-info-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}

.cp-info-desc { font-size: 0.75rem; color: #475569; margin: 0; }

/* â”€â”€ Empty cart state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cp-empty-wrapper {
    min-height: 100vh;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cp-empty-inner { text-align: center; padding: 4rem 1rem; }

.cp-empty-icon-wrap {
    width: 6rem;
    height: 6rem;
    background-color: #f1f5f9;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Override base.css h2 */
.cp-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

.cp-empty-desc { color: #475569; margin-bottom: 2rem; font-size: 1rem; }

.cp-empty-cta-btn {
    display: inline-block;
    background-color: #f97316;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
}
.cp-empty-cta-btn:hover { background-color: #ea580c; color: #ffffff; }

/* Fix: WooCommerce main wrapper — match page bg so no white bleeds through */
.krp-woocommerce {
    background-color: #f8fafc;
    padding: 0;
    margin: 0;
}

/* Fix: Hide native WC notices inside empty cart (fired by do_action hook) */
.cp-empty-wrapper .woocommerce-info,
.cp-empty-wrapper .woocommerce-message,
.cp-empty-wrapper .woocommerce-error {
    display: none !important;
}

/* ==========================================================================
   Single Product Page — sp-* classes
   Use hex — NOT CSS vars.
   ========================================================================== */

/* â”€â”€ Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .sp-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .sp-container { padding-left: 2rem; padding-right: 2rem; }
}

.sp-page-body {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* â”€â”€ Breadcrumb Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-breadcrumb-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sp-breadcrumb-link {
    color: #475569;
    text-decoration: none;
    transition: color 150ms ease;
    white-space: nowrap;
}
.sp-breadcrumb-link:hover { color: #f97316; }

.sp-breadcrumb-sep {
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.sp-breadcrumb-current {
    color: #0f172a;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* â”€â”€ Product Hero Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .sp-product-hero { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .sp-product-hero { gap: 3rem; }
}

/* â”€â”€ Gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sp-gallery-main {
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
@media (min-width: 640px) {
    .sp-gallery-main { max-width: none; margin-left: 0; margin-right: 0; }
}

.sp-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 200ms ease;
}

.sp-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.sp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.sp-thumb {
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    padding: 0;
}
.sp-thumb:hover { border-color: #cbd5e1; }
.sp-thumb--active {
    border-color: #f97316;
    box-shadow: 0 0 0 2px #fed7aa;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* â”€â”€ Product Info Column â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-product-info {
    display: flex;
    flex-direction: column;
}

.sp-badges-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sp-badge--category {
    font-size: 0.875rem;
    font-weight: 500;
    color: #f97316;
    background-color: #fff7ed;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 150ms ease;
}
.sp-badge--category:hover { background-color: #ffedd5; }

.sp-badge--instock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #059669;
    background-color: #ecfdf5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.sp-badge--outofstock {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #ef4444;
    background-color: #fef2f2;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.sp-product-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 400;
    color: #0f172a;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--font-body);
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .sp-product-title { font-size: 2.25rem; line-height: 2.5rem; }
}

.sp-short-description {
    font-size: 1rem;
    line-height: 1.625;
    color: #475569;
    margin-bottom: 2rem;
}
.sp-short-description p { margin-bottom: 0; }

/* Truncated description with inline "Read More" at end */
.sp-short-description--clamped .sp-short-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* JS-enhanced: once JS truncates, remove the CSS clamp */
.sp-short-description--truncated .sp-short-description-text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.sp-read-more-link {
    font-size: inherit;
    font-weight: 500;
    color: #f97316;
    text-decoration: none;
    white-space: nowrap;
    margin-left: 0.25rem;
    transition: color 150ms ease;
}
.sp-read-more-link:hover { color: #ea580c; }

/* â”€â”€ Color Selector â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-color-selector { margin-bottom: 1.5rem; }

.sp-color-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.sp-color-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sp-color-option {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.sp-color-option:hover { border-color: #cbd5e1; }

.sp-color-option--selected {
    border-color: #f97316;
    box-shadow: 0 0 0 2px #fed7aa;
    transform: scale(1.1);
}

.sp-color-inner {
    position: absolute;
    inset: 0;
    border-radius: 0.125rem;
}

.sp-color-check {
    position: relative;
    z-index: 1;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5));
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

.quick-view-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}
.quick-view-overlay.open { opacity: 1; visibility: visible; }

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 201;
    width: min(90vw, 56rem);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
}
.quick-view-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.quick-view-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem; /* right-4 */
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-400);
    border-radius: 9999px;
    transition: color 150ms ease, background-color 150ms ease;
}
.quick-view-modal-close:hover {
    color: var(--color-slate-600);
    background-color: var(--color-slate-100);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
}
@media (min-width: 768px) {
    .modal-content { grid-template-columns: 1fr 1fr; }
}

.quick-view-image { display: flex; flex-direction: column; gap: 0.75rem; }

.quick-view-main-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
    background-color: var(--color-slate-100);
}

.quick-view-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.quick-view-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
}
.quick-view-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quick-view-info {
    display: flex;
    flex-direction: column;
}

.quick-view-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary-600);
    background-color: var(--color-primary-50);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Zero out the global margin-bottom so the badge aligns with the stock indicator in the flex row */
.quick-view-badges .product-category-badge { margin-bottom: 0; }

.quick-view-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-slate-900);
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.quick-view-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.quick-view-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fb923c;
}

.quick-view-description {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-view-specs {
    background-color: var(--color-slate-50);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.quick-view-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.875rem;
}
.quick-view-specs-grid .spec-label { color: var(--color-slate-500); margin-bottom: 0.125rem; }
.quick-view-specs-grid .spec-value { font-family: var(--font-mono); color: var(--color-slate-900); }

.quick-view-sku { font-size: 0.75rem; color: var(--color-slate-500); margin-bottom: 0.75rem; }
.quick-view-sku .font-mono { font-family: var(--font-mono); }

.quick-view-stock {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.quick-view-stock.in-stock { color: #16a34a; }
.quick-view-stock.out-of-stock { color: #dc2626; }

.quick-view-cart-section {
    margin-top: auto;
    padding-top: 1.5rem; /* pt-6 */
    border-top: 2px solid var(--color-border);
}

.quick-view-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.quick-view-price {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--color-slate-900);
}
.quick-view-price ins { text-decoration: none; }
.quick-view-price del { font-size: 1rem; font-weight: 400; color: var(--color-slate-400); }

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-stepper-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease;
}
.qty-stepper-btn:hover { background-color: var(--color-slate-50); }

.qty-stepper-input {
    width: 3rem; /* min-w-[3rem] */
    padding: 0.5rem 0.25rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-slate-300);
    border-right: 1px solid var(--color-slate-300);
    background: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-900);
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
}
.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.quick-view-cart {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.quick-view-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
    text-decoration: none;
    transition: background-color 150ms ease;
    white-space: nowrap;
}
.quick-view-details-link:hover { background-color: var(--color-slate-50); }

/* Loading state */
.quick-view-modal .quick-view-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
    font-size: 0.875rem;
    color: var(--color-slate-500);
    padding: 1.5rem;
}

/* ==========================================================================
   Notify Me Modal
   ========================================================================== */
.notify-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
}
.notify-overlay.open { opacity: 1; visibility: visible; }

.notify-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    z-index: 201;
    width: min(90vw, 28rem);
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
}
.notify-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.notify-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.notify-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notify-modal-bell-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-primary-100);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary-600);
}

.notify-modal-title {
    font-size: 1.125rem;
    font-weight: 700; /* font-bold */
    color: var(--color-slate-900);
    margin: 0 0 0.25rem;
}

.notify-modal-subtitle {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    margin: 0;
}

.notify-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-slate-400);
    padding: 0.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    transition: color 150ms ease, background-color 150ms ease;
    flex-shrink: 0;
}
.notify-modal-close:hover {
    color: var(--color-slate-600);
    background-color: var(--color-slate-100);
}

.notify-product-info {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
    background-color: var(--color-slate-50);
    border-bottom: 1px solid var(--color-border);
}

.notify-product-thumb {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.notify-product-details { flex: 1; min-width: 0; }

.notify-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-900);
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notify-product-price {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    margin: 0;
}

.notify-form-fields {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notify-email-field,
.notify-qty-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notify-email-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
}

.notify-email-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-900);
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-sizing: border-box;
}
.notify-email-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2); /* focus:ring-2 focus:ring-orange-500 */
}

.notify-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notify-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    background: none;
    cursor: pointer;
    color: var(--color-slate-700);
    transition: background-color 150ms ease;
    flex-shrink: 0;
}
.notify-qty-btn:hover { background-color: var(--color-slate-50); }

.notify-qty-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-slate-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-900);
    text-align: center;
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.notify-qty-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}
.notify-qty-input::-webkit-outer-spin-button,
.notify-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.notify-qty-hint {
    font-size: 0.75rem;
    color: var(--color-slate-500);
    margin: 0;
}

.notify-form-footer {
    padding: 0 1.5rem 1.5rem;
}

.notify-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 150ms ease;
    font-family: inherit;
}
.notify-submit-btn:hover { background-color: var(--color-primary-600); }
.notify-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.notify-disclaimer {
    font-size: 0.75rem;
    color: var(--color-slate-500);
    text-align: center;
    margin: 0.75rem 0 0;
}

.notify-success-msg {
    display: none;
    text-align: center;
    padding: 2rem 1.5rem;
}
.notify-success-msg.visible { display: block; }

.notify-success-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem; /* mx-auto mb-4 */
    color: #16a34a;
}

.notify-success-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0 0 0.5rem;
}

.notify-success-desc {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    margin: 0;
}

/* ==========================================================================
   Custom Sort Dropdown (#11)
   ========================================================================== */
.shop-sort-dropdown { position: relative; }

.shop-sort-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 10rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-slate-900);
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    font-family: inherit;
}
.shop-sort-trigger:hover { border-color: var(--color-slate-300); }
.shop-sort-trigger[aria-expanded="true"] {
    border-color: transparent;
    outline: solid 2px #f97316;
}

.shop-sort-trigger-chevron {
    flex-shrink: 0;
    color: var(--color-slate-400);
    transition: transform 200ms ease;
}
.shop-sort-trigger[aria-expanded="true"] .shop-sort-trigger-chevron { transform: rotate(180deg); }

.shop-sort-list {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: 0;
    min-width: 100%;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px -2px rgba(0,0,0,0.1), 0 2px 6px -2px rgba(0,0,0,0.06);
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    z-index: 100;
}

.shop-sort-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    border-radius: 0.375rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 100ms ease;
}
.shop-sort-option:hover { background-color: var(--color-slate-100); }
.shop-sort-option--selected { background-color: #fff7ed; color: var(--color-primary); font-weight: 500; }

/* â”€â”€ Cart Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-cart-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Stock count indicator (above cart card) */
.sp-stock-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #059669;
    margin-bottom: 0.75rem;
}
.sp-stock-count svg { flex-shrink: 0; }
.sp-stock-count--low { color: #d97706; }

.sp-qty-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
@media (min-width: 640px) and (max-width: 767px) {
    .sp-qty-price-row { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 768px) {
    .sp-qty-price-row { flex-direction: row; }
}

.sp-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.sp-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: border-color 150ms ease, color 150ms ease;
}
.sp-qty-btn:hover { border-color: #f97316; color: #f97316; }
.sp-qty-btn:disabled { opacity: 0.4; cursor: default; }
.sp-qty-btn:disabled:hover { border-color: #cbd5e1; color: #475569; }

.sp-qty-value {
    width: 3rem;
    text-align: center;
    font-weight: 500;
    font-size: 1.125rem;
    color: #0f172a;
    display: block;
    padding: 0 0.5rem;
}

.sp-price-display {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sp-price-each {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.sp-price-label { font-size: 0.875rem; color: #64748b; }
.sp-price-unit  { font-size: 0.875rem; color: #0f172a; }

.sp-price-total-wrap { margin-left: auto; }

.sp-price-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
@media (min-width: 1024px) { .sp-price-total-value { font-size: 1.5rem; } }

.sp-cart-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sp-add-to-cart-btn {
    flex: 1 1 0%;
    padding: 1rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    background-color: #f97316;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
}
.sp-add-to-cart-btn:hover { background-color: #ea580c; }
.sp-add-to-cart-btn:disabled { opacity: 0.6; cursor: default; }

.sp-add-to-cart-btn--success { background-color: #10b981; }
.sp-add-to-cart-btn--success:hover { background-color: #059669; }

.sp-action-btn {
    display: none;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: border-color 150ms ease, color 150ms ease;
    flex-shrink: 0;
}
@media (min-width: 1024px) { .sp-action-btn { display: flex; } }
.sp-action-btn:hover { border-color: #f97316; color: #f97316; }

.sp-notify-btn {
    width: 100%;
    padding: 1rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    background-color: #334155;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: background-color 150ms ease;
}
.sp-notify-btn:hover { background-color: #1e293b; }
.sp-notify-btn:disabled { opacity: 0.6; cursor: default; }

/* â”€â”€ Feature Boxes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-feature-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .sp-feature-boxes { grid-template-columns: repeat(2, 1fr); }
}

.sp-feature-box {
    background-color: #ecfdf5;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 640px) and (max-width: 1023px) {
    .sp-feature-box { flex-direction: column; align-items: center; text-align: center; }
}
@media (min-width: 1024px) {
    .sp-feature-box { flex-direction: row; align-items: center; text-align: left; }
}

.sp-feature-icon-wrap {
    width: 3rem;
    height: 3rem;
    background-color: #10b981;
    border-radius: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-feature-text { display: flex; flex-direction: column; gap: 0.125rem; }

.sp-feature-title {
    font-weight: 600;
    color: rgb(0, 79, 59);
    font-size: 0.875rem;
    margin: 0;
}

.sp-feature-desc {
    color: #059669;
    font-size: 0.75rem;
    margin: 0;
}

/* â”€â”€ Specs Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-specs-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sp-specs-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1rem;
}

.sp-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.sp-spec-row--last { border-bottom: none; }

.sp-spec-label { font-size: 0.875rem; color: #475569; }
.sp-spec-value { font-size: 0.875rem; color: #0f172a; }
.sp-spec-value--mono { font-family: var(--font-mono); }

.sp-specs-compat {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.sp-compat-link {
    font-size: 0.875rem;
    color: #f97316;
    text-decoration: underline;
    transition: color 150ms ease;
}
.sp-compat-link:hover { color: #ea580c; }

/* â”€â”€ Tabbed Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-tabs-wrap {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 4rem;
    margin-top: 3rem;
}

.sp-tab-nav {
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-tab {
    flex: 1 1 0%;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 150ms ease, background-color 150ms ease;
    text-align: center;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
}
@media (min-width: 640px) { .sp-tab { font-size: 1rem; } }

.sp-tab:hover { color: #0f172a; background-color: #f8fafc; }

.sp-tab--active {
    color: #ea580c;
    background-color: #fff7ed;
}
.sp-tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background-color: #f97316;
}

.sp-tab-panel { padding: 2rem; }
@media (min-width: 640px) { .sp-tab-panel { padding: 3rem; } }
.sp-tab-panel[hidden] { display: none; }

.sp-tab-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1rem;
}
.sp-tab-section-title--mt { margin-top: 2rem; }

.sp-tab-description { color: #334155; line-height: 1.625; margin-bottom: 1.5rem; }
.sp-tab-body-text   { color: #334155; line-height: 1.625; }

.sp-key-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #334155;
    list-style: disc;
    padding-left: 1.25rem;
}

.sp-tab-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .sp-tab-specs-grid { grid-template-columns: repeat(2, 1fr); }
}

.sp-tab-spec-item { border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }

.sp-tab-spec-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: block;
}

.sp-tab-spec-value        { font-size: 1rem; color: #0f172a; display: block; }
.sp-tab-spec-value--mono  { font-family: var(--font-mono); }

.sp-tab-info-box {
    margin-top: 2rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.sp-tab-info-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.75rem;
}

.sp-tab-info-body {
    font-size: 0.875rem;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sp-tab-info-body strong { font-weight: 600; }

/* â”€â”€ Product Carousels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-carousel-section { margin-bottom: 4rem; }

.sp-carousel-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .sp-carousel-title { font-size: 1.875rem; } }

.sp-carousel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .sp-carousel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-carousel-grid { grid-template-columns: repeat(4, 1fr); } }

/* â”€â”€ Carousel Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 150ms ease;
}
.sp-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.sp-card-img-link { display: block; text-decoration: none; }
.sp-card-img-wrap {
    aspect-ratio: 1 / 1;
    background-color: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}
.sp-card:hover .sp-card-img { transform: scale(1.05); }

.sp-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.sp-card-badges { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.sp-card-badge--cat {
    font-size: 0.75rem;
    color: #f97316;
    background-color: #fff7ed;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}
.sp-card-badge--stock {
    font-size: 0.75rem;
    color: #059669;
    background-color: #ecfdf5;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.sp-card-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.sp-card-title a { color: inherit; text-decoration: none; transition: color 150ms ease; }
.sp-card-title a:hover { color: #ea580c; }

.sp-card-stars { display: flex; align-items: center; gap: 0.125rem; }
.sp-card-star  { display: block; }
.sp-card-review-count { font-size: 0.75rem; color: #64748b; margin-left: 0.25rem; }

.sp-card-price { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-top: auto; }

.sp-card-footer { padding: 0 1rem 1rem; }

.sp-card-atc-btn {
    width: 100%;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    background-color: #f97316;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    font-family: var(--font-body);
}
.sp-card-atc-btn:hover { background-color: #ea580c; }

.sp-card-atc-btn--disabled {
    background-color: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}
.sp-card-atc-btn--disabled:hover { background-color: #cbd5e1; }

/* ==========================================================================
   Checkout Processing Overlay
   ========================================================================== */
.krp-processing-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    background: radial-gradient(84.48% 50% at 50% 50%, #000 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    color: #fff;
}
.krp-processing-content { text-align: center; padding: 2rem; }
.krp-processing-content .spinner { margin: 0 auto 1.5rem; border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }
.krp-processing-text { font-size: 1.125rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; }
.krp-processing-subtext { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin: 0; }
.krp-cancel-link { color: #fff; font-weight: 600; text-decoration: underline; }
.krp-cancel-link:hover { color: #f97316; }
