/* =============================================================
   NicheCycle PDP — nc-pdp.css
   Product Detail Page styles: hero layout, gallery, info panel,
   brand badge, meta row, price, trust signals, options, ATC row,
   secondary links, quick specs, grouped product table, tabs,
   related products grid, upsell card.
   ============================================================= */

:root {
    --nc-primary:        #19548E;
    --nc-primary-dark:   #184179;
    --nc-primary-hover:  #3076BA;
    --nc-heading:        #111827;
    --nc-body:           #374151;
    --nc-gray:           #6B7280;
    --nc-border:         #E5E7EB;
    --nc-surface:        #F9FAFB;
    --nc-offwhite:       #FAFAFA;
    --nc-green:          #16A34A;
    --nc-red:            #dc2626;
    --nc-badge-bg:       rgba(25,84,142,0.08);
    --nc-badge-border:   rgba(25,84,142,0.22);
    /* Legacy alias kept for any rules still referencing the old badge-text token */
    --nc-badge-text:     #1e40af;
}

/* =============================================================
   PRODUCT HERO LAYOUT
   ============================================================= */
.nc-pdp-hero {
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 32px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 36px 32px 56px;
}
@media (max-width: 1024px) {
    .nc-pdp-hero {
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .nc-pdp-hero {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery (left column) ────────────────────────────────── */
.nc-pdp-gallery {}

.nc-pdp-gallery-main {
    aspect-ratio: 1;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.nc-pdp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nc-pdp-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nc-pdp-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--nc-border);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nc-pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nc-pdp-thumb.active,
.nc-pdp-thumb:hover {
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 3px rgba(25,84,142,0.15);
}

/* ── Info panel (right column) ────────────────────────────── */
.nc-pdp-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Brand Badge ───────────────────────────────────────────── */
.nc-pdp-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e40af;
    background: var(--nc-badge-bg);
    border: 1px solid var(--nc-badge-border);
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    margin-bottom: 10px;
    width: fit-content;
}
.nc-pdp-brand-badge svg {
    color: #1e40af;
    flex-shrink: 0;
}

/* ── Title ─────────────────────────────────────────────────── */
.nc-pdp-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--nc-heading);
    line-height: 1.2;
    margin-bottom: 8px;
}

/* ── SKU + Stock Meta Row ─────────────────────────────────── */
.nc-pdp-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.nc-pdp-sku {
    font-size: 0.82rem;
    color: var(--nc-gray);
    letter-spacing: 0.01em;
}
.nc-pdp-sku strong {
    color: var(--nc-body);
    font-weight: 600;
}

/* Keep existing stock status inline (override text-right) */
.nc-pdp-meta-row .stock {
    margin: 0;
    font-size: 0.78rem;
}
.nc-pdp-meta-row > div {
    /* unwrap the text-right wrapper from stock-status.phtml */
    text-align: left !important;
}

.nc-pdp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #16A34A;
}
.nc-pdp-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    flex-shrink: 0;
}
.nc-pdp-stock-badge.out-of-stock {
    color: #dc2626;
}
.nc-pdp-stock-badge.out-of-stock .nc-pdp-stock-dot {
    background: #EF4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

/* ── Price ─────────────────────────────────────────────────── */
.nc-pdp-price {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--nc-primary);
    line-height: 1;
    margin-bottom: 14px;
}
.nc-pdp-price .as-low-as {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--nc-gray);
    display: block;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Trust signals ─────────────────────────────────────────── */
.nc-pdp-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.nc-pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--nc-body);
}
.nc-pdp-trust-item svg {
    color: var(--nc-primary);
    flex-shrink: 0;
}

/* ── Mikuni brand trust 2×2 grid ─────────────────────────── */
.nc-pdp-mikuni-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #f0f5fb;
    border: 1px solid #d0dff0;
    border-radius: 6px;
}
.nc-pdp-mikuni-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--nc-primary, #19548E);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.nc-pdp-mikuni-trust-item svg {
    color: var(--nc-primary, #19548E);
    flex-shrink: 0;
}

/* ── Options (configurable) ───────────────────────────────── */
.nc-pdp-options {
    margin-bottom: 16px;
}
.nc-pdp-option-row {
    margin-bottom: 12px;
}
.nc-pdp-option-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nc-heading);
    margin-bottom: 6px;
    display: block;
    font-family: 'Barlow Semi Condensed', sans-serif;
}
.nc-pdp-option-label .required {
    color: var(--nc-primary);
}
.nc-pdp-option-select {
    width: 100%;
    border: 1.5px solid var(--nc-border);
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.9rem;
    color: var(--nc-body);
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
.nc-pdp-option-select:focus {
    outline: none;
    border-color: var(--nc-primary);
    box-shadow: 0 0 0 3px rgba(25,84,142,0.1);
}

/* ── Qty + Add To Cart row ─────────────────────────────────── */
.nc-pdp-atc-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}
.nc-pdp-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--nc-border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.nc-pdp-qty button {
    width: 36px;
    height: 44px;
    border: none;
    background: #fff;
    font-size: 1.2rem;
    color: var(--nc-body);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nc-pdp-qty button:hover {
    background: var(--nc-surface);
}
.nc-pdp-qty input {
    width: 48px;
    height: 44px;
    border: none;
    border-left: 1.5px solid var(--nc-border);
    border-right: 1.5px solid var(--nc-border);
    text-align: center;
    font-size: 1rem;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 600;
    color: var(--nc-heading);
    outline: none;
}
.nc-pdp-qty input::-webkit-outer-spin-button,
.nc-pdp-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nc-pdp-qty input[type=number] {
    -moz-appearance: textfield;
}

.nc-pdp-atc-btn {
    flex: 1;
    height: 44px;
    background: var(--nc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
}
.nc-pdp-atc-btn:hover {
    background: var(--nc-primary-dark);
}
.nc-pdp-atc-btn:disabled,
.nc-pdp-atc-btn.disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

/* Qty wrapper — quantity.phtml renders x-data div > .qty-wrapper div > buttons+input
   nc-pdp-qty provides the outer border/radius; target qty-wrapper internals too */
.nc-pdp-qty > div {
    display: flex;
    align-items: center;
}
.nc-pdp-qty .qty-wrapper {
    display: flex;
    align-items: center;
}

/* ATC btn-wrap: make Hyva's btn-primary fill the row */
.nc-pdp-atc-btn-wrap {
    flex: 1;
    display: flex;
}
.nc-pdp-atc-btn-wrap .btn {
    flex: 1;
    height: 44px;
    background: var(--nc-primary);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    white-space: nowrap;
    width: 100% !important;
    min-width: 0;
}
.nc-pdp-atc-btn-wrap .btn:hover {
    background: var(--nc-primary-dark) !important;
}

/* ── Secondary links ───────────────────────────────────────── */
.nc-pdp-secondary-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.nc-pdp-secondary-links a {
    font-size: 0.78rem;
    color: var(--nc-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.nc-pdp-secondary-links a:hover {
    color: var(--nc-primary);
}

/* ── Quick Specs ──────────────────────────────────────────── */
.nc-pdp-quick-specs {
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0;
}
.nc-pdp-quick-specs-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--nc-gray);
    padding: 7px 14px 6px;
    background: var(--nc-surface);
    border-bottom: 1px solid var(--nc-border);
}
.nc-pdp-quick-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.nc-pdp-quick-specs-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--nc-border);
}
.nc-pdp-quick-specs-table td {
    padding: 7px 14px;
    font-size: 0.8rem;
    line-height: 1.4;
}
.nc-pdp-quick-specs-table td:first-child {
    color: var(--nc-gray);
    width: 48%;
    font-weight: 500;
}
.nc-pdp-quick-specs-table td:last-child {
    color: var(--nc-heading);
    font-weight: 600;
}

