/**
 * Product Display Page (PDP) Styles
 *
 * @package Flaman_Storefront
 *
 * Design System Colors (from Figma):
 * --flaman-paragraph: #505050
 * --flaman-headings: #323232
 * --flaman-red: #C4161C
 * --flaman-red-dark: #890005
 * --flaman-blue: #003646
 * --flaman-blue-dark: #001D25
 * --flaman-secondary-3: #DBE1E5
 * --flaman-secondary-2: #8E8F95
 * --flaman-secondary-4: #EEF2F4
 */

/* =====================================================
   PDP Container & Layout
   ===================================================== */

/* Match header container: 1400px max-width with responsive padding */
.flaman-pdp {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 var(--spacing-lg) !important;
    font-family: var(--font-primary);
    box-sizing: border-box;
}

/* Ensure the parent container-wide doesn't add extra constraints */
.container-wide .site-main .flaman-pdp {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* =====================================================
   Breadcrumbs
   ===================================================== */

.pdp-breadcrumbs {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-sm);
}

.pdp-breadcrumbs .woocommerce-breadcrumb {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #AEAEAE;
    margin: 0;
    padding: 0;
}

.pdp-breadcrumbs .woocommerce-breadcrumb a {
    color: #C4161C;
    text-decoration: none;
}

.pdp-breadcrumbs .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* =====================================================
   Product Header
   ===================================================== */

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.product-header-main {
    flex: 1;
    min-width: 250px;
}

.product-detail-title {
    font-family: var(--font-primary);
    font-size: 35px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin: 0 0 var(--spacing-xs) 0;
}

.product-detail-sku {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    color: #505050;
}

.product-header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-shrink: 0;
}

.btn-header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 15px;
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    background: transparent;
    color: #373737;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    text-decoration: none;
    height: 45px;
    box-sizing: border-box;
}

.btn-header-action:hover {
    border-color: var(--flaman-red);
    color: var(--flaman-red);
}

.btn-header-action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Download dropdown button */
.btn-download-wrap {
    position: relative;
}

.btn-download {
    width: 45px;
    padding: 0;
}

.download-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
}

.btn-download-wrap.open .download-dropdown {
    display: block;
}

.download-dropdown__item {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: #323232;
    text-decoration: none;
    transition: background 0.1s ease;
}

.download-dropdown__item:hover {
    background: #F8F9FA;
    color: var(--flaman-red);
}

.download-dropdown__item + .download-dropdown__item {
    border-top: 1px solid #EEF2F4;
}

/* Share button */
.btn-share {
    width: 45px;
    padding: 0;
}

.btn-share svg {
    width: 24px;
    height: 24px;
}

/* =====================================================
   Product Detail Layout - Two Column
   ===================================================== */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: var(--spacing-lg);
    align-items: start;
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
    overflow: hidden;
}

/* =====================================================
   Product Gallery
   ===================================================== */

.product-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-gallery-main {
    position: relative;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background: transparent;
    max-width: 100%;
}

.product-gallery-main .main-product-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 670px;
    object-fit: contain;
    display: block;
    border-radius: 7px;
    background: #f5f5f5;
}

.product-gallery-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    padding: 3px;
    box-sizing: border-box;
}

/* Gallery Navigation Arrows on Main Image - Hidden */
.gallery-nav {
    display: none;
}

/* Thumbnail Navigation Wrapper */
.product-gallery-thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.thumb-nav {
    flex-shrink: 0;
    width: 52px;
    height: 100px;
    background: var(--background);
    border: 1px solid #DBE1E5;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: #323232;
}

.thumb-nav:hover {
    border-color: var(--flaman-red);
    color: var(--flaman-red);
}

.thumb-nav svg {
    width: 22px;
    height: 22px;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: var(--spacing-xs) 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumb {
    flex-shrink: 0;
    width: 133px;
    height: 100px;
    border-radius: 7px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
    background: transparent;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--flaman-red);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   Product Info Sidebar
   ===================================================== */

.product-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
}

/* Price Box */
.product-price-box {
    background: var(--background);
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    padding: 31px 32px;
    overflow: hidden;
}

/* Regular price line (shown above sale price when on sale) */
.product-price-regular {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.product-price-reg-label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: #323232;
}

.product-price-reg-amount {
    text-decoration: line-through;
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: #323232;
}

.product-price-reg-amount .woocommerce-Price-amount,
.product-price-reg-amount .woocommerce-Price-amount bdi,
.product-price-reg-amount .woocommerce-Price-currencySymbol {
    font-size: inherit;
    font-weight: inherit;
    color: inherit !important;
}

