/**
 * Single Product - Golden Age Media
 * No Bootstrap. No Tailwind. No inline CSS.
 */

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --gam-color-primary:      var(--ga-primary, #B8601A);
    --gam-color-primary-dark: var(--ga-secondary, #8B3B30);
    --gam-color-primary-light:var(--ga-cream-dark, #F5EFEB);
    --gam-color-black:        #1A1A1A;
    --gam-color-text:         #333333;
    --gam-color-muted:        #6B6B6B;
    --gam-color-border:       #E0E0E0;
    --gam-color-bg:           #FFFFFF;
    --gam-color-bg-light:     #F8F6F2;
    --gam-color-success:      #2E7D32;
    --gam-color-danger:       #C62828;
    --gam-color-warning:      #F5A623;
    --gam-color-badge-sale:   #E53935;
    --gam-color-badge-best:   #C8A96E;
    --gam-color-stock-in:     #43A047;
    --gam-color-stock-out:    #E53935;
    --gam-color-stock-back:   #FB8C00;

    --gam-font-heading: 'Georgia', 'Times New Roman', serif;
    --gam-font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
    --gam-font-ui:      'Inter', Arial, sans-serif;

    --gam-radius-sm:  4px;
    --gam-radius-md:  8px;
    --gam-radius-lg:  12px;
    --gam-radius-xl:  16px;

    --gam-shadow-card: 0 2px 12px rgba(0,0,0,0.08);
    --gam-shadow-hover:0 6px 24px rgba(0,0,0,0.14);
    --gam-shadow-btn:  0 2px 8px rgba(200,169,110,0.30);

    --gam-transition: 0.22s ease;
    --gam-container:  1200px;
    --gam-gap:        40px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
.gam-single-product *,
.gam-single-product *::before,
.gam-single-product *::after {
    box-sizing: border-box;
}

.gam-single-product {
    font-family: var(--gam-font-body);
    color: var(--gam-color-text);
    background: var(--gam-color-bg);
    line-height: 1.6;
}

/* =========================================================
   CONTAINER
   ========================================================= */
.gam-container {
    max-width: var(--gam-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.gam-breadcrumbs-wrap {
    background: var(--gam-color-bg-light);
    border-bottom: 1px solid var(--gam-color-border);
    padding: 12px 0;
}

.gam-breadcrumbs-wrap .woocommerce-breadcrumb {
    font-family: var(--gam-font-ui);
    font-size: 13px;
    color: var(--gam-color-muted);
    margin: 0;
}

.gam-breadcrumbs-wrap .woocommerce-breadcrumb a {
    color: var(--gam-color-muted);
    text-decoration: none;
    transition: color var(--gam-transition);
}

.gam-breadcrumbs-wrap .woocommerce-breadcrumb a:hover {
    color: var(--gam-color-primary);
}

/* =========================================================
   PRODUCT MAIN LAYOUT
   ========================================================= */
.gam-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gam-gap);
    padding: 40px 0 48px;
    align-items: start;
}

.gam-product-gallery-col {
    position: sticky;
    top: 24px;
}

.gam-product-info-col {
    min-width: 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gam-gallery {
    position: relative;
    user-select: none;
}

.gam-gallery__inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Thumbs – left on desktop */
.gam-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 80px;
    order: -1;
}

.gam-gallery__thumb {
    display: block;
    padding: 0;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--gam-radius-sm);
    cursor: pointer;
    overflow: hidden;
    transition: border-color var(--gam-transition), box-shadow var(--gam-transition);
    aspect-ratio: 4/5;
}

.gam-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--gam-transition);
}

.gam-gallery__thumb:hover {
    border-color: var(--gam-color-primary);
}

.gam-gallery__thumb.is-active {
    border-color: var(--gam-color-primary);
    box-shadow: 0 0 0 1px var(--gam-color-primary);
}

.gam-gallery__main-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.gam-gallery__main {
    position: relative;
    border-radius: var(--gam-radius-lg);
    overflow: hidden;
    background: var(--gam-color-bg-light);
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.gam-gallery__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gam-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gam-gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gam-gallery__zoom-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gam-gallery__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.gam-gallery__zoom-lens {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--gam-transition);
}

.gam-gallery__zoom-wrap:hover .gam-gallery__zoom-lens {
    opacity: 1;
}