/* =============================================================
   GROUPED PRODUCT ITEMS TABLE
   ============================================================= */
.nc-pdp-grouped {
    background: #fff;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 32px 32px;
}
.nc-pdp-grouped-heading {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 14px 20px 12px;
    border-bottom: 1px solid var(--nc-border);
    color: var(--nc-heading);
}
.nc-pdp-grouped table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.nc-pdp-grouped th {
    background: var(--nc-heading);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 9px 14px;
    text-align: left;
}
.nc-pdp-grouped td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--nc-border);
    color: var(--nc-body);
    vertical-align: middle;
}
.nc-pdp-grouped tr.out-of-stock td {
    color: #9CA3AF;
}
.nc-pdp-grouped .grouped-atc-btn {
    /* same style as .nc-pdp-atc-btn but sized for table rows */
    background: var(--nc-primary);
    color: #fff;
    border: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s;
    height: 34px;
    font-size: 0.78rem;
    padding: 0 14px;
    border-radius: 5px;
    flex: none;
}
.nc-pdp-grouped .grouped-atc-btn:hover {
    background: var(--nc-primary-dark);
}
.nc-pdp-grouped .grouped-atc-btn:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}
.nc-pdp-grouped .grouped-qty {
    width: 56px;
    border: 1.5px solid var(--nc-border);
    border-radius: 5px;
    padding: 5px 8px;
    text-align: center;
    font-size: 0.9rem;
}
.nc-pdp-grouped .grouped-stock {
    font-size: 0.72rem;
    font-weight: 600;
}
.nc-pdp-grouped .grouped-stock.in-stock {
    color: #16A34A;
}
.nc-pdp-grouped .grouped-stock.out-of-stock {
    color: #9CA3AF;
}

/* =============================================================
   TABS SECTION
   ============================================================= */
.nc-pdp-tabs-section {
    background: var(--nc-offwhite);
    border-top: 1px solid var(--nc-border);
}
.nc-pdp-tabs-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}
.nc-pdp-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--nc-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nc-pdp-tab-nav::-webkit-scrollbar { display: none; }

.nc-pdp-tab-btn {
    flex-shrink: 0;
    padding: 18px 28px 16px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nc-gray);
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.nc-pdp-tab-btn:hover {
    color: var(--nc-heading);
}
.nc-pdp-tab-btn.active {
    color: var(--nc-primary);
    border-bottom-color: var(--nc-primary);
}
[x-cloak] { display: none !important; }

.nc-pdp-tab-panel {
    background: #fff;
    border: 1px solid var(--nc-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 36px 40px;
    margin-bottom: 32px;
}

/* Description panel prose */
.nc-pdp-tab-panel h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--nc-heading);
    margin: 0 0 12px;
    font-family: 'Barlow Semi Condensed', sans-serif;
}
.nc-pdp-tab-panel h3:not(:first-child) {
    margin-top: 28px;
}
.nc-pdp-tab-panel p {
    font-size: 0.875rem;
    color: var(--nc-body);
    line-height: 1.65;
    margin: 0 0 14px;
}
.nc-pdp-tab-panel ul {
    margin: 0 0 14px;
    padding-left: 20px;
}
.nc-pdp-tab-panel ul li {
    font-size: 0.875rem;
    color: var(--nc-body);
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Specifications table (attributes.phtml output) */
.nc-pdp-tab-panel .product-attribute-label,
.nc-pdp-tab-panel .product-detail-label {
    font-size: 0.8rem !important;
    color: var(--nc-gray) !important;
    font-weight: 500;
}
.nc-pdp-tab-panel .product-attribute-value,
.nc-pdp-tab-panel .product-detail-value {
    font-size: 0.8rem !important;
    color: var(--nc-heading) !important;
    font-weight: 600;
}
/* Remove duplicate SKU row from attributes block — SKU already shown in meta row */
.nc-pdp-tab-panel .product-attribute-label[scope="row"]:first-of-type,
.nc-pdp-tab-panel [data-th="SKU"] {
    /* We can't easily hide via CSS alone without knowing position,
       so we style it subtly; the PHP already deduplicates if needed */
}

/* Fitment panel */
.nc-pdp-tab-panel .prose table,
.nc-pdp-tab-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.nc-pdp-tab-panel table th {
    background: var(--nc-primary);
    color: #fff;
    font-weight: 600;
    padding: 9px 14px;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nc-pdp-tab-panel table td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--nc-border);
    color: var(--nc-body);
}
.nc-pdp-tab-panel table tr:nth-child(even) td {
    background: var(--nc-surface);
}
.nc-pdp-tab-panel table tr:hover td {
    background: #EFF6FF;
}

