/* ==========================================================================
   Product Pages — Shop Grid, Cards, Tier Pricing, Pagination
   Stitch references: screen_08 (Guest), screen_07 (Partner)
   ========================================================================== */


/* === Section 1: Shop Page Layout === */

.hd-shop-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hd-catalog-section {
    padding-top: 130px;   /* navbar clearance + breathing */
    padding-bottom: 40px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    position: relative;
    overflow: hidden;
}

/* Decorative blur circles (Stitch: absolute orbs) */
.hd-catalog-blur-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: rgba(197, 157, 95, 0.05);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(50%, -50%);
    pointer-events: none;
}

.hd-catalog-blur-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: rgba(226, 232, 240, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    transform: translate(-50%, 50%);
    pointer-events: none;
}

.hd-catalog-container {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}


/* === Section 2: Catalog Header === */

.hd-catalog-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.hd-catalog-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hd-catalog-header h1 {
    font-size: 2.5rem;
    font-family: var(--hd-font-display);
    font-weight: 500;
    color: var(--hd-slate-900);
    line-height: 1.15;
    margin-bottom: 0;
}

.hd-catalog-subtitle {
    display: block;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    font-weight: 300;
}

.hd-catalog-subtitle-guest {
    font-style: italic;
    color: var(--hd-slate-400);
}

.hd-catalog-subtitle-partner {
    color: var(--hd-primary);
    font-style: normal;
}

/* Connected badge pills: Account Verified + ID */
.hd-catalog-badge-group {
    display: inline-flex;
    align-items: stretch;
    gap: 3px;
}

.hd-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.3;
}

.hd-badge-pill-left {
    border-radius: 9999px 0 0 9999px;
}

.hd-badge-pill-right {
    border-radius: 0 9999px 9999px 0;
}

.hd-badge-pill.hd-badge-verified {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
    border-right: none;
    gap: 0.375rem;
}

.hd-badge-pill.hd-badge-id {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-left: none;
    font-family: var(--hd-font-sans);
}

.hd-badge-pill.hd-badge-guest {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    gap: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hd-badge-pill.hd-badge-guest .material-symbols-outlined {
    font-size: 0.875rem;
}

/* Standalone verified badge (single product page, etc.) */
.hd-badge-verified:not(.hd-badge-pill) {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
    gap: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hd-pulse-dot {
    position: relative;
    display: inline-flex;
    width: 0.5rem;
    height: 0.5rem;
}

.hd-pulse-dot-ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0.75;
    animation: hd-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hd-pulse-dot-core {
    position: relative;
    display: inline-flex;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
}

/* Sort / filter controls */
.hd-catalog-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.hd-catalog-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-slate-600);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: border-color var(--hd-transition-fast);
    font-family: var(--hd-font-sans);
}

.hd-catalog-filter-btn:hover {
    border-color: rgba(197, 157, 95, 0.5);
}

.hd-catalog-filter-btn .material-symbols-outlined {
    font-size: 1.125rem;
    color: var(--hd-primary);
}

.hd-catalog-sort-wrap {
    position: relative;
}

.hd-catalog-sort {
    appearance: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-slate-600);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: border-color var(--hd-transition-fast);
    font-family: var(--hd-font-sans);
}

.hd-catalog-sort:hover {
    border-color: rgba(197, 157, 95, 0.5);
}

.hd-catalog-sort:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

.hd-catalog-sort-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.875rem;
    color: var(--hd-slate-400);
}


/* === Section 3: Product Grid === */

.hd-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}


/* === Section 4: Product Card — Shared Base === */

.hd-product-card {
    position: relative;
    border-radius: var(--hd-radius-xl);
    overflow: hidden;
    transition: all 500ms ease;
}

/* Hover feedback now handled by mouse-follow zoom on .hd-card-image */


/* === Section 5: Guest Product Card === */