/* Active price (sale price when on sale, regular price otherwise) */
.product-price-main {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.product-price-main .price,
.product-price-main .woocommerce-Price-amount,
.product-price-main .woocommerce-Price-amount bdi,
.product-price-main .woocommerce-Price-currencySymbol {
    font-size: inherit;
    font-weight: inherit;
    color: #323232 !important;
}

.product-price-main.product-price-main--sale,
.product-price-main--sale .price,
.product-price-main--sale .woocommerce-Price-amount,
.product-price-main--sale .woocommerce-Price-amount bdi,
.product-price-main--sale .woocommerce-Price-currencySymbol {
    color: var(--flaman-red) !important;
}

.product-price-main .tax-label {
    font-size: 16px;
    font-weight: 600;
    color: #323232;
}

/* =====================================================
   Variation Selectors (Card-style)
   ===================================================== */

/* Override WC form.cart defaults (2em margin, clearfix ::after) */
.woocommerce div.product form.cart.variations_form {
    margin-bottom: 0;
    padding: 0;
}

.product-price-box .variations_form.cart::after {
    display: none;
}

.pdp-variation-selectors {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #DBE1E5;
}

.pdp-variation-row {
    margin-bottom: 10px;
}

.pdp-variation-row:last-child {
    margin-bottom: 0;
}

.pdp-variation-label {
    display: block;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #505050;
    margin-bottom: 6px;
}

/* Override WC default margin on .variations wrapper */
.pdp-variation-selectors .variations {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Hidden input holds the selected value per attribute row */
.pdp-variation-input {
    display: none !important;
}

/* Card button container */
.pdp-variation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Individual card button */
.pdp-variation-card {
    padding: 8px 16px;
    border: 1.5px solid #DBE1E5;
    border-radius: 6px;
    background: #fff;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: #323232;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.pdp-variation-card:hover {
    border-color: #8E8F95;
}

/* Selected state — red accent */
.pdp-variation-card.selected {
    border-color: #C4161C;
    background: rgba(196, 22, 28, 0.04);
    color: #C4161C;
    font-weight: 600;
}

/* Disabled / unavailable combination */
.pdp-variation-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Two-line card labels (split on //) */
.pdp-variation-card:has(.pdp-variation-card__secondary) {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.pdp-variation-card__primary,
.pdp-variation-card__secondary {
    line-height: 1.3;
}

.pdp-variation-card__secondary {
    font-size: 0.8em;
    opacity: 0.7;
    font-weight: 400;
}

/* Color swatch cards — when attribute value is a hex code */
.pdp-variation-cards:has(.pdp-variation-card--swatch) {
    grid-template-columns: repeat(auto-fill, 44px);
    gap: 6px;
}

.pdp-variation-card--swatch {
    padding: 3px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pdp-swatch {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pdp-variation-card--swatch.selected {
    border-color: #C4161C;
    background: transparent;
}

.pdp-variation-card--swatch.disabled {
    opacity: 0.3;
}

/* Hide variation_id input — we set it via JS */
.variations_form .variation_id {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
}


/* =====================================================
   Fulfillment Toggle
   ===================================================== */

.fulfillment-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.fulfillment-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1.5px solid #DBE1E5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--background);
}

.fulfillment-card:hover {
    border-color: #8E8F95;
}

.fulfillment-card.active {
    border-color: #C4161C;
    background: rgba(196, 22, 28, 0.04);
}

.fulfillment-card__icon {
    width: 24px;
    height: 24px;
    color: #8E8F95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fulfillment-card.active .fulfillment-card__icon {
    color: #C4161C;
}

.fulfillment-card__label {
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8E8F95;
    text-align: center;
    line-height: 1.3;
}

.fulfillment-card.active .fulfillment-card__label {
    color: #C4161C;
}

.fulfillment-card--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fulfillment-card--disabled .fulfillment-card__label {
    font-size: 8px;
    color: #C4161C;
}

/* =====================================================
   Fulfillment Availability
   ===================================================== */

.fulfillment-availability {
    margin-bottom: 16px;
    min-height: 28px;
}

/* Ship availability indicator */
.availability-ship__status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.availability-ship__status .stock-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.availability-ship__status .stock-text {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
}

/* Pickup availability */
.availability-pickup__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: #323232;
}

.availability-pickup__header:hover {
    color: #C4161C;
}

.availability-pickup__chevron {
    transition: transform 0.2s ease;
}

.availability-pickup__header.collapsed .availability-pickup__chevron {
    transform: rotate(-90deg);
}

.availability-pickup__list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
}

.availability-pickup__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #EEF2F4;
    cursor: pointer;
}

.availability-pickup__item:last-child {
    border-bottom: none;
}

.availability-pickup__item:hover {
    background: #F8F9FA;
}

.availability-pickup__item.selected {
    background: rgba(196, 22, 28, 0.04);
}

.availability-pickup__item--out-of-stock {
    opacity: 0.45;
    cursor: not-allowed;
}

.availability-pickup__item--out-of-stock:hover {
    background: transparent;
}

/* Custom radio button */
.availability-pickup__radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #DBE1E5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.availability-pickup__item.selected .availability-pickup__radio {
    border-color: #C4161C;
}

.availability-pickup__radio-fill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C4161C;
    transform: scale(0);
    transition: transform 0.15s ease;
}