/* ── Fix: Description tab — jetting table horizontal scroll ─ */
#nc-tab-description {
    overflow-x: auto;
}
#nc-tab-description table {
    min-width: 480px; /* prevents table from collapsing on mobile */
}

/* ── Fix: Trust badges — mobile spacing ─────────────────────── */
.nc-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
@media (max-width: 640px) {
    .nc-trust-badges {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .nc-trust-badge {
        padding: 10px 12px;
    }
}

/* ── Fix: amfinder widget gap on mobile ─────────────────────── */
@media (max-width: 768px) {
    .amfinder-common-wrapper {
        margin-bottom: 0 !important;
    }
    /* Collapse hidden finder to zero height if it has no visible content */
    .amfinder-common-wrapper:not(:has(.amfinder-options-container:not(.hidden))) {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* ── Fix: Specifications tab — dark header row ──────────────── */
#nc-tab-product-attributes::before {
    content: "";
    display: grid;
    grid-template-columns: 1fr 1fr;
}
/* Insert "SPECIFICATION / VALUE" header above attributes */
#nc-tab-product-attributes > .flex:first-child {
    /* handled below via pseudo on wrapper */
}
/* Wrap label — uppercase muted style */
#nc-tab-product-attributes .product-attribute-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--nc-gray);
    text-transform: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--nc-border);
}
/* Value — bold dark */
#nc-tab-product-attributes .product-attribute-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--nc-heading);
    padding: 8px 0;
    border-bottom: 1px solid var(--nc-border);
}
/* Alternating row background */
#nc-tab-product-attributes .flex:nth-child(odd) {
    background: var(--nc-surface);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}
/* Dark header bar above the attributes list */
#nc-tab-product-attributes {
    position: relative;
}
#nc-tab-product-attributes > div:first-of-type {
    margin-top: 8px;
}

/* Add a styled header row before the attributes */
.nc-specs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--nc-heading);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 10px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 4px;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

/* =============================================================
   RELATED PRODUCTS
   ============================================================= */
.nc-pdp-related {
    background: #fff;
    border-top: 1px solid var(--nc-border);
    padding: 64px 32px;
}
.nc-pdp-related-inner {
    max-width: 1600px;
    margin: 0 auto;
}
.nc-pdp-related-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.nc-pdp-related-title {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nc-heading);
}
.nc-pdp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .nc-pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .nc-pdp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.nc-pdp-related-card {
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
.nc-pdp-related-card:hover {
    border-color: var(--nc-primary);
    box-shadow: 0 6px 24px rgba(25,84,142,0.12);
    transform: translateY(-2px);
}
.nc-pdp-related-card-img {
    aspect-ratio: 1;
    background: var(--nc-surface);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nc-pdp-related-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.nc-pdp-related-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nc-pdp-related-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nc-heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-pdp-related-card-price {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--nc-primary);
}
.nc-pdp-related-card-atc {
    margin-top: auto;
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--nc-primary);
    border-radius: 5px;
    background: #fff;
    color: var(--nc-primary);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.nc-pdp-related-card-atc:hover {
    background: var(--nc-primary);
    color: #fff;
}

/* ── Related / Upsell — "Complete Your Build" (legacy fallback) ─
   Kept as fallback support for products/templates not yet migrated
   to the new .nc-pdp-related-* classes above. Do not remove. ── */

/* Section heading: CSS text-replace via ::before + font-size:0 */
section#related h2 {
    font-size: 0 !important;
    display: block;
}
section#related h2::before {
    content: "Complete Your Build";
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nc-heading);
    font-family: 'Barlow Semi Condensed', sans-serif;
    display: block;
}

/* Force snap-track into a 4-column grid (Alpine x-ignore prevents JS init) */
section#related .snap-track,
section#upsell .snap-track {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    overflow: hidden !important;
}

/* Cards */
section#related .snap-track > div,
section#upsell .snap-track > div {
    width: 100% !important;
    flex: none !important;
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
section#related .snap-track > div:hover,
section#upsell .snap-track > div:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Hide nav buttons — not needed in static grid */
section#related [data-prev],
section#related [data-next],
section#upsell [data-prev],
section#upsell [data-next] {
    display: none !important;
}

/* Product image area */
section#related .snap-track > div a[href] img,
section#upsell .snap-track > div a[href] img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 12px;
    background: var(--nc-surface);
}

/* Responsive: 2-col on tablet */
@media (max-width: 1024px) {
    section#related .snap-track,
    section#upsell .snap-track {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    section#related .snap-track,
    section#upsell .snap-track {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ── Related / Upsell card padding fixes ────────────────────── */

/* Gap between heading and grid */
section#related .snap-track,
section#upsell .snap-track {
    margin-top: 16px !important;
}

/* Stock badge — pin inside top of card with background */
section#related .snap-track > div .nc-stock-badge-wrap,
section#upsell .snap-track > div .nc-stock-badge-wrap {
    padding: 8px 12px 0 12px;
}

/* Card inner wrapper — add side + bottom padding */
section#related .snap-track > div .nc-product-card,
section#upsell .snap-track > div .nc-product-card {
    padding: 0 0 16px 0 !important;
    height: 100%;
}

/* Image link — consistent padding around image */
section#related .snap-track > div .product-item-photo,
section#upsell .snap-track > div .product-item-photo {
    padding: 12px !important;
    margin-bottom: 0 !important;
}

/* Product info text block — padding on sides */
section#related .snap-track > div .product-info,
section#upsell .snap-track > div .product-info {
    padding: 0 12px 0 12px !important;
}

/* Title — tighten line height, cap font size */
section#related .snap-track > div .product-info-title-block,
section#upsell .snap-track > div .product-info-title-block {
    margin-bottom: 6px !important;
}
section#related .snap-track > div .product-item-name a,
section#upsell .snap-track > div .product-item-name a {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--nc-heading) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price — reduce the 24px default to something card-appropriate */
section#related .snap-track > div .price,
section#upsell .snap-track > div .price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--nc-primary) !important;
}

/* Stars row */
section#related .snap-track > div .rating-summary,
section#upsell .snap-track > div .rating-summary {
    margin-bottom: 4px !important;
}

/* Out of stock / in stock text badge inside card text area */
section#related .snap-track > div .stock,
section#upsell .snap-track > div .stock {
    font-size: 0.7rem !important;
    margin-top: 6px !important;
}