/* Arrows */
.gam-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--gam-color-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gam-color-text);
    transition: background var(--gam-transition), box-shadow var(--gam-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.gam-gallery__arrow:hover {
    background: var(--gam-color-primary);
    color: #fff;
    border-color: var(--gam-color-primary);
    box-shadow: var(--gam-shadow-btn);
}

.gam-gallery__arrow--prev { left: 10px; }
.gam-gallery__arrow--next { right: 10px; }

/* Dots */
.gam-gallery__dots {
    display: none;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.gam-gallery__dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gam-color-border);
    cursor: pointer;
    transition: background var(--gam-transition), transform var(--gam-transition);
}

.gam-gallery__dot.is-active {
    background: var(--gam-color-primary);
    transform: scale(1.3);
}

/* Badges on gallery */
.gam-gallery-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* =========================================================
   BADGES
   ========================================================= */
.gam-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: var(--gam-radius-sm);
    font-family: var(--gam-font-ui);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}

.gam-badge--sale {
    background: var(--gam-color-badge-sale);
    color: #fff;
}

.gam-badge--bestseller {
    background: var(--gam-color-badge-best);
    color: #fff;
}

/* Mobile badges in product-info */
.gam-badges--mobile-only {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.gam-lightbox__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gam-lightbox__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gam-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gam-lightbox[hidden] {
    display: none;
}

.gam-lightbox.is-open {
    display: flex;
}

.gam-lightbox__img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gam-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--gam-radius-md);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.gam-lightbox__close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gam-transition);
    z-index: 10000;
}

.gam-lightbox__close:hover {
    background: rgba(255,255,255,0.30);
}

.gam-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--gam-transition);
    z-index: 10000;
}

.gam-lightbox__arrow:hover {
    background: rgba(255,255,255,0.30);
}

.gam-lightbox__arrow--prev { left: 16px; }
.gam-lightbox__arrow--next { right: 16px; }

/* =========================================================
   PRODUCT INFO
   ========================================================= */
.gam-product-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Title */
.gam-product-title {
    font-family: var(--gam-font-heading);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--gam-color-black);
    line-height: 1.25;
    margin: 0;
}

/* =========================================================
   RATING ROW
   ========================================================= */
.gam-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gam-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.gam-star { flex-shrink: 0; }

.gam-rating-count {
    font-family: var(--gam-font-ui);
    font-size: 13px;
    color: var(--gam-color-muted);
    text-decoration: none;
    transition: color var(--gam-transition);
}

.gam-rating-count:hover {
    color: var(--gam-color-primary);
    text-decoration: underline;
}

/* =========================================================
   PRICE
   ========================================================= */
.gam-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.gam-price-sale {
    font-family: var(--gam-font-heading);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--gam-color-black);
    line-height: 1;
}

.gam-price-sale .woocommerce-Price-amount,
.gam-price-sale bdi {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.gam-price-regular {
    font-size: 18px;
    color: var(--gam-color-muted);
    text-decoration: line-through;
    line-height: 1;
}

.gam-tax-note {
    font-size: 12px;
    color: var(--gam-color-muted);
    margin-top: -10px;
}

/* =========================================================
   STOCK
   ========================================================= */
.gam-stock-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gam-stock-status {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gam-stock-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gam-stock-dot--in   { background: var(--gam-color-stock-in); }
.gam-stock-dot--out  { background: var(--gam-color-stock-out); }
.gam-stock-dot--back { background: var(--gam-color-stock-back); }

.gam-stock-text {
    font-size: 14px;
    font-weight: 500;
}

.gam-stock-text--in   { color: var(--gam-color-stock-in); }
.gam-stock-text--out  { color: var(--gam-color-stock-out); }
.gam-stock-text--back { color: var(--gam-color-stock-back); }

.gam-stock-low {
    font-size: 13px;
    font-weight: 600;
    color: var(--gam-color-danger);
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: var(--gam-radius-sm);
    padding: 4px 10px;
    display: inline-block;
    width: fit-content;
}

/* =========================================================
   ACTION ROW: QTY + BUTTONS
   ========================================================= */
.gam-action-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

/* =========================================================
   QUANTITY SELECTOR
   ========================================================= */
.gam-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-md);
    overflow: hidden;
    background: var(--gam-color-bg);
    flex-shrink: 0;
    height: 50px;
}