.hd-card-guest {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    box-shadow: var(--hd-shadow-layered);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hd-card-guest:hover {
    box-shadow: var(--hd-shadow-layered-hover);
    border-color: rgba(197, 157, 95, 0.2);
}

/* Image container */
.hd-card-image {
    position: relative;
    aspect-ratio: 16 / 8;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hd-shadow-soft);
    border: 1px solid var(--hd-surface-offset);
}

.hd-card-image img,
.hd-card-image .hd-card-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    transform-origin: center center;
}

/* Mouse-follow zoom: JS sets transform-origin to cursor position */
.hd-card-image.hd-zoom-active img,
.hd-card-image.hd-zoom-active .hd-card-product-img {
    transform: scale(1.5);
}

/* Grade badge (on image) */
.hd-card-grade-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hd-surface-offset);
    padding: 0.375rem 0.75rem;
    border-radius: var(--hd-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hd-slate-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    z-index: 5;
}

.hd-grade-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hd-primary);
    flex-shrink: 0;
}

/* Card content */
.hd-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hd-card-title {
    font-size: 1.25rem;
    font-family: var(--hd-font-display);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hd-card-title a {
    color: var(--hd-slate-900);
    text-decoration: none;
    transition: color 300ms ease;
}

.hd-card-guest:hover .hd-card-title a {
    color: var(--hd-primary);
}

.hd-card-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hd-card-sku {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--hd-slate-900);
    background: var(--hd-surface-offset);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--hd-surface-offset);
    display: inline-block;
    width: fit-content;
}