/* ── Card structure fixes (v23j) ─────────────────────────────── */

/* Remove the list-view bottom-only border from nc-product-card */
section#related .snap-track > div .nc-product-card,
section#upsell .snap-track > div .nc-product-card {
    border: none !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 12px !important;
    height: 100%;
}

/* Stock badge — flush to top of card with proper bg */
section#related .snap-track > div .nc-stock-badge-wrap,
section#upsell .snap-track > div .nc-stock-badge-wrap {
    padding: 7px 10px 6px !important;
    background: transparent;
    border-bottom: 1px solid var(--nc-border);
    margin-bottom: 4px;
}

/* Reviews row — prevent wrapping at small sizes */
section#related .snap-track > div .rating-summary,
section#upsell .snap-track > div .rating-summary {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    font-size: 0.72rem !important;
    margin-bottom: 4px !important;
}

/* Reviews count link — no wrap */
section#related .snap-track > div .reviews-actions,
section#upsell .snap-track > div .reviews-actions {
    white-space: nowrap !important;
    font-size: 0.68rem !important;
}

/* ATC button div — remove extra padding */
section#related .snap-track > div .pb-5,
section#upsell .snap-track > div .pb-5 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-top: none !important;
}

/* ── Gallery Fix — inset-0 Tailwind compilation workaround ── */
/* Tailwind v3.2.7 compiles inset-0 without left/right — fix here */
#gallery-main img.absolute {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* =============================================================
   v24b OVERRIDES — Match approved mockup exactly
   Target: Hyva's actual rendered HTML classes
   ============================================================= */

/* ── 1. HERO GRID: override Hyva's flex wrapper to be our grid ── */
/* Hyva renders: .product-info-main > section.body-font > div.flex.flex-wrap.mb-7 > div.flex.flex-wrap.justify-between.order-first.w-full */
.product-info-main > section.body-font > .flex.flex-wrap.mb-7 {
    display: block !important;
}
.product-info-main > section.body-font > .flex.flex-wrap.mb-7 > .flex.flex-wrap.justify-between.order-first.w-full {
    display: grid !important;
    grid-template-columns: 48% 52% !important;
    gap: 48px !important;
    align-items: start !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 36px 32px 56px !important;
    width: 100% !important;
}
@media (max-width: 1024px) {
    .product-info-main > section.body-font > .flex.flex-wrap.mb-7 > .flex.flex-wrap.justify-between.order-first.w-full {
        gap: 32px !important;
    }
}
@media (max-width: 768px) {
    .product-info-main > section.body-font > .flex.flex-wrap.mb-7 > .flex.flex-wrap.justify-between.order-first.w-full {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 24px 16px 40px !important;
    }
}

/* ── 2. GALLERY: override Hyva's section#gallery Tailwind classes ── */
section#gallery {
    /* Override Hyva's md:w-49, rounded-3, border-primary, etc. */
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid var(--nc-border) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* Gallery main image area — aspect ratio square box */
section#gallery #gallery-main {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    background: #fff;
}
section#gallery #gallery-main img,
section#gallery #gallery-main template + img {
    max-width: 100%;
    max-height: 100%;
    width: 100% !important;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}
/* Keep Hyva's style="max-height:75vh" from capping the gallery box height */
section#gallery #gallery-main img[style*="max-height"] {
    max-height: 100% !important;
}

/* Gallery thumbnails — full-width equal flex items */
section#gallery .flex.flex-wrap.gap-1,
section#gallery .flex.gap-1,
section#gallery [x-ref="thumbnails"],
section#gallery .flex[role="list"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    border-top: 1px solid var(--nc-border) !important;
    background: #fff !important;
    overflow-x: auto !important;
}
/* Each thumb button */
section#gallery .flex.flex-wrap.gap-1 button,
section#gallery .flex.gap-1 button,
section#gallery [x-ref="thumbnails"] button,
section#gallery .flex[role="list"] button {
    flex: 1 1 0 !important;
    min-width: 60px !important;
    max-width: 80px !important;
    aspect-ratio: 1 / 1 !important;
    border: 2px solid var(--nc-border) !important;
    border-radius: 6px !important;
    padding: 4px !important;
    background: #fff !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
section#gallery .flex.flex-wrap.gap-1 button:hover,
section#gallery .flex.gap-1 button:hover,
section#gallery [x-ref="thumbnails"] button:hover {
    border-color: var(--nc-primary-hover) !important;
}
section#gallery .flex.flex-wrap.gap-1 button[class*="border-primary"],
section#gallery .flex.gap-1 button.border-primary {
    border-color: var(--nc-primary) !important;
    box-shadow: 0 0 0 2px rgba(25,84,142,0.2) !important;
}
section#gallery .flex.flex-wrap.gap-1 button img,
section#gallery .flex.gap-1 button img,
section#gallery [x-ref="thumbnails"] button img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ── 3. INFO PANEL — nc-pdp-info width in grid ── */
.nc-pdp-info {
    /* In the grid, this div is the right column — let it fill naturally */
    min-width: 0;
}

/* ── 4. DIVIDERS in info panel ── */
/* Add hr-like dividers: after price, before secondary links */
.nc-pdp-price {
    border-bottom: 1px solid var(--nc-border);
    padding-bottom: 18px;
    margin-bottom: 16px !important;
}
.nc-pdp-secondary-links {
    border-top: 1px solid var(--nc-border);
    padding-top: 14px;
    margin-top: 0;
    margin-bottom: 14px;
}
.nc-pdp-quick-specs {
    margin-top: 0;
    border-top: none;
}

/* ── 5. ATC ROW — btn-primary needs to look exactly like mockup ── */
.nc-pdp-atc-btn-wrap .btn,
.nc-pdp-atc-btn-wrap .btn-primary {
    background: var(--nc-primary) !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 14px 24px !important;
    height: auto !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    border: none !important;
    transition: background 0.2s !important;
    flex: 1 !important;
}
.nc-pdp-atc-btn-wrap .btn:hover,
.nc-pdp-atc-btn-wrap .btn-primary:hover {
    background: var(--nc-primary-dark) !important;
}
/* Qty wrapper height to match */
.nc-pdp-qty {
    min-height: 48px;
}
.nc-pdp-qty button {
    height: 100% !important;
    min-height: 48px;
}
.nc-pdp-qty input {
    height: 100% !important;
    min-height: 48px;
}