.gam-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gam-color-text);
    transition: background var(--gam-transition), color var(--gam-transition);
    flex-shrink: 0;
}

.gam-qty__btn:hover {
    background: var(--gam-color-primary-light);
    color: var(--gam-color-primary-dark);
}

.gam-qty__btn:active {
    background: var(--gam-color-primary);
    color: #fff;
}

.gam-qty__input {
    width: 50px;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--gam-color-border);
    border-right: 1.5px solid var(--gam-color-border);
    font-family: var(--gam-font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--gam-color-black);
    background: none;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}

.gam-qty__input::-webkit-outer-spin-button,
.gam-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */
.gam-btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 24px;
    background: var(--gam-color-primary);
    color: #fff;
    border: none;
    border-radius: var(--gam-radius-md);
    font-family: var(--gam-font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--gam-transition), box-shadow var(--gam-transition), transform var(--gam-transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--gam-shadow-btn);
}

.gam-btn-cart:hover:not(:disabled) {
    background: var(--gam-color-primary-dark);
    box-shadow: 0 4px 16px rgba(200,169,110,0.40);
    transform: translateY(-1px);
}

.gam-btn-cart:active:not(:disabled) {
    transform: translateY(0);
}

.gam-btn-cart:disabled {
    background: var(--gam-color-border);
    color: var(--gam-color-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.gam-btn-cart__loading,
.gam-btn-cart__success {
    display: none;
    align-items: center;
    justify-content: center;
}

.gam-btn-cart.is-loading .gam-btn-cart__text,
.gam-btn-cart.is-loading .gam-btn-cart__icon {
    display: none;
}

.gam-btn-cart.is-loading .gam-btn-cart__loading {
    display: flex;
}

.gam-btn-cart.is-success .gam-btn-cart__text,
.gam-btn-cart.is-success .gam-btn-cart__icon,
.gam-btn-cart.is-success .gam-btn-cart__loading {
    display: none;
}

.gam-btn-cart.is-success .gam-btn-cart__success {
    display: flex;
}

.gam-btn-cart.is-success {
    background: var(--gam-color-success);
}

/* Spinner animation */
.gam-spinner {
    animation: gam-spin 0.8s linear infinite;
}

@keyframes gam-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   WISHLIST BUTTON
   ========================================================= */
.gam-btn-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gam-color-bg);
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-md);
    cursor: pointer;
    transition: border-color var(--gam-transition), background var(--gam-transition), transform var(--gam-transition);
    flex-shrink: 0;
}

.gam-btn-wishlist:hover {
    border-color: #E53935;
    background: #FFF5F5;
    transform: scale(1.05);
}

.gam-btn-wishlist.is-active,
.gam-btn-wishlist[aria-pressed="true"] {
    border-color: #E53935;
    background: #FFEBEE;
}

.gam-btn-wishlist.is-active path,
.gam-btn-wishlist[aria-pressed="true"] path {
    fill: #E53935;
    stroke: #E53935;
}

/* =========================================================
   BUY NOW
   ========================================================= */
/* =========================================================
   BUY NOW & GET YOUR COPY TODAY BUTTONS
   ========================================================= */
.gam-buynow-wrap {
    display: flex;
}

.gam-btn-buynow,
.gam-btn-get-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 24px;
    background: var(--ga-secondary, #8B3B30);
    color: #ffffff !important;
    border: none;
    border-radius: var(--gam-radius-md);
    font-family: var(--gam-font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: background var(--gam-transition), box-shadow var(--gam-transition), transform var(--gam-transition);
    box-shadow: 0 2px 8px rgba(139,59,48,0.25);
    box-sizing: border-box;
}

.gam-btn-buynow:hover,
.gam-btn-get-copy:hover {
    background: var(--ga-primary, #B8601A);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(184,96,26,0.35);
    transform: translateY(-1px);
}

.gam-btn-buynow:active,
.gam-btn-get-copy:active {
    transform: translateY(0);
}

.gam-btn-buynow.is-loading,
.gam-btn-get-copy.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================================================
   FEATURES BAR
   ========================================================= */
.gam-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-md);
    overflow: hidden;
    background: var(--gam-color-bg);
}

.gam-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    text-align: center;
    border-right: 1.5px solid var(--gam-color-border);
    transition: background var(--gam-transition);
}

.gam-feature:last-child {
    border-right: none;
}

