/* ============================================================
   hw-product.css — shared styles for all HouseWaves product pages
   Loaded by: hw-one.html, hw-two.html, hw-three.html ...

   Color scheme classes (.hw-scheme-blue / .hw-scheme-orange) are
   applied automatically by product-data.js based on the product's
   colorScheme field. Override rules at the bottom of this file use
   those classes so each page needs zero inline CSS.

   DO NOT add product-specific content here. Product names, prices,
   descriptions, and spec data live in product-data.js / product-specs.js
   ============================================================ */


/* ── Hero section ─────────────────────────────────────────── */

.hw-product-hero {
    background: #fff;
    padding: 90px 0 40px;
}
.hw-product-hero h1 {
    font-size: 2.6em;
    font-weight: 600;
    color: #374048;
    margin-bottom: 6px;
}
.hw-product-hero .hw-hero-tagline {
    font-size: 1.15em;
    color: #337ab7;
    font-weight: 500;
    margin-bottom: 18px;
}
.hw-product-hero .hw-hero-desc {
    font: 300 17px/1.7 "Poppins", sans-serif;
    color: #737c85;
    margin-bottom: 28px;
    max-width: 520px;
}
.hw-hero-price {
    font-size: 2.1em;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}
.hw-hero-price-note {
    font-size: 0.82em;
    color: #888;
    margin-bottom: 18px;
}
.hw-hero-image { max-width: 100%; border-radius: 6px; }


/* ── Page sections ────────────────────────────────────────── */

.hw-gallery-section {
    background: #f8fbfd;
    padding: 50px 0;
}
.hw-model-features {
    background: #fff;
    padding: 50px 0;
}
/* .hw-technology section — styled via left-right-contents class, no card CSS needed */
.hw-specs-section {
    background: #fff;
    padding: 50px 0;
}
.hw-order-section {
    background: #f8fbfd;
    padding: 50px 0;
}
.hw-crosssell {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #eef0f2;
}


/* ── Column heading + icon sizes (3-col feature sections) ─── */

.hw-model-features .media .media-body h4,
#technology .media .media-body h4 {
    font: 600 26px/1.2 "Poppins", sans-serif !important;
    color: #374048 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
.hw-model-features .media-left span,
#technology .media-left span {
    font-size: 1.6em;
}


/* ── Full spec table (specs section) ──────────────────────── */

.hw-full-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}
.hw-full-spec-table th {
    text-align: left;
    background: #337ab7;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.82em;
    text-transform: uppercase;
}
.hw-full-spec-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f0f2f4;
    vertical-align: top;
    color: #555;
}
.hw-full-spec-table td:first-child {
    font-weight: 600;
    color: #374048;
    width: 36%;
}
.hw-full-spec-table tr:last-child td { border-bottom: none; }
.hw-full-spec-table tr:nth-child(even) td { background: #fafbfc; }
.hw-spec-req-row td {
    background: #f0f7ff !important;
    color: #888;
    font-style: italic;
    font-size: 0.88em;
    border-top: 2px solid #b8d8f8 !important;
}


/* ── Order box ────────────────────────────────────────────── */

.hw-order-box {
    border: 2px solid #337ab7;
    border-radius: 6px;
    padding: 36px 36px 28px;
    background: #f0f7ff;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}


/* ── Cross-sell cards ─────────────────────────────────────── */

.hw-crosssell-card {
    border: 1px solid #e8eef4;
    border-radius: 6px;
    padding: 22px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hw-crosssell-card:hover {
    border-color: #ff7800;
    box-shadow: 0 2px 12px rgba(255,120,0,0.1);
}
.hw-crosssell-card h4 { color: #374048; margin-bottom: 6px; }
.hw-crosssell-card p  { font-size: 0.85em; color: #82898f; margin-bottom: 16px; }


/* ── Photo gallery ────────────────────────────────────────── */

.hw-gallery { width: 100%; }

.hw-gallery-main-wrap {
    position: relative;
    width: 100%;
    background: #f4f6f8;
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 12px;
}
#hw-main-img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    box-sizing: border-box;
    transition: opacity 0.18s;
}
.hw-gallery-main-wrap:hover #hw-main-img { opacity: 0.93; }

/* Persistent enlarge icon — top-right corner, always visible */
.hw-gallery-enlarge-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.18);
    pointer-events: none;
    transition: background 0.15s, transform 0.15s;
}
.hw-gallery-enlarge-btn i {
    font-size: 0.88em;
    color: #374048;
    line-height: 1;
}
.hw-gallery-main-wrap:hover .hw-gallery-enlarge-btn {
    background: rgba(255,255,255,1);
    transform: scale(1.08);
}

/* Photo label — bottom-left of main frame */
.hw-gallery-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font: 500 0.74em 'Poppins', sans-serif;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.38);
    border-radius: 3px;
    padding: 2px 8px;
    letter-spacing: 0.03em;
    pointer-events: none;
}