/* ── 6. SECONDARY LINKS — text must be visible ── */
/* Hyva's wishlist/compare blocks render their own <a> with text.
   Our wrapper spans just provide structure. Make the links and text show. */
.nc-pdp-secondary-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.nc-pdp-secondary-link-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
/* The child block links */
.nc-pdp-secondary-link-item a,
.nc-pdp-secondary-link-item > a,
.nc-pdp-secondary-links a {
    font-size: 0.82rem !important;
    color: var(--nc-gray) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 8px !important;
    transition: color 0.18s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.nc-pdp-secondary-links a:hover {
    color: var(--nc-primary) !important;
}
/* The SVG icons inside our secondary-link-item spans */
.nc-pdp-secondary-link-item > svg {
    color: var(--nc-gray);
    flex-shrink: 0;
}
.nc-pdp-secondary-link-sep {
    color: var(--nc-border);
    font-size: 0.9rem;
    padding: 0 4px;
    user-select: none;
}
/* Hide Hyva's default icon inside wishlist/compare if they double up */
.nc-pdp-secondary-link-item .sr-only { display: none !important; }

/* ── 7. CONFIGURABLE: Options section label styling ── */
/* Magento/Hyva renders swatch/option labels — target them */
.product-info-main .fieldset .legend span,
.product-info-main .field.required > .label,
.product-info-main .field > .label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--nc-heading) !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.product-info-main .field.required > .label::after {
    content: ' *';
    color: var(--nc-primary) !important;
}

/* ── 8. GROUPED: "Select a size" message instead of ATC ── */
/* For grouped products, show a helper message */
.nc-pdp-grouped-select-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--nc-gray);
    padding: 12px 0;
    border-top: 1px solid var(--nc-border);
    margin-bottom: 12px;
}
.nc-pdp-grouped-select-msg svg {
    color: var(--nc-primary);
    flex-shrink: 0;
}

/* ── 9. GROUPED TABLE: match mockup dark header exactly ── */
.nc-pdp-grouped th {
    background: var(--nc-heading) !important;
    color: rgba(255,255,255,0.85) !important;
}
.nc-pdp-grouped td.grouped-name {
    font-weight: 500;
    color: var(--nc-heading);
}

/* ── 10. QUICK SPECS: mockup has white left col bg ── */
.nc-pdp-quick-specs-table td:first-child {
    background: #fff !important;
    font-weight: 600 !important;
    color: var(--nc-heading) !important;
}
.nc-pdp-quick-specs-table td:last-child {
    color: var(--nc-body) !important;
    background: transparent !important;
}

/* ── 11. PRODUCT TITLE — ensure uppercase Barlow applies ── */
.nc-pdp-title,
.nc-pdp-info h1 {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem) !important;
    color: var(--nc-heading) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    margin-bottom: 10px !important;
}
/* Override Hyva's h1 style on product page */
.product-info-main h1 {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

/* ── 12. PRICE — ensure Barlow + size ── */
.nc-pdp-price .price,
.nc-pdp-price [data-price-type] .price,
.nc-pdp-price .price-box .price {
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    font-size: 2.1rem !important;
    font-weight: 800 !important;
    color: var(--nc-primary) !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
}
/* "As low as" prefix */
.nc-pdp-price .price-label,
.nc-pdp-price .minimal-price .price-label {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--nc-gray) !important;
    display: block !important;
    margin-bottom: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* ── 13. REMOVE default Hyva body-font / flex styling from info ── */
.product-info-main section.body-font {
    /* Reset Hyva's section margin/padding */
    padding: 0 !important;
    margin: 0 !important;
}
/* Remove extra mb-7 gap Hyva adds */
.product-info-main > section.body-font > .flex.flex-wrap.mb-7 {
    margin-bottom: 0 !important;
    padding: 0 !important;
}


/* =============================================================
   v24b.2 — Thumbnail + Secondary Links + Misc Fixes
   ============================================================= */

/* ── THUMBNAILS: Target nav#thumbs (actual Hyva markup) ── */
section#gallery nav#thumbs {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    flex-wrap: nowrap !important;
    border-top: 1px solid var(--nc-border) !important;
    background: #fff !important;
    overflow-x: auto !important;
    align-items: stretch !important;
    min-height: auto !important;
    /* Remove fixed min-height Hyva sets */
}
/* Thumb buttons: Hyva class is "relative block border border-gray-300 hover:border-primary focus:border-primary border-primary" */
section#gallery nav#thumbs button.relative.block {
    flex: 1 1 0 !important;
    min-width: 60px !important;
    max-width: 80px !important;
    aspect-ratio: 1 / 1 !important;
    border: 2px solid var(--nc-border) !important;
    border-radius: 6px !important;
    padding: 4px !important;
    background: #fff !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
section#gallery nav#thumbs button.relative.block:hover {
    border-color: var(--nc-primary-hover) !important;
}
section#gallery nav#thumbs button.border-primary {
    border-color: var(--nc-primary) !important;
    box-shadow: 0 0 0 2px rgba(25,84,142,0.18) !important;
}
section#gallery nav#thumbs button img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 3px !important;
}
/* Hide the prev/next nav buttons in thumbs */
section#gallery nav#thumbs button[aria-label="Previous"],
section#gallery nav#thumbs button[aria-label="Next"] {
    display: none !important;
}

/* ── GALLERY MAIN: fix the large whitespace gap ── */
/* Hyva wraps in: div > div.relative.self-center.w-full > div#gallery-main */
section#gallery > div > div.relative.self-center {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
/* The gallery-main aspect ratio box */
section#gallery > div > div.relative.self-center > div#gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex: 1 1 auto;
}
/* Override Hyva's mb-6 that causes gap */
section#gallery #gallery-main.relative.mb-6 {
    margin-bottom: 0 !important;
}
/* Override Hyva's max-height:75vh inline style on gallery main image */
section#gallery #gallery-main img {
    max-height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* ── SECONDARY LINKS: styling for fallback anchors ── */