.gam-feature:hover {
    background: var(--gam-color-bg-light);
}

.gam-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gam-feature__text {
    font-family: var(--gam-font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--gam-color-text);
    line-height: 1.3;
}

/* =========================================================
   PRODUCT META
   ========================================================= */
.gam-product-meta {
    padding-top: 4px;
    border-top: 1.5px solid var(--gam-color-border);
    padding-bottom: 4px;
}

.gam-meta-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gam-meta-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
}

.gam-meta-label {
    font-weight: 600;
    color: var(--gam-color-muted);
    white-space: nowrap;
    min-width: 80px;
}

.gam-meta-value {
    color: var(--gam-color-text);
}

.gam-meta-value a {
    color: var(--gam-color-primary-dark);
    text-decoration: none;
    transition: color var(--gam-transition);
}

.gam-meta-value a:hover {
    color: var(--gam-color-primary);
    text-decoration: underline;
}

.gam-meta-brand {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
}

/* =========================================================
   SOCIAL SHARE
   ========================================================= */
.gam-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gam-social-share__label {
    font-family: var(--gam-font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--gam-color-muted);
    margin: 0;
    white-space: nowrap;
}

.gam-social-share__icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gam-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform var(--gam-transition), box-shadow var(--gam-transition);
    flex-shrink: 0;
}

.gam-social-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* =========================================================
   PRODUCT TABS
   ========================================================= */
.gam-product-tabs {
    padding: 0 0 60px;
    border-top: 1.5px solid var(--gam-color-border);
}

/* Desktop: sidebar layout */
.gam-tabs__desktop {
    display: flex;
    gap: 0;
    min-height: 300px;
}

.gam-tabs__nav {
    width: 220px;
    flex-shrink: 0;
    border-right: 1.5px solid var(--gam-color-border);
    padding: 32px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gam-tabs__nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    text-align: left;
    font-family: var(--gam-font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--gam-color-muted);
    cursor: pointer;
    transition: color var(--gam-transition), background var(--gam-transition), border-color var(--gam-transition);
    width: 100%;
    white-space: nowrap;
    border-radius: 0 var(--gam-radius-sm) var(--gam-radius-sm) 0;
}

.gam-tabs__nav-btn:hover {
    color: var(--gam-color-primary-dark);
    background: var(--gam-color-primary-light);
}

.gam-tabs__nav-btn.is-active {
    color: var(--gam-color-primary-dark);
    font-weight: 700;
    border-left-color: var(--gam-color-primary);
    background: var(--gam-color-primary-light);
}

.gam-tabs__panel-wrap {
    flex: 1;
    min-width: 0;
    padding: 36px 40px;
}

.gam-tabs__panel {
    display: none;
    animation: gam-fade-in 0.28s ease;
}

.gam-tabs__panel.is-active {
    display: block;
}

@keyframes gam-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tab panel content */
.gam-tab-title {
    font-family: var(--gam-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gam-color-black);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--gam-color-border);
}

/* Description tab */
.gam-tab-description .entry-content,
.gam-tab-description p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--gam-color-text);
    margin-bottom: 16px;
}

.gam-tab-description h2,
.gam-tab-description h3,
.gam-tab-description h4 {
    font-family: var(--gam-font-heading);
    color: var(--gam-color-black);
    margin: 24px 0 12px;
}

/* Additional Information */
.gam-tab-info .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.gam-tab-info .shop_attributes th,
.gam-tab-info .shop_attributes td {
    padding: 10px 16px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid var(--gam-color-border);
    vertical-align: top;
}

.gam-tab-info .shop_attributes th {
    width: 160px;
    font-weight: 600;
    color: var(--gam-color-muted);
    background: var(--gam-color-bg-light);
    white-space: nowrap;
}

.gam-tab-info .shop_attributes td {
    color: var(--gam-color-text);
}

/* Reviews tab */
.gam-tab-reviews .woocommerce-Reviews {
    font-size: 14px;
}

/* Mobile: accordion */
.gam-tabs__accordion {
    display: none;
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-md);
    overflow: hidden;
    margin-top: 32px;
}

.gam-accordion__item {
    border-bottom: 1.5px solid var(--gam-color-border);
}

.gam-accordion__item:last-child {
    border-bottom: none;
}

