/* ═══════════════════════════════════════════════════════════════
   Single Product Page Styles
   3-column layout: Gallery | Details | Promo Cards
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables (defaults, overridden by theme options) ── */
.hid-product-page {
    --hid-bg:        #1E2125;
    --hid-card:      #30353B;
    --hid-card-alt:  #272C31;
    --hid-border:    #1C1C1C;
    --hid-orange:    #FF6602;
    --hid-orange-dk: #D45200;
    --hid-text:      #FFFFFF;
    --hid-muted:     #9DA3AE;
    --hid-green:     #22c55e;
    --hid-red:       #ef4444;
    font-family: 'Open Sans', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--hid-bg);
    color: var(--hid-text);
    min-height: 60vh;
}

.hid-product-page *,
.hid-product-page *::before,
.hid-product-page *::after {
    box-sizing: border-box;
}

/* ── Full-width override for single product ── */
body.single-product .nc-main,
body.single-product .nc-container,
body.single-product .nc-wc-main,
body.single-product .nc-wc-main > .nc-container {
    max-width: 100% !important;
    padding: 0 !important;
}
body.single-product .nc-wc-sidebar { display: none !important; }

/* Hide default WC breadcrumb (we have our own) */
body.single-product .nc-breadcrumbs { display: none; }

/* ── Breadcrumbs ── */
.hid-breadcrumbs {
    max-width: 1360px;
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 13px;
    color: var(--hid-muted);
}
.hid-breadcrumbs a { color: var(--hid-orange); text-decoration: none; }
.hid-breadcrumbs a:hover { text-decoration: underline; }
.hid-sep { margin: 0 6px; color: #444; }

/* ── 3-column grid ── */
.hid-product-grid {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 230px;
    gap: 24px;
    align-items: start;
}

/* ══════════════════════
   LEFT — GALLERY
══════════════════════ */
.hid-gallery-col { position: sticky; top: 16px; }

.hid-main-image {
    background: #fff;
    border-radius: 10px;
    height: 600px;
    overflow: hidden;
    border: 6px solid #262626;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hid-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.hid-gallery-img.hid-active { opacity: 1; pointer-events: auto; }
.hid-placeholder-text { text-align: center; color: #555; }

.hid-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
    line-height: 1;
}
.hid-img-nav:hover { background: rgba(255,102,2,0.7); }
.hid-prev { left: 10px; }
.hid-next { right: 10px; }

.hid-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.hid-thumb {
    flex: 1;
    min-width: 60px;
    height: 64px;
    border-radius: 6px;
    border: 3px solid #262626;
    background-color: #fff;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.15s;
    padding: 0;
}
.hid-thumb.hid-active,
.hid-thumb:hover { border-color: var(--hid-orange); }

/* Subscribe Box */
.hid-subscribe-box {
    margin-top: 14px;
    background: var(--hid-card);
    border-radius: 8px;
    padding: 16px;
    border: 2px solid var(--hid-border);
    text-align: center;
}
.hid-subscribe-box h4 {
    font-size: 13px; font-weight: 700; color: var(--hid-orange);
    margin: 0 0 4px;
}
.hid-subscribe-box p { font-size: 11px; color: var(--hid-muted); margin: 0 0 10px; }
.hid-sub-row { display: flex; gap: 6px; }
.hid-sub-row input {
    flex: 1; padding: 8px 10px;
    border: 2px solid var(--hid-border);
    border-radius: 6px; font-size: 12px;
    background: var(--hid-bg); color: var(--hid-text);
    outline: none;
}
.hid-sub-row input:focus { border-color: var(--hid-orange); }
.hid-sub-row button {
    background: var(--hid-orange); color: #fff; border: none;
    padding: 8px 14px; border-radius: 6px; font-size: 11px;
    font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.hid-sub-row button:hover { background: var(--hid-orange-dk); }
#hid-subscribe-msg { font-size: 12px; color: var(--hid-green); margin-top: 6px; }

/* Payment Box */
.hid-payment-box {
    margin-top: 10px; background: var(--hid-card);
    border-radius: 8px; padding: 12px;
    border: 2px solid var(--hid-border); text-align: center;
}
.hid-payment-label {
    font-size: 10px; font-weight: 600; color: var(--hid-muted);
    letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px;
}
.hid-payment-icons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.hid-pay-icon {
    background: #fff; color: #333; font-size: 9px; font-weight: 700;
    padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}

/* ══════════════════════
   CENTER — PRODUCT DETAILS
══════════════════════ */
.hid-center-col { min-width: 0; }

.hid-product-title {
    font-size: 24px; font-weight: 800; color: var(--hid-text);
    letter-spacing: -0.3px; line-height: 1.25; margin: 0 0 10px;
}

.hid-meta-bar {
    display: flex; gap: 12px; align-items: center;
    font-size: 13px; color: var(--hid-muted);
    margin-bottom: 12px; flex-wrap: wrap;
}
.hid-meta-bar strong { color: var(--hid-text); }
.hid-meta-sep { color: #444; }
.hid-meta-bar a { color: var(--hid-orange); text-decoration: none; }

/* WooCommerce price overrides */
.hid-price-section { margin-bottom: 12px; }
.hid-price-section .price,
.hid-price-section .woocommerce-Price-amount {
    font-size: 32px !important; font-weight: 900 !important;
    color: #fff !important;
    background: none !important;
}
.hid-price-section .price del,
.hid-price-section .price del .woocommerce-Price-amount {
    font-size: 16px !important; font-weight: 400 !important;
    color: #666 !important; margin-right: 8px;
}
.hid-price-section .price ins { text-decoration: none !important; }

.hid-save-banner {
    background: rgba(255,102,2,0.12);
    border: 1px solid rgba(255,102,2,0.3);
    border-radius: 6px; padding: 8px 14px; margin-bottom: 14px;
    font-size: 13px; font-weight: 600; color: var(--hid-orange);
}

/* Trust Badges */
.hid-trust-badges { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.hid-trust-badge {
    display: flex; align-items: center; gap: 8px;
    border-radius: 6px; padding: 8px 12px;
}
.hid-trust-badge svg { flex-shrink: 0; }
.hid-trust-badge.hid-warranty { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); color: #22c55e; }
.hid-trust-badge.hid-returns  { background: rgba(255,102,2,0.1); border: 1px solid rgba(255,102,2,0.25); color: var(--hid-orange); }
.hid-trust-badge.hid-shipping { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #60a5fa; }
.hid-badge-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.hid-badge-sub   { font-size: 10px; opacity: 0.8; }

/* Condition */
.hid-condition-section { margin-bottom: 14px; }
.hid-condition-label {
    font-size: 12px; font-weight: 700; color: var(--hid-muted);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.hid-condition-badge {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius: 6px; padding: 10px 16px;
    font-size: 14px; font-weight: 700; color: #fff;
    display: inline-flex; align-items: center; gap: 8px;
}
.hid-condition-desc { font-size: 12px; color: var(--hid-muted); margin-top: 6px; line-height: 1.6; }
.hid-condition-desc strong { color: var(--hid-text); }

/* Stock */
.hid-stock-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.hid-stock-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--hid-green); box-shadow: 0 0 6px rgba(34,197,94,0.6); flex-shrink: 0;
}
.hid-stock-dot.hid-out { background: var(--hid-red); box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.hid-stock-text { font-weight: 700; color: var(--hid-green); }
.hid-stock-text.hid-out { color: var(--hid-red); }

/* Countdown */
#hid-countdown-container { margin-bottom: 14px; }
.hid-countdown-bar { border-radius: 8px; padding: 12px 16px; color: #fff; }
.hid-countdown-bar.hid-active  { background: linear-gradient(135deg, #16a34a, #15803d); }
.hid-countdown-bar.hid-urgent  { background: linear-gradient(135deg, #dc2626, #991b1b); }
.hid-countdown-bar.hid-expired,
.hid-countdown-bar.hid-weekend { background: linear-gradient(135deg, #d97706, #b45309); }
.hid-countdown-header {
    display: flex; align-items: center; gap: 7px; font-weight: 700;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px;
}
.hid-countdown-digits { display: flex; align-items: center; gap: 5px; }
.hid-digit-box {
    background: rgba(255,255,255,0.2); border-radius: 5px;
    padding: 5px 8px; min-width: 40px; text-align: center;
}
.hid-digit-val { font-family: 'Space Mono', 'Courier New', monospace; font-weight: 700; font-size: 18px; line-height: 1; }
.hid-digit-label { font-size: 7px; font-weight: 600; letter-spacing: 1.5px; opacity: 0.75; margin-top: 2px; }
.hid-countdown-sep { font-size: 16px; font-weight: 700; opacity: 0.35; }
.hid-countdown-text { font-size: 11px; margin-left: 8px; opacity: 0.85; line-height: 1.35; }
.hid-countdown-text small { font-size: 9px; opacity: 0.7; }

/* WooCommerce Add to Cart overrides */
.hid-cart-row { margin-bottom: 10px; }
.hid-cart-row form.cart {
    display: flex !important; gap: 10px !important;
    align-items: center !important; margin: 0 !important;
    background: none !important; border: none !important; padding: 0 !important;
}
.hid-cart-row .quantity { margin: 0 !important; }
.hid-cart-row input.qty {
    width: 72px !important; height: 44px !important;
    border: 2px solid var(--hid-border) !important;
    border-radius: 6px !important; font-size: 15px !important;
    font-weight: 600 !important; background: var(--hid-card) !important;
    color: var(--hid-text) !important; text-align: center !important;
    outline: none !important;
    padding: 0 !important; -moz-appearance: textfield !important;
}
.hid-cart-row .single_add_to_cart_button,
.hid-cart-row button[name="add-to-cart"] {
    flex: 1 !important; height: 44px !important;
    background: var(--hid-orange) !important;
    color: #fff !important; border: none !important;
    border-radius: 6px !important; font-size: 15px !important;
    font-weight: 700 !important; cursor: pointer !important;
    transition: background 0.2s !important;
    text-transform: uppercase !important; letter-spacing: 0.5px !important;
    padding: 0 20px !important; white-space: nowrap !important;
}
.hid-cart-row .single_add_to_cart_button:hover { background: var(--hid-orange-dk) !important; }

/* Secondary Actions */
.hid-secondary-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.hid-sec-btn {
    flex: 1; min-width: 80px; height: 36px;
    background: var(--hid-card); border: 2px solid var(--hid-border);
    border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--hid-muted);
    display: flex; align-items: center; justify-content: center; gap: 5px;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.hid-sec-btn:hover { border-color: var(--hid-orange); color: var(--hid-orange); }

/* Details Grid */
.hid-details-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 2px solid var(--hid-border); border-radius: 8px;
    overflow: hidden; background: var(--hid-card); margin-bottom: 20px;
}
.hid-details-col { padding: 16px; }
.hid-details-col:first-child { border-right: 2px solid var(--hid-border); }
.hid-details-col h3 {
    font-size: 14px; font-weight: 800; margin: 0 0 12px;
    color: var(--hid-text);
}
.hid-details-col table { width: 100%; font-size: 12px; border-collapse: collapse; }
.hid-details-col td { padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hid-details-col td:first-child { font-weight: 600; color: var(--hid-muted); width: 45%; }
.hid-details-col td:last-child { color: var(--hid-text); }
.hid-details-col a { color: var(--hid-orange); text-decoration: none; }

/* TABS */
.hid-tabs-container {
    background: var(--hid-card); border-radius: 8px;
    border: 2px solid var(--hid-border); overflow: hidden;
}
.hid-tab-headers {
    display: flex; border-bottom: 2px solid var(--hid-border);
    background: var(--hid-card-alt); flex-wrap: wrap;
}
.hid-tab-btn {
    padding: 12px 18px; font-size: 12px; font-weight: 600;
    color: var(--hid-muted); background: transparent; border: none;
    border-bottom: 3px solid transparent; cursor: pointer;
    transition: all 0.15s; margin-bottom: -2px;
}
.hid-tab-btn:hover { color: var(--hid-text); }
.hid-tab-btn.hid-active {
    color: var(--hid-orange); border-bottom-color: var(--hid-orange); font-weight: 700;
}
.hid-tab-content {
    padding: 20px; display: none;
    font-size: 14px; line-height: 1.8; color: #c0c8d4;
}
.hid-tab-content.hid-active { display: block; }
.hid-tab-content h2,
.hid-tab-content h3 {
    font-weight: 800;
    color: var(--hid-orange); margin-bottom: 12px; background: none;
}
.hid-tab-content p { margin-bottom: 12px; }
.hid-tab-content a { color: var(--hid-orange); }
.hid-tab-content ul,
.hid-tab-content ol { padding-left: 20px; margin-bottom: 12px; }

/* Specs Table */
.hid-specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hid-specs-table td { padding: 9px 10px; }
.hid-specs-table td:first-child { font-weight: 600; color: var(--hid-muted); width: 40%; }
.hid-specs-table td:last-child { color: var(--hid-text); }
.hid-specs-table tr:nth-child(even) td { background: rgba(0,0,0,0.2); }
.hid-specs-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }

/* FAQ */
.hid-faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 12px; margin-bottom: 12px; }
.hid-faq-item:last-child { border-bottom: none; margin-bottom: 0; }
.hid-faq-item summary {
    font-weight: 700; font-size: 13px; color: var(--hid-text);
    cursor: pointer; padding: 4px 0; list-style: none;
}
.hid-faq-item summary::-webkit-details-marker { display: none; }
.hid-faq-item summary::before { content: '+ '; color: var(--hid-orange); font-weight: 900; }
.hid-faq-item[open] summary::before { content: '\2212 '; }
.hid-faq-item p { font-size: 12px; color: var(--hid-muted); line-height: 1.7; margin: 6px 0 0 14px; }

/* ══════════════════════
   RIGHT — PROMO CARDS
══════════════════════ */
.hid-promo-col {
    position: sticky; top: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.hid-promo-card { border-radius: 10px; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.hid-promo-inner { position: relative; z-index: 1; }
.hid-icon-box {
    border-radius: 7px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hid-promo-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hid-promo-title { font-size: 15px; font-weight: 900; line-height: 1; letter-spacing: -0.2px; }
.hid-promo-sub   { font-size: 11px; opacity: 0.75; margin-top: 2px; }
.hid-promo-text  { font-size: 11px; opacity: 0.85; line-height: 1.5; }
.hid-promo-badge {
    margin-top: 8px; display: inline-block; padding: 3px 10px; border-radius: 16px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.hid-promo-shipping { background: linear-gradient(145deg, #1a3a5c, #0d2137); border: 1px solid #1e4976; }
.hid-promo-nextday  { background: linear-gradient(145deg, #7c2d12, #5c1d0e); border: 1px solid #9a3412; }
.hid-promo-freight  { background: linear-gradient(145deg, #14532d, #0f3a20); border: 1px solid #166534; }

/* Contact Card */
.hid-contact-card {
    background: var(--hid-card); border: 2px solid var(--hid-border);
    border-radius: 10px; padding: 16px; text-align: center;
}
.hid-contact-title { font-size: 12px; font-weight: 700; color: var(--hid-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.hid-contact-phone {
    display: block; font-size: 18px; font-weight: 800; color: var(--hid-orange);
    text-decoration: none; margin-bottom: 4px;
}
.hid-contact-phone:hover { text-decoration: underline; }
.hid-contact-hours { font-size: 11px; color: var(--hid-muted); margin-bottom: 8px; }
.hid-contact-email { font-size: 11px; color: var(--hid-orange); text-decoration: none; }
.hid-contact-email:hover { text-decoration: underline; }

/* We Buy Card */
.hid-buy-card {
    background: linear-gradient(135deg, #2d1a00, #1a1000);
    border: 1px solid rgba(255,102,2,0.35); border-radius: 10px; padding: 16px; text-align: center;
}
.hid-buy-title { font-size: 13px; font-weight: 800; color: var(--hid-orange); margin-bottom: 6px; }
.hid-buy-text  { font-size: 11px; color: var(--hid-muted); margin-bottom: 10px; line-height: 1.5; }
.hid-buy-btn {
    display: inline-block; background: var(--hid-orange); color: #fff;
    padding: 8px 20px; border-radius: 6px; font-size: 12px; font-weight: 700;
    text-decoration: none; transition: background 0.15s;
}
.hid-buy-btn:hover { background: var(--hid-orange-dk); color: #fff; }

/* ══════════════════════
   RELATED PRODUCTS
══════════════════════ */
.hid-related-section { max-width: 1360px; margin: 0 auto; padding: 0 24px 60px; }
.hid-related-title {
    font-size: 22px; font-weight: 800; color: var(--hid-orange);
    margin-bottom: 16px;
}
.hid-related-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.hid-related-card {
    background: var(--hid-card); border: 2px solid var(--hid-border);
    border-radius: 8px; padding: 12px; text-decoration: none; color: var(--hid-text);
    transition: border-color 0.2s, transform 0.2s; display: block;
}
.hid-related-card:hover { border-color: var(--hid-orange); transform: translateY(-2px); color: var(--hid-text); }
.hid-rel-img-wrap {
    background: var(--hid-bg); border-radius: 6px; height: 90px; overflow: hidden;
    margin-bottom: 8px; display: flex; align-items: center; justify-content: center;
}
.hid-rel-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hid-rel-img-placeholder { font-size: 10px; color: #444; }
.hid-rel-name { font-size: 11px; font-weight: 600; color: var(--hid-text); line-height: 1.35; margin-bottom: 6px; min-height: 28px; }
.hid-rel-bottom { display: flex; justify-content: space-between; align-items: baseline; }
.hid-rel-price { font-size: 14px; font-weight: 800; color: #fff; }
.hid-rel-price .woocommerce-Price-amount { font-size: 14px !important; font-weight: 800 !important; color: #fff !important; }
.hid-rel-left { font-size: 9px; color: var(--hid-red); font-weight: 600; }

/* ══════════════════════
   RESPONSIVE
══════════════════════ */
@media (max-width: 1100px) {
    .hid-product-grid { grid-template-columns: 340px 1fr; }
    .hid-promo-col { display: none; }
    .hid-related-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .hid-product-grid { grid-template-columns: 1fr; padding: 0 16px 32px; }
    .hid-gallery-col { position: static; }
    .hid-main-image { height: 280px; }
    .hid-details-grid { grid-template-columns: 1fr; }
    .hid-details-col:first-child { border-right: none; border-bottom: 2px solid var(--hid-border); }
    .hid-related-grid { grid-template-columns: repeat(2, 1fr); }
    .hid-related-section { padding: 0 16px 40px; }
    .hid-trust-badges { flex-direction: column; }
    .hid-promo-col { display: flex; position: static; }
}
@media (max-width: 480px) {
    .hid-product-title { font-size: 18px; }
    .hid-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .hid-related-grid { grid-template-columns: repeat(2, 1fr); }
}