.nc-pdp-sec-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.82rem !important;
    color: var(--nc-gray) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 3px 6px !important;
    transition: color 0.18s !important;
    white-space: nowrap !important;
}
.nc-pdp-sec-link:hover {
    color: var(--nc-primary) !important;
}
/* Style the ask-a-question child block link */
.nc-pdp-secondary-link-item .text-gray {
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--nc-gray) !important;
}


/* =============================================================
   v24c — Whitespace, Hero Banner, Options Styling, Gallery Gap
   ============================================================= */

/* ── 1. KILL THE PAGE-MAIN TOP GAP on PDP pages ── */
/* .page-main has margin-top:64px from Hyva. On PDP we want tighter. */
.catalog-product-view .page-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Breadcrumb already has md:mt-11 (44px) — reduce it on PDP */
.catalog-product-view .breadcrumbs {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ── 2. HERO SECTION: reduce top padding, remove bottom gap ── */
.product-info-main > section.body-font > .flex.flex-wrap.mb-7 > .flex.flex-wrap.justify-between.order-first.w-full {
    padding-top: 16px !important;     /* was 36px */
    padding-bottom: 40px !important;  /* was 56px */
    padding-left: 24px !important;    /* was 32px */
    padding-right: 24px !important;
}

/* ── 3. PRODUCT CATEGORY HERO BANNER ── */
/* A thin dark navy strip just below the breadcrumb showing product category context */
.nc-pdp-category-banner {
    background: var(--nc-heading, #1a2535);
    color: rgba(255,255,255,0.82);
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--nc-primary, #19548E);
}
.nc-pdp-category-banner a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
}
.nc-pdp-category-banner a:hover {
    color: #fff;
}
.nc-pdp-category-banner .nc-pdp-banner-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
}
.nc-pdp-category-banner .nc-pdp-banner-current {
    color: rgba(255,255,255,0.92);
    font-weight: 700;
}

/* ── 4. CONFIGURABLE OPTIONS: styled dropdowns ── */
/* Override Hyva's horizontal label+select row — make it vertical stacked */

/* The outer row: was flex-row with label on left, now stack vertically */
.product-info-main .flex.flex-col.sm\:flex-row.border-t.last\:border-b.border-gray-300.py-2.w-full.items-center {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    margin-bottom: 10px !important;
    gap: 4px !important;
}

/* The label: full width, uppercase style */
.product-info-main .flex.flex-col.sm\:flex-row.border-t.last\:border-b.border-gray-300.py-2.w-full.items-center > label {
    width: 100% !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--nc-heading) !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    margin-bottom: 2px !important;
}
.product-info-main .flex.flex-col.sm\:flex-row.border-t.last\:border-b.border-gray-300.py-2.w-full.items-center > label span {
    color: inherit !important;
}

/* The select wrapper: full width */
.product-info-main .flex.flex-col.sm\:flex-row.border-t.last\:border-b.border-gray-300.py-2.w-full.items-center > div {
    width: 100% !important;
    margin-left: 0 !important;
}

/* The select element itself */
.product-info-main select.super-attribute-select {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 0 36px 0 12px !important;
    border: 1.5px solid var(--nc-border, #d1d5db) !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--nc-heading) !important;
    font-family: 'DM Sans', sans-serif !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    /* Custom arrow */
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2319548E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
.product-info-main select.super-attribute-select:focus {
    border-color: var(--nc-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(25,84,142,0.12) !important;
}
/* Placeholder "Choose an Option..." text */
.product-info-main select.super-attribute-select option[value=""] {
    color: var(--nc-gray, #6b7280) !important;
    font-style: italic;
}

/* The "Options" heading label that Hyva renders above the selects */
.product-info-main .product-options-wrapper > .fieldset > .legend,
.product-info-main .nc-pdp-options-heading,
.product-info-main .options-heading {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--nc-heading) !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* The "product.info.form" wrapper that Hyva renders the options in */
.product-info-main #product_addtocart_form .product-options-wrapper {
    margin-bottom: 12px !important;
}

/* Style the "Options" section heading that shows in our phtml */
.nc-pdp-info .nc-pdp-options-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nc-heading);
    font-family: 'Barlow Semi Condensed', sans-serif;
    margin: 12px 0 8px;
    display: block;
}

/* ── 5. GALLERY: fix internal spacing / gap ── */
/* Remove the extra space that's showing inside the gallery box above the image */
section#gallery > div {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
/* The gallery-main container: tighter padding */
section#gallery #gallery-main {
    padding: 8px !important;  /* was 16px */
    flex: 1 1 auto;
}
/* Hyva's .relative.self-center.w-full wrapper */
section#gallery div.relative.self-center.w-full {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/* ── 6. REDUCE OVERALL PDP PAGE VERTICAL DENSITY ── */
/* Tighten brand badge top spacing */
.nc-pdp-brand-badge {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
}
/* Tighten title margin */
.nc-pdp-title,
.nc-pdp-info h1 {
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}
/* Meta row (SKU + stock) */
.nc-pdp-meta-row {
    margin-bottom: 8px !important;
}
/* Price section tighter */
.nc-pdp-price {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
}
/* Trust signals tighter */
.nc-pdp-trust {
    padding: 10px 12px !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
}


/* ── v24c additions: Configurable options h2 heading ── */
.product-info-main [x-data*="initConfigurableDropdownOptions"] {
    margin-bottom: 12px !important;  /* was mb-6 = 24px */
}
.product-info-main [x-data*="initConfigurableDropdownOptions"] > h2 {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--nc-heading) !important;
    font-family: 'Barlow Semi Condensed', sans-serif !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
}

/* ── v24c.1: Suppress ATC row gap when product is OOS (no saleable) ── */
/* When ATC button isn't shown, the nc-pdp-atc-row wrapper still takes space */
.nc-pdp-atc-row:empty,
.nc-pdp-atc-row:not(:has(*)) {
    display: none !important;
}
/* Also tighten the gap before secondary links when no ATC */
.nc-pdp-secondary-links {
    margin-top: 8px !important;
}

