/**
 * TitanCart — Storefront Stylesheet
 *
 * Clean, modern eCommerce styles that layer on top of any WordPress theme.
 * All rules scoped with .tc- prefix to avoid conflicts.
 *
 * Override: Copy to {your-theme}/titancart/css/titancart.css
 *
 * @package TitanCart
 */

/* ══════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════════════════════════ */
:root {
    --tc-primary:     #171717;
    --tc-accent:      #2563EB;
    --tc-accent-hover:#1D4ED8;
    --tc-success:     #16A34A;
    --tc-warning:     #D97706;
    --tc-error:       #DC2626;
    --tc-text:        #0A0A0A;
    --tc-text-muted:  #737373;
    --tc-border:      #E5E5E5;
    --tc-bg:          #FFFFFF;
    --tc-bg-subtle:   #FAFAFA;
    --tc-bg-hover:    #F5F5F5;
    --tc-radius:      8px;
    --tc-radius-sm:   6px;
    --tc-radius-lg:   12px;
    --tc-shadow-sm:   0 1px 2px rgba(0,0,0,.05);
    --tc-shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --tc-shadow-lg:   0 4px 12px rgba(0,0,0,.1);
    --tc-font:        -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    --tc-transition:  .2s ease;
    --tc-container:   1280px;
    --tc-gap:         24px;
}

/* Prevent cart drawer (position:fixed + translateX) from causing horizontal scrollbar */
html {
    overflow-x: hidden;
}

/* WP admin bar offset — prevent sticky nav from sliding behind the 32px admin bar */
body.admin-bar .sticky-top {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .sticky-top {
        top: 46px; /* WP admin bar is 46px tall on mobile */
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BASE / RESET (scoped)
   ══════════════════════════════════════════════════════════════════════════════ */
[class^="tc-"],
[class*=" tc-"] {
    box-sizing: border-box;
    font-family: var(--tc-font);
}

.tc-shop, .tc-product, .tc-wishlist, .tc-reviews, .tc-testimonials {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 32px var(--tc-gap);
    color: var(--tc-text);
    line-height: 1.6;
}
/* .tc-checkout, .tc-cart, and #tc-account use full-bleed breakout — see checkout.css, cart section below, and account.css */

.tc-muted { color: var(--tc-text-muted); }

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--tc-radius);
    border: 1px solid var(--tc-border);
    background: var(--tc-bg);
    color: var(--tc-text);
    cursor: pointer;
    transition: all var(--tc-transition);
    text-decoration: none;
    white-space: nowrap;
}
.tc-btn:hover {
    background: var(--tc-bg-hover);
    border-color: #D4D4D4;
}
.tc-btn--primary {
    background: var(--tc-accent);
    color: #fff;
    border-color: var(--tc-accent);
}
.tc-btn--primary:hover {
    background: var(--tc-accent-hover);
    border-color: var(--tc-accent-hover);
}
.tc-btn--primary:disabled,
.tc-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.tc-btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}
.tc-btn--outline {
    background: transparent;
    border-color: var(--tc-border);
    color: var(--tc-text);
}
.tc-btn--danger {
    color: var(--tc-error);
    border-color: var(--tc-error);
    background: transparent;
}
.tc-btn--danger:hover {
    background: var(--tc-error);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORMS / INPUTS
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-input,
.tc-textarea,
.tc-select,
.tc-qty-input,
.tc-product-option__select,
.tc-product-option__input,
.tc-product-option__textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tc-text);
    background: var(--tc-bg);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-sm);
    transition: border-color var(--tc-transition), box-shadow var(--tc-transition);
    font-family: var(--tc-font);
}
.tc-input:focus,
.tc-textarea:focus,
.tc-select:focus,
.tc-qty-input:focus,
.tc-product-option__select:focus {
    outline: none;
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tc-textarea {
    resize: vertical;
    min-height: 80px;
}
.tc-qty-input {
    width: 72px;
    text-align: center;
    padding: 8px 6px;
    -moz-appearance: textfield;
}
.tc-qty-input::-webkit-inner-spin-button,
.tc-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tc-select--sm {
    padding: 6px 10px;
    font-size: 13px;
}

.tc-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--tc-text);
}
.tc-label--required::after {
    content: ' *';
    color: var(--tc-error);
}
.tc-label--inline {
    display: inline;
    margin-right: 8px;
}
.tc-form-row {
    margin-bottom: 16px;
}
.tc-form-row--actions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NOTICES
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-notice {
    padding: 12px 16px;
    border-radius: var(--tc-radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.tc-notice--info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}
.tc-notice--success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}
.tc-notice--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.tc-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1.5;
}
.tc-badge--success {
    background: #DCFCE7;
    color: var(--tc-success);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHOP PAGE — ShopNest offcanvas layout
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-shop {
    font-family: var(--tc-font);
    color: var(--tc-text);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

/* ── Page Header Banner ── */
.tc-shop__banner {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}
.tc-shop__banner-inner { padding: 0 24px; position: relative; z-index: 2; }
.tc-shop__banner-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--tc-text);
    margin: 0 0 8px;
}

