﻿/* ================================================================
   MN BAGS — SINGLE PRODUCT PAGE  (Samsonite-inspired, v1.0)
   ================================================================ */

/* ── Page wrapper ── */
.single-product-page { background: #fff; padding-bottom: 60px; }
.single-product-page .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Layout: 2 columns ── */
.product-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 56px !important;
    align-items: start !important;
    padding: 32px 0 48px !important;
}

/* ════════════════════════════════════════
   GALLERY
════════════════════════════════════════ */
.product-gallery { position: sticky; top: 76px; }
.product-gallery__main-wrap {
    aspect-ratio: 1/1;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #eee;
    position: relative;
}
.product-gallery__image {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 16px;
    cursor: zoom-in;
    transition: transform .4s ease;
}
.product-gallery__main-wrap:hover .product-gallery__image { transform: scale(1.04); }
.product-gallery__zoom { display: block; width: 100%; height: 100%; }
.product-gallery__zoom-icon {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,.9); border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.product-gallery__main-wrap:hover .product-gallery__zoom-icon { opacity: 1; }
.product-gallery__badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg,#1a1a1a,#000000); color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 4px 10px; border-radius: 4px;
    letter-spacing: .5px; z-index: 2;
}
/* Thumbnails */
.product-gallery__thumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.product-gallery__thumb {
    width: 76px; height: 76px;
    border: 2px solid #e5e5e5;
    border-radius: 6px; overflow: hidden;
    cursor: pointer; background: #f7f7f7;
    padding: 0; transition: border-color .15s;
    flex-shrink: 0;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: #1a1a1a; }
.product-gallery__thumb:hover { border-color: #555; }

/* ════════════════════════════════════════
   PRODUCT INFO
════════════════════════════════════════ */
.product-info { display: flex; flex-direction: column; gap: 0; }

/* Category mini-nav */
.product-info__cats {
    display: flex; align-items: center; gap: 4px;
    margin-bottom: 10px; flex-wrap: wrap;
}
.product-info__cats a {
    font-size: 11px !important; font-weight: 700 !important;
    color: #888 !important; letter-spacing: 1px !important;
    text-transform: uppercase !important; text-decoration: none !important;
    transition: color .12s !important;
}
.product-info__cats a:hover { color: #1a1a1a !important; text-decoration: underline !important; }
.sp-cat-sep { color: #ccc; font-size: 11px; margin: 0 2px; }

/* Title */
.product-info__title {
    font-size: 26px !important; font-weight: 900 !important;
    color: #1a1a1a !important; line-height: 1.2 !important;
    margin: 4px 0 12px !important; text-transform: uppercase !important;
    letter-spacing: -.3px !important;
}

/* Rating */
.product-info__rating {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; flex-wrap: wrap;
    padding-bottom: 16px; border-bottom: 1px solid #f0f0f0;
}
.sp-stars { display: flex; gap: 1px; }
.sp-rating-num { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.sp-rating-count { font-size: 13px; color: #888 !important; text-decoration: none !important; }
.sp-write-review {
    font-size: 12px; color: #555 !important;
    text-decoration: underline !important; font-weight: 500;
    margin-left: 4px;
}
.sp-write-review:hover { color: #1a1a1a !important; }

/* Price block */
.sp-price-wrap {
    padding: 14px 0 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 14px;
}
.sp-price-main { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sp-price-sale { font-size: 32px !important; font-weight: 900 !important; color: #1a1a1a !important; line-height: 1; }
.sp-savings-badge {
    background: #dcfce7; color: #16a34a;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 4px;
    letter-spacing: .3px;
}
.sp-price-comp { font-size: 13px; color: #888; }
.sp-price-comp s { color: #bbb; }

/* Short description */
.sp-short-desc { font-size: 14px; color: #555; line-height: 1.7; margin-bottom: 14px; }

/* Availability */
.sp-availability { margin-bottom: 12px; }
.sp-avail {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
}
.sp-avail--in { color: #16a34a; }
.sp-avail--low { color: #d97706; }
.sp-avail--out { color: #1a1a1a; }

/* Social proof */
.sp-social-proof {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 6px; padding: 10px 14px;
    margin-bottom: 14px; font-size: 13px; color: #78350f;
    line-height: 1.5;
}
.sp-social-proof strong { color: #92400e; }

/* Color swatches */
.sp-swatch-group { margin-bottom: 16px; }
.sp-swatch-label { font-size: 13px; color: #555; margin-bottom: 10px; font-weight: 500; }
.sp-swatch-label strong { color: #1a1a1a; font-weight: 700; }
.sp-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-swatch { border: none; cursor: pointer; transition: transform .15s; background: none; padding: 0; }
.sp-swatch--color {
    width: 36px; height: 36px; border-radius: 50%;
    outline: 3px solid transparent; outline-offset: 3px;
    transition: outline .15s, transform .15s, box-shadow .15s;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
    position: relative;
}
.sp-swatch--color:hover { transform: scale(1.1); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.2); }
.sp-swatch--color.is-selected {
    outline: 3px solid #1a1a1a;
    outline-offset: 3px;
    transform: scale(1.08);
}
.sp-swatch--color.is-selected::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
}
.sp-swatch--text {
    padding: 7px 14px; border: 1.5px solid #ddd;
    border-radius: 4px; font-size: 13px; font-weight: 600;
    color: #333; background: #fff; transition: all .15s;
}
.sp-swatch--text.is-selected { border-color: #1a1a1a; background: #1a1a1a; color: #fff; }
.sp-swatch--text:hover { border-color: #555; }

/* Quantity */
.sp-qty-row { margin: 0 0 10px; }
.qty-control {
    display: inline-flex; align-items: center;
    border: 1.5px solid #ddd; border-radius: 6px;
    overflow: hidden; background: #fff;
}
.qty-control__btn {
    width: 42px; height: 48px; background: #f7f7f7;
    border: none; font-size: 20px; cursor: pointer;
    color: #333; transition: background .12s; font-weight: 300;
}
.qty-control__btn:hover { background: #eee; }
.qty-control__input {
    width: 56px; height: 48px; border: none;
    border-left: 1px solid #ddd; border-right: 1px solid #ddd;
    text-align: center; font-size: 16px; font-weight: 700;
    outline: none; -moz-appearance: textfield;
}
.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ADD TO CART — full width black */
.sp-atc-btn {
    display: block !important; width: 100% !important;
    padding: 16px !important; background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    color: #fff !important; border: none !important;
    border-radius: 8px !important; font-size: 14px !important;
    font-weight: 800 !important; cursor: pointer !important;
    letter-spacing: 1.2px !important; text-transform: uppercase !important;
    transition: filter .18s,transform .15s,box-shadow .18s !important; margin-bottom: 10px !important;
    text-align: center !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .3) !important;
}
.sp-atc-btn:hover { filter: brightness(1.08) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .4) !important; }
.sp-atc-btn.loading { opacity: .7; pointer-events: none; }

/* BUY NOW — outline */
.sp-buy-btn {
    display: block !important; width: 100% !important;
    padding: 15px !important; background: #fff !important;
    color: #1a1a1a !important; border: 1.5px solid #1a1a1a !important;
    border-radius: 4px !important; font-size: 13px !important;
    font-weight: 800 !important; cursor: pointer !important;
    letter-spacing: 1.5px !important; text-transform: uppercase !important;
    transition: all .15s !important; margin-bottom: 16px !important;
    text-align: center !important;
}
.sp-buy-btn:hover { background: #1a1a1a !important; color: #fff !important; }

/* Trust section */
.sp-trust-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin: 14px 0;
}
.sp-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #555;
    background: #f8f9fc; border: 1px solid #e8ecf4;
    border-radius: 6px; padding: 10px 12px;
}
.sp-trust-item svg { flex-shrink: 0; color: #1a1a1a; }
.sp-trust-item strong { display: block; font-size: 12px; font-weight: 700; color: #1a1a1a; }
.sp-trust-item span { font-size: 11px; color: #777; }

/* Payment methods */
.sp-payments {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; flex-wrap: wrap;
}
.sp-payments-label { font-size: 11px; color: #888; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.sp-pay-badge {
    padding: 4px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 800; color: #fff;
    letter-spacing: .3px; text-transform: uppercase;
}
.sp-pay-badge--cod { background: #16a34a; }
.sp-pay-badge--jazz { background: #1a1a1a; }
.sp-pay-badge--easy { background: #8b5cf6; }
.sp-pay-badge--visa { background: #1a3a8f; }
.sp-pay-badge--mc { background: #eb5c20; }

/* Actions row (Wishlist / WhatsApp / Share) */
.product-actions {
    display: flex; align-items: center;
    gap: 20px; margin: 12px 0; flex-wrap: wrap;
    padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.product-actions__btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: #555 !important; padding: 4px 0;
    transition: color .12s; text-decoration: none !important;
    font-weight: 500;
}
.product-actions__btn:hover { color: #1a1a1a !important; }
.product-actions__btn.is-wishlisted { color: #1a1a1a !important; }

/* Delivery + trust row */
.product-trust-info {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.product-trust-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #555;
}
.product-trust-item svg { flex-shrink: 0; color: #16a34a; }

/* ════════════════════════════════════════
   TABS
════════════════════════════════════════ */
.product-tabs { margin: 0 0 48px; }
.product-tabs__nav {
    display: flex; border-bottom: 2px solid #1a1a1a;
    gap: 0; overflow-x: auto; scrollbar-width: none;
}
.product-tabs__nav::-webkit-scrollbar { display: none; }
.product-tabs__tab {
    padding: 13px 22px; background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    font-size: 13px; font-weight: 600; color: #888;
    cursor: pointer; white-space: nowrap; transition: all .15s;
    letter-spacing: .3px;
}
.product-tabs__tab:hover { color: #1a1a1a; }
.product-tabs__tab.is-active { color: #1a1a1a; border-bottom-color: #1a1a1a; }
.product-tabs__panel {
    padding: 28px 0; font-size: 14px;
    line-height: 1.75; color: #444;
}
.product-tabs__panel[hidden] { display: none; }
.product-tabs__panel p { margin-bottom: 12px; }
.product-tabs__panel ul { padding-left: 20px; margin-bottom: 12px; }
.product-tabs__panel li { margin-bottom: 5px; }

/* Specs table */
.product-specs-table { width: 100%; border-collapse: collapse; }
.product-specs-table th, .product-specs-table td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; text-align: left; }
.product-specs-table th { width: 30%; font-weight: 700; color: #555; background: #fafafa; }
.product-specs-table td { color: #333; }
.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td { border-bottom: none; }

/* Shipping info */
.shipping-info h3 { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; }
.shipping-info__list { list-style: none; padding: 0; margin: 0 0 24px; }
.shipping-info__list li { padding: 8px 0; font-size: 14px; color: #555; border-bottom: 1px solid #f5f5f5; display: flex; gap: 8px; }

/* ════════════════════════════════════════
   RELATED PRODUCTS
════════════════════════════════════════ */
.related-products { padding-top: 48px; border-top: 1px solid #eee; }
.related-products .section-title { font-size: 18px; font-weight: 800; color: #1a1a1a; letter-spacing: -.3px; margin-bottom: 24px; text-transform: uppercase; }
.products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card { background: #fff; border-radius: 8px; overflow: hidden; transition: box-shadow .22s, transform .22s; }
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-3px); border-color: #ccc; }
.product-card__image-wrap { position: relative; aspect-ratio: 1/1; background: #f7f7f7; overflow: hidden; }
.product-card__image { width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; transition: transform .4s; }
.product-card:hover .product-card__image { transform: scale(1.06); }
.product-card__badges { position: absolute; top: 8px; left: 8px; }
.product-card__wishlist { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border: none; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__body { padding: 12px 14px 14px; }
.product-card__title { font-size: 13px; font-weight: 600; color: #1a1a1a; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title a { color: inherit; text-decoration: none !important; }
.product-card__title a:hover { color: #1a1a1a !important; }
.product-card__price .price-current { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.product-card__price .price-original { font-size: 12px; color: #aaa; text-decoration: line-through; margin-left: 4px; }

/* ════════════════════════════════════════
   STICKY MOBILE ATC BAR
════════════════════════════════════════ */
.sticky-atc {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    z-index: 1000; padding: 12px 16px;
    safe-area-inset-bottom: env(safe-area-inset-bottom);
}
.sticky-atc__inner { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; }
.sticky-atc__info { flex: 1; min-width: 0; }
.sticky-atc__title { font-size: 13px; font-weight: 600; color: #1a1a1a; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__price { font-size: 16px; font-weight: 800; color: #1a1a1a; display: block; }
.sticky-atc__btn {
    flex-shrink: 0; padding: 12px 24px; background: #1a1a1a;
    color: #fff !important; border: none; border-radius: 4px;
    font-size: 13px; font-weight: 800; cursor: pointer;
    letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap;
}
.sticky-atc__btn:hover { background: linear-gradient(135deg,#1a1a1a,#000000) !important; }

/* ════════════════════════════════════════
   MOBILE RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr !important; gap: 24px !important; padding: 20px 0 32px !important; }
    .product-gallery { position: static !important; }
    .product-info__title { font-size: 22px !important; }
    .sp-price-sale { font-size: 26px !important; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sp-trust-grid { grid-template-columns: 1fr !important; }
    .sticky-atc { display: block; }
    body { padding-bottom: 80px; }
}

@media (max-width: 600px) {
    .single-product-page .container { padding: 0 16px; }
    .product-info__title { font-size: 20px !important; }
    .sp-price-sale { font-size: 24px !important; }
    .product-gallery__thumb { width: 64px; height: 64px; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .product-tabs__tab { padding: 10px 14px; font-size: 12px; }
    .sp-atc-btn { padding: 15px !important; font-size: 12px !important; }
    .sp-buy-btn { padding: 14px !important; font-size: 12px !important; }
}

@media (max-width: 400px) {
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; } /* keep 2-col, 1-col too large */
    .sp-swatch--color { width: 30px; height: 30px; }
}

@media (max-width: 380px) {
    .product-gallery__thumb { width: 52px !important; height: 52px !important; }
    .sp-swatch--color { width: 28px; height: 28px; }
    .qty-control__btn { width: 44px; height: 48px; }
    .sp-swatch--text { padding: 6px 10px; font-size: 12px; }
    .product-info__title { font-size: 18px !important; }
    .sp-price-sale { font-size: 22px !important; }
}

/* =============================================================================
   DESIGN AUDIT FIXES — product-page.css
   ============================================================================= */

/* Fix: sp-atc-btn and sp-buy-btn — ensure comfortable tap target */
.sp-atc-btn {
    min-height: 52px !important;
}
.sp-buy-btn {
    min-height: 50px !important;
}

/* Fix: qty-control buttons — ensure minimum tap target */
.qty-control__btn {
    min-width: 44px !important;
}

/* Fix: thumbnail images — consistent aspect ratio */
.product-gallery__thumb img {
    object-fit: cover;
    border-radius: 4px;
}

/* Fix: product actions buttons — tap target */
.product-actions__btn {
    min-height: 44px;
}

/* Fix: trust grid items — never clip on narrow phones */
@media (max-width: 380px) {
    .sp-trust-grid {
        grid-template-columns: 1fr !important;
    }
    .sp-trust-item {
        padding: 8px 10px;
    }
}

/* Fix: product tabs — ensure readable tap targets */
.product-tabs__tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fix: sticky ATC bar safe area on notched phones */
.sticky-atc {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Fix: sticky ATC button tap target */
.sticky-atc__btn {
    min-height: 48px;
    min-width: 120px;
}

/* Fix: product title overflow protection */
.product-info__title {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Fix: color swatch minimum touch size */
.sp-swatch--color {
    min-width: 36px;
    min-height: 36px;
}
.sp-swatch--text {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

/* Fix: related product grid at 320px — 2-col is fine, ensure gap doesn't overflow */
@media (max-width: 360px) {
    .products-grid {
        gap: 10px !important;
    }
    .product-card__body {
        padding: 8px 10px 10px;
    }
}

/* Fix: review form — full width on very small screens */
@media (max-width: 380px) {
    #respond .comment-form-author,
    #respond .comment-form-email {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* ════════════════════════════════════════
   REVIEWS SECTION
════════════════════════════════════════ */
#product-reviews { max-width: 720px; }

/* Reviews title */
#reviews h2,
.woocommerce-Reviews-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: -.3px !important;
}

/* No reviews message */
#reviews .woocommerce-noreviews,
p.woocommerce-noreviews {
    font-size: 14px;
    color: #888;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

/* Review list */
#reviews ol.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
#reviews ol.commentlist li.review {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 16px;
}
#reviews ol.commentlist li.review img.avatar {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    flex-shrink: 0;
}
#reviews .comment-text { flex: 1; }
#reviews .meta { margin-bottom: 8px; }
#reviews .woocommerce-review__author {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a !important;
}
#reviews .woocommerce-review__dash { display: none; }
#reviews .woocommerce-review__published-date {
    font-size: 12px;
    color: #aaa !important;
    margin-left: 8px;
}
#reviews .description p {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin: 8px 0 0;
}

/* Star rating display */
.star-rating,
#reviews .star-rating {
    display: inline-flex !important;
    gap: 1px !important;
    margin-bottom: 6px !important;
}
#reviews .star-rating::before,
#reviews .star-rating span,
#reviews .star-rating span::before {
    display: none !important;
}

/* ── Review FORM ── */
#review_form_wrapper { margin-top: 32px; padding-top: 28px; border-top: 2px solid #1a1a1a; }

#review_form_wrapper h3,
#respond h3 {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
}
#respond .comment-notes {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* Star rating INPUT — hide text, show stars */
#respond .stars {
    display: flex !important;
    gap: 4px !important;
    margin: 8px 0 16px !important;
    flex-direction: row !important;
}
#respond .stars a {
    font-size: 0 !important;
    width: 28px !important; height: 28px !important;
    display: inline-block !important;
    position: relative !important;
    color: transparent !important;
}
#respond .stars a::before {
    content: "★" !important;
    font-size: 26px !important;
    color: #e5e7eb !important;
    position: absolute;
    top: 0; left: 0;
    transition: color .12s !important;
}
#respond .stars a:hover::before,
#respond .stars a:hover ~ a::before,
#respond .stars.selected a.active::before,
#respond .stars.selected a.active ~ a::before { color: #e5e7eb !important; }
#respond .stars a:hover::before,
#respond .stars a.active::before { color: #f59e0b !important; }
#respond .stars:hover a::before { color: #f59e0b !important; }
#respond .stars:hover a:hover ~ a::before { color: #e5e7eb !important; }
#respond .stars.selected a.active ~ a::before { color: #e5e7eb !important; }
#respond .stars.selected a.active::before,
#respond .stars.selected a:not(.active)::before { color: #f59e0b !important; }

/* Rating label */
#respond p.comment-form-rating label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Form fields */
#respond .comment-form-comment label,
#respond .comment-form-author label,
#respond .comment-form-email label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
#respond .comment-form-comment textarea,
#respond .comment-form-author input,
#respond .comment-form-email input {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    transition: border-color .15s !important;
    outline: none !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
#respond .comment-form-comment textarea:focus,
#respond .comment-form-author input:focus,
#respond .comment-form-email input:focus {
    border-color: #1a1a1a !important;
}
#respond .comment-form-comment textarea {
    height: 120px !important;
    resize: vertical !important;
}

/* Form grid — name + email side by side */
#respond .comment-form-author,
#respond .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
}
#respond .comment-form-author { margin-right: 16px; }

/* Cookie consent */
#respond .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0;
}
#respond .comment-form-cookies-consent label {
    font-size: 12px !important;
    color: #888 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
}
#respond .comment-form-cookies-consent input { flex-shrink: 0; margin-top: 2px; }

/* Submit button */
#respond .form-submit { margin-top: 16px; }
#respond .form-submit #submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .15s;
}
#respond .form-submit #submit:hover { background: #1a1a1a; }

/* Required asterisk */
#respond .required { color: #1a1a1a; }

@media (max-width: 600px) {
    #respond .comment-form-author,
    #respond .comment-form-email {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}

/* =============================================================================
   PRODUCT PAGE — Design Pass July 2026
   ============================================================================= */

/* ── Gallery ── */
.product-gallery__main-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.product-gallery__thumb {
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover { border-color: var(--accent-gold); }

.product-gallery__thumb img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.product-gallery__thumb:hover img { transform: scale(1.05); }

/* ── Product title ── */
.sp-title {
    font-size: clamp(20px, 2.5vw + 12px, 30px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ── Price ── */
.sp-price { font-size: clamp(20px, 2vw + 13px, 28px); font-weight: 900; letter-spacing: -0.5px; }
.sp-price del { font-size: 16px; font-weight: 400; opacity: 0.5; }

/* ── Swatches ── */
.sp-swatch {
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.sp-swatch:hover { transform: scale(1.05); }

.sp-swatch.is-active {
    box-shadow: 0 0 0 2px var(--accent-gold);
}

/* ── Qty control ── */
.qty-control__btn {
    min-width: 44px;
    min-height: 44px;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.qty-control__btn:active { transform: scale(0.92); }

/* ── ATC / Buy Now ── */
.sp-atc-btn {
    min-height: 52px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sp-atc-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); transform: translateY(-1px); }
.sp-atc-btn:active { transform: scale(0.97); }

.sp-buy-btn {
    min-height: 50px;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sp-buy-btn:active { transform: scale(0.97); }

/* ── Product tabs ── */
.product-tabs__tab {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
}

/* ── Trust grid ── */
.sp-trust-item {
    border-radius: 8px;
    border: 1px solid #ebebeb;
    padding: 12px;
    transition: box-shadow 0.2s ease;
}

.sp-trust-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

/* ── Sticky ATC ── */
.sticky-atc {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sticky-atc__btn {
    min-height: 48px;
    min-width: 120px;
    font-weight: 700;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.sticky-atc__btn:active { transform: scale(0.97); }

/* ── Related products ── */
.related-products .product-card {
    border-radius: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-products .product-card:hover {
    box-shadow: 0 8px 26px rgba(0,0,0,0.11);
    transform: translateY(-3px);
}

/* ── Mobile ≤480px ── */
@media (max-width: 480px) {
    .sp-title { font-size: 20px; }
    .sp-price { font-size: 22px; }
    .product-tabs__tab { font-size: 13px; padding: 0 10px; }
}

@media (max-width: 380px) {
    .sp-title { font-size: 18px; }
    .sp-trust-grid { grid-template-columns: 1fr; }
}


/* =============================================================================
   COMPREHENSIVE DESIGN PASS — product-page.css  (July 2026)
   ============================================================================= */

/* ── 1. ATC button — orange gradient ── */
.sp-atc-btn {
    background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    color: #fff !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease !important;
}
.sp-atc-btn:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.38) !important;
    transform: translateY(-2px) !important;
}
.sp-atc-btn:active { transform: scale(0.97) !important; }

/* ── 2. Buy Now — outline with orange ── */
.sp-buy-btn {
    border-color: #1a1a1a !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}
.sp-buy-btn:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* ── 3. Gallery — orange active thumb ── */
.product-gallery__thumb.is-active {
    border-color: #1a1a1a !important;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.2);
}
.product-gallery__thumb:hover {
    border-color: #1a1a1a !important;
}

/* ── 4. Gallery main — zoom on hover ── */
.product-gallery__main-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s ease;
}
.product-gallery__main-wrap:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}

/* ── 5. Product title — consistent with premium theme ── */
.product-info__title {
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
}

/* ── 6. Price — orange ── */
.price-current,
.sp-price-sale {
    color: #000000 !important;
}

/* ── 7. Stock badges — consistent border-radius ── */
.stock-badge { border-radius: 20px; font-weight: 600; }
.stock-badge--in  { background: #f0fff4; color: #16a34a; border: 1px solid #86efac; }

/* ── 8. Trust grid — orange icons ── */
.sp-trust-item svg { color: #1a1a1a; }
.product-trust-item svg { color: #16a34a; }

/* ── 9. Product tabs — orange active ── */
.product-tabs__tab.is-active {
    color: #1a1a1a !important;
    border-bottom-color: #1a1a1a !important;
    font-weight: 700 !important;
}
.product-tabs__tab:hover {
    color: #1a1a1a;
}
.product-tabs {
    border-top: 2px solid #1a1a1a !important;
}

/* ── 10. Swatch selected — orange ring ── */
.sp-swatch--color.is-selected {
    outline: 3px solid #1a1a1a !important;
}
.sp-swatch--text.is-selected {
    background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
}

/* ── 11. Sticky ATC bar — orange button ── */
.sticky-atc__btn {
    background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    transition: filter 0.18s ease, transform 0.15s ease !important;
}
.sticky-atc__btn:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
}

/* ── 12. Social proof banner ── */
.sp-social-proof {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

/* ── 13. Payment badges — green COD is primary ── */
.sp-pay-badge--cod {
    background: #16a34a;
}

/* ── 14. Related products — 4-col to 2-col on mobile ── */
@media (max-width: 600px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* ── 15. Review form submit — orange ── */
#respond .form-submit #submit {
    background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    transition: filter 0.18s ease, box-shadow 0.18s ease !important;
}
#respond .form-submit #submit:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

/* ── 16. Category tag — orange ── */
.product-info__category a {
    color: #1a1a1a !important;
    background: rgba(26, 26, 26, 0.08) !important;
}
.product-info__category a:hover {
    background: linear-gradient(135deg,#1a1a1a,#000000) !important;
    color: #fff !important;
}

/* ── 17. Qty control — orange focus ── */
.qty-control:focus-within {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12);
}

/* =============================================================================
   SEO-DRIVEN DESIGN FIXES — product-page.css  (July 2026)
   ============================================================================= */

/* ── SHORT DESCRIPTION: minimum font size for readability ───────────────────
   SEO: Short description appears in product rich snippets and is indexed.
   14px is below the minimum 15px target; increased for readability.
   ─────────────────────────────────────────────────────────────────────────── */
.sp-short-desc {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #444 !important;
    margin-bottom: 16px !important;
}

/* ── PRODUCT TITLE H1: visually dominant, keyword-rich ─────────────────────
   SEO: H1 must be the largest, most prominent text on page. This enforces
   visual dominance at all breakpoints.
   ─────────────────────────────────────────────────────────────────────────── */
.product-info__title {
    font-size: clamp(22px, 3.5vw, 34px) !important;
    font-weight: 900 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
    margin: 4px 0 14px !important;
    letter-spacing: -.3px !important;
}

/* ── PRODUCT DESCRIPTION TAB: readable body text ───────────────────────────
   SEO: Product description is primary keyword content. Must be comfortable
   to read — min 15px, line-height 1.7, max-width 70ch for paragraphs.
   ─────────────────────────────────────────────────────────────────────────── */
.product-tabs__panel {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #333 !important;
}
.product-tabs__panel p {
    max-width: 72ch; /* SEO: optimal line length for readability */
    margin-bottom: 16px !important;
}
.product-tabs__panel h2 { font-size: clamp(20px, 3vw, 26px); margin: 20px 0 10px; color: #1a1a1a; }
.product-tabs__panel h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; color: #1a1a1a; }

/* ── STAR RATING: visible, correctly sized ──────────────────────────────────
   SEO: Structured data (AggregateRating in JSON-LD) needs visual support.
   Stars must render visibly — many themes reduce size to near-invisible.
   ─────────────────────────────────────────────────────────────────────────── */
.sp-stars svg {
    width: 16px !important;
    height: 16px !important;
}
.sp-rating-num {
    font-size: 15px !important;  /* increased from 14px */
    font-weight: 700;
}
.sp-rating-count {
    font-size: 14px !important;  /* increased from 13px */
    color: #555 !important;
}

/* ── AVAILABILITY (In Stock): visible structured data support ───────────────
   SEO: Stock status maps to schema.org/InStock. Must be visually clear.
   ─────────────────────────────────────────────────────────────────────────── */
.sp-avail {
    font-size: 14px !important;
    font-weight: 700 !important;
}
.sp-avail--in { color: #15803d !important; } /* slightly darker green for contrast */

/* ── RELATED PRODUCTS H2: clear hierarchy below product H1 ─────────────────
   SEO: Related products use an H2 "You May Also Like". This must be
   visually distinct from the H3 product card titles below it.
   ─────────────────────────────────────────────────────────────────────────── */
.related-products .section-title,
.section-header .section-title {
    font-size: clamp(20px, 2.5vw, 28px) !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    letter-spacing: -.3px;
    text-transform: uppercase;
}

/* ── RELATED PRODUCT CARDS: font sizes and image CLS ───────────────────────
   SEO/CWV: Product cards in related section must not cause CLS.
   ─────────────────────────────────────────────────────────────────────────── */
.product-card__image-wrap {
    aspect-ratio: 1 / 1 !important;
    background-color: #f0f2f5 !important;  /* placeholder prevents CLS */
}
.product-card__title {
    font-size: 14px !important;
    line-height: 1.4 !important;
}
.product-card__price .price-current {
    font-size: 16px !important;  /* price must be easy to read */
    font-weight: 800 !important;
}

/* ── CATEGORY BREADCRUMB ON PRODUCT PAGE ────────────────────────────────────
   SEO: The mini category breadcrumb (product-info__cats) provides internal
   links back to category pages — important for crawl equity flow.
   ─────────────────────────────────────────────────────────────────────────── */
.product-info__cats a {
    font-size: 12px !important;
    color: #1d4ed8 !important;   /* high contrast blue — WCAG AA */
    font-weight: 600 !important;
    letter-spacing: .5px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}
.product-info__cats a:hover {
    color: #1a1a1a !important;
    text-decoration: underline !important;
}

/* ── TRUST BADGES: CWV — no box-shadow transition ──────────────────────────
   SEO/CWV: box-shadow animations trigger paint. Using transform only.
   ─────────────────────────────────────────────────────────────────────────── */
.sp-trust-item {
    transition: transform .2s ease;
}
.sp-trust-item:hover {
    transform: translateY(-1px);
}

/* ── MOBILE RESPONSIVE: 375px breakpoint ───────────────────────────────────
   SEO: Google uses mobile-first indexing. 375px (iPhone SE/standard) is
   the most common viewport. Must be tested explicitly.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 375px) {
    .product-info__title { font-size: 20px !important; }
    .sp-price-sale { font-size: 24px !important; }
    .sp-trust-grid { grid-template-columns: 1fr !important; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .product-card__title { font-size: 13px !important; }
}

@media (max-width: 320px) {
    .product-info__title { font-size: 18px !important; }
    .sp-price-sale { font-size: 22px !important; }
    .product-tabs__tab { padding: 8px 10px; font-size: 11px; }
}

/* ── Add to Cart + Buy Now: side-by-side row ── */
.sp-cta-row {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.sp-cta-row .sp-atc-btn,
.sp-cta-row .sp-buy-btn {
    display: block !important;
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
}
@media (max-width: 380px) {
    .sp-cta-row { flex-direction: column !important; }
}

/* ── Quantity stepper: compact, professional (not full-width) ── */
.sp-qty-row {
    display: flex !important;
    justify-content: flex-start !important;
}
.qty-control {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 130px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 6px !important;
}
.qty-control__btn {
    flex: 0 0 auto !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 16px !important;
}
.qty-control__input {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 40px !important;
    font-size: 14px !important;
    padding: 0 !important;
}

/* ── Gallery: thumbnails as vertical column on the left of the main image ── */
.product-gallery {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}
.product-gallery__main {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.product-gallery__main-wrap {
    margin-bottom: 0 !important;
}
.product-gallery__thumbs {
    order: 1 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 2px;
}
.product-gallery__thumb {
    width: 64px !important;
    height: 64px !important;
}

@media (max-width: 640px) {
    .product-gallery {
        flex-direction: column !important;
    }
    .product-gallery__thumbs {
        flex-direction: row !important;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
    }
    .product-gallery__main-wrap {
        margin-bottom: 12px !important;
    }
}

/* ── Related products: "Goes Great With" carousel ── */
.related-products__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
.related-products__nav {
    display: flex;
    gap: 8px;
}
.related-products__arrow {
    width: 34px; height: 34px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
    transition: border-color .2s, background .2s;
}
.related-products__arrow:hover { border-color: #1a1a1a; background: #f7f7f7; }
.related-products__arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }

.related-products__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.related-products__track::-webkit-scrollbar { display: none; }
.related-products__track .product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.price-savings {
    font-size: 12px; font-weight: 700;
    color: #b45309;
    margin-left: 6px;
}
.price-comp {
    display: block;
    font-size: 12px; color: #888;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .related-products__track .product-card { flex-basis: 160px; }
}

/* ── Main product image: slightly larger / more prominent ── */
.product-layout {
    grid-template-columns: 1.15fr 1fr !important;
}
.product-gallery__image {
    padding: 6px !important;
}

/* ── Description-content tables (e.g. Size Guides) — unique card-column layout ──
   Each original table ROW becomes its own vertical card; cards line up as
   horizontally-scrollable columns instead of a plain grid of table cells. */
.product-tabs__panel table {
    display: block;
    width: 100%;
    margin: 16px 0 20px;
    border: none;
    border-collapse: collapse;
}
.product-tabs__panel table thead {
    display: none; /* column labels are re-injected per-cell via ::before below */
}
.product-tabs__panel table tbody {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.product-tabs__panel table tbody::-webkit-scrollbar { display: none; }
.product-tabs__panel table tr {
    display: flex;
    flex-direction: column;
    flex: 0 0 168px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.product-tabs__panel table tr:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.product-tabs__panel table td {
    display: block;
    border: none;
    padding: 0;
    text-align: left;
}
/* 1st cell = the size/label itself, styled as the card heading */
.product-tabs__panel table td:first-child {
    font-weight: 800;
    font-size: 16px;
    color: #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}
/* Remaining cells get a small uppercase label injected above them */
.product-tabs__panel table td:nth-child(2),
.product-tabs__panel table td:nth-child(3),
.product-tabs__panel table td:nth-child(4) {
    padding: 8px 0;
    border-top: 1px dashed #eee;
    font-size: 14px;
    color: #444;
}
.product-tabs__panel table td:nth-child(2)::before {
    content: 'Best For';
    display: block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #999; margin-bottom: 3px;
}
.product-tabs__panel table td:nth-child(3)::before {
    content: 'Price';
    display: block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #999; margin-bottom: 3px;
}
.product-tabs__panel table td:nth-child(3) {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 16px;
}

@media (max-width: 480px) {
    .product-tabs__panel table tr { flex-basis: 148px; }
}