/* Dimensions line (e.g., "Dia: 24x18") */
.hd-card-dimensions {
    display: block;
    font-size: 0.875rem;
    color: var(--hd-slate-900);
    font-weight: 500;
    font-family: var(--hd-font-sans);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.hd-card-desc {
    color: var(--hd-slate-900);
    font-size: 0.8125rem;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

/* Guest card footer */
.hd-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hd-surface-offset);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hd-card-price-locked {
    font-family: var(--hd-font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--hd-slate-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.hd-card-price-locked .material-symbols-outlined {
    font-size: 1.125rem;
    opacity: 0.6;
}

/* LOGIN TO ORDER CTA */
.hd-card-cta {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.hd-card-cta .material-symbols-outlined {
    font-size: 1.125rem;
}


/* === Section 6: Partner Product Card === */

.hd-card-partner {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    box-shadow: var(--hd-shadow-layered);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
}

.hd-card-partner:hover {
    box-shadow: var(--hd-shadow-layered-hover);
    border-color: rgba(197, 157, 95, 0.3);
}

.hd-card-partner:hover .hd-card-title a {
    color: var(--hd-primary);
}

/* 2-column layout: stacks on mobile, side-by-side on XL */
.hd-card-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Image column */
.hd-card-image-col {
    width: 100%;
    flex-shrink: 0;
}

.hd-card-image-col .hd-card-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border-radius: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid white;
    margin-bottom: 0;
}

.hd-card-partner:hover .hd-card-image-col .hd-card-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Partner card uses same mouse-follow zoom via .hd-zoom-active class */

.hd-card-image-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* Small grade badge for partner card */
.hd-card-grade-badge-sm {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--hd-slate-500);
    border: 1px solid var(--hd-surface-offset);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    z-index: 5;
}

/* Stock indicators */
.hd-card-stock {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
}

.hd-card-stock .material-symbols-outlined {
    font-size: 14px;
}

.hd-card-stock-in {
    color: #16a34a;
}

.hd-card-stock-low {
    color: #d97706;
}

.hd-card-stock-out {
    color: #dc2626;
}

/* Content column */
.hd-card-content-col {
    flex: 1;
    min-width: 0;      /* Allow shrinking below content width — fixes overflow */
    display: flex;
    flex-direction: column;
}

.hd-card-content-col .hd-card-title {
    margin-bottom: 0.25rem;
}

.hd-card-content-col .hd-card-title a {
    display: block;
}

.hd-card-content-col .hd-card-desc {
    margin-bottom: 0.75rem;
}


/* === Section 7: Tier Pricing — Compact Grid (Stitch) + Table Mini (Cards) === */

/* Compact grid (used on single product page) */
.hd-tier-compact {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--hd-surface-offset);
    box-shadow: var(--hd-shadow-soft);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.hd-tier-compact-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    background: rgba(197, 157, 95, 0.1);
    border-bottom-left-radius: 100%;
    margin-right: -2rem;
    margin-top: -2rem;
    pointer-events: none;
}

.hd-tier-base {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.hd-tier-stock-pill {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #166534;
    background: #dcfce7;
    padding: 0.25rem 0.625rem;
    border-radius: var(--hd-radius-full);
    font-weight: 600;
    font-family: var(--hd-font-sans);
    white-space: nowrap;
}

.hd-tier-stock-pill .material-symbols-outlined {
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Hide WC default stock display (we show it in the tier base row) */
.hd-single-add-to-cart .stock {
    display: none;
}

.hd-tier-base-label {
    font-size: 0.75rem;
    color: var(--hd-slate-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hd-tier-base-value {
    display: flex;
    flex-direction: column;
}

.hd-tier-base-price {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--hd-slate-900);
    font-family: var(--hd-font-display);
    line-height: 1.2;
}

.hd-tier-base-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.hd-tier-base-tax {
    font-size: 0.8125rem;
    color: var(--hd-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hd-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    text-align: center;
}

.hd-tier-qty {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hd-text-muted);
    padding-bottom: 4px;
}

.hd-tier-col {
    background: var(--hd-surface-offset);
    border-radius: 6px;
    padding: 6px 4px;
    border: 1px solid var(--hd-surface-offset);
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.hd-tier-col:hover {
    background: rgba(197, 157, 95, 0.08);
    border-color: rgba(197, 157, 95, 0.15);
    transform: translateY(-1px);
}

.hd-tier-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--hd-charcoal);
}

.hd-tier-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.hd-tier-price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.hd-tier-col-active {
    background: rgba(197, 157, 95, 0.1);
    border-color: rgba(197, 157, 95, 0.2);
    box-shadow: var(--hd-shadow-soft);
    position: relative;
}

.hd-tier-col-active::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--hd-primary);
    border-radius: 50%;
    animation: hd-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hd-tier-col-active .hd-tier-qty {
    color: var(--hd-primary-dark);
}

.hd-tier-col-active .hd-tier-price {
    color: var(--hd-primary-dark);
}

.hd-tier-col-active .hd-tier-price .woocommerce-Price-amount {
    color: inherit;
}

/* Table mini — 3-column tier grid for shop cards */
.hd-tier-table-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 0.75rem;
}

.hd-tier-table-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.3rem 0.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hd-tier-table-qty {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--hd-slate-500);
    text-transform: uppercase;
}

.hd-tier-table-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--hd-slate-900);
    font-family: var(--hd-font-sans);
}

/* Pulse keyframes (shared by verified badge + tier active dot) */
@keyframes hd-pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}


/* === Section 8: Card Actions (Quantity + Button) === */

.hd-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    max-width: 100%;
}

.hd-qty-input {
    position: relative;
    width: 6rem;
    flex-shrink: 0;
}

.hd-qty-field {
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-slate-900);
    font-family: var(--hd-font-sans);
    transition: border-color var(--hd-transition-fast), box-shadow var(--hd-transition-fast);
}

.hd-qty-field:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

/* Remove number input spinners */
.hd-qty-field::-webkit-outer-spin-button,
.hd-qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hd-qty-field[type=number] {
    -moz-appearance: textfield;
}

.hd-qty-min {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--hd-slate-400);
    font-weight: 500;
}