/* Suppress product.info.form empty form (OOS products — form not shown) */
.nc-pdp-info #product_addtocart_form:empty,
.nc-pdp-info form.mb-6:not(:has(input:not([type=hidden]), select, button)) {
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   v25 — Return policy notice + PDP responsive breakpoints
   2026-08-02
   ============================================================ */

/* ── Return policy notice ── */
.nc-pdp-return-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-left: 3px solid #F97316;
    border-radius: 4px;
    padding: 9px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #78350F;
    margin-bottom: 12px;
}
.nc-pdp-return-notice svg {
    color: #F97316;
    flex-shrink: 0;
    margin-top: 1px;
}
.nc-pdp-return-notice strong {
    color: #C2410C;
}

/* ── Responsive: ≤900px — stack gallery + buybox ── */
@media (max-width: 900px) {
    .nc-pdp-hero {
        grid-template-columns: 1fr;
    }
    .nc-pdp-gallery-main {
        max-height: 420px;
    }
    .nc-pdp-quick-specs-table td:first-child,
    .nc-pdp-quick-specs-table td:last-child {
        display: table-cell;
    }
}

/* ── Responsive: ≤768px ── */
@media (max-width: 768px) {
    .nc-pdp-hero {
        padding: 16px;
    }
    .nc-pdp-info {
        padding-left: 0 !important;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    .nc-pdp-gallery {
        min-width: 0;
    }
    .nc-pdp-gallery-main {
        max-height: 360px;
    }
    /* Thumbnails: single scrollable row */
    .nc-pdp-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 2px;
    }
    .nc-pdp-thumbs::-webkit-scrollbar {
        display: none;
    }
    .nc-pdp-thumb {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    /* Hyva nav#thumbs — same treatment */
    section#gallery nav#thumbs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    section#gallery nav#thumbs::-webkit-scrollbar {
        display: none;
    }
    section#gallery nav#thumbs button.relative.block {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }
}

/* ── Responsive: ≤600px ── */
@media (max-width: 600px) {
    .nc-pdp-hero {
        padding: 12px;
    }
    .nc-pdp-title,
    .nc-pdp-info h1 {
        font-size: 1.1rem !important;
    }
    .nc-pdp-price .price {
        font-size: 1.5rem !important;
    }
    .nc-pdp-thumb {
        width: 52px;
        height: 52px;
    }
    section#gallery nav#thumbs button.relative.block {
        width: 52px !important;
        height: 52px !important;
    }
    .nc-pdp-trust-item {
        font-size: 0.78rem;
    }
    .nc-pdp-return-notice {
        font-size: 0.75rem;
    }
}

/* ── Responsive: ≤400px ── */
@media (max-width: 400px) {
    .nc-pdp-secondary-links {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Order Success Page — Map, Timeline, Address blocks
   Swissup CheckoutSuccess CMS block injection
   ══════════════════════════════════════════════════════════════ */

/* ── Map wrapper ──────────────────────────────────────────── */
.nc-success-map-wrap {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.nc-map-container { position: relative; }
.nc-map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* ── Location pill (overlaid on map) ──────────────────────── */
.nc-map-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #D1D5DB;
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    white-space: nowrap;
}
.nc-map-dot {
    width: 10px;
    height: 10px;
    background: #16A34A;
    border-radius: 50%;
    animation: nc-pulse 2s infinite;
}
@keyframes nc-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.6; transform:scale(.85); }
}