.gam-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--gam-color-bg);
    border: none;
    cursor: pointer;
    font-family: var(--gam-font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--gam-color-black);
    text-align: left;
    transition: background var(--gam-transition);
}

.gam-accordion__trigger:hover {
    background: var(--gam-color-bg-light);
}

.gam-accordion__trigger.is-active {
    color: var(--gam-color-primary-dark);
    background: var(--gam-color-primary-light);
}

.gam-accordion__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gam-color-muted);
    transition: transform 0.28s ease;
}

.gam-accordion__trigger.is-active .gam-accordion__icon {
    transform: rotate(180deg);
    color: var(--gam-color-primary-dark);
}

.gam-accordion__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}

.gam-accordion__body.is-open {
    max-height: 2000px;
}

.gam-accordion__content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--gam-color-text);
    border-top: 1.5px solid var(--gam-color-border);
}

/* =========================================================
   WHY READ BOOK SECTION
   ========================================================= */
.gam-why-read {
    background: var(--gam-color-bg-light);
    border-top: 1.5px solid var(--gam-color-border);
    border-bottom: 1.5px solid var(--gam-color-border);
    padding: 60px 0;
}

.gam-why-read__inner {
    max-width: var(--gam-container);
    margin: 0 auto;
    padding: 0 24px;
}

.gam-why-read__header {
    text-align: center;
    margin-bottom: 40px;
}

.gam-why-read__eyebrow {
    display: block;
    font-family: var(--gam-font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gam-color-primary);
    margin-bottom: 10px;
}

.gam-why-read__title {
    font-family: var(--gam-font-heading);
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: var(--gam-color-black);
    margin: 0 0 14px;
    line-height: 1.2;
}

.gam-why-read__subtitle {
    font-size: 15px;
    color: var(--gam-color-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.gam-why-read__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gam-why-read__card {
    background: var(--gam-color-bg);
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-lg);
    padding: 28px 24px;
    transition: box-shadow var(--gam-transition), transform var(--gam-transition), border-color var(--gam-transition);
}

.gam-why-read__card:hover {
    box-shadow: var(--gam-shadow-hover);
    transform: translateY(-3px);
    border-color: var(--gam-color-primary);
}

.gam-why-read__card-icon {
    width: 48px;
    height: 48px;
    background: var(--gam-color-primary-light);
    border-radius: var(--gam-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--gam-color-primary-dark);
}

.gam-why-read__card-title {
    font-family: var(--gam-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--gam-color-black);
    margin: 0 0 10px;
}

.gam-why-read__card-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--gam-color-muted);
    margin: 0;
}

/* Quote block */
.gam-why-read__quote {
    margin: 40px auto 0;
    max-width: 720px;
    text-align: center;
    padding: 32px 40px;
    background: var(--gam-color-bg);
    border: 1.5px solid var(--gam-color-border);
    border-radius: var(--gam-radius-lg);
    border-left: 4px solid var(--gam-color-primary);
    position: relative;
}

.gam-why-read__quote-mark {
    font-family: Georgia, serif;
    font-size: 80px;
    line-height: 0.6;
    color: var(--gam-color-primary-light);
    position: absolute;
    top: 20px;
    left: 24px;
    pointer-events: none;
    select: none;
}

.gam-why-read__quote-text {
    font-family: var(--gam-font-heading);
    font-size: 17px;
    font-style: italic;
    color: var(--gam-color-text);
    line-height: 1.65;
    margin: 0 0 12px;
    position: relative;
}

.gam-why-read__quote-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--gam-color-muted);
    margin: 0;
}

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.gam-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100vw - 48px);
}

.gam-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gam-color-black);
    color: #fff;
    padding: 14px 18px;
    border-radius: var(--gam-radius-md);
    font-family: var(--gam-font-ui);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    pointer-events: auto;
    animation: gam-toast-in 0.32s ease;
    transform-origin: bottom right;
}

.gam-toast.is-exiting {
    animation: gam-toast-out 0.28s ease forwards;
}

.gam-toast--success { border-left: 4px solid var(--gam-color-success); }
.gam-toast--error   { border-left: 4px solid var(--gam-color-danger); }
.gam-toast--info    { border-left: 4px solid var(--gam-color-primary); }