/* Add to Enquiry button */
.hd-card-enquiry-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #1c1c1c;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-bottom: 2px solid rgba(197, 157, 95, 0.5);
    transition: all 300ms ease;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--hd-font-sans);
}

.hd-card-enquiry-btn:hover {
    background: black;
    box-shadow: var(--hd-shadow-gold);
    color: white;
}

.hd-card-enquiry-btn .material-symbols-outlined {
    font-size: 20px;
    color: var(--hd-primary);
    transition: color 300ms ease;
}

.hd-card-enquiry-btn:hover .material-symbols-outlined {
    color: white;
}

/* View Details button (shop card — links to single product page) */
.hd-card-view-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #1c1c1c;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-bottom: 2px solid rgba(197, 157, 95, 0.5);
    transition: all 300ms ease;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--hd-font-sans);
}

.hd-card-view-btn:hover {
    background: black;
    box-shadow: var(--hd-shadow-gold);
    color: white;
}

.hd-card-view-btn .material-symbols-outlined {
    font-size: 20px;
    color: var(--hd-primary);
    transition: color 300ms ease, transform 300ms ease;
}

.hd-card-view-btn:hover .material-symbols-outlined {
    color: white;
    transform: translateX(4px);
}


/* === Section 9: Pagination === */

.hd-catalog-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
    font-size: 0.875rem;
    color: var(--hd-slate-500);
}

.hd-catalog-pagination-info {
    margin: 0;
}

.hd-catalog-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
}

.hd-catalog-pagination a.page-numbers,
.hd-catalog-pagination span.page-numbers {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 200ms ease;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hd-slate-600);
}

.hd-catalog-pagination a.page-numbers:hover {
    background: white;
    border-color: rgba(197, 157, 95, 0.5);
    color: var(--hd-primary);
}

.hd-catalog-pagination span.current {
    background: var(--hd-primary);
    color: white;
    box-shadow: var(--hd-shadow-gold);
    border-color: var(--hd-primary);
}

/* Prev / Next arrows */
.hd-catalog-pagination a.prev,
.hd-catalog-pagination a.next {
    font-size: 0;
}

.hd-catalog-pagination a.prev .material-symbols-outlined,
.hd-catalog-pagination a.next .material-symbols-outlined {
    font-size: 0.875rem;
}

.hd-catalog-pagination .dots {
    border: none;
    color: var(--hd-slate-400);
}


/* === Section 10: Empty State === */

.hd-no-products {
    text-align: center;
    padding: 4rem 0;
}

.hd-no-products .material-symbols-outlined {
    font-size: 3rem;
    color: var(--hd-slate-400);
    margin-bottom: 1rem;
}

.hd-no-products h3 {
    font-size: 1.5rem;
    color: var(--hd-slate-600);
    margin-bottom: 0.5rem;
}

.hd-no-products p {
    color: var(--hd-slate-400);
    font-size: 0.875rem;
}

/* Image placeholder when product has no photo */
.hd-card-placeholder-icon {
    font-size: 4rem;
    color: var(--hd-slate-300);
    opacity: 0.6;
}

/* WooCommerce image override — prevent WC global styles from breaking our images */
.woocommerce .hd-card-image img,
.woocommerce-page .hd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}

.woocommerce .hd-single-image-card img,
.woocommerce-page .hd-single-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
}


/* === Section 11: XL Breakpoint — Partner Card 2-Column Layout === */

@media (min-width: 1280px) {
    .hd-card-layout {
        flex-direction: row;
    }

    .hd-card-image-col {
        width: 40%;
        display: flex;
        flex-direction: column;
    }

    /* Content drives the card height — image fills available space */
    .hd-card-image-col .hd-card-image {
        aspect-ratio: auto;
        flex: 1;
        min-height: 180px;
    }

    .hd-card-image-meta {
        text-align: left;
    }

    .hd-card-image-meta .hd-card-sku {
        margin-left: 0;
        margin-right: auto;
    }

    .hd-card-stock {
        justify-content: flex-start;
    }
}