.availability-pickup__item.selected .availability-pickup__radio-fill {
    transform: scale(1);
}

.availability-pickup__name {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: #323232;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.availability-pickup__qty {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: #505050;
    white-space: nowrap;
}

.availability-pickup__qty--out {
    color: #DC3545;
}

.availability-pickup__qty--backorder {
    color: #856404;
}

.availability-pickup__footnote {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 400;
    color: #8E8F95;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Disabled buy button */
.btn-buy-now.disabled {
    background: #8E8F95 !important;
    border-bottom-color: #6c6d72 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.product-price-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Buy Now Button - Red */
.product-price-actions .btn-buy-now,
a.btn-buy-now {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #C4161C;
    border: none;
    border-bottom: 2px solid #890005;
    border-radius: 5px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
    box-sizing: border-box;
}

.product-price-actions .btn-buy-now:hover,
a.btn-buy-now:hover {
    background: #9B1219;
    color: #ffffff;
}

/* Request Details Button - Blue */
.product-price-actions .btn-request-details,
a.btn-request-details {
    display: block !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: #003646 !important;
    border: none !important;
    border-bottom: 2px solid #001D25 !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-family: var(--font-primary) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background var(--transition-fast) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

.product-price-actions .btn-request-details:hover,
a.btn-request-details:hover {
    background: #002530 !important;
    color: #ffffff !important;
}

/* Specs Box — full width below gallery/sidebar grid */
.product-specs-box {
    background: var(--background);
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    padding: 24px 30px;
    margin-bottom: var(--spacing-xl);
}

.product-specs-box h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #DBE1E5;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 32px;
}

.product-specs-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-specs-item__label {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
    color: #505050;
    white-space: nowrap;
}

.product-specs-item__label::after {
    content: ':';
}

.product-specs-item__value {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.75;
    color: #323232;
}


/* Inventory Box */
.product-inventory-box {
    background: var(--background);
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    padding: 21px 28px;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.product-inventory-box h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid #DBE1E5;
}

.product-inventory-box h3 .inventory-icon {
    width: 16px;
    height: 16px;
    color: #323232;
}

.inventory-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--spacing-md);
    padding: 10px 12px;
    background: #F8F9FA;
    border-radius: 5px;
}

.inventory-location .location-pin-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.inventory-location .location-name {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #323232;
    flex: 1;
}

.inventory-stock {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 0;
}

.stock-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stock-indicator-in {
    background: #28A745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.stock-indicator-out {
    background: #DC3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.stock-indicator-backorder {
    background: #FFC107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.stock-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #323232;
}

.inventory-stock-instock .stock-text {
    color: #28A745;
}

.inventory-stock-outofstock .stock-text {
    color: #DC3545;
}

.inventory-stock-onbackorder .stock-text {
    color: #856404;
}

.inventory-select-message {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 400;
    color: #6C757D;
    line-height: 1.6;
    margin: 0;
    padding: 12px;
    background: #F8F9FA;
    border-radius: 5px;
    text-align: center;
}

/* =====================================================
   Product Details Section (Full Width)
   ===================================================== */

.product-details-section {
    background: var(--background);
    border: 1px solid #DBE1E5;
    border-radius: 7px;
    padding: 27px 30px;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.product-details-section > h2 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #DBE1E5;
}

.product-description-content {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #505050;
    margin-bottom: var(--spacing-xl);
}

.product-description-content p {
    margin-bottom: var(--spacing-md);
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.product-description-content ul,
.product-description-content ol {
    padding-left: 24px;
    margin-bottom: var(--spacing-md);
}

.product-description-content ul:last-child,
.product-description-content ol:last-child {
    margin-bottom: 0;
}

.product-description-content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.product-description-content li:last-child {
    margin-bottom: 0;
}


/* =====================================================
   Upsells & Cross-sells Product Rows
   ===================================================== */

.pdp-product-row {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
}

.pdp-product-row > h2 {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    margin: 0 0 var(--spacing-lg) 0;
}

.pdp-product-row ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =====================================================
   Share Modal (content styles — base layout from .flaman-modal in style.css)
   ===================================================== */

#share-modal .flaman-modal__content {
    text-align: left;
    max-width: 400px;
}