.gam-toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.gam-toast--success .gam-toast__icon { color: #66BB6A; }
.gam-toast--error   .gam-toast__icon { color: #EF5350; }
.gam-toast--info    .gam-toast__icon { color: var(--gam-color-primary); }

@keyframes gam-toast-in {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gam-toast-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* =========================================================
   RESPONSIVE: TABLET  (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .gam-product-main {
        gap: 28px;
        padding: 28px 0 36px;
    }

    .gam-tabs__panel-wrap {
        padding: 28px 24px;
    }

    .gam-tabs__nav {
        width: 190px;
    }

    .gam-why-read__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   RESPONSIVE: LARGE MOBILE  (≤900px)
   ========================================================= */
@media (max-width: 900px) {
    .gam-product-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 0 32px;
    }

    .gam-product-gallery-col {
        position: static;
    }

    /* Mobile gallery: thumbs on right */
    .gam-gallery__inner {
        flex-direction: row-reverse;
    }

    .gam-gallery__thumbs {
        order: 1;
        width: 64px;
    }

    .gam-gallery__dots {
        display: flex;
    }

    .gam-gallery-badges,
    .gam-badges--mobile-only {
        display: flex;
    }

    /* Hide desktop tabs, show accordion */
    .gam-tabs__desktop {
        display: none;
    }

    .gam-tabs__accordion {
        display: block;
    }

    .gam-why-read__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gam-why-read {
        padding: 40px 0;
    }

    .gam-why-read__quote {
        padding: 24px 20px;
    }
}

/* =========================================================
   RESPONSIVE: MOBILE  (≤600px)
   ========================================================= */
@media (max-width: 600px) {
    .gam-container {
        padding: 0 16px;
    }

    .gam-product-title {
        font-size: 20px;
    }

    .gam-price-sale {
        font-size: 26px;
    }

    .gam-action-row {
        flex-wrap: wrap;
    }

    .gam-qty {
        width: 100%;
        justify-content: space-between;
    }

    .gam-btn-cart {
        width: 100%;
        flex: unset;
    }

    .gam-btn-wishlist {
        width: 100%;
        border-radius: var(--gam-radius-md);
        height: 44px;
        gap: 8px;
    }

    .gam-features-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .gam-feature {
        border-right: none;
        border-bottom: 1.5px solid var(--gam-color-border);
    }

    .gam-feature:nth-child(odd) {
        border-right: 1.5px solid var(--gam-color-border);
    }

    .gam-feature:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .gam-social-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .gam-gallery__thumbs {
        width: 52px;
    }

    .gam-tabs__accordion {
        margin-top: 20px;
    }

    .gam-lightbox__arrow--prev { left: 6px; }
    .gam-lightbox__arrow--next { right: 6px; }

    .gam-toast-wrap {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: unset;
        width: auto;
    }
}

/* =========================================================
   RESPONSIVE: SMALL PHONES  (≤380px)
   ========================================================= */
@media (max-width: 380px) {
    .gam-product-title { font-size: 18px; }

    .gam-gallery__thumbs {
        display: none;
    }

    .gam-gallery__dots {
        display: flex;
    }

    .gam-tabs__nav-btn {
        font-size: 14px;
        padding: 11px 14px;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
    .gam-lightbox,
    .gam-lightbox__overlay,
    .gam-toast-wrap,
    .gam-gallery__arrow,
    .gam-gallery__dots,
    .gam-social-share,
    .gam-action-row,
    .gam-buynow-wrap {
        display: none !important;
    }
}

/* =========================================================
   DUPLICATE TAB HEADING REMOVAL
   ========================================================= */
.gam-tabs__panel > h2,
.gam-accordion__content > h2,
.gam-tab-description > h2,
.gam-tab-info > h2,
.gam-tab-reviews > h2,
.gam-tab-title {
    display: none !important;
}

/* =========================================================
   RELATED & RECENTLY VIEWED PRODUCTS SECTIONS
   ========================================================= */
.gam-related-products-section,
.gam-recently-viewed-section {
    padding: 40px 0;
    border-top: 1px solid var(--gam-color-border);
}

.gam-section-header {
    margin-bottom: 24px;
}

.gam-section-title {
    font-family: var(--gam-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--gam-color-black);
    margin: 0;
}

.gam-related-products-grid,
.gam-recently-viewed-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Mobile & Tablet: 2 products */
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (min-width: 992px) {
    .gam-related-products-grid,
    .gam-recently-viewed-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* Desktop: 4 products */
        gap: 20px !important;
    }
}