/* === Section 12: Responsive — Tablet + Mobile === */

@media (max-width: 1024px) {
    .hd-catalog-container {
        width: 90%;
    }

    .hd-catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hd-catalog-header h1 {
        font-size: 2.25rem;
    }

    .hd-catalog-subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hd-product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hd-catalog-container {
        width: 92%;
    }

    .hd-catalog-section {
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hd-catalog-header h1 {
        font-size: 1.75rem;
    }

    .hd-catalog-subtitle {
        font-size: 1rem;
    }

    .hd-card-guest,
    .hd-card-partner {
        padding: 1.5rem;
    }

    .hd-tier-grid {
        gap: 2px;
    }

    .hd-catalog-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hd-card-actions {
        flex-direction: column;
    }

    .hd-qty-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hd-qty-min {
        position: static;
        display: block;
        margin-top: 0.25rem;
    }
}


/* === Legacy: Tier Table (used by single-product.php quantity-pricing.js) === */

.hd-tier-table-wrap {
    margin: 25px 0;
    padding: 20px;
    background: var(--hd-surface-offset);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.hd-tier-table-wrap h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--hd-charcoal);
}

.hd-tier-table {
    width: 100%;
    border-collapse: collapse;
}

.hd-tier-table th {
    font-family: var(--hd-font-display);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hd-charcoal);
    background: white;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--hd-primary);
}

.hd-tier-table td {
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.hd-tier-table tbody tr:hover {
    background: white;
}

.hd-tier-table .hd-tier-active {
    background: rgba(197, 157, 95, 0.1);
    font-weight: 600;
}

.hd-tier-table .hd-tier-active td {
    color: var(--hd-charcoal);
}

.hd-tier-savings {
    color: var(--hd-success);
    font-size: 12px;
    font-weight: 600;
}

.hd-product-price {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
}

.hd-product-price .hd-price-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--hd-text-muted);
    display: block;
    margin-bottom: 4px;
}

.hd-product-price .hd-price-excl-tax {
    font-size: 12px;
    font-weight: 400;
    color: var(--hd-text-muted);
}

.hd-min-qty-notice {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #92400e;
    margin: 10px 0;
}

.hd-guest-product-cta {
    text-align: center;
    padding: 30px;
    background: var(--hd-surface-offset);
    border-radius: 8px;
    margin: 20px 0;
}

.hd-guest-product-cta p {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--hd-charcoal);
}

.hd-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.hd-specs-table th,
.hd-specs-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.hd-specs-table th {
    width: 40%;
    font-weight: 600;
    color: var(--hd-charcoal);
    background: var(--hd-surface-offset);
}

.woocommerce .quantity .qty {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
}

.woocommerce .single_add_to_cart_button {
    background: var(--hd-gradient-metallic-gold) !important;
    color: white !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    font-family: var(--hd-font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 300ms ease !important;
}

.woocommerce .single_add_to_cart_button:hover {
    background: var(--hd-charcoal) !important;
}


/* ==========================================================================
   Single Product Page — Layout, Image, Content, Tier, CTA, WC Overrides
   Stitch references: screen_08 (Guest), screen_07 (Partner) adapted for single
   ========================================================================== */


/* === Section 13: Single Product Layout === */

.hd-single-product {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.hd-single-container {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 130px;
    padding-bottom: 40px;
    position: relative;
    z-index: 10;
}

.hd-single-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2.5rem;
    align-items: start;
}

/* Breadcrumb */
.hd-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--hd-slate-400);
}

.hd-single-breadcrumb a {
    color: var(--hd-slate-500);
    text-decoration: none;
    transition: color var(--hd-transition-fast);
}

.hd-single-breadcrumb a:hover {
    color: var(--hd-primary);
}

.hd-single-breadcrumb .material-symbols-outlined {
    font-size: 1rem;
    color: var(--hd-slate-400);
}