#share-modal .flaman-modal__content h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: #323232;
    margin: 0 0 var(--spacing-lg) 0;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border: 1px solid #DBE1E5;
    border-radius: 5px;
    background: var(--background);
    color: #323232;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--flaman-red);
    color: var(--flaman-red);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.share-twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

/* =====================================================
   WooCommerce Overrides for PDP
   ===================================================== */

/* Single product page wrapper - no container-wide, let flaman-pdp handle it */
.woocommerce-single-product {
    width: 100%;
}

/* Ensure flaman-pdp is properly constrained within WooCommerce */
.woocommerce .flaman-pdp,
.woocommerce-page .flaman-pdp {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 var(--spacing-lg) !important;
}

/* Override WooCommerce's default gallery styles */
.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide default WooCommerce elements we're replacing */
.flaman-pdp .woocommerce-product-gallery__trigger,
.flaman-pdp .flex-control-nav,
.flaman-pdp .woocommerce-product-gallery__wrapper {
    display: none;
}

/* Hide any WooCommerce breadcrumbs outside our custom pdp-breadcrumbs wrapper */
.woocommerce .site-main > .woocommerce-breadcrumb,
.woocommerce-page .site-main > .woocommerce-breadcrumb,
.container-wide > .woocommerce-breadcrumb,
.container-wide .site-main > .woocommerce-breadcrumb,
.woocommerce-notices-wrapper + .woocommerce-breadcrumb,
.site-main > nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Ensure our pdp-breadcrumbs ARE visible */
.pdp-breadcrumbs,
.pdp-breadcrumbs .woocommerce-breadcrumb {
    display: block !important;
}


/* Override clearfix issues */
.woocommerce div.product::after,
.woocommerce div.product::before {
    display: none;
    content: none;
}

/* =====================================================
   Responsive Design - Tablet (1024px and below)
   ===================================================== */

@media (max-width: 1024px) {
    .flaman-pdp {
        padding: 0 var(--spacing-md) !important;
        max-width: 100% !important;
    }

    .product-detail {
        grid-template-columns: 1fr 260px;
        gap: var(--spacing-md);
    }

    .product-detail-title {
        font-size: 28px;
    }

    .gallery-nav {
        width: 40px;
        height: 80px;
    }

    .thumb-nav {
        width: 40px;
        height: 80px;
    }

    .product-gallery-thumb {
        width: 100px;
        height: 75px;
    }

}

/* =====================================================
   Responsive Design - Tablet Portrait (900px and below)
   ===================================================== */

@media (max-width: 900px) {
    .product-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .product-info-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .product-price-box {
        grid-column: 1 / -1;
    }
}

/* =====================================================
   Responsive Design - Mobile (768px and below)
   ===================================================== */

@media (max-width: 768px) {
    .flaman-pdp {
        padding: 0 var(--spacing-md) !important;
        max-width: 100% !important;
    }

    .product-detail-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .product-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .product-detail-title {
        font-size: 24px;
    }

    .product-detail-sku {
        font-size: 14px;
    }

    .product-price-main {
        font-size: 24px;
    }

    .product-price-box {
        padding: var(--spacing-lg);
    }

    .product-info-sidebar {
        grid-template-columns: 1fr;
    }

    .product-gallery-thumbnails-wrapper {
        gap: var(--spacing-sm);
    }

    .thumb-nav {
        width: 36px;
        height: 70px;
    }

    .product-gallery-thumb {
        width: 80px;
        height: 60px;
    }

    .product-gallery-thumbnails {
        gap: var(--spacing-sm);
    }

    .product-details-section {
        padding: var(--spacing-lg);
    }

    .pdp-product-row ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdp-product-row > h2 {
        font-size: 24px;
    }

    .share-options {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Responsive Design - Small Mobile (480px and below)
   ===================================================== */

@media (max-width: 480px) {
    .product-specs-grid {
        grid-template-columns: 1fr;
    }

    .flaman-pdp {
        padding: 0 var(--spacing-md) !important;
        max-width: 100% !important;
    }

    .product-detail-title {
        font-size: 20px;
    }

    .product-price-main {
        font-size: 22px;
    }

    .product-specs-box {
        padding: var(--spacing-md);
    }

    .inventory-location-inline {
        gap: 6px;
    }

    .inventory-location-inline .location-name,
    .inventory-location-inline .stock-text {
        font-size: 13px;
    }

    .inventory-select-message-inline {
        font-size: 12px;
    }

    .gallery-nav {
        width: 32px;
        height: 60px;
    }

    .thumb-nav {
        display: none;
    }

    .product-gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .pdp-product-row ul.products {
        grid-template-columns: 1fr;
    }
}