/* Thumbnail grid */
.hw-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hw-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f4f6f8;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.hw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hw-thumb:hover { border-color: #bbb; }
.hw-thumb.hw-thumb-active { border-color: #337ab7; box-shadow: 0 0 0 1px #337ab7; }

/* Spec tile — text-only thumb */
.hw-thumb-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border: 2px solid transparent;
}
.hw-thumb-spec .hw-thumb-spec-icon {
    font-size: 1.3em;
    color: #0084ff;
    margin-bottom: 4px;
}
.hw-thumb-spec .hw-thumb-spec-label {
    font: 700 0.68em/1.25 'Poppins', sans-serif;
    color: #374048;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hw-thumb-spec:hover { border-color: #bbb; }
.hw-thumb-spec.hw-thumb-active { border-color: #337ab7; box-shadow: 0 0 0 1px #337ab7; background: #e8f0f8; }

/* Video tile */
.hw-thumb-video { position: relative; }
.hw-thumb-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-thumb-video .hw-thumb-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,102,34,0.88);
    display: flex; align-items: center; justify-content: center;
}
.hw-thumb-video .hw-thumb-play-tri {
    width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 11px solid #fff;
    margin-left: 2px;
}


/* ── Spec inline panel (gallery frame) ────────────────────── */

#hw-spec-inline {
    display: none;
    width: 100%;
    height: 500px;
    overflow-y: auto;
    padding: 24px 28px;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}
#hw-spec-inline:hover { background: #f8fbfd; }
#hw-spec-inline .hw-spec-inline-hint {
    text-align: right;
    font: 500 0.72em 'Poppins', sans-serif;
    color: #aaa;
    margin-bottom: 12px;
}
#hw-spec-inline table {
    width: 100%;
    border-collapse: collapse;
    font: 400 0.88em/1.6 'Poppins', sans-serif;
    color: #374048;
}
#hw-spec-inline table td {
    padding: 5px 8px 5px 0;
    vertical-align: top;
    border-bottom: 1px solid #eef1f4;
}
#hw-spec-inline table td:first-child {
    font-weight: 600;
    color: #222;
    width: 38%;
    padding-right: 14px;
}
#hw-spec-inline table tr.hw-spec-req td {
    border-top: 2px solid #e8eef4;
    border-bottom: none;
    color: #82898f;
    font-style: italic;
    font-size: 0.93em;
    padding-top: 10px;
}


/* ── Spec popup ───────────────────────────────────────────── */

#spec-popup-single {
    padding: 32px 40px 28px;
    max-width: 900px;
}
#spec-popup-single .hw-spec-card-header {
    font-size: 1.4em;
    margin-bottom: 18px;
}
#spec-popup-single table {
    width: 100%;
    font: 400 1.32em/1.6 'Poppins', sans-serif;
    border-collapse: collapse;
}
#spec-popup-single table td {
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid #e8eef4;
    vertical-align: top;
    overflow-wrap: break-word;
}
#spec-popup-single table td:first-child {
    font-weight: 600;
    padding-right: 28px;
    white-space: normal;
    overflow-wrap: break-word;
}
#spec-popup-single table tr:last-child td { border-bottom: none; }
#spec-popup-single table tr.hw-spec-req td {
    border-top: 2px solid #e8eef4;
    border-bottom: none;
    color: #82898f;
    font-style: italic;
    font-size: 0.93em;
    padding-top: 20px;
}


/* ── Bottom spec card ─────────────────────────────────────── */

.hw-spec-bottom-card {
    border: 1px solid #e0e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.hw-spec-bottom-card-header {
    background: #f8f8f8;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.hw-spec-bottom-card-header span {
    font: 700 0.76em 'Poppins', sans-serif;
    color: #ff7800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hw-spec-bottom-card table {
    width: 100%;
    border-collapse: collapse;
    font: 400 0.88em/1.6 'Poppins', sans-serif;
    color: #374048;
    padding: 0 20px;
}
.hw-spec-bottom-card table td {
    padding: 6px 20px 6px 20px;
    vertical-align: top;
    border-bottom: 1px solid #eef1f4;
}
.hw-spec-bottom-card table td:first-child {
    font-weight: 600;
    color: #222;
    width: 38%;
}
.hw-spec-bottom-card table tr:last-child td { border-bottom: none; }
.hw-spec-bottom-card table tr.hw-spec-req td {
    border-top: 2px solid #e8eef4;
    border-bottom: none;
    color: #82898f;
    font-style: italic;
    font-size: 0.93em;
    padding-top: 10px;
}


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1199px) {
    #hw-main-img { height: 440px; }
    .hw-thumb { width: 84px; height: 84px; }
}
@media (max-width: 991px) {
    #hw-main-img { height: 360px; }
    .hw-thumb { width: 76px; height: 76px; }
}
@media (max-width: 767px) {
    #hw-main-img { height: 280px; }
    .hw-thumb { width: 68px; height: 68px; }
}


/* ── Color scheme overrides ───────────────────────────────── */
/*
   product-data.js adds .hw-scheme-blue or .hw-scheme-orange to the
   page wrapper. Use those classes here to override any blue defaults
   for pre-release / orange-scheme products — no inline CSS needed
   in any product page.
*/

/* Order box */
.hw-scheme-orange .hw-order-box {
    border-color: #ff7800;
    background: #fff9f4;
}
/* orange-badge: order box inherits default blue — no override needed */

/* Active thumbnail highlight */
.hw-scheme-orange .hw-thumb.hw-thumb-active {
    border-color: #ff7800;
    box-shadow: 0 0 0 1px #ff7800;
}
/* orange-badge: thumbnails inherit default blue — no override needed */

/* Spec tile active state */
.hw-scheme-orange .hw-thumb-spec .hw-thumb-spec-icon {
    color: #ff7800;
}
.hw-scheme-orange .hw-thumb-spec.hw-thumb-active {
    border-color: #ff7800;
    box-shadow: 0 0 0 1px #ff7800;
    background: #fff4e8;
}
/* orange-badge: spec tile inherits default blue — no override needed */


/*
    SHOPIFY MIGRATION:
    When moving to Shopify, replace the Etsy href in the buy buttons with:
    https://YOUR-STORE.myshopify.com/products/housewaves-[model]
*/