.hd-breadcrumb-current {
    color: var(--hd-slate-600);
    font-weight: 600;
}

/* ── Rank Math breadcrumb overrides ── */
.hd-single-breadcrumb .rank-math-breadcrumb p {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin: 0;
    font-size: 0.8125rem;
}

.hd-single-breadcrumb .rank-math-breadcrumb a {
    color: var(--hd-slate-500, #64748b);
    text-decoration: none;
    transition: color var(--hd-transition-fast);
}

.hd-single-breadcrumb .rank-math-breadcrumb a:hover {
    color: var(--hd-gold, #c5a356);
}

.hd-single-breadcrumb .rank-math-breadcrumb .separator {
    color: var(--hd-slate-400, #94a3b8);
    font-size: 0.75rem;
}

.hd-single-breadcrumb .rank-math-breadcrumb .last {
    color: var(--hd-slate-600, #475569);
    font-weight: 600;
}


/* === Section 14: Single Product Image === */

.hd-single-image-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: var(--hd-radius-xl);
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: var(--hd-shadow-layered);
    border: 1px solid white;
    position: sticky;
    top: 120px;
}

.hd-single-image-card > .hd-single-product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--hd-radius-lg);
}

.hd-single-no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-surface-offset);
    border-radius: var(--hd-radius-lg);
}

.hd-single-no-image .material-symbols-outlined {
    font-size: 4rem;
    color: var(--hd-slate-400);
}

/* Grade badge positioning on single product image */
.hd-single-image-card .hd-card-grade-badge {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
}


/* === Section 14b: Product Gallery === */

.hd-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hd-gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: white;
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hd-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 300ms ease;
}

.hd-gallery-img-active {
    opacity: 1;
}

/* Arrow buttons */
.hd-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--hd-slate-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms ease, background 200ms ease;
    z-index: 10;
    padding: 0;
}

.hd-gallery-main:hover .hd-gallery-arrow {
    opacity: 1;
}

.hd-gallery-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--hd-charcoal);
}

.hd-gallery-prev {
    left: 0.75rem;
}

.hd-gallery-next {
    right: 0.75rem;
}

.hd-gallery-arrow .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Thumbnail strip */
.hd-gallery-nav {
    position: relative;
}

.hd-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px;
}

.hd-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.hd-gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--hd-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    padding: 0;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

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

.hd-gallery-thumb:hover {
    border-color: var(--hd-slate-300);
}

.hd-gallery-thumb-active {
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

/* Mobile: always show arrows, smaller thumbs */
@media (max-width: 768px) {
    .hd-gallery-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .hd-gallery-prev {
        left: 0.5rem;
    }

    .hd-gallery-next {
        right: 0.5rem;
    }

    .hd-gallery-thumb {
        width: 52px;
        height: 52px;
    }
}


/* === Section 15: Single Product Content === */

.hd-single-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hd-single-title {
    font-size: 2.5rem;
    font-family: var(--hd-font-display);
    font-weight: 700;
    color: var(--hd-slate-900);
    line-height: 1.2;
    margin-bottom: 0;
}

.hd-single-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.hd-single-desc {
    color: var(--hd-slate-500);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.hd-single-desc p {
    margin-bottom: 0.75rem;
}

.hd-single-desc p:last-child {
    margin-bottom: 0;
}

.hd-single-long-desc {
    color: var(--hd-text-main);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.hd-single-long-desc h3,
.hd-single-long-desc h4 {
    font-family: var(--hd-font-display);
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.hd-single-long-desc h3 {
    font-size: 1.25rem;
}

.hd-single-long-desc h4 {
    font-size: 1.125rem;
}

.hd-single-long-desc ul,
.hd-single-long-desc ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.hd-single-long-desc li {
    margin-bottom: 0.25rem;
}

.hd-single-long-desc p {
    margin-bottom: 0.75rem;
}

.hd-single-long-desc p:last-child {
    margin-bottom: 0;
}


/* === Section 16: Single Product Tier Section === */

.hd-single-tier-section {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--hd-surface-offset);
    box-shadow: var(--hd-shadow-soft);
}

.hd-single-tier-section h4 {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--hd-font-display);
    margin-bottom: 1rem;
    color: var(--hd-charcoal);
}

.hd-single-tier-placeholder {
    color: var(--hd-slate-400);
    font-size: 0.875rem;
    font-style: italic;
}

/* Tier table rendered by JS inside #hd-tier-table-target */
#hd-tier-table-target .hd-tier-table {
    margin-bottom: 0;
}

/* Minimum order notice */
.hd-single-min-notice {
    background: #fff3cd;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: #92400e;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hd-single-min-notice .material-symbols-outlined {
    font-size: 1.125rem;
    flex-shrink: 0;
}


/* === Section 17: Guest CTA Box === */

.hd-guest-cta-box {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: var(--hd-radius-lg);
    padding: 2rem;
    border: 1px solid var(--hd-surface-offset);
    text-align: center;
    box-shadow: var(--hd-shadow-soft);
}

.hd-guest-cta-box .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--hd-slate-400);
    margin-bottom: 1rem;
    display: block;
}