/* ── Theme variant: dark solid bg (no image) ── */
.tc-shop__banner--theme {
    background: #1a1a2e;
    border-bottom: none;
}
.tc-shop__banner--theme .tc-shop__banner-title {
    color: #fff;
}
.tc-shop__banner--theme .tc-breadcrumb a { color: rgba(255,255,255,0.7); }
.tc-shop__banner--theme .tc-breadcrumb a:hover { color: #fff; }
.tc-shop__banner--theme .tc-breadcrumb__current { color: rgba(255,255,255,0.9); }
.tc-shop__banner--theme .tc-breadcrumb .bi { color: rgba(255,255,255,0.4); }

/* ── Theme variant: with background image ── */
.tc-shop__banner--has-image {
    background-size: cover;
    background-position: center;
}
.tc-shop__banner--has-image .tc-shop__banner-title { color: #fff; }
.tc-shop__banner--has-image .tc-breadcrumb a { color: rgba(255,255,255,0.8); }
.tc-shop__banner--has-image .tc-breadcrumb a:hover { color: #fff; }
.tc-shop__banner--has-image .tc-breadcrumb__current { color: #fff; }
.tc-shop__banner--has-image .tc-breadcrumb .bi { color: rgba(255,255,255,0.5); }
.tc-breadcrumb--centered {
    justify-content: center;
    margin-bottom: 0;
}
.tc-breadcrumb--centered .bi { font-size: 10px; color: #b0b0b0; }

/* ── Shop content wrapper ── */
.tc-shop__content {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 40px var(--tc-gap) 48px;
    position: relative;
}

/* ── Filter toggle button (ShopNest: fixed left, rotated 90deg) ── */
.tc-shop__filter-toggle {
    position: fixed;
    left: -37px;
    top: 50%;
    z-index: 10;
    transform: rotate(90deg);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #0e1115;
    color: #fff;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-family: var(--tc-font);
}
.tc-shop__filter-toggle .bi { font-size: 14px; }

/* ── Toolbar (ShopNest: found X items left, sort right) ── */
.tc-shop__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tc-shop__found {
    font-size: 14px;
    color: var(--tc-text);
    margin: 0;
}
.tc-shop__found strong { font-weight: 600; }
.tc-shop__sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-shop__sort-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.tc-shop__sort-select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid var(--tc-border);
    border-radius: 6px;
    background: #fff;
    color: var(--tc-text);
    cursor: pointer;
    font-family: var(--tc-font);
    min-width: 180px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* ── View Toggle Buttons ── */
.tc-shop__view-toggle {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    border: 1px solid var(--tc-border);
    border-radius: 8px;
    padding: 3px;
    background: #fafafa;
}
.tc-shop__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #999;
    cursor: pointer;
    transition: all .15s ease;
}
.tc-shop__view-btn:hover { color: #555; background: #f0f0f0; }
.tc-shop__view-btn--active {
    background: #fff;
    color: var(--tc-text, #0a0a0a);
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
@media (max-width: 600px) { .tc-shop__view-toggle { display: none; } }

/* ── Product Grid (ShopNest: 4/3/2 cols — reads --tc-grid-cols from settings) ── */
.tc-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--tc-grid-cols, 4), 1fr);
    gap: 24px;
}
@media (max-width: 1200px) { .tc-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .tc-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .tc-product-grid { grid-template-columns: 1fr; } }

/* ── List View (3-column: image | info | control) ── */
.tc-product-grid--list {
    grid-template-columns: 1fr !important;
    gap: 16px;
}
.tc-product-grid--list .product-card {
    flex-direction: row;
    padding: 16px;
    gap: 0;
    align-items: stretch;
}
.tc-product-grid--list .product-card__image-wrap {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
}
.tc-product-grid--list .product-card__body {
    flex: 1;
    padding: 4px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.tc-product-grid--list .product-card__title,
.tc-product-grid--list .product-title {
    font-size: 16px;
    font-weight: 600;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
}
/* Show list-only elements */
.tc-product-grid--list .product-card__meta-row { display: flex !important; }
.tc-product-grid--list .product-card__short-desc { display: -webkit-box !important; }
.tc-product-grid--list .product-card__features { display: flex !important; }
.tc-product-grid--list .product-card__control { display: flex !important; }
/* Hide grid-only elements in list */
.tc-product-grid--list .product-card__price-grid { display: none !important; }
.tc-product-grid--list .product-card__cart-overlay { display: none !important; }
.tc-product-grid--list .product-hover-actions { display: none !important; }
.tc-product-grid--list .product-card__stock-badge { display: none !important; }

/* ── List: meta row (rating + code) ── */
.product-card__meta-row {
    display: none; /* hidden in grid */
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--tc-muted, #737373);
}
.product-card__stars { display: inline-flex; align-items: center; gap: 2px; }
.product-card__review-count { font-size: 12px; color: var(--tc-muted); margin-left: 4px; }
.product-card__sku { font-size: 12px; color: var(--tc-muted); }

/* ── List: description ── */
.product-card__short-desc {
    display: none; /* hidden in grid */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 4px 0;
}

/* ── List: feature attributes ── */
.product-card__features {
    display: none; /* hidden in grid */
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 4px;
}
.product-card__feature {
    font-size: 13px;
    color: var(--tc-text, #0a0a0a);
}
.product-card__feature-label {
    color: var(--tc-muted, #737373);
    font-style: normal;
    margin-right: 4px;
}
.product-card__feature em { font-style: normal; }

/* ── Card colour swatches (grid + list) — honors per-attribute filter_type='color' ──
   Unlike text feature chips (.product-card__features, list-view only), colour swatch
   dots show in BOTH grid and list. */
.product-card__swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.product-card__swatches-label {
    font-size: 12px;
    font-style: normal;
    color: var(--tc-muted, #737373);
}
.product-card__swatch-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.product-card__swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
    flex-shrink: 0;
}
/* Compact view: keep cards minimal — hide both feature chips and swatches. */
.tc-product-grid--compact .product-card__swatches { display: none !important; }

/* ── List: control column (right side — price, stock, cart, icons) ── */
.product-card__control {
    display: none; /* hidden in grid */
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 200px;
    max-width: 240px;
    padding: 4px 0 4px 24px;
    border-left: 1px solid var(--tc-border, #e5e5e5);
    gap: 6px;
    flex-shrink: 0;
}
.product-card__control-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-card__control-price .product-price {
    font-size: 20px;
    font-weight: 700;
}
.product-card__control-price .product-original-price {
    font-size: 14px;
}
.product-card__stock-badge--in {
    font-size: 12px;
    font-weight: 500;
    color: #16a34a;
}
.product-card__list-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: var(--tc-text, #111);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--tc-font);
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.product-card__list-cart-btn:hover { background: #333; }
.product-card__control-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}
.product-card__control-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--tc-border, #e5e5e5);
    border-radius: 8px;
    background: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
}
.product-card__control-icon:hover { border-color: var(--tc-accent, #2563eb); color: var(--tc-accent); }

/* List view — sale price inline with regular at all sizes */
.tc-product-grid--list .product-card__control-price {
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
}

@media (max-width: 768px) {
    .tc-product-grid--list .product-card { flex-wrap: wrap; }
    .tc-product-grid--list .product-card__image-wrap { width: 140px; min-width: 140px; }
    .tc-product-grid--list .product-card__control {
        width: 100%; max-width: 100%;
        border-left: none; border-top: 1px solid var(--tc-border);
        padding: 12px 0 0; flex-direction: row; flex-wrap: wrap; align-items: center;
    }
}
@media (max-width: 480px) {
    .tc-product-grid--list .product-card { flex-direction: column; flex-wrap: nowrap; }
    .tc-product-grid--list .product-card__image-wrap { width: 100%; min-width: 0; }
    .tc-product-grid--list .product-card__body { padding: 12px 0 0; width: 100%; }
    .tc-product-grid--list .product-card__control { border-left: none; border-top: 1px solid var(--tc-border, #e5e5e5); width: 100%; max-width: 100%; padding: 12px 0 0; margin-top: 8px; }
}

/* ── Compact View (2-column grid rows) ── */
.tc-product-grid--compact {
    grid-template-columns: 1fr 1fr !important;
    gap: 0;
}
.tc-product-grid--compact .product-card {
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--tc-border, #e5e5e5);
}
.tc-product-grid--compact .product-card:hover {
    transform: none;
    box-shadow: none;
    background: #fafafa;
}
/* Image: 100x100 thumbnail */
.tc-product-grid--compact .product-card__image-wrap {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    margin-right: 14px;
}
/* Body: name + stars/code + stock (vertical stack) */
.tc-product-grid--compact .product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    min-width: 0;
}
.tc-product-grid--compact .product-card__body .product-title {
    font-size: 13px;
    font-weight: 500;
    -webkit-line-clamp: 2;
    margin: 0;
}
/* Show stars + sku in compact body */
.tc-product-grid--compact .product-card__meta-row {
    display: flex !important;
    gap: 8px;
    font-size: 11px;
}
/* Show body-level stock badge in compact (under code) */
.tc-product-grid--compact .product-card__body-stock {
    display: inline-block !important;
}
.tc-product-grid--compact .product-card__price-grid {
    display: none !important;
}
/* Control column: ALL INLINE — price + cart + icons in one row */
.tc-product-grid--compact .product-card__control {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    min-width: auto;
    max-width: none;
    padding: 0 0 0 12px;
    border-left: none;
    gap: 8px;
    flex-shrink: 0;
}
.tc-product-grid--compact .product-card__control-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}
.tc-product-grid--compact .product-card__control-price .product-price {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.tc-product-grid--compact .product-card__control-price .product-original-price {
    font-size: 12px;
}
/* Hide stock from control (moved to body) */
.tc-product-grid--compact .product-card__control > .product-card__stock-badge {
    display: none !important;
}
.tc-product-grid--compact .product-card__list-cart-btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}
.tc-product-grid--compact .product-card__control-actions {
    display: flex;
    gap: 4px;
    padding: 0;
}
.tc-product-grid--compact .product-card__control-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}
/* Hide extras: badges, hover, overlay, desc, features */
.tc-product-grid--compact .product-card__badge,
.tc-product-grid--compact .product-hover-actions,
.tc-product-grid--compact .product-card__cart-overlay,
.tc-product-grid--compact .product-card__short-desc,
.tc-product-grid--compact .product-card__features { display: none !important; }

@media (max-width: 900px) {
    .tc-product-grid--compact { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
    .tc-product-grid--compact .product-card__image-wrap { width: 72px; min-width: 72px; }
    .tc-product-grid--compact .product-card__list-cart-btn { display: none; }
}

/* ── Body-level stock badge (shown only in compact view) ── */
.product-card__body-stock {
    display: none; /* hidden in grid + list (control column shows stock there) */
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.product-card__body-stock--in { color: #16a34a; }
.product-card__body-stock--out { color: #dc2626; }

/* ── Product Card (unified Bootstrap-style — plugin + theme) ── */
.product-card {
    background: #fff;
    border: 1px solid var(--tc-border, #e5e5e5);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    padding: 16px;
}
.product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Image area */
.product-card__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.product-img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    /* aspect-ratio set dynamically via Settings → Thumbnails → Product Image Shape */
}
.product-img-placeholder {
    /* aspect-ratio set dynamically via Settings → Thumbnails → Product Image Shape */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tc-bg-subtle, #fafafa);
    border-radius: 8px;
}

/* Sale badge */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: #dc2626;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Hover action buttons (wishlist + quick view) */
.product-hover-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.product-card:hover .product-hover-actions { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s linear 0s; }

/* Add to Cart overlay (inside image area, appears on hover) */
.product-card__cart-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
}
.product-card:hover .product-card__cart-overlay { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s linear 0s; }
.btn-action-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}
.btn-action-circle:hover { background: #000; }

/* Wishlist active state */
.tc-wishlist-toggle--active { color: #ef4444 !important; background: #fff !important; border: 1px solid #fca5a5 !important; }
.tc-wishlist-toggle--active .bi-heart-fill { color: #ef4444; }
.tc-pdp__wish-btn.tc-wishlist-toggle--active { color: #ef4444; border-color: #fca5a5; }

/* Card body: name, price, Add to Cart */
.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0 0;
}
/* Brand eyebrow above the product title. Auto-detected from the product's
   purpose='brand' attribute (resolved in ProductRepository::attach_brand_to_rows);
   only emitted when a brand value exists, so cards without a brand are unchanged.
   Brand-colored via the global --tct-brand token to match the homepage cards +
   the PDP eyebrow; falls back to the muted gray on the base theme / market. */
.product-card__brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tct-brand, var(--tc-muted, #737373));
    line-height: 1.2;
    margin-bottom: -2px;
}
.product-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--tc-text, #1a1a2e);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title:hover { color: var(--tc-accent, #2563eb); }
.product-card__price-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.product-card__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #000;
}
.product-original-price {
    font-size: 16px;
    color: #bcbcbc;
    text-decoration: line-through;
    font-weight: 500;
}
.product-card__cart-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #0e1115;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--tc-font, inherit);
    transition: background .15s;
}
.product-card__cart-btn:hover { background: #1a1f26; }
.product-card__cart-btn--disabled {
    background: #e5e5e5;
    color: #888;
    cursor: not-allowed;
}

/* Out of stock badge (shown in card body when not in stock) */
.product-card__stock-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}
.product-card__stock-badge--out {
    background: #fef2f2;
    color: #dc2626;
}
.product-card__stock-badge--count {
    background: #f0fdf4;
    color: #16a34a;
}
.product-card__tax-note {
    font-size: 11px;
    color: #737373;
    margin-left: 4px;
}

/* Mobile: always show overlays (no hover on touch) — compact sizing */
@media (max-width: 575.98px) {
    .product-hover-actions {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .product-hover-actions .btn-action-circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .product-card__cart-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        left: auto !important;
        right: 8px !important;
        bottom: 8px !important;
    }
    .product-card__cart-overlay .product-card__cart-btn {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
    /* Sale prices: allow wrap + shrink to fit narrow cards */
    .product-card__price-row {
        flex-wrap: wrap;
        gap: 2px 6px;
    }
    .product-price {
        font-size: 14px;
    }
    .product-original-price {
        font-size: 12px;
    }
    /* Restore native select picker on mobile */
    .tc-shop__sort-select {
        -webkit-appearance: menulist !important;
        appearance: menulist !important;
        background-image: none !important;
        padding-right: 12px !important;
        min-width: 140px;
    }
}

/* ── Quick View Modal ── */
.tc-qv-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.tc-qv-overlay--open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s 0s; }
.tc-qv-modal { background: #fff; border-radius: 16px; max-width: 820px; width: 92%; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.25); position: relative; transform: translateY(20px); transition: transform .25s ease; }
.tc-qv-overlay--open .tc-qv-modal { transform: translateY(0); }
.tc-qv-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: #f5f5f5; color: #333; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.tc-qv-close:hover { background: #e0e0e0; }
.tc-qv-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tc-qv-gallery { padding: 32px; display: flex; align-items: center; justify-content: center; background: #fafafa; border-radius: 16px 0 0 16px; min-height: 300px; }
.tc-qv-gallery img { max-width: 100%; max-height: 400px; object-fit: contain; border-radius: 8px; }
.tc-qv-gallery-placeholder { font-size: 48px; color: #d4d4d4; }
.tc-qv-info { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tc-qv-info .tc-qv-category { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
/* Quick-view is a fixed light surface (white .tc-qv-modal); every other text
   color here is hardcoded dark. The title alone used var(--tc-text), which on
   themes whose body text is light (demoxpert: --tc-text = #FAFAFA) rendered the
   product name near-white on white = unreadable (S283). Pin it dark to match
   the modal's design, independent of the theme's text token. */
.tc-qv-info .tc-qv-title { font-size: 22px; font-weight: 600; color: #1a1a2e; margin: 0; }
.tc-qv-info .tc-qv-price { font-size: 20px; font-weight: 600; color: #000; display: flex; align-items: center; gap: 10px; }
.tc-qv-info .tc-qv-price-was { font-size: 16px; color: #bcbcbc; text-decoration: line-through; font-weight: 400; }
.tc-qv-info .tc-qv-stock { font-size: 13px; font-weight: 500; }
.tc-qv-info .tc-qv-stock--in { color: #16a34a; }
.tc-qv-info .tc-qv-stock--out { color: #dc2626; }
.tc-qv-info .tc-qv-desc { font-size: 14px; color: #555; line-height: 1.6; max-height: 100px; overflow-y: auto; }
.tc-qv-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.tc-qv-actions .tc-qv-qty { width: 70px; padding: 10px 8px; border: 1px solid #e0e0e0; border-radius: 8px; text-align: center; font-size: 14px; }
.tc-qv-actions .tc-qv-add-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; padding: 12px 24px; background: #0e1115; color: #fff; border: none; border-radius: 50px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s; }
.tc-qv-actions .tc-qv-add-btn:hover { background: #1a1f26; }
.tc-qv-actions .tc-qv-add-btn:disabled { opacity: .5; cursor: not-allowed; }
.tc-qv-view-full { display: inline-block; font-size: 13px; color: var(--tc-accent, #2563eb); text-decoration: underline; }
.tc-qv-loading { display: flex; align-items: center; justify-content: center; padding: 60px; font-size: 14px; color: #888; }
@media (max-width: 767px) {
    .tc-qv-body { grid-template-columns: 1fr; }
    .tc-qv-gallery { border-radius: 16px 16px 0 0; min-height: 200px; padding: 24px; }
    .tc-qv-info { padding: 24px; }
}

/* ── Pagination (ShopNest: dark theme, centered) ── */
.tc-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 32px;
}
.tc-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid var(--tc-border);
    border-radius: 6px;
    color: #212529;
    text-decoration: none;
    transition: all .15s;
    background: #fff;
}
.tc-pagination__item:hover {
    color: #212529;
    background: var(--tc-bg-subtle);
}
.tc-pagination__item--active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}
.tc-pagination__item .bi { font-size: 12px; }

/* ── Load More button ── */
.tc-pagination__load-more {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 32px auto 0;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #212529;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.tc-pagination__load-more:hover { background: #000; }

/* ── Infinite scroll sentinel ── */
.tc-pagination__scroll-sentinel {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}
.tc-spinner--sm {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

/* ── Empty state ── */
.tc-shop__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.tc-shop__empty p {
    margin: 0;
    font-size: 15px;
    color: var(--tc-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SINGLE PRODUCT (PDP) — ShopNest-matched layout
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-pdp {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 var(--tc-gap) 48px;
    color: var(--tc-text);
    line-height: 1.6;
    font-family: var(--tc-font);
    font-size: 14px;
}

/* ── Main 2-column: gallery | info ── */
.tc-pdp__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px 0;
}
@media (max-width: 900px) {
    .tc-pdp__main { grid-template-columns: 1fr; gap: 24px; }
    /* Break min-content propagation chain. Default `min-width: auto` on grid/flex
       items prevents them from shrinking below their content's intrinsic width.
       Without these overrides, a wide product image (e.g. 800×1200 natural) or
       any wide internal element (tier grid, tabs, bundle card) would force the
       grid track wider than the viewport, causing horizontal page overflow.
       See pattern doc S128 — "min-width: 0 is the fix for grid-track-blowout". */
    .tc-pdp__gallery,
    .tc-pdp__info,
    .tc-pdp__main-img-wrap,
    .tc-pdp__thumbs-wrap,
    .tc-pdp__tiers,
    .tc-pdp__tabs,
    .tc-pdp__bundles { min-width: 0; }
    /* Ensure the main product image never exceeds its container, regardless of
       its natural pixel dimensions. */
    .tc-pdp__main-img { max-width: 100%; height: auto; }
}

/* ── PDP Layout: Wide (larger gallery — 60/40 split) ── */
.tc-pdp--wide .tc-pdp__main {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
}
/* Wide layout — compact buttons to fit narrower info column */
.tc-pdp--wide .tc-pdp__cart-row {
    gap: 8px;
}
.tc-pdp--wide .tc-pdp__add-btn {
    flex: none;
    padding: 10px 20px;
    font-size: 14px;
}
.tc-pdp--wide .tc-pdp__wish-btn {
    padding: 10px 16px;
    font-size: 14px;
}
.tc-pdp--wide .tc-pdp__compare-btn {
    padding: 10px 16px;
    font-size: 14px;
}
@media (max-width: 900px) {
    .tc-pdp--wide .tc-pdp__main { grid-template-columns: 1fr; gap: 24px; }
    /* Restore full-size buttons when stacked on mobile */
    .tc-pdp--wide .tc-pdp__add-btn { flex: 1; padding: 12px 40px; font-size: 15px; }
    .tc-pdp--wide .tc-pdp__wish-btn { padding: 12px 40px; font-size: 15px; }
    .tc-pdp--wide .tc-pdp__compare-btn { padding: 12px 24px; font-size: 14px; }
}

/* ── PDP Layout: Gallery (large image emphasis, full-width) ── */
.tc-pdp--gallery .tc-pdp__main {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}
.tc-pdp--gallery .tc-pdp__gallery {
    grid-template-columns: 1fr;
    position: static;
}
.tc-pdp--gallery .tc-pdp__gallery .tc-pdp__thumbs-wrap {
    flex-direction: row;
    max-height: none;
    max-width: 100%;
    order: 2;
}
.tc-pdp--gallery .tc-pdp__gallery .tc-pdp__thumbs-arrow {
    width: 28px;
    height: 72px;
}
.tc-pdp--gallery .tc-pdp__gallery .tc-pdp__thumbs-arrow svg {
    transform: rotate(-90deg);
}
.tc-pdp--gallery .tc-pdp__gallery .tc-pdp__thumbs {
    flex-direction: row;
    gap: 8px;
    overflow: hidden;
    padding: 8px 0;
}
.tc-pdp--gallery .tc-pdp__gallery .tc-pdp__thumbs button {
    min-width: 72px;
    aspect-ratio: var(--tc-img-ratio, 3/4);
    height: auto;
}
.tc-pdp--gallery .tc-pdp__main-img-wrap {
    max-height: 580px;
    overflow: hidden;
    border-radius: 12px;
}
.tc-pdp--gallery .tc-pdp__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Gallery layout — full-width info, generous buttons */
.tc-pdp--gallery .tc-pdp__cart-row {
    gap: 12px;
    flex-wrap: wrap;
}
.tc-pdp--gallery .tc-pdp__add-btn {
    flex: 1 1 auto;
    padding: 12px 40px;
    font-size: 15px;
}
.tc-pdp--gallery .tc-pdp__wish-btn {
    padding: 12px 40px;
    font-size: 15px;
}
.tc-pdp--gallery .tc-pdp__compare-btn {
    padding: 12px 24px;
    font-size: 14px;
}
@media (max-width: 900px) {
    .tc-pdp--gallery .tc-pdp__main {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tc-pdp--gallery .tc-pdp__cart-row { flex-wrap: wrap; gap: 12px; }
    .tc-pdp--gallery .tc-pdp__add-btn { flex: 1; padding: 12px 40px; font-size: 15px; }
    .tc-pdp--gallery .tc-pdp__wish-btn { padding: 12px 40px; font-size: 15px; }
    .tc-pdp--gallery .tc-pdp__compare-btn { padding: 12px 24px; font-size: 14px; }
}

/* ── PDP Layout: Square (1:1 product images) ───────────────────────────────────
   Balanced 50/50 split with a square main image. Applied automatically when the
   product image shape is "square" (set per theme). The main image follows
   --tc-img-ratio (1/1 for this shape) so the PDP matches the aspect ratio. */
.tc-pdp--square .tc-pdp__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.tc-pdp--square .tc-pdp__main-img-wrap {
    aspect-ratio: var(--tc-img-ratio, 1 / 1);
    max-height: 620px;
}
.tc-pdp--square .tc-pdp__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 900px) {
    .tc-pdp--square .tc-pdp__main { grid-template-columns: 1fr; gap: 24px; }
}

/* ── PDP Layout: Wide 4:3 (landscape product images) ───────────────────────────
   Wider gallery column for landscape products, with the thumbnail strip moved
   BELOW the main image (a vertical strip would tower over a short landscape
   image). Applied automatically when the product image shape is "wide". The main
   image follows --tc-img-ratio (4/3 for this shape). */
.tc-pdp--ratio43 .tc-pdp__main {
    grid-template-columns: 1.5fr 1fr;
    gap: 44px;
}
.tc-pdp--ratio43 .tc-pdp__gallery {
    grid-template-columns: 1fr;   /* main image on top, thumbs below */
    position: static;
}
.tc-pdp--ratio43 .tc-pdp__main-img-wrap {
    aspect-ratio: var(--tc-img-ratio, 4 / 3);
    order: 1;
}
.tc-pdp--ratio43 .tc-pdp__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tc-pdp--ratio43 .tc-pdp__thumbs-wrap {
    flex-direction: row;
    align-items: center;
    max-height: none;
    max-width: 100%;
    order: 2;
}
.tc-pdp--ratio43 .tc-pdp__thumbs {
    flex-direction: row;
    gap: 8px;
    overflow: hidden;
    padding: 8px 0;
}
.tc-pdp--ratio43 .tc-pdp__thumbs-arrow {
    width: 28px;
    height: 72px;
}
.tc-pdp--ratio43 .tc-pdp__thumbs-arrow svg {
    transform: rotate(-90deg);
}
.tc-pdp--ratio43 .tc-pdp__thumb {
    width: 96px;
    flex-shrink: 0;
}
/* compact buttons to fit the narrower info column */
.tc-pdp--ratio43 .tc-pdp__cart-row { gap: 8px; }
.tc-pdp--ratio43 .tc-pdp__add-btn { flex: none; padding: 10px 22px; font-size: 14px; }
.tc-pdp--ratio43 .tc-pdp__wish-btn { padding: 10px 16px; font-size: 14px; }
.tc-pdp--ratio43 .tc-pdp__compare-btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 900px) {
    .tc-pdp--ratio43 .tc-pdp__main { grid-template-columns: 1fr; gap: 24px; }
    .tc-pdp--ratio43 .tc-pdp__add-btn { flex: 1; padding: 12px 40px; font-size: 15px; }
    .tc-pdp--ratio43 .tc-pdp__wish-btn { padding: 12px 40px; font-size: 15px; }
    .tc-pdp--ratio43 .tc-pdp__compare-btn { padding: 12px 24px; font-size: 14px; }
}

/* ────────────────────────────────────────
   Gallery: thumbs left, main image right
   ──────────────────────────────────────── */
.tc-pdp__gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    position: sticky;
    top: 24px;
}
.tc-pdp__gallery--no-thumbs {
    grid-template-columns: 1fr;
}
.tc-pdp__thumbs-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-height: 680px;
}
.tc-pdp__thumbs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 28px;
    border: 1px solid var(--tc-border);
    border-radius: 6px;
    background: var(--tc-bg-subtle, #f5f5f5);
    color: var(--tc-text-muted, #737373);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s, color .15s, border-color .15s;
}
.tc-pdp__thumbs-arrow:hover {
    background: var(--tc-bg, #fff);
    color: var(--tc-text, #0a0a0a);
    border-color: var(--tc-text-muted, #737373);
}
.tc-pdp__thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
}
.tc-pdp__thumbs--nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tc-pdp__thumbs--nav::-webkit-scrollbar {
    display: none;
}
.tc-pdp__thumb {
    width: 80px;
    aspect-ratio: var(--tc-img-ratio, 3/4);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    background: var(--tc-bg-subtle);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color .15s;
}
@media (max-width: 600px) { .tc-pdp__thumb { width: 64px; height: 64px; } }
.tc-pdp__thumb:hover { border-color: #999; }
.tc-pdp__thumb--active { border: 2px solid #0e1115; }
.tc-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ────────────────────────────────────────
   Gallery — Mobile layout (≤900px)
   IMPORTANT: This @media block MUST come AFTER all the .tc-pdp__thumbs-wrap
   and .tc-pdp__thumbs default rules above. CSS specificity for these
   single-class selectors ties at (0,1,0), so source order decides the winner.
   The previous arrangement put @media BEFORE defaults, so defaults won and
   the mobile overrides were silently ignored, collapsing the thumbs strip
   to height 0. See pattern doc S128.
   On mobile: main image renders first, thumb strip below as a horizontal
   scroll row. Arrows hidden — touch swipe handles thumb navigation.
   ──────────────────────────────────────── */
@media (max-width: 900px) {
    .tc-pdp__gallery {
        position: static;
        grid-template-columns: 1fr;
    }
    /* Reorder grid items: main image first, thumbs below */
    .tc-pdp__main-img-wrap { order: 1; }
    .tc-pdp__thumbs-wrap {
        order: 2;
        flex-direction: row;
        align-items: center;
        max-height: none;
        max-width: 100%;
        gap: 8px;
    }
    .tc-pdp__thumbs {
        flex-direction: row;
        /* flex: 0 1 auto rather than 1 1 0 — iOS Safari can collapse flex-basis: 0
           to zero height when the parent's cross-axis is content-sized. auto is safe. */
        flex: 0 1 auto;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        /* Safety net: if any flex sizing quirk pulls height to 0, this guarantees
           the strip stays tall enough to render. 88 = 64 thumb + 8 padding + 16 buffer. */
        min-height: 88px;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0;
    }
    /* Hide vertical scroll arrows on mobile — touch swipe handles thumb navigation.
       !important required because the inline JS (in single.php) sets style.display
       on these arrows to toggle their visibility for desktop overflow scrolling. */
    .tc-pdp__thumbs-arrow { display: none !important; }
}

.tc-pdp__main-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--tc-bg-subtle);
}
.tc-pdp__main-img-wrap--empty {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tc-border);
}
.tc-pdp__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
    line-height: 1.4;
}
.tc-pdp__badge--sale { background: var(--tc-error); color: #fff; }
.tc-pdp__main-img { width: 100%; height: auto; display: block; }

/* ────────────────────────────────────────
   Product Info column
   ──────────────────────────────────────── */
.tc-pdp__info {
    display: flex;
    flex-direction: column;
}

/* Brand eyebrow — shown above the PDP title, mirroring the homepage product
   cards. The cards color the brand with each preset's brand token, which all
   chain to the global --tct-brand (e.g. firearms olive, electronics blue), so
   the PDP uses --tct-brand directly = an exact match. Falls back to the muted
   gray for the base theme / market.titancart.io where no preset is active.
   Sized up a touch (12px) for the larger PDP title. S31. */
.tc-pdp__brand {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tct-brand, var(--tc-muted, #737373));
    line-height: 1.2;
    margin: 0 0 6px;
}

/* Title — ShopNest h2, ~2rem */
.tc-pdp__title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.3px;
    margin: 0 0 4px;
    line-height: 1.3;
    color: var(--tc-text);
}

/* Rating — 14px, my-3 spacing */
.tc-pdp__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}
.tc-pdp__rating .tc-stars { font-size: 14px; color: #FBBF24; }
.tc-pdp__rating-text {
    font-size: 14px;
    color: var(--tc-text-muted);
    cursor: pointer;
}
.tc-pdp__rating-text:hover { color: var(--tc-accent); text-decoration: underline; }

/* Price — fs-3 = 1.75rem now, fs-6 = 1rem was */
.tc-pdp__price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tc-pdp__price-now {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--tc-text);
}
.tc-pdp__price-was {
    font-size: 1rem;
    color: var(--tc-text-muted);
    text-decoration: line-through;
    opacity: .5;
}
.tc-pdp__price-discount {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--tc-error);
    padding: 3px 10px;
    border-radius: 50px;
}

/* Short description */
.tc-pdp__short-desc {
    font-size: 14px;
    color: #4e5562;
    line-height: 1.7;
    margin: 12px 0 0;
}

/* ────────────────────────────────────────
   Quantity tier discounts (Bulk Buys, S120)
   Surfaced from tc_product_prices when min_quantity > 1.
   ──────────────────────────────────────── */
.tc-pdp__tiers {
    margin: 16px 0 0;
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid var(--tc-border);
    border-radius: 8px;
}
.tc-pdp__tiers-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--tc-text-muted);
    margin: 0 0 10px;
}
.tc-pdp__tiers-grid {
    display: grid;
    /* 90px min lets 4 tier cards fit at 360px container (mobile);
       at narrower widths auto-fit drops to 3 cols. Was 110px which
       overflowed at narrow viewport widths with 3+ tiers. */
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    max-width: 100%;
}
.tc-pdp__tier {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 6px;
    padding: 10px 8px;
    text-align: center;
    transition: border-color .15s ease, transform .15s ease;
}
.tc-pdp__tier-qty {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-text);
    margin-bottom: 2px;
}
.tc-pdp__tier-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--tc-success);
    margin: 2px 0;
}
.tc-pdp__tier-save {
    font-size: 11px;
    font-weight: 500;
    color: var(--tc-text-muted);
}
.tc-pdp__tier--active {
    border-color: var(--tc-success);
    background: #F0FDF4;
}

/* ────────────────────────────────────────
   Variations — mt-4 = 24px spacing each
   ──────────────────────────────────────── */
.tc-pdp__variations {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
    margin-bottom: 24px;
}
.tc-pdp__var-axis {
    margin-top: 24px;
}
.tc-pdp__var-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--tc-text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tc-pdp__size-guide-link {
    font-size: 13px;
    color: var(--tc-text);
    text-decoration: underline;
}
.tc-pdp__size-guide-link:hover { color: var(--tc-accent); }

/* Color swatches — ShopNest: 25px filled circles, gap-3 = 12px */
.tc-pdp__var-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.tc-pdp__var-swatch {
    width: 30px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.tc-pdp__var-swatch:hover {
    border-color: rgba(0,0,0,.3);
}
.tc-pdp__var-swatch--active {
    border-color: #0e1115;
}
.tc-pdp__var-swatch-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

/* Size pills — 3D raised white button style */
.tc-pdp__var-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tc-pdp__var-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    color: var(--tc-text);
    cursor: pointer;
    transition: all .15s ease;
    font-family: var(--tc-font);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tc-pdp__var-pill:hover {
    border-color: #a3a3a3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 3px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tc-pdp__var-pill--active {
    background: linear-gradient(to bottom, #2a2a2a, #171717);
    color: #fff;
    border-color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Product image variation thumbnails */
.tc-pdp__var-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tc-pdp__var-img {
    width: 64px;
    aspect-ratio: var(--tc-img-ratio, 3/4);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--tc-bg-subtle, #f5f5f5);
    cursor: pointer;
    padding: 0;
    transition: border-color .15s, box-shadow .15s;
}
.tc-pdp__var-img:hover {
    border-color: rgba(0,0,0,.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tc-pdp__var-img--active {
    border-color: #0e1115;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.tc-pdp__var-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tc-pdp__var-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text-muted, #737373);
    aspect-ratio: var(--tc-img-ratio, 3/4);
}

/* Dropdown variation */
.tc-pdp__var-select { max-width: 280px; }

/* ────────────────────────────────────────
   Static attribute indicators (single-value color swatches / size pills)
   ──────────────────────────────────────── */
.tc-pdp__attr-indicators {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    margin-bottom: 24px;
}
.tc-pdp__attr-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Color swatch: reuses .tc-pdp__var-swatch-circle from variation selectors.
   Apply "active" ring since it's the current/only value. */
.tc-pdp__attr-swatch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tc-pdp__attr-swatch .tc-pdp__var-swatch-circle {
    border: 2px solid #0e1115;
}
.tc-pdp__attr-swatch-name {
    font-size: 13px;
    color: var(--tc-text);
    font-weight: 500;
}
/* Size pill: 3D raised white button, matching variation pills */
.tc-pdp__attr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    width: fit-content;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    color: var(--tc-text);
    font-family: var(--tc-font);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}
/* Brand: clean text display */
.tc-pdp__attr-brand {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text);
}
/* Shared variation interactive buttons */
.tc-pdp__shared-variation {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
.tc-pdp__shared-variation .tc-pdp__var-label {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
}
button.tc-pdp__shared-btn {
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
button.tc-pdp__shared-btn:hover {
    border-color: #999;
}
button.tc-pdp__shared-btn.tc-pdp__shared-btn--active {
    border: 2px solid var(--tc-text, #0a0a0a);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
}
button.tc-pdp__shared-btn.tc-pdp__attr-swatch.tc-pdp__shared-btn--active {
    border: 2px solid var(--tc-text, #0a0a0a);
}
.tc-pdp__var-selected-label {
    font-weight: 400;
    color: var(--tc-text-muted, #737373);
    margin-left: 6px;
    font-size: 13px;
}

/* ────────────────────────────────────────
   Quantity — ShopNest: width 12rem, input-group-lg, bordered
   ──────────────────────────────────────── */
.tc-pdp__qty-section {
    margin-top: 24px;
}
.tc-pdp__qty-ctrl {
    display: flex;
    align-items: center;
    border: 2px solid var(--tc-border);
    border-radius: 8px;
    width: 12rem;
    height: 48px;
}
.tc-pdp__qty-btn {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 100% !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s;
    user-select: none;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.tc-pdp__qty-btn:hover { background: var(--tc-bg-subtle) !important; }
.tc-pdp__qty-btn .bi {
    font-size: 20px !important;
    color: #0e1115 !important;
    line-height: 1 !important;
    display: block !important;
    pointer-events: none;
}
.tc-pdp__qty-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    height: 100%;
    border: none;
    border-left: 2px solid var(--tc-border);
    border-right: 2px solid var(--tc-border);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--tc-text);
    background: #fff;
    font-family: var(--tc-font);
    -moz-appearance: textfield;
}
.tc-pdp__qty-input::-webkit-inner-spin-button,
.tc-pdp__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tc-pdp__qty-select {
    height: 48px;
    min-width: 120px;
    max-width: 200px;
    border: 2px solid var(--tc-border);
    border-radius: 10px;
    padding: 0 36px 0 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--tc-font);
    color: var(--tc-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.tc-pdp__qty-select:focus { border-color: var(--tc-accent, #2563eb); outline: none; }

/* ────────────────────────────────────────
   Cart + Wishlist — ShopNest: full-width dark pill, outlined wishlist pill
   ──────────────────────────────────────── */
.tc-pdp__cart-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .tc-pdp__cart-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tc-pdp__add-btn,
    .tc-pdp__wish-btn,
    .tc-pdp__compare-btn {
        flex: none;
        width: 100%;
    }
}
.tc-pdp__add-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 500;
    background: #0e1115;
    color: #fff;
    border: 2px solid #0e1115;
    border-radius: 50px;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--tc-font);
    white-space: nowrap;
}
.tc-pdp__add-btn:hover { background: #1a1f26; }
.tc-pdp__add-btn:disabled { opacity: .5; cursor: not-allowed; }
.tc-pdp__add-btn svg { flex-shrink: 0; }

.tc-pdp__wish-btn {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 50px;
    border: 2px solid var(--tc-border);
    background: #fff;
    color: var(--tc-text);
    cursor: pointer;
    transition: all .15s;
    font-family: var(--tc-font);
    white-space: nowrap;
}
.tc-pdp__wish-btn:hover { border-color: var(--tc-error); color: var(--tc-error); }
.tc-pdp__wish-btn.active { background: var(--tc-error); border-color: var(--tc-error); color: #fff; }
.tc-pdp__wish-btn svg { flex-shrink: 0; pointer-events: none; }

/* ── Compare button (sibling of add/wish in .tc-pdp__cart-row) ── */
.tc-pdp__compare-btn {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: var(--tc-text, #0a0a0a);
    border: 2px solid var(--tc-border, #e5e5e5);
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s ease;
    font-family: var(--tc-font);
    white-space: nowrap;
}
.tc-pdp__compare-btn:hover {
    border-color: var(--tc-accent, #2563eb);
    color: var(--tc-accent, #2563eb);
}
.tc-pdp__compare-btn.tc-compare-toggle--active {
    background: var(--tc-accent, #2563eb);
    border-color: var(--tc-accent, #2563eb);
    color: #fff;
}
.tc-pdp__compare-btn svg { flex-shrink: 0; }

/* ────────────────────────────────────────
   Delivery info — font-14, gap-2 items
   ──────────────────────────────────────── */
.tc-pdp__delivery {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-pdp__delivery-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tc-text);
    margin: 0;
}
.tc-pdp__delivery-item svg { flex-shrink: 0; color: var(--tc-text-muted); }

/* ────────────────────────────────────────
   Sold Out button — disabled cart button
   ──────────────────────────────────────── */
.tc-pdp__add-btn--soldout {
    background: #e5e5e5 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    border-color: #e5e5e5 !important;
}
.tc-pdp__add-btn--soldout:hover {
    background: #e5e5e5 !important;
}

/* ────────────────────────────────────────
   Stock Notification Box — OOS PDP card
   ──────────────────────────────────────── */
.tc-pdp__stocknotify {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tc-pdp__stocknotify-title {
    font-size: 16px;
    font-weight: 700;
    color: #1c2430;
    margin: 0 0 6px 0;
    line-height: 1.4;
}
.tc-pdp__stocknotify-subtitle {
    font-size: 13px;
    color: #5a6270;
    margin: 0 0 18px 0;
    line-height: 1.5;
}
.tc-pdp__stocknotify-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}
.tc-pdp__stocknotify-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f5f5f5;
    color: #737373;
}
.tc-pdp__stocknotify-tab--active {
    background: #2563EB;
    color: #fff;
}
.tc-pdp__stocknotify-tab--disabled {
    background: #1c2430;
    color: #6b7280;
    cursor: not-allowed;
    opacity: 0.7;
}
.tc-pdp__stocknotify-tab i { font-size: 14px; }
.tc-pdp__stocknotify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tc-pdp__stocknotify-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.tc-pdp__stocknotify-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.tc-pdp__stocknotify-btn {
    width: 100%;
    padding: 13px 0;
    background: #171717;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s;
}
.tc-pdp__stocknotify-btn:hover { background: #333; }
.tc-pdp__stocknotify-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.tc-pdp__stocknotify-privacy {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #737373;
    margin-top: 14px;
    line-height: 1.5;
}
.tc-pdp__stocknotify-privacy i {
    font-size: 14px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Message inside stock notify box (reuses existing classes) */
.tc-pdp__stocknotify .tc-pdp__notify-msg {
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .tc-pdp__stocknotify { padding: 18px 16px; }
    .tc-pdp__stocknotify-title { font-size: 15px; }
}

/* ────────────────────────────────────────
   Downloadable Products — PDP gates (S138)
   1. Master toggle off — "unavailable" notice
   2. License agreement gate — required acceptance
   ──────────────────────────────────────── */

/* 1. Master-toggle-off notice. Mirrors the stocknotify card visually
   (white surface, soft border, shadow) but with a muted icon row. */
.tc-pdp__dl-disabled {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    color: #1c2430;
}
.tc-pdp__dl-disabled i {
    flex: 0 0 auto;
    font-size: 22px;
    color: #737373;
    line-height: 1;
    margin-top: 2px;
}
.tc-pdp__dl-disabled-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.tc-pdp__dl-disabled-text p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* 2. Agreement gate. Same Pulse card surface as stocknotify, with a
   scrollable content well + checkbox row + inline error slot. */
.tc-pdp__agreement {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tc-pdp__agreement-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1c2430;
}
.tc-pdp__agreement-title i {
    color: #2563eb;
    font-size: 16px;
}
.tc-pdp__agreement-content {
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    font-size: 13px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 14px;
}
.tc-pdp__agreement-content:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.tc-pdp__agreement-content p { margin: 0 0 8px; }
.tc-pdp__agreement-content p:last-child { margin-bottom: 0; }
.tc-pdp__agreement-content ul,
.tc-pdp__agreement-content ol { margin: 0 0 8px 18px; padding: 0; }
.tc-pdp__agreement-content a { color: #2563eb; text-decoration: underline; }
.tc-pdp__agreement-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: #1c2430;
    user-select: none;
}
.tc-pdp__agreement-input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: #2563eb;
}
.tc-pdp__agreement-input:disabled {
    cursor: progress;
    opacity: 0.6;
}
.tc-pdp__agreement-msg {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 0;
    color: #b91c1c;
}
.tc-pdp__agreement-msg:empty { display: none; }
.tc-pdp__agreement-msg[data-kind="error"] {
    color: #b91c1c;
}
/* The disabled add-to-cart button needs a clearer "waiting on you" cue
   than the default browser disabled style. */
.tc-pdp__add-btn[data-tc-agreement-pending="1"] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .tc-pdp__agreement { padding: 16px; }
    .tc-pdp__agreement-content { max-height: 200px; padding: 10px 12px; }
    .tc-pdp__dl-disabled { padding: 16px; gap: 10px; }
    .tc-pdp__dl-disabled i { font-size: 20px; }
}

/* Notify message variants (used by JS in stocknotify + old notify) */
.tc-pdp__notify-msg {
    font-size: 13px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
}
.tc-pdp__notify-msg--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.tc-pdp__notify-msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ────────────────────────────────────────
   Notify Me — product card button (grid + list)
   ──────────────────────────────────────── */
.product-card__cart-overlay--notify {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.product-card__notify-btn {
    background: #171717 !important;
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card__notify-btn:hover {
    background: #333 !important;
    color: #fff !important;
}
.product-card__notify-btn i { font-size: 13px; }
.product-card__list-notify-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #171717;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.product-card__list-notify-btn:hover {
    background: #333;
    color: #fff;
    text-decoration: none;
}

/* ── Catalog Mode: Inquiry buttons ── */
.product-card__cart-overlay--inquiry { display: flex !important; opacity: 1 !important; visibility: visible !important; }
.product-card__inquiry-btn {
    background: #2563EB !important;
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card__inquiry-btn:hover { background: #1d4ed8 !important; }
.product-card__list-inquiry-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #2563EB;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.product-card__list-inquiry-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.tc-pdp__inquiry-btn {
    background: #2563EB !important;
    color: #fff !important;
    border-color: #2563EB !important;
}
.tc-pdp__inquiry-btn:hover { background: #1d4ed8 !important; border-color: #1d4ed8 !important; }

/* ── Price Per Unit ── */
.product-card__ppu {
    display: block;
    font-size: 11px;
    color: #737373;
    font-weight: 400;
    margin-top: 2px;
}
.tc-pdp__ppu {
    display: inline-block;
    font-size: 13px;
    color: #737373;
    font-weight: 400;
    margin-left: 8px;
}

/* ── Points meta strip — PDP (S124) ── */
/* Two-row "Price in points / Reward points" meta block sitting in the price
   stack between the in-stock badge and the qty/add-to-cart row.
   Both rows are visible to guests as a sign-up incentive — runtime gating
   for "did you earn anything" lives in the PHP renderer, not CSS. */
.tc-pdp__points-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    font-size: 14px;
}
.tc-pdp__points-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.tc-pdp__points-label {
    color: #525252;
    font-weight: 400;
    min-width: 130px;
}
.tc-pdp__points-value {
    color: #16A34A;          /* Pulse success */
    font-weight: 500;
}

/* ── Social Share Buttons ── */
.tc-pdp__social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}
.tc-pdp__social-label {
    font-size: 13px;
    font-weight: 500;
    color: #737373;
    margin-right: 4px;
}
.tc-pdp__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tc-pdp__social-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border-color: #d1d5db;
}
.tc-pdp__social-btn i { font-size: 15px; }
.tc-pdp__social-btn span { font-size: 12px; }
.tc-pdp__copy-link-btn { font-family: inherit; }

/* ── Age Verification Gate ── */
.tc-age-gate {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}
.tc-age-gate__card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 440px;
    width: 92%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.tc-age-gate__icon { font-size: 48px; color: #d97706; margin-bottom: 16px; }
.tc-age-gate__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1c2430; }
.tc-age-gate__message { font-size: 14px; color: #5a6270; line-height: 1.5; margin-bottom: 24px; }
.tc-age-gate__actions { display: flex; gap: 12px; justify-content: center; }
.tc-age-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tc-age-gate__btn--yes { background: #16a34a; color: #fff; }
.tc-age-gate__btn--yes:hover { background: #15803d; }
.tc-age-gate__btn--yes:disabled { opacity: 0.5; cursor: not-allowed; }
.tc-age-gate__btn--no { background: #f3f4f6; color: #4b5563; }
.tc-age-gate__btn--no:hover { background: #e5e7eb; }
.tc-age-gate__birthday, .tc-age-gate__checkbox { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tc-age-gate__label { font-size: 13px; font-weight: 500; color: #4b5563; }
.tc-age-gate__input {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    width: 200px;
    text-align: center;
}
.tc-age-gate__check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; cursor: pointer; }
.tc-age-gate__check-label input { width: 18px; height: 18px; accent-color: #16a34a; }

/* ────────────────────────────────────────
   Divider + Meta — ShopNest: <hr> my-4, font-14, fw-semibold labels
   ──────────────────────────────────────── */
.tc-pdp__divider {
    border: none;
    border-top: 1px solid rgba(14,17,21,.2);
    margin: 24px 0;
}
.tc-pdp__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-pdp__meta-row {
    font-size: 14px;
    color: var(--tc-text);
    margin: 0;
}
.tc-pdp__meta-row strong {
    font-weight: 600;
}
.tc-pdp__meta a {
    color: var(--tc-text-muted);
    text-decoration: none;
}
.tc-pdp__meta a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════════
   PDP TABS — ShopNest: pill nav centered, bordered content
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-pdp__tabs {
    margin: 40px 0 48px;
}
.tc-pdp__tab-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    /* S274: was `overflow-x: auto`, which forced overflow-y to compute to `auto`
       and clipped the pill buttons. flex-wrap already handles many tabs. */
    overflow: visible;
}
.tc-pdp__tab-btn {
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text);
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    font-family: var(--tc-font);
}
.tc-pdp__tab-btn:hover { border-color: #0e1115; }
.tc-pdp__tab-btn--active {
    color: #fff;
    background: #0e1115;
    border-color: #0e1115;
}
@media (max-width: 600px) {
    .tc-pdp__tab-nav { gap: 8px; margin-bottom: 18px; }
    .tc-pdp__tab-btn { padding: 8px 18px; font-size: 13px; }
    .tc-pdp__tab-content { padding: 18px; }
}
.tc-pdp__tab-content {
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 24px;
}
.tc-pdp__tab-panel { display: none; }
.tc-pdp__tab-panel--active {
    display: block;
    animation: tc-fadeIn .2s ease;
}
@keyframes tc-fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section headings — hidden in tab mode, visible in stacked mode */
.tc-pdp__section-heading { display: none; }
.tc-pdp__tabs--stacked .tc-pdp__tab-nav { display: none !important; }
.tc-pdp__tabs--stacked .tc-pdp__tab-content { border: none; padding: 0; }
.tc-pdp__tabs--stacked .tc-pdp__tab-panel {
    display: block !important;
    padding: 24px;
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    margin-bottom: 24px;
}
.tc-pdp__tabs--stacked .tc-pdp__section-heading {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--tc-text);
}
/* Option modifier hint */
.tc-product-option__mod {
    color: #737373;
    font-size: 12px;
    margin-left: 4px;
}

/* Description tab */
.tc-pdp__tab-panel[data-panel="description"] {
    font-size: 14px;
    color: #4e5562;
    line-height: 1.8;
}
.tc-pdp__tab-panel[data-panel="description"] p { margin: 0 0 12px; }
.tc-pdp__tab-panel[data-panel="description"] h5,
.tc-pdp__tab-panel[data-panel="description"] h6 { color: var(--tc-text); margin: 20px 0 8px; }
.tc-pdp__tab-panel[data-panel="description"] ul { padding-left: 20px; margin: 8px 0 16px; }
.tc-pdp__tab-panel[data-panel="description"] li { color: #4e5562; margin-bottom: 4px; }

/* Reviews in tab */
.tc-pdp__reviews .tc-reviews__summary { margin-bottom: 32px; }
.tc-review__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e3e4e5;
    color: var(--tc-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    flex-shrink: 0;
}
.tc-review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.tc-review__meta { display: flex; align-items: center; gap: 12px; }
.tc-review__author { font-size: 14px; display: block; }
.tc-review__date { font-size: 13px; display: block; }
.tc-review__content { font-size: 14px; color: #4e5562; line-height: 1.7; }

/* Sizing chart */
.tc-pdp__sizing-notes {
    font-size: 14px; color: #4e5562; line-height: 1.7; margin-bottom: 12px;
    padding: 12px 16px; background: var(--tc-bg-subtle); border-radius: 8px; border: 1px solid var(--tc-border);
}
.tc-pdp__sizing-unit { font-size: 12px; color: var(--tc-text-muted); margin-bottom: 12px; }
.tc-pdp__sizing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tc-pdp__sizing-table th, .tc-pdp__sizing-table td { padding: 10px 14px; text-align: center; border: 1px solid var(--tc-border); }
.tc-pdp__sizing-table th { background: var(--tc-bg-subtle); font-weight: 600; }
.tc-pdp__sizing-table tbody tr:hover { background: var(--tc-bg-hover); }

/* ── Shared features table ── */
.tc-features-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-features-table th, .tc-features-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--tc-border); }
.tc-features-table th { font-weight: 500; color: var(--tc-text-muted); width: 35%; background: var(--tc-bg-subtle); }
.tc-features-table td { color: var(--tc-text); }
.tc-features-table tbody tr:hover { background: var(--tc-bg-hover); }

/* ══════════════════════════════════════════════════════════════════════════════
   PDP — BUNDLES WIDGET ("Buy Together" — S126)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-pdp__bundles {
    margin-bottom: 40px;
    /* No padding-top — the Tabs section above already has margin: 40px 0 48px,
       which gives ~48px of breathing room before the bundle title. Adding
       another 40px on top stacked to ~88px which read as too airy. */
}
.tc-pdp__bundle + .tc-pdp__bundle { margin-top: 32px; }

.tc-pdp__bundle-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tc-text);
}
.tc-pdp__bundle-desc {
    margin: 0 0 16px;
    color: var(--tc-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.tc-pdp__bundle-card {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0;
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 20px 24px;
    background: #fff;
}

/* ── Horizontal product strip ──────────────────────────────────────────── */
.tc-pdp__bundle-strip {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.tc-pdp__bundle-plus {
    align-self: center;
    font-size: 28px;
    font-weight: 300;
    color: var(--tc-text-muted);
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    /* Vertically centered on the row's full content height (thumb + name + price).
       Previously had a hardcoded margin-top to push it onto the thumb's vertical
       center, but that assumed square thumbs. For ratio-aware thumbs (square /
       tall / any future ratio), natural flex centering is the robust choice. */
}

.tc-pdp__bundle-item {
    flex: 1 1 140px;
    min-width: 130px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.tc-pdp__bundle-item--self .tc-pdp__bundle-thumb {
    box-shadow: 0 0 0 2px var(--tc-accent, #f97316);
}

.tc-pdp__bundle-thumb {
    display: block;
    width: 100%;
    aspect-ratio: var(--tc-img-ratio, 3/4);
    background: var(--tc-bg-subtle, #f5f5f5);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: opacity .15s;
}
.tc-pdp__bundle-thumb:hover { opacity: .85; }
.tc-pdp__bundle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
}
.tc-pdp__bundle-thumb-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 49%, var(--tc-border) 49%, var(--tc-border) 51%, transparent 51%),
        linear-gradient(45deg,  transparent 49%, var(--tc-border) 49%, var(--tc-border) 51%, transparent 51%),
        var(--tc-bg-subtle, #f5f5f5);
}

.tc-pdp__bundle-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tc-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-pdp__bundle-name:hover { color: var(--tc-accent, #f97316); }

.tc-pdp__bundle-qty {
    font-size: 11px;
    color: var(--tc-text-muted);
    font-weight: 500;
}

.tc-pdp__bundle-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.tc-pdp__bundle-price-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-text);
}
.tc-pdp__bundle-price-was {
    font-size: 12px;
    color: var(--tc-text-muted);
    text-decoration: line-through;
}

/* ── Right-side summary panel ──────────────────────────────────────────── */
.tc-pdp__bundle-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 24px;
    border-left: 1px solid var(--tc-border);
    align-self: stretch;
    justify-content: center;
}
.tc-pdp__bundle-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-text);
    margin-bottom: 2px;
}
.tc-pdp__bundle-summary-discount {
    font-size: 13px;
    color: var(--tc-accent, #f97316);
    font-weight: 500;
    margin-bottom: 4px;
}
.tc-pdp__bundle-summary-was {
    font-size: 13px;
    color: var(--tc-text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}
.tc-pdp__bundle-summary-total {
    font-size: 22px;
    font-weight: 700;
    color: var(--tc-text);
    line-height: 1.2;
    margin-bottom: 12px;
}
.tc-pdp__bundle-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--tc-accent, #f97316);
    background: #fff;
    color: var(--tc-accent, #f97316);
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    line-height: 1;
}
.tc-pdp__bundle-btn:hover {
    background: var(--tc-accent, #f97316);
    color: #fff;
}
.tc-pdp__bundle-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.tc-pdp__bundle-btn.tc-btn--added {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

/* ── Mobile: stack the strip and the summary ───────────────────────────── */
@media (max-width: 900px) {
    .tc-pdp__bundle-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .tc-pdp__bundle-summary {
        padding-left: 0;
        padding-top: 16px;
        margin-top: 16px;
        border-left: none;
        border-top: 1px solid var(--tc-border);
    }
}
@media (max-width: 600px) {
    .tc-pdp__bundle-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .tc-pdp__bundle-item {
        flex-direction: row;
        max-width: none;
        text-align: left;
        gap: 12px;
        align-items: center;
    }
    .tc-pdp__bundle-thumb {
        flex: 0 0 80px;
        width: 80px;
        height: auto;
        aspect-ratio: var(--tc-img-ratio, 3/4);
    }
    .tc-pdp__bundle-name {
        -webkit-line-clamp: 3;
        flex: 1 1 auto;
        /* min-width: 0 lets line-clamp / text-overflow actually work in a flex item.
           Default flex min-width is 'auto' = min-content, which prevents shrink and
           pushes siblings (like the price) off the row. See pattern doc S128. */
        min-width: 0;
    }
    .tc-pdp__bundle-price {
        justify-content: flex-start;
        flex: 0 0 auto;
    }
    .tc-pdp__bundle-plus {
        margin: 0;
        align-self: center;
        font-size: 18px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PDP — RECOMMENDED PRODUCTS CAROUSEL
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-pdp__related { padding-top: 40px; border-top: 1px solid var(--tc-border); }
.tc-pdp__related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.tc-pdp__related-title { font-size: 22px; font-weight: 700; margin: 0; }

/* Carousel nav arrows — ShopNest style: 40px circle, bordered */
.tc-carousel__nav {
    display: flex;
    gap: 12px;
}
.tc-carousel__arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--tc-border);
    color: #0d0c0c;
    cursor: pointer;
    transition: all .15s;
}
.tc-carousel__arrow:hover {
    border-color: #0e1115;
    background: #0e1115;
    color: #fff;
}

/* Carousel container — horizontal scroll, no scrollbar */
.tc-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tc-carousel::-webkit-scrollbar { display: none; }

.tc-carousel__track {
    display: flex;
    gap: 24px;
}
.tc-carousel__slide {
    flex: 0 0 calc(25% - 18px);
    min-width: 220px;
}
@media (max-width: 1200px) {
    .tc-carousel__slide { flex: 0 0 calc(33.333% - 16px); }
}
@media (max-width: 768px) {
    .tc-carousel__slide { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 480px) {
    .tc-carousel__slide { flex: 0 0 80%; min-width: 0; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   PRODUCT OPTIONS
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-product-option {
    margin-bottom: 24px;
}
.tc-product-option__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
.tc-product-option__required {
    color: var(--tc-error);
    margin-left: 2px;
}
.tc-product-option__select {
    max-width: 300px;
}
.tc-product-option__radios,
.tc-product-option__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-product-option__radio-label,
.tc-product-option__checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 0;
}
.tc-product-option__input {
    max-width: 300px;
}
.tc-product-option__textarea {
    max-width: 400px;
}
.tc-product-option__file {
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   REVIEWS
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-reviews__heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
}
.tc-reviews__summary {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tc-border);
}
@media (max-width: 600px) {
    .tc-reviews__summary { flex-direction: column; gap: 16px; }
}
.tc-reviews__summary-score {
    text-align: center;
    min-width: 120px;
}
.tc-reviews__avg {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    display: block;
    color: var(--tc-text);
}
.tc-reviews__count {
    font-size: 13px;
    display: block;
    margin-top: 4px;
}
.tc-reviews__summary-bars {
    flex: 1;
    max-width: 400px;
}
.tc-reviews__bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.tc-reviews__bar-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--tc-text-muted);
    min-width: 40px;
}
.tc-reviews__bar-track {
    flex: 1;
    height: 8px;
    background: #F0F0F0;
    border-radius: 4px;
    overflow: hidden;
}
.tc-reviews__bar-fill {
    height: 100%;
    background: #FBBF24;
    border-radius: 4px;
    transition: width .3s ease;
}
.tc-reviews__bar-count {
    font-size: 12px;
    min-width: 24px;
    text-align: right;
}

/* Stars */
.tc-stars {
    color: #FBBF24;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Single review */
.tc-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tc-review {
    padding: 20px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    background: var(--tc-bg);
}
.tc-review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.tc-review__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tc-review__author {
    font-size: 14px;
    font-weight: 600;
}
.tc-review__date {
    font-size: 12px;
}
.tc-review__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
}
.tc-review__content {
    font-size: 14px;
    line-height: 1.6;
    color: #404040;
}

/* Review toolbar */
.tc-reviews__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Star picker (review form) */
.tc-star-picker {
    display: flex;
    gap: 4px;
}
.tc-star-picker__star {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 24px;
    color: #D4D4D4;
    transition: color .15s;
}
.tc-star-picker__star.active,
.tc-star-picker__star:hover {
    color: #FBBF24;
}
.tc-star-picker__icon {
    pointer-events: none;
}
.tc-star-picker__label {
    font-size: 12px;
    margin-top: 4px;
}

/* Review form */
.tc-review-form-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--tc-border);
}
.tc-review-form__heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
}
.tc-review-form__fieldset {
    border: none;
    padding: 0;
    margin: 0 0 16px;
}
.tc-review-form__legend {
    padding: 0;
    margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TESTIMONIALS — Storefront page rendered via [titancart_testimonials]
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-testimonials__header {
    text-align: center;
    margin-bottom: 32px;
}
.tc-testimonials__title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 8px;
    color: var(--tc-text);
}
.tc-testimonials__sub {
    font-size: 15px;
    color: var(--tc-text-muted);
    margin: 0;
}

.tc-testimonials__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--tc-text-muted);
    font-size: 16px;
    background: var(--tc-bg-subtle);
    border: 1px dashed var(--tc-border);
    border-radius: var(--tc-radius-lg);
}
.tc-testimonials__empty p { margin: 0; }

.tc-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .tc-testimonials__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .tc-testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
}

.tc-testimonials__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    background: var(--tc-bg);
    box-shadow: var(--tc-shadow-sm);
    transition: box-shadow var(--tc-transition), transform var(--tc-transition);
}
.tc-testimonials__card:hover {
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
}

.tc-testimonials__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tc-testimonials__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}
.tc-testimonials__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tc-testimonials__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text);
    line-height: 1.3;
}
.tc-testimonials__date {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}

.tc-testimonials__rating {
    line-height: 1;
}
.tc-testimonials__rating .tc-stars {
    font-size: 15px;
}

.tc-testimonials__card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--tc-text);
    line-height: 1.4;
}

.tc-testimonials__body {
    font-size: 14px;
    line-height: 1.6;
    color: #404040;
    margin: 0;
    /* Soft truncation for visual rhythm — full text remains accessible */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-testimonials__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.tc-testimonials__pageinfo {
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CART
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-cart__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 24px;
}
.tc-cart__empty {
    text-align: center;
    padding: 64px 24px;
}
.tc-cart__empty p {
    font-size: 16px;
    color: var(--tc-text-muted);
    margin: 0 0 16px;
}

.tc-cart__table {
    width: 100%;
    border-collapse: collapse;
}
.tc-cart__table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--tc-text-muted);
    background: var(--tc-bg-subtle);
    border-bottom: 2px solid var(--tc-border);
    text-align: left;
}
.tc-cart__table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--tc-border);
    vertical-align: middle;
    font-size: 14px;
}

/* Cart item image */
.tc-cart-item__image {
    width: 72px;
    height: 72px;
    border-radius: var(--tc-radius);
    object-fit: cover;
    border: 1px solid var(--tc-border);
}
.tc-cart-item__name {
    font-weight: 500;
}
.tc-cart-item__options {
    font-size: 12px;
    color: var(--tc-text-muted);
    margin-top: 4px;
}
.tc-cart-item__remove {
    background: transparent;
    border: none;
    color: var(--tc-text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: color var(--tc-transition);
}
.tc-cart-item__remove:hover {
    color: var(--tc-error);
}

/* Cart totals */
.tc-cart-totals {
    max-width: 400px;
    margin-left: auto;
    margin-top: 24px;
    padding: 24px;
    background: var(--tc-bg-subtle);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
}
.tc-cart-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--tc-border);
}
.tc-cart-totals__row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    padding-top: 12px;
}
.tc-cart-totals__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .tc-cart__table thead { display: none; }
    .tc-cart__table,
    .tc-cart__table tbody,
    .tc-cart__table tr,
    .tc-cart__table td {
        display: block;
    }
    .tc-cart__table tr {
        padding: 16px 0;
        border-bottom: 1px solid var(--tc-border);
    }
    .tc-cart__table td {
        padding: 4px 0;
        border: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHECKOUT — Styles moved to separate checkout.css (loaded on checkout page only)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   ACCOUNT
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-account-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .tc-account-dashboard { grid-template-columns: 1fr; }
}
.tc-account__sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tc-account__nav-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--tc-text);
    text-decoration: none;
    border-radius: var(--tc-radius-sm);
    transition: background var(--tc-transition);
}
.tc-account__nav-link:hover {
    background: var(--tc-bg-hover);
}
.tc-account__nav-link--active {
    background: var(--tc-bg-hover);
    font-weight: 600;
    color: var(--tc-accent);
}
.tc-account__content {
    min-width: 0;
}
.tc-account__heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   WISHLIST
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-wishlist__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 24px;
}
.tc-wishlist__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tc-gap);
}
@media (max-width: 1024px) {
    .tc-wishlist__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .tc-wishlist__grid { grid-template-columns: repeat(2, 1fr); }
}
.tc-wishlist__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--tc-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOADING / SPINNER
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--tc-border);
    border-top-color: var(--tc-accent);
    border-radius: 50%;
    animation: tc-spin .6s linear infinite;
}
@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.tc-text-center { text-align: center; }
.tc-mt-1 { margin-top: 8px; }
.tc-mt-2 { margin-top: 16px; }
.tc-mt-3 { margin-top: 24px; }
.tc-mb-1 { margin-bottom: 8px; }
.tc-mb-2 { margin-bottom: 16px; }
.tc-mb-3 { margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tc-breadcrumb a {
    color: var(--tc-text);
    text-decoration: none;
    transition: color .15s;
}
.tc-breadcrumb a:hover { color: var(--tc-accent); }
.tc-breadcrumb__current { color: #b0b0b0; }
.tc-breadcrumb .bi-chevron-right { font-size: 10px; color: #b0b0b0; }

/* ══════════════════════════════════════════════════════════════════════════════
   SHOP TOOLBAR (legacy, kept for shop.js compat)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-shop__toolbar-left,
.tc-shop__toolbar-right { display: contents; }
.tc-shop__filter-btn { display: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER CHIPS + CARDS (active filters — ShopNest style)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-shop__active-filters,
.tc-filter-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 400;
    background: transparent;
    border: 1px solid var(--tc-border);
    border-radius: 50px;
    color: var(--tc-text);
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--tc-font);
}
.tc-chip:hover { border-color: #0e1115; }
.tc-chip .bi-x-lg { font-size: 10px; margin-left: 2px; }
.tc-chip--color .bi-circle-fill { font-size: 10px; }

/* Filter card (ShopNest: bordered rounded card per section) */
.tc-filter-card {
    border: 1px solid var(--tc-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}
.tc-filter-card:last-child { margin-bottom: 0; }
.tc-filter-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.tc-filter-card__header h5,
.tc-filter-card__header h6 { font-size: 16px; font-weight: 600; margin: 0; }
.tc-filter-card__clear {
    font-size: 14px;
    color: var(--tc-text-muted);
    text-decoration: underline;
}
.tc-chip__remove {
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    font-size: 14px;
    line-height: 1;
    color: var(--tc-text-muted);
    cursor: pointer;
    transition: color var(--tc-transition);
}
.tc-chip__remove:hover {
    color: var(--tc-error);
}
.tc-chip--clear {
    background: transparent;
    border-color: var(--tc-error);
    color: var(--tc-error);
    cursor: pointer;
    font-weight: 600;
}
.tc-chip--clear:hover {
    background: var(--tc-error);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   OFFCANVAS FILTER PANEL
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity .25s ease;
}
.tc-offcanvas-overlay:not([hidden]) {
    opacity: 1;
}

.tc-offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--tc-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.tc-offcanvas--open {
    transform: translateX(0);
}

.tc-offcanvas__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tc-border);
    flex-shrink: 0;
}
.tc-offcanvas__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--tc-text);
}
.tc-offcanvas__close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--tc-text-muted);
    transition: color var(--tc-transition);
    display: flex;
}
.tc-offcanvas__close:hover {
    color: var(--tc-text);
}

.tc-offcanvas__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.tc-offcanvas__footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--tc-border);
    flex-shrink: 0;
}
.tc-offcanvas__footer .tc-btn {
    flex: 1;
}

.tc-offcanvas__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER SECTIONS (inside offcanvas)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tc-border);
}
.tc-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.tc-filter-section__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text);
    margin: 0 0 12px;
}

/* Price range inputs */
.tc-filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-filter-range .tc-input--sm {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
}
.tc-filter-range__sep {
    color: var(--tc-text-muted);
    flex-shrink: 0;
}

/* Checkbox filters */
.tc-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    cursor: pointer;
    transition: color var(--tc-transition);
}
.tc-filter-check:hover {
    color: var(--tc-accent);
}
.tc-filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--tc-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.tc-filter-check__label {
    flex: 1;
}
.tc-filter-check__count {
    color: var(--tc-text-muted);
    font-size: 12px;
    flex-shrink: 0;
}
.tc-filter-color-check__count {
    color: var(--tc-text-muted);
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SHOP LOADING OVERLAY
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-shop__loading {
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.7);
    z-index: 100;
    display: none;
}
.tc-shop__loading:not([hidden]) {
    display: flex;
}
.tc-spinner--lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

/* (Old tc-product-card hover styles removed — now using tc-pcard) */

/* ══════════════════════════════════════════════════════════════════════════════
   INPUT SMALL VARIANT
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-input--sm {
    padding: 8px 10px;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — COLOR SWATCHES
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tc-filter-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--tc-radius);
    cursor: pointer;
    transition: border-color var(--tc-transition);
    min-width: 48px;
}
.tc-filter-swatch:hover {
    border-color: var(--tc-border);
}
.tc-filter-swatch--active {
    border-color: var(--tc-accent);
}
.tc-filter-swatch__color {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--tc-border);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
    transition: transform var(--tc-transition), box-shadow var(--tc-transition);
}
.tc-filter-swatch:hover .tc-filter-swatch__color {
    transform: scale(1.1);
}
.tc-filter-swatch--active .tc-filter-swatch__color {
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.2), inset 0 0 0 1px rgba(0,0,0,.06);
}
.tc-filter-swatch__label {
    font-size: 10px;
    color: var(--tc-text-muted);
    text-align: center;
    line-height: 1.2;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-filter-swatch--active .tc-filter-swatch__label {
    color: var(--tc-accent);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — SLIDER (dual range)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-slider {
    padding: 4px 0;
}
.tc-filter-slider__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.tc-filter-slider__val {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-text);
}
.tc-filter-slider__track {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}
.tc-filter-slider__input {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    height: 6px;
}
.tc-filter-slider__input::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--tc-border);
    border-radius: 3px;
}
.tc-filter-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tc-accent);
    border: 3px solid #fff;
    box-shadow: var(--tc-shadow);
    cursor: pointer;
    margin-top: -7px;
    position: relative;
    z-index: 1;
}
.tc-filter-slider__input::-moz-range-track {
    height: 6px;
    background: var(--tc-border);
    border-radius: 3px;
    border: none;
}
.tc-filter-slider__input::-moz-range-thumb {
    pointer-events: all;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tc-accent);
    border: 3px solid #fff;
    box-shadow: var(--tc-shadow);
    cursor: pointer;
}
.tc-filter-slider__input:first-child {
    z-index: 2;
}
.tc-filter-slider__input:last-child {
    z-index: 3;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — CARD TITLE (shared)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--tc-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    user-select: none;
}
.tc-filter-card--open > .tc-filter-card__title {
    padding-bottom: 14px;
}
.tc-filter-card__title:hover {
    color: var(--tc-accent, #2563EB);
}
.tc-filter-card__chevron {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .2s ease;
    flex-shrink: 0;
    opacity: .5;
}
.tc-filter-card--open > .tc-filter-card__title > .tc-filter-card__chevron {
    transform: rotate(45deg);
}
.tc-filter-card__body {
    /* shown/hidden via JS display toggle */
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — CATEGORY LIST (ShopNest style)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-catlist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tc-filter-catlist__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--tc-text);
    text-decoration: none;
    transition: color var(--tc-transition);
    border-bottom: none;
}
.tc-filter-catlist__item:hover {
    color: var(--tc-accent);
}
.tc-filter-catlist__item--active {
    color: var(--tc-accent);
    font-weight: 600;
}
.tc-filter-catlist__name {
    flex: 1;
}
.tc-filter-catlist__count {
    color: var(--tc-text-muted);
    font-size: 13px;
    font-weight: 400;
    min-width: 28px;
    text-align: right;
}
.tc-filter-catlist__item--active .tc-filter-catlist__count {
    color: var(--tc-accent);
}

/* ── Subcategory tree (collapsible children) ── */
.tc-filter-catlist__group {
    /* wrapper for each category row + its children */
}
.tc-filter-catlist__row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tc-filter-catlist__row .tc-filter-catlist__item {
    flex: 1;
    min-width: 0;
}
.tc-filter-catlist__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.tc-filter-catlist__toggle:hover {
    background: var(--tc-bg-muted, rgba(0,0,0,0.04));
}
.tc-filter-catlist__toggle::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--tc-text-muted, #71797E);
    border-bottom: 1.5px solid var(--tc-text-muted, #71797E);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}
.tc-filter-catlist__toggle--open::after {
    transform: rotate(45deg);
}
.tc-filter-catlist__toggle-spacer {
    width: 20px;
    flex-shrink: 0;
}
.tc-filter-catlist__children {
    /* animated reveal could be added later */
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — COLOR CHECKBOXES (ShopNest style — colored circle input + label)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-colors {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tc-filter-color-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--tc-text);
    transition: color var(--tc-transition);
}
.tc-filter-color-check:hover {
    color: var(--tc-accent);
}
.tc-filter-color-check__input {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--tc-border);
    background: var(--swatch-color, #ccc);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tc-filter-color-check__input:checked {
    border-color: var(--tc-text);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tc-text);
}
.tc-filter-color-check__input:hover {
    border-color: var(--tc-text-muted);
}
.tc-filter-color-check__label {
    flex: 1;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FILTER — SIZE PILLS (ShopNest style — outline dark buttons)
   ══════════════════════════════════════════════════════════════════════════════ */
.tc-filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tc-filter-size-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: linear-gradient(to bottom, #ffffff, #f5f5f5);
    color: var(--tc-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tc-filter-size-pill:hover {
    border-color: #a3a3a3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 3px 6px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}
.tc-filter-size-pill--active {
    background: linear-gradient(to bottom, #2a2a2a, #171717);
    color: #fff;
    border-color: #0a0a0a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}
.tc-filter-size-pill--active:hover {
    background: linear-gradient(to bottom, #333, #1a1a1a);
    border-color: #111;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CART DRAWER — Offcanvas slide-out panel (ShopNest style)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Overlay */
.tc-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background .3s ease;
}
.tc-drawer-overlay--active {
    background: rgba(0, 0, 0, .45);
    pointer-events: auto;
}

/* Panel */
.tc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.tc-drawer--open {
    transform: translateX(0);
}

/* Header */
.tc-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.tc-drawer__title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.2px;
    margin: 0;
    color: #111;
}
.tc-drawer__count {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}
.tc-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    transition: all .15s;
}
.tc-drawer__close:hover {
    background: #f5f5f5;
    color: #111;
}

/* Body — scrollable item list */
.tc-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.tc-drawer__body::-webkit-scrollbar {
    width: 4px;
}
.tc-drawer__body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Empty state */
.tc-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.tc-drawer__empty p {
    margin: 16px 0 8px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
}
.tc-drawer__shop-link {
    font-size: 13px;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tc-drawer__shop-link:hover {
    color: #000;
}

/* Cart item row */
.tc-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.tc-drawer-item:last-child {
    border-bottom: none;
}

/* Thumbnail */
.tc-drawer-item__img-wrap {
    width: 80px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
}
.tc-drawer-item__img {
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
}
.tc-drawer-item__img-placeholder {
    width: 100%;
    background: #eee;
}

/* Info */
.tc-drawer-item__info {
    flex: 1;
    min-width: 0;
}
.tc-drawer-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-drawer-item__options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
.tc-drawer-item__opt {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}
.tc-drawer-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tc-drawer-item__price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.tc-drawer-item__qty {
    font-size: 13px;
    color: #888;
}

/* Remove button */
.tc-drawer-item__remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #bbb;
    flex-shrink: 0;
    display: flex;
    transition: all .15s;
    margin-top: 4px;
}
.tc-drawer-item__remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Footer — subtotal + buttons */
.tc-drawer__footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.tc-drawer__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: #111;
}
.tc-drawer__subtotal strong {
    font-size: 18px;
    font-weight: 700;
}
.tc-drawer__actions {
    display: flex;
    gap: 10px;
}
.tc-drawer__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}
.tc-drawer__btn--outline {
    background: #fff;
    color: #111;
    border: 1.5px solid #ddd;
}
.tc-drawer__btn--outline:hover {
    border-color: #111;
    background: #fafafa;
}
.tc-drawer__btn--primary {
    background: #111;
    color: #fff;
    border: 1.5px solid #111;
}
.tc-drawer__btn--primary:hover {
    background: #333;
    border-color: #333;
}

/* ── Added to cart button flash ─────────────────────── */
.tc-btn--added {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
    pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .tc-drawer {
        width: 100vw;
        max-width: 100vw;
    }
    .tc-drawer__header { padding: 16px 18px; }
    .tc-drawer__body   { padding: 12px 18px; }
    .tc-drawer__footer { padding: 16px 18px; }
    .tc-drawer-item__img-wrap {
        width: 64px;
    }
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   CART PAGE — Full shopping cart (ShopNest style)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Box-sizing + float reset */
#tc-cart,
#tc-cart *,
#tc-cart *::before,
#tc-cart *::after {
    box-sizing: border-box !important;
    float: none !important;
}

/* Full-bleed: break out of ANY constrained parent */
#tc-cart {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 max(24px, calc((100vw - 1152px) / 2)) !important;
}

/* Shared container */
.tc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page header banner */
.tc-cartpage__header {
    background: var(--tc-lightBg, #f9fafb);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}
.tc-cartpage__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin: 0 0 8px;
    color: var(--tc-text, #111);
}

.tc-cartpage__content {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Two-column grid */
.tc-cartpage__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1024px) {
    .tc-cartpage__grid {
        grid-template-columns: 1fr;
    }
}

/* Items header */
.tc-cartpage__items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tc-cartpage__items-count {
    font-size: 15px;
    font-weight: 500;
    color: var(--tc-text, #111);
}
.tc-cartpage__continue-link {
    font-size: 13px;
    color: var(--tc-muted, #666);
    text-decoration: none;
}
.tc-cartpage__continue-link:hover {
    color: var(--tc-text, #111);
}

/* Cart item row — clean grid layout */
.tc-cartpage__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--tc-border, #eee);
}
.tc-cartpage__item:first-child {
    padding-top: 0;
}

/* Thumbnail */
.tc-cartpage__item-img-link {
    flex-shrink: 0;
}
.tc-cartpage__item-img {
    width: 80px;
    object-fit: cover;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-cartpage__item-img--placeholder {
    background: #f0f0f0;
}

/* Info column — name, price, options, sku, remove link */
.tc-cartpage__item-info {
    min-width: 0;
}
.tc-cartpage__item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tc-text, #111);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: 2px;
}
.tc-cartpage__item-name:hover {
    text-decoration: underline;
}
.tc-cartpage__item-unit-price {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    display: block;
    margin-bottom: 6px;
}
.tc-cartpage__item-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}
.tc-cartpage__item-opt {
    font-size: 11px;
    color: #777;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}
.tc-cartpage__item-sku {
    font-size: 11px;
    color: #aaa;
    display: block;
    margin-bottom: 6px;
}
.tc-cartpage__item-remove-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
    margin-top: 4px;
}
.tc-cartpage__item-remove-link:hover {
    color: #dc2626;
}

/* Quantity — aligned in row */
.tc-cartpage__item-qty {
    align-self: center;
}

/* Quantity spinner */
.tc-cartpage__qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--tc-border, #ddd);
    border-radius: 8px;
    overflow: hidden;
}
.tc-cartpage__qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--tc-text, #111);
    transition: background .15s;
}
.tc-cartpage__qty-btn:hover {
    background: #f0f0f0;
}
.tc-cartpage__qty-input {
    width: 44px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--tc-text, #111);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}
.tc-cartpage__qty-input::-webkit-outer-spin-button,
.tc-cartpage__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tc-cartpage__qty-select {
    height: 40px;
    min-width: 80px;
    border: 1px solid var(--tc-border);
    border-radius: 8px;
    padding: 0 28px 0 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--tc-font);
    color: var(--tc-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.tc-cartpage__qty-select:focus { border-color: var(--tc-accent, #2563eb); outline: none; }

/* Line total — right aligned in grid */
.tc-cartpage__item-total {
    align-self: center;
    text-align: right;
    min-width: 80px;
}
.tc-cart__line-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-text, #111);
}

/* Mobile: cart items stack */
@media (max-width: 600px) {
    .tc-cartpage__item {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    .tc-cartpage__item-qty {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .tc-cartpage__item-qty::before {
        content: 'Qty';
        font-size: 12px;
        color: #999;
        font-weight: 500;
    }
    .tc-cartpage__item-total {
        grid-column: 1 / -1;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .tc-cartpage__item-total::before {
        content: 'Total';
        font-size: 12px;
        color: #999;
        font-weight: 500;
    }
    .tc-cartpage__item-img {
        width: 70px;
    }
}

/* ── Sidebar cards ── */

.tc-cartpage__summary-card,
.tc-cartpage__promo-card,
.tc-cartpage__notes-card {
    background: var(--tc-lightBg, #f9fafb);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.tc-cartpage__summary-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--tc-text, #111);
}

.tc-cartpage__summary-rows {
    border-bottom: 1px solid var(--tc-border, #e5e5e5);
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.tc-cartpage__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--tc-text, #444);
    margin-bottom: 10px;
}
.tc-cartpage__summary-row:last-child { margin-bottom: 0; }
.tc-cartpage__summary-row em {
    font-style: italic;
    color: #999;
    font-size: 13px;
}
.tc-cartpage__discount {
    color: #dc2626;
    font-weight: 500;
}

.tc-cartpage__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--tc-text, #111);
    margin-bottom: 20px;
}
.tc-cartpage__summary-total strong {
    font-size: 20px;
}

.tc-cartpage__checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.tc-cartpage__checkout-btn:hover {
    background: #333;
    color: #fff;
}

/* Promo code */
.tc-cartpage__promo-label {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--tc-text, #111);
}
.tc-cartpage__promo-label i {
    margin-right: 6px;
}
.tc-cartpage__promo-row {
    display: flex;
    gap: 8px;
}
.tc-cartpage__promo-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--tc-border, #ddd);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: var(--tc-text, #111);
}
.tc-cartpage__promo-input:focus {
    border-color: #111;
}
.tc-cartpage__promo-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.tc-cartpage__promo-btn:hover {
    background: #333;
}

/* Notes */
.tc-cartpage__notes-label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--tc-text, #111);
}
.tc-cartpage__notes-label small {
    font-weight: 400;
    color: #999;
}
.tc-cartpage__notes-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--tc-border, #ddd);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    background: #fff;
    color: var(--tc-text, #111);
}
.tc-cartpage__notes-input:focus {
    border-color: #111;
}

/* Empty state */
.tc-cartpage__empty {
    text-align: center;
    padding: 80px 20px;
}
.tc-cartpage__empty svg {
    margin-bottom: 20px;
}
.tc-cartpage__empty h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--tc-text, #111);
}
.tc-cartpage__empty p {
    font-size: 15px;
    color: #888;
    margin: 0 0 24px;
}
.tc-cartpage__empty-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}
.tc-cartpage__empty-btn:hover {
    background: #333;
    color: #fff;
}

/* Messages */
.tc-cart__msg {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    margin-top: 8px;
}
.tc-cart__msg--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.tc-cart__msg--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Mobile: stack items vertically */
@media (max-width: 768px) {
    .tc-cartpage__item {
        flex-wrap: wrap;
        gap: 12px;
    }
    .tc-cartpage__item-info {
        flex-basis: calc(100% - 110px);
    }
    .tc-cartpage__item-price,
    .tc-cartpage__item-qty,
    .tc-cartpage__item-total {
        text-align: left;
    }
    .tc-cartpage__item-price-label,
    .tc-cartpage__item-qty-label,
    .tc-cartpage__item-total-label {
        display: block;
    }
    .tc-cartpage__item-price { width: auto; }
    .tc-cartpage__item-total { width: auto; }
    .tc-cartpage__item-qty   { width: auto; }
}


/* (Checkout CSS moved to separate checkout.css — loaded only on /checkout/) */


/* ═══════════════════════════════════════════════════════════════════════════
   ORDER RECEIVED (THANK YOU) PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.tc-order-received,
.tc-order-received *,
.tc-order-received *::before,
.tc-order-received *::after {
    box-sizing: border-box;
}

.tc-order-received {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Success banner ────────────────────────────────────────────────── */
.tc-order-received__banner {
    text-align: center;
    padding: 44px 20px 32px;
}
.tc-order-received__check {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 2px solid #bbf7d0;
}
.tc-order-received__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin: 0 0 6px;
    color: var(--tct-text, #171717); /* S246 — was hardcoded #171717 (dark-on-dark in dark mode); the core theme flips --tct-text to #FAFAFA */
    line-height: 1.3;
}
.tc-order-received__subtitle {
    font-size: 14px;
    color: #737373;
    margin: 0;
    line-height: 1.5;
}

/* ── Details grid ──────────────────────────────────────────────────── */
.tc-order-received__details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 640px) {
    .tc-order-received__details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.tc-order-received__detail {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.tc-order-received__detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #a3a3a3;
    font-weight: 500;
    margin-bottom: 6px;
}
.tc-order-received__detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    word-break: break-word;
}
.tc-order-received__detail-value--total {
    font-size: 17px;
}
.tc-order-received__status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: .2px;
}

/* ── Shared card ───────────────────────────────────────────────────── */
.tc-order-received__card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.tc-order-received__card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #171717;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Items table ───────────────────────────────────────────────────── */
.tc-order-received__items-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tc-order-received__items-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 360px;
}
.tc-order-received__items-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #a3a3a3;
    font-weight: 500;
    padding: 0 0 10px;
    border-bottom: none;
}
.tc-ort__th-qty,
.tc-ort__th-total { text-align: right; }
.tc-ort__th-qty   { width: 60px; }
.tc-ort__th-total  { width: 100px; }

.tc-order-received__items-table tbody td {
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #f5f5f5;
    vertical-align: top;
}
.tc-ort__qty-val  { text-align: right; color: #737373; }
.tc-ort__total-val { text-align: right; font-weight: 500; }

.tc-ort__product-name {
    display: block;
    font-weight: 500;
    color: #171717;
}
.tc-ort__sku {
    display: block;
    font-size: 11px;
    color: #a3a3a3;
    margin-top: 2px;
}
.tc-ort__options {
    display: block;
    font-size: 12px;
    color: #737373;
    margin-top: 3px;
}

/* Footer rows */
.tc-order-received__items-table tfoot th {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: #737373;
    padding: 8px 0;
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0;
}
.tc-order-received__items-table tfoot td {
    text-align: right;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
    border-bottom: none;
}
.tc-order-received__items-table tfoot tr:first-child th,
.tc-order-received__items-table tfoot tr:first-child td {
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}
.tc-ort__grand-total th,
.tc-ort__grand-total td {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding-top: 12px !important;
    border-top: 1.5px solid #e5e5e5 !important;
    color: #171717 !important;
}

/* ── Addresses ─────────────────────────────────────────────────────── */
.tc-order-received__addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .tc-order-received__addresses {
        grid-template-columns: 1fr;
    }
}
.tc-order-received__addresses .tc-order-received__card {
    margin-bottom: 0;
}
.tc-order-received__addr-body {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: #525252;
}
.tc-order-received__addr-meta {
    color: #737373;
    font-size: 13px;
}

/* ── Guest registration ────────────────────────────────────────────── */
.tc-order-received__create-account {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}
.tc-order-received__reg-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.tc-order-received__reg-fields > div {
    flex: 1;
    min-width: 160px;
}
.tc-order-received__reg-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}
.tc-order-received__reg-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* ── Actions ───────────────────────────────────────────────────────── */
.tc-order-received__actions {
    text-align: center;
    padding-top: 8px;
}

/* ── Block theme overrides ─────────────────────────────────────────── */
body.titancart-order-received .entry-content,
body.titancart-order-received .wp-site-blocks > *:not(header):not(footer) {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Dark mode (S257 — KI-11) ──────────────────────────────────────────
   The tiles (__detail #fafafa), cards (__card #fff) and inner text/borders
   hardcode light values with no dark override, so they render white on a
   dark page. Mirror the core theme's dark palette (theme.css
   [data-theme="dark"]: bg-elevated #161620 / border #262626 /
   border-strong #404040 / text #FAFAFA / text-secondary #A3A3A3 / bg
   #0A0A0F). Dual html[data-theme] + [data-tcm-theme] selectors so the fix
   holds whichever attribute the storefront/marketplace boot sets (#224/#225);
   explicit values (not var(--tct-*)) so the [data-tcm-theme]-only branch is
   correct even when the core token block isn't flipped. */
html[data-theme="dark"] .tc-order-received__detail,
[data-tcm-theme="dark"] .tc-order-received__detail {
    background: #161620;
    border-color: #262626;
}
html[data-theme="dark"] .tc-order-received__detail-value,
[data-tcm-theme="dark"] .tc-order-received__detail-value {
    color: #FAFAFA;
}
html[data-theme="dark"] .tc-order-received__subtitle,
[data-tcm-theme="dark"] .tc-order-received__subtitle {
    color: #A3A3A3;
}
html[data-theme="dark"] .tc-order-received__check,
[data-tcm-theme="dark"] .tc-order-received__check {
    background: rgba(22,163,74,0.14);
    border-color: rgba(22,163,74,0.45);
}
html[data-theme="dark"] .tc-order-received__card,
[data-tcm-theme="dark"] .tc-order-received__card {
    background: #161620;
    border-color: #262626;
}
html[data-theme="dark"] .tc-order-received__card-title,
[data-tcm-theme="dark"] .tc-order-received__card-title {
    color: #FAFAFA;
    border-bottom-color: #262626;
}
html[data-theme="dark"] .tc-order-received__items-table tbody td,
[data-tcm-theme="dark"] .tc-order-received__items-table tbody td {
    color: #D4D4D4;
    border-top-color: #262626;
}
html[data-theme="dark"] .tc-ort__product-name,
[data-tcm-theme="dark"] .tc-ort__product-name {
    color: #FAFAFA;
}
html[data-theme="dark"] .tc-order-received__items-table tfoot td,
[data-tcm-theme="dark"] .tc-order-received__items-table tfoot td {
    color: #D4D4D4;
}
html[data-theme="dark"] .tc-order-received__items-table tfoot tr:first-child th,
html[data-theme="dark"] .tc-order-received__items-table tfoot tr:first-child td,
[data-tcm-theme="dark"] .tc-order-received__items-table tfoot tr:first-child th,
[data-tcm-theme="dark"] .tc-order-received__items-table tfoot tr:first-child td {
    border-top-color: #262626;
}
html[data-theme="dark"] .tc-ort__grand-total th,
html[data-theme="dark"] .tc-ort__grand-total td,
[data-tcm-theme="dark"] .tc-ort__grand-total th,
[data-tcm-theme="dark"] .tc-ort__grand-total td {
    color: #FAFAFA !important;
    border-top-color: #404040 !important;
}
html[data-theme="dark"] .tc-order-received__addr-body,
[data-tcm-theme="dark"] .tc-order-received__addr-body {
    color: #D4D4D4;
}
html[data-theme="dark"] .tc-order-received__addr-meta,
[data-tcm-theme="dark"] .tc-order-received__addr-meta {
    color: #A3A3A3;
}
html[data-theme="dark"] .tc-order-received__reg-label,
[data-tcm-theme="dark"] .tc-order-received__reg-label {
    color: #D4D4D4;
}
html[data-theme="dark"] .tc-order-received__reg-input,
[data-tcm-theme="dark"] .tc-order-received__reg-input {
    background: #0A0A0F;
    border-color: #404040;
    color: #FAFAFA;
}
html[data-theme="dark"] .tc-order-received__create-account,
[data-tcm-theme="dark"] .tc-order-received__create-account {
    background: rgba(37,99,235,0.12) !important;
    border-color: rgba(37,99,235,0.35) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GIFT CARDS PAGE — page-header support (S257 — KI-12)
   ═══════════════════════════════════════════════════════════════════════════
   The [titancart_gift_cards] shortcode renders inside the theme's page.php,
   which prints its own the_title() H1 + a width-constrained .container.
   purchase.php now emits its own storefront page header (the .tc-shop__banner
   hero on the TitanCart theme). So on the gift-cards page only (body class set
   by the gift-cards module): (1) suppress page.php's duplicate title — the direct
   child `article > h1`; the emitted banner's title is nested deeper so it is
   NOT matched — and (2) let the header span full width like the cart/shop hero
   by un-constraining the page.php container. Off-theme the markup differs so
   these selectors no-op (the .tc-gc-header fallback renders in-flow instead). */
body.titancart-gift-cards-page .main-content article > h1 {
    display: none !important;
}
body.titancart-gift-cards-page .main-content {
    padding-top: 0 !important;
}
body.titancart-gift-cards-page .main-content > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SEARCH RESULTS PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

.tc-search {
    max-width: var(--tc-container);
    margin: 0 auto;
    padding: 0 var(--tc-gap);
    color: var(--tc-text);
    line-height: 1.6;
}

/* Banner */
.tc-search__banner {
    text-align: center;
    padding: 40px 0 32px;
}
.tc-search__banner-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}
.tc-search__breadcrumb {
    font-size: 13px;
    color: #666;
}
.tc-search__breadcrumb a {
    color: #444;
    text-decoration: none;
}
.tc-search__breadcrumb a:hover {
    text-decoration: underline;
}
.tc-search__breadcrumb .tc-sep {
    margin: 0 6px;
    color: #bbb;
}

/* Search content */
.tc-search__content {
    padding-top: 40px;
    padding-bottom: 48px;
}

/* Inline search form */
.tc-search__form {
    margin-bottom: 28px;
}
.tc-search__input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 6px 8px 6px 18px;
    max-width: 640px;
    margin: 0 auto;
    transition: border-color 0.15s;
}
.tc-search__input-wrap:focus-within {
    border-color: #111;
    background: #fff;
}
.tc-search__input-wrap i {
    color: #999;
    font-size: 17px;
    flex-shrink: 0;
}
.tc-search__input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #111;
    outline: none;
    padding: 8px 4px;
    font-family: inherit;
}
.tc-search__input-wrap input::placeholder {
    color: #999;
}
.tc-search__input-wrap .tc-btn {
    flex-shrink: 0;
    padding: 9px 22px;
    font-size: 14px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}
.tc-search__input-wrap .tc-btn:hover {
    background: #333;
}

/* Inline search form on results page (SR5/SR14) */
.tc-search__inline-form {
    margin-bottom: 24px;
}
.tc-search__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    background: var(--tc-bg);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 6px 6px 6px 14px;
    transition: border-color var(--tc-transition);
}
.tc-search__input-wrap:focus-within {
    border-color: var(--tc-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.tc-search__input-wrap i {
    color: var(--tc-text-muted);
    font-size: 16px;
    flex-shrink: 0;
}
.tc-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--tc-font);
    color: var(--tc-text);
    background: transparent;
    min-width: 0;
}
.tc-search__input::placeholder {
    color: var(--tc-text-muted);
}

/* Results count */
.tc-search__count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Empty state */
.tc-search__empty {
    text-align: center;
    padding: 56px 24px;
    color: #888;
}
.tc-search__empty i {
    font-size: 48px;
    color: #ccc;
    display: block;
    margin-bottom: 16px;
}
.tc-search__empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
}
.tc-search__empty p {
    font-size: 14px;
    color: #666;
    max-width: 420px;
    margin: 0 auto 20px;
}
.tc-search__empty .tc-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
}
.tc-search__empty .tc-btn:hover {
    background: #333;
}

/* Pagination dots */
.tc-pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    color: #888;
}

@media (max-width: 600px) {
    .tc-search__banner-title {
        font-size: 19px;
    }
    .tc-search__input-wrap {
        padding: 4px 6px 4px 14px;
    }
    .tc-search__input-wrap input {
        font-size: 14px;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   Product Compare
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Compare toggle on cards ── */
.tc-compare-toggle--active {
    background: var(--tc-accent, #2563eb) !important;
    color: #fff !important;
    border-color: var(--tc-accent, #2563eb) !important;
}


/* ── Floating Compare Bar ── */
.tc-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #1a1a2e;
    color: #fff;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.tc-compare-bar--visible { transform: translateY(0); }
.tc-compare-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tc-compare-bar__items { display: none; } /* Future: show mini product thumbs */
.tc-compare-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tc-compare-bar__count {
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.tc-compare-bar__btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--tc-font);
    transition: all .15s;
}
.tc-compare-bar__btn--compare {
    background: #fff;
    color: #1a1a2e;
}
.tc-compare-bar__btn--compare:hover { background: #f0f0f0; }
.tc-compare-bar__btn--clear {
    background: transparent;
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.2);
}
.tc-compare-bar__btn--clear:hover {
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

/* ── Compare Toast ── */
.tc-compare-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--tc-font);
    z-index: 10000;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
}
.tc-compare-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Global Toast (wishlist, newsletter, etc.) ── */
.tc-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c2430;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--tc-font);
    z-index: 10001;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    pointer-events: none;
}
.tc-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.tc-toast--error { background: #c84646; }

/* ── Compare Modal ── */
.tc-compare-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s;
    backdrop-filter: blur(3px);
}
.tc-compare-modal-overlay--open { opacity: 1; visibility: visible; }
.tc-compare-modal {
    background: #fff;
    border-radius: 16px;
    width: 95vw;
    max-width: 960px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
    transform: translateY(20px);
    transition: transform .25s;
}
.tc-compare-modal-overlay--open .tc-compare-modal { transform: translateY(0); }
.tc-compare-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--tc-border, #e5e5e5);
}
.tc-compare-modal__header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
.tc-compare-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.tc-compare-modal__close:hover { color: #333; }
.tc-compare-modal__body {
    flex: 1;
    overflow: auto;
    padding: 0;
}
.tc-compare-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: #999;
    font-size: 14px;
}

/* ── Compare Table ── */
.tc-compare-table-wrap { overflow-x: auto; }
.tc-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tc-compare-table th,
.tc-compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--tc-border, #e5e5e5);
    vertical-align: top;
    min-width: 180px;
}
.tc-compare-table thead th { border-bottom: 2px solid var(--tc-border, #e5e5e5); }
.tc-compare-table__label {
    font-weight: 600;
    color: var(--tc-muted, #737373);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    min-width: 120px !important;
    width: 120px;
}
.tc-compare-table__product {
    text-align: center !important;
    position: relative;
}
.tc-compare-table__img {
    width: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.tc-compare-table__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text, #0a0a0a);
    text-decoration: none;
    line-height: 1.4;
}
.tc-compare-table__name:hover { color: var(--tc-accent, #2563eb); }
.tc-compare-table__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f5f5f5;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-compare-table__remove:hover { background: #e5e5e5; color: #333; }
.tc-compare-table tbody tr:nth-child(even) { background: #fafafa; }
.tc-compare-table tbody td:not(.tc-compare-table__label) { text-align: center; }
@media (max-width: 600px) {
    .tc-compare-modal { width: 100vw; max-width: 100vw; border-radius: 12px 12px 0 0; max-height: 90vh; }
    .tc-compare-table th,
    .tc-compare-table td { padding: 10px 12px; min-width: 140px; font-size: 13px; }
    .tc-compare-table__img { width: 72px; }
}

/* ══════════════════════════════════════════════════════════════════════════════
 * RMA (Returns)
 * ══════════════════════════════════════════════════════════════════════════════ */

/* Status badges */
.tc-rma-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 99px;
    text-transform: capitalize;
    white-space: nowrap;
}
.tc-rma-status--requested { background: #FFFBEB; color: #D97706; border: 1px solid rgba(217,119,6,.15); }
.tc-rma-status--approved  { background: #EFF6FF; color: #2563EB; border: 1px solid rgba(37,99,235,.15); }
.tc-rma-status--completed { background: #F0FDF4; color: #15803D; border: 1px solid rgba(22,128,61,.15); }
.tc-rma-status--declined  { background: #FEF2F2; color: #DC2626; border: 1px solid rgba(220,38,38,.15); }
.tc-rma-status--cancelled { background: #F5F5F5; color: #71797E; border: 1px solid rgba(113,121,126,.12); }

/* My Returns list — reuses .tc-orders-table for consistency */
.tc-myreturns__title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }

/* Return detail */
.tc-return-detail {}
.tc-rma-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}
.tc-rma-info-grid > div { font-size: 13px; }
.tc-rma-info-grid strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #71797E; margin-bottom: 4px; font-weight: 500; }
.tc-rma-info-grid p { margin: 0; }

.tc-rma-comment { margin: 16px 0; font-size: 13px; }
.tc-rma-comment strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #71797E; margin-bottom: 4px; font-weight: 500; }
.tc-rma-comment p { margin: 4px 0 0; line-height: 1.6; white-space: pre-wrap; }

/* Timeline */
.tc-rma-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid #E5E5E5; padding-left: 20px; }
.tc-rma-timeline li { position: relative; padding-bottom: 16px; }
.tc-rma-timeline li:last-child { padding-bottom: 0; }
.tc-rma-timeline li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563EB;
    border: 2px solid #fff;
}
.tc-rma-timeline__event strong { font-size: 13px; display: block; }
.tc-rma-timeline__event p { font-size: 12px; color: #71797E; margin: 2px 0 0; }
.tc-rma-timeline__event small { font-size: 11px; }

/* Alerts */
.tc-rma-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-rma-alert--error   { background: #FEF2F2; color: #DC2626; border: 1px solid rgba(220,38,38,.12); }
.tc-rma-alert--success { background: #F0FDF4; color: #15803D; border: 1px solid rgba(22,128,61,.12); }
.tc-rma-alert--info    { background: #EFF6FF; color: #2563EB; border: 1px solid rgba(37,99,235,.12); }

/* Return request form */
.tc-rma-form__section { margin-bottom: 24px; }
.tc-rma-form__section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.tc-rma-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tc-rma-form__field label { display: block; font-size: 12px; font-weight: 500; color: #71797E; margin-bottom: 4px; }
.tc-rma-form__field select,
.tc-rma-form__field input,
.tc-rma-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.tc-rma-form__field select:focus,
.tc-rma-form__field input:focus,
.tc-rma-form textarea:focus { border-color: #2563EB; }

.tc-rma-form__actions { display: flex; gap: 12px; align-items: center; }

/* PDP return period badge */
.tc-pdp-return-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #16A34A;
    margin-top: 8px;
    padding: 4px 0;
}
.tc-pdp-return-period i { font-size: 14px; }

@media (max-width: 600px) {
    .tc-rma-info-grid { grid-template-columns: 1fr; }
    .tc-rma-form__row { grid-template-columns: 1fr; }
    .tc-rma-form__actions { flex-direction: column; }
}

/* ─────────────────────────────────────────────────────────────────────────
   S31 — Prism per-preset DISPLAY FONT on inner-page headings.
   `--tct-font-display` is emitted on :root ONLY when a Prism preset is active
   (Themes/titancart-prism/inc/preset-resolver.php → tct_prism_inline_css()).
   The `inherit` fallback keeps the base titancart-theme AND market.titancart.io
   byte-for-byte unchanged: with no preset active the var is unset, so these
   headings fall back to `inherit` — exactly what they do today (they carry no
   own font-family and inherit the body font). When a preset IS active they
   adopt its homepage display font, carrying the typography from the homepage
   through to the PDP / shop / cart / order pages.
   Scope = HEADINGS only (page titles, section/feature titles, the PDP title,
   product-card titles). Dense list item-names + filter/drawer chrome stay on
   the body font on purpose (a condensed display face hurts readability there).
   Placed at EOF so these single-class selectors win by source order over the
   earlier same-specificity rules; no !important needed.
   ───────────────────────────────────────────────────────────────────────── */
.product-title,
.tc-shop__banner-title,
.tc-search__banner-title,
.tc-pdp__title,
.tc-pdp__tiers-title,
.tc-pdp__bundle-title,
.tc-pdp__related-title,
.tc-reviews__heading,
.tc-review-form__heading,
.tc-testimonials__title,
.tc-cart__title,
.tc-cartpage__title,
.tc-cartpage__summary-title,
.tc-wishlist__title,
.tc-account__heading,
.tc-order-received__title,
.tc-order-received__card-title,
.tc-myreturns__title {
    font-family: var(--tct-font-display, inherit);
}