/* ── Address / Delivery row ───────────────────────────────── */
.nc-delivery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 20px;
    border-top: 1px solid #D1D5DB;
}
@media (max-width:640px) {
    .nc-delivery-row { grid-template-columns: 1fr; }
}
.nc-addr-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #19548E;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.nc-addr-text { font-size: 13px; line-height: 1.7; color: #374151; }
.nc-addr-text strong { display: block; font-weight: 600; color: #111827; margin-bottom: 2px; }
.nc-addr-text small  { font-size: 11px; color: #6B7280; }

/* ── Order status timeline ────────────────────────────────── */
.nc-timeline-wrap { padding: 4px 0; }
.nc-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #19548E;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
}
.nc-timeline {
    list-style: none;
    position: relative;
    padding-left: 24px;
}
.nc-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: #D1D5DB;
}
.nc-tl-item {
    position: relative;
    margin-bottom: 18px;
    font-size: 13px;
}
.nc-tl-dot {
    position: absolute;
    left: -24px; top: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background: #fff;
    z-index: 1;
}
.nc-tl-item.done .nc-tl-dot   { background: #19548E; border-color: #19548E; }
.nc-tl-item.active .nc-tl-dot {
    background: #fff;
    border-color: #19548E;
    box-shadow: 0 0 0 3px rgba(25,84,142,.15);
}
.nc-tl-title { display: block; font-weight: 600; color: #111827; }
.nc-tl-item:not(.done):not(.active) .nc-tl-title { color: #6B7280; }
.nc-tl-sub { font-size: 12px; color: #6B7280; }

/* ── PDP OOS State ──────────────────────────────────────────────────────────── */
.nc-pdp-oos-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
}

.nc-pdp-oos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-family-barlow, 'Barlow Semi Condensed', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #6B7280;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    opacity: 0.85;
}

/* AW notify block is rendered with display:none; JS moves it based on .box-tocart selector
   which doesn't exist on OOS products. Force-show it when inside our OOS wrap. */
.nc-pdp-oos-wrap .aw-cus__stock-notification {
    display: block !important;
    width: 100%;
}

/* AW CustomStockStatus notify button — PDP */
.nc-pdp-oos-wrap .stock-notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-family: var(--font-family-barlow, 'Barlow Semi Condensed', sans-serif);
    font-size: 0.9375rem !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #92400E !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.nc-pdp-oos-wrap .stock-notification-button:hover {
    background: #7C3610 !important;
}

.nc-pdp-oos-wrap .stock-notification-button::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url(data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox=0 0 24 24 fill=none stroke=%23ffffff stroke-width=2.5 stroke-linecap=round stroke-linejoin=round%3E%3Cpath d=M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9/%3E%3Cpath d=M13.73 21a2 2 0 0 1-3.46 0/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

/* ── Back-in-stock guest form (nc-pdp-bis) ── */
.nc-pdp-bis-wrap {
    width: 100%;
}

.nc-pdp-bis-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nc-pdp-bis-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-family: var(--font-family-barlow, 'Barlow Semi Condensed', sans-serif);
    font-size: 0.9375rem;
    border: 1px solid #B4BDC9;
    border-radius: 6px;
    background: #fff;
    color: #575d64;
    outline: none;
    transition: border-color 0.15s ease;
}

.nc-pdp-bis-input:focus {
    border-color: #19548E;
    box-shadow: 0 0 0 2px rgba(25, 84, 142, 0.12);
}

.nc-pdp-bis-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nc-pdp-bis-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-family: var(--font-family-barlow, 'Barlow Semi Condensed', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: transparent;
    color: #575d64;
    border: 1px solid #B4BDC9;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.nc-pdp-bis-cancel:hover {
    border-color: #575d64;
    color: #28251D;
}


/* =============================================================
   SBP BUNDLE — buybox bundle item list styling
   ============================================================= */

/* Remove stray "Customize" CTA if SBP doesn't suppress it */
.product-info-main .bundle-actions .action.primary.customize {
    display: none !important;
}


/* =============================================================
   SBP BUNDLE ITEMS — clean "Includes:" list in buybox
   ============================================================= */

/* Hide any price spans the extension injects next to the label */
/* Scoped strictly to bundle option containers — never affects PLP */
.aw-sbp__bundle-options-container .bundle-option-qty,
.fieldset-bundle-options .bundle-option-qty,
.aw-sbp__bundle-options-container [id$="-qty-input"],
.fieldset-bundle-options [id$="-qty-input"],
.aw-sbp__bundle-options-container .price-notice,
.fieldset-bundle-options .price-notice,
.aw-sbp__bundle-options-container .field.choice .price-container,
.fieldset-bundle-options .field.choice .price-container {
    display: none !important;
}

/* Each bundle item row */
.nc-sbp-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid var(--nc-border, #e0ddd8);
    font-size: 0.82rem;
    line-height: 1.4;
}
.nc-sbp-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* "Slide:" / "UFO:" label */
.nc-sbp-item-label {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nc-gray, #6b7280);
    white-space: nowrap;
    flex-shrink: 0;
}
.nc-sbp-item-label::after { content: ":"; }

/* Product name */
.nc-sbp-item-name { color: var(--nc-heading, #1a1a1a); font-weight: 500; }
.nc-sbp-item-link { color: var(--nc-primary, #015b61); text-decoration: none; }
.nc-sbp-item-link:hover { text-decoration: underline; }

/* =============================================================
   LOWER SECTION GRID — left column stretches to match right
   ============================================================= */

/* The tabs section (description/specs) stretches to fill the
   full height of the grid row, so its border reaches the bottom
   even when the right column is taller. */
.nc-pdp-tabs-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* The tabs container inside should expand to fill */
.nc-pdp-tabs-section > .nc-pdp-tabs,
.nc-pdp-tabs-section > [x-data] {
    flex: 1;
}

/* Right column items stack with spacing */
.product-options-bottom > *:not(.nc-pdp-tabs-section) + *:not(.nc-pdp-tabs-section) {
    margin-top: 24px;
}

/* =============================================================
   SBP BUNDLE OPTION — hide QUANTITY label + +$0.00 price
   ============================================================= */

/* "QUANTITY" label that options.phtml or JS renders per option */
.aw-sbp__bundle-options-container .field.qty,
.bundle-options-container .field.qty,
.fieldset-bundle-options .field.qty {
    display: none !important;
}

/* +$0.00 price appended by Magento bundle JS / price-notice span */
.fieldset-bundle-options .price-notice,
.fieldset-bundle-options .price-wrapper,
.fieldset-bundle-options .price-box,
.fieldset-bundle-options .price-container,
.aw-sbp__bundle-options-container .price-notice,
.aw-sbp__bundle-options-container .price-wrapper {
    display: none !important;
}

/* Also hide the option-level title label rendered by options.phtml
   since our checkbox.phtml already shows it inside .nc-sbp-item-label */
.fieldset-bundle-options > .my-2 > .label,
.fieldset-bundle-options .my-2.pt-4 > label.label {
    display: none !important;
}

/* =============================================================
   DYNAMIC PDP LAYOUT — nc-layout-two-col / nc-layout-stacked
   Controlled by PHP in bottom.phtml based on product data.
   ============================================================= */

/* --- Stacked: everything full width, stacked vertically --- */
.catalog-product-view .nc-layout-stacked {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    justify-content: unset !important;
}
.catalog-product-view .nc-layout-stacked > * {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Two-col: tabs left 52%, fitment right — desktop only --- */
@media (min-width: 768px) {
    .catalog-product-view .nc-layout-two-col {
        display: grid !important;
        grid-template-columns: 52% 1fr !important;
        grid-template-rows: auto !important;
        column-gap: 32px !important;
        row-gap: 0 !important;
        align-items: start !important;
        justify-content: unset !important;
    }
    .catalog-product-view .nc-layout-two-col > * {
        width: 100% !important;
        max-width: 100% !important;
    }
    .catalog-product-view .nc-layout-two-col .nc-pdp-col-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    .catalog-product-view .nc-layout-two-col .nc-pdp-col-right {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    .catalog-product-view .nc-layout-two-col .nc-pdp-full-width {
        grid-column: 1 / -1 !important;
    }
}

/* --- Mobile: both layouts fully stacked --- */
@media (max-width: 767px) {
    .catalog-product-view .nc-layout-two-col,
    .catalog-product-view .nc-layout-stacked {
        display: flex !important;
        flex-direction: column !important;
    }
    .catalog-product-view .nc-layout-two-col > *,
    .catalog-product-view .nc-layout-stacked > * {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =============================================================
   SPECS TABLE — clean two-column layout
   ============================================================= */
.nc-specs-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.nc-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.nc-specs-table tr {
    border-bottom: 1px solid var(--nc-border, #e5e7eb);
}
.nc-specs-table tr:last-child {
    border-bottom: none;
}
.nc-spec-label {
    width: 40%;
    padding: 10px 16px 10px 0;
    text-align: left;
    font-weight: 500;
    color: var(--nc-gray, #6b7280);
    vertical-align: top;
}
.nc-spec-value {
    width: 60%;
    padding: 10px 0;
    text-align: left;
    vertical-align: top;
}

/* =============================================================
   TAB PANEL — remove prose max-width constraint
   ============================================================= */
.nc-pdp-tab-panel .prose {
    max-width: none !important;
}
.nc-pdp-tabs-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}