.hd-guest-cta-box h3 {
    font-size: 1.25rem;
    font-family: var(--hd-font-display);
    font-weight: 700;
    color: var(--hd-slate-900);
    margin-bottom: 0.5rem;
}

.hd-guest-cta-box p {
    color: var(--hd-slate-500);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.hd-guest-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* === Section 18: WC Add to Cart Overrides (Single Product) === */

.hd-single-add-to-cart {
    margin-top: 0.5rem;
}

/* Variation selector table */
.hd-single-add-to-cart .variations {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.hd-single-add-to-cart .variations td {
    padding: 0.5rem 0;
    border: none;
}

.hd-single-add-to-cart .variations td.label {
    font-weight: 700;
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hd-slate-500);
    padding-right: 1rem;
    vertical-align: middle;
    width: auto;
    white-space: nowrap;
}

.hd-single-add-to-cart .variations td.label label {
    font-weight: inherit;
    font-size: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.hd-single-add-to-cart .variations td.value {
    width: 100%;
}

.hd-single-add-to-cart .variations td.value select {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--hd-font-sans);
    color: var(--hd-text-main);
    transition: border-color var(--hd-transition-fast), box-shadow var(--hd-transition-fast);
    appearance: auto;
    cursor: pointer;
}

.hd-single-add-to-cart .variations td.value select:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

/* Variation price display */
.hd-single-add-to-cart .woocommerce-variation-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--hd-font-display);
    color: var(--hd-charcoal);
    margin: 0.75rem 0;
}

.hd-single-add-to-cart .woocommerce-variation-price .price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Variation description */
.hd-single-add-to-cart .woocommerce-variation-description {
    color: var(--hd-slate-500);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Quantity input */
.hd-single-add-to-cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.hd-single-add-to-cart .quantity .qty {
    width: 5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    font-family: var(--hd-font-sans);
    color: var(--hd-slate-900);
    transition: border-color var(--hd-transition-fast), box-shadow var(--hd-transition-fast);
}

.hd-single-add-to-cart .quantity .qty:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

/* +/- quantity buttons (WC template override) */
.hd-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.hd-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--hd-slate-400);
    cursor: pointer;
    transition: color 200ms ease, background 200ms ease;
    font-family: var(--hd-font-sans);
    line-height: 1;
}

.hd-qty-btn:hover {
    color: var(--hd-primary);
    background: rgba(197, 157, 95, 0.05);
}

.hd-qty-wrapper .qty {
    width: 3.5rem;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 0;
    font-family: var(--hd-font-sans);
    color: var(--hd-slate-900);
    background: transparent;
    outline: none;
}

/* Min units label below quantity */
.hd-qty-min-label {
    display: block;
    font-size: 13px;
    color: var(--hd-slate-400);
    font-weight: 500;
    margin-top: 0.25rem;
    font-family: var(--hd-font-sans);
}

/* Remove number input spinners */
.hd-qty-wrapper .qty::-webkit-outer-spin-button,
.hd-qty-wrapper .qty::-webkit-inner-spin-button,
.hd-single-add-to-cart .quantity .qty::-webkit-outer-spin-button,
.hd-single-add-to-cart .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hd-qty-wrapper .qty[type=number],
.hd-single-add-to-cart .quantity .qty[type=number] {
    -moz-appearance: textfield;
}

/* Add to Enquiry button (gold gradient, matches Stitch) */
.hd-single-add-to-cart .single_add_to_cart_button {
    background: var(--hd-gradient-metallic-gold) !important;
    color: white !important;
    border-radius: var(--hd-radius-full) !important;
    padding: 0.875rem 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.875rem !important;
    font-family: var(--hd-font-sans) !important;
    border: none !important;
    cursor: pointer;
    transition: all 300ms ease !important;
    box-shadow: var(--hd-shadow-gold) !important;
}

.hd-single-add-to-cart .single_add_to_cart_button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--hd-shadow-glow) !important;
}

.hd-single-add-to-cart .single_add_to_cart_button:disabled,
.hd-single-add-to-cart .single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Reset variation link */
.hd-single-add-to-cart .reset_variations {
    font-size: 0.75rem;
    color: var(--hd-slate-400);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: color var(--hd-transition-fast);
}

.hd-single-add-to-cart .reset_variations:hover {
    color: var(--hd-primary);
}

/* WC variation add-to-cart wrapper */
.hd-single-add-to-cart .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}


/* === Section 19: Specs Table (Single Product) === */

.hd-single-specs {
    margin-top: 0.5rem;
}

.hd-single-specs h3 {
    font-size: 1rem;
    font-family: var(--hd-font-display);
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.75rem;
}


/* === Section 20: WC Add-to-Cart Toast Notification === */

.woocommerce-message {
    position: fixed;
    top: 90px;
    right: 2rem;
    z-index: 1000;
    max-width: 380px;
    background: white;
    border-radius: var(--hd-radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #16a34a;
    font-size: 0.875rem;
    color: var(--hd-charcoal);
    font-family: var(--hd-font-sans);
    line-height: 1.5;
    animation: hd-toast-in 300ms ease-out;
}

.woocommerce-message a {
    color: var(--hd-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
}

.woocommerce-message a:hover {
    text-decoration: underline;
}

@keyframes hd-toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Cart icon pulse animation on add-to-cart */
@keyframes hd-cart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 12px rgba(197, 157, 95, 0.5); }
}

.hd-navbar-cart.hd-cart-pulse {
    animation: hd-cart-pulse 0.5s ease-in-out 4;
}


/* === Section 21: Hidden WC Hooks Container === */

.hd-wc-hooks-hidden {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}


/* === Section 21: Single Product Responsive === */

@media (max-width: 1024px) {
    .hd-single-container {
        width: 90%;
    }

    .hd-single-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hd-single-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hd-single-container {
        width: 92%;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hd-single-image-card {
        position: static;
        padding: 1.5rem;
    }

    .hd-single-title {
        font-size: 1.75rem;
    }

    .hd-single-content {
        gap: 1.25rem;
    }

    .hd-guest-cta-actions {
        flex-direction: column;
    }

    .hd-guest-cta-actions .hd-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hd-single-breadcrumb {
        font-size: 0.75rem;
    }

    .hd-single-add-to-cart .woocommerce-variation-add-to-cart {
        flex-direction: column;
        align-items: stretch;
    }

    .hd-single-add-to-cart .quantity {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .hd-single-add-to-cart .quantity .qty {
        width: 100%;
    }
}
