/* ==========================================================================
   FLYSURFER CZ — Product Page v5 (Clean rebuild)
   ========================================================================== */

/* Full-width layout for product pages */
.pdp { overflow-x: hidden; max-width: 100%; width: 100%; }
/* Hide WooCommerce default availability (we use custom badge) */
.woocommerce-variation-availability { display: none !important; }
/* overflow-x on site-content removed — breaks scroll on pages */

/* ── 1. HERO ────────────────────────────────────────────────────── */
.pdp-hero {
    width: 100%;
    margin-left: 0;
    height: 55vh;
    min-height: 400px;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: visible;
    margin-bottom: 60px;
}

.pdp-hero__text {
    position: absolute;
    bottom: 0;
    left: 5%;
    transform: translateY(40%);
    z-index: 2;
}

.pdp-hero__name {
    font-size: clamp(3.5rem, 9vw, 8rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.85;
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
    margin: 0;
}

.pdp-hero__tagline {
    display: block;
    color: #003d4c;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ── 2. PURCHASE ────────────────────────────────────────────────── */
.pdp-buy {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.pdp-buy__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.pdp-buy__gallery {
    position: sticky;
    top: 100px;
}

.pdp-buy__img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.pdp-buy__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pdp-buy__thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: #f8f9fa;
    padding: 4px;
    transition: border-color 0.2s;
}

.pdp-buy__thumb:hover,
.pdp-buy__thumb.active {
    border-color: #003d4c;
}

.pdp-crumb {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}
.pdp-crumb a { color: #999; text-decoration: none; }
.pdp-crumb a:hover { color: #003d4c; }

.pdp-buy__title {
    font-size: 2rem;
    font-weight: 800;
    color: #003d4c;
    text-transform: uppercase;
    margin: 0 0 5px;
}

.pdp-buy__badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc4405;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pdp-buy__price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.pdp-buy__price del { color: #aaa; font-weight: 400; }
.pdp-buy__price ins { text-decoration: none; color: #dc4405; }

/* DPH suffix — show only on hover */
.pdp-buy__price .woocommerce-price-suffix,
.woocommerce-variation-price .woocommerce-price-suffix {
    display: none;
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
    margin-left: 8px;
}
.pdp-buy__price:hover .woocommerce-price-suffix,
.woocommerce-variation-price:hover .woocommerce-price-suffix {
    display: inline;
}

.pdp-buy__desc { color: #555; line-height: 1.6; margin-bottom: 20px; font-size: 0.95rem; }

.pdp-buy__specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    border: none;
}
.pdp-buy__specs th {
    text-align: left;
    font-weight: 700;
    color: #fff;
    background: #003d4c;
    padding: 10px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 130px;
    border-bottom: 2px solid #00506a;
}
.pdp-buy__specs td {
    padding: 10px 16px;
    color: #333;
    font-weight: 500;
    background: #f8f9fa;
    border-bottom: 2px solid #fff;
}

/* WooCommerce cart form */
.pdp-buy__cart { margin-top: 5px; }
.pdp-buy__cart .variations { margin-bottom: 20px; border: none; }
.pdp-buy__cart .variations td { padding: 0; border: none; vertical-align: middle; }
/* Variations — pill button style (like Nike/Apple size selector) */
.pdp-buy__cart .variations {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: none;
    margin-bottom: 20px;
}
.pdp-buy__cart .variations tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pdp-buy__cart .variations tr {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pdp-buy__cart .variations td {
    display: block;
    padding: 0;
    border: none;
}
.pdp-buy__cart .variations td.label {
    flex-shrink: 0;
    width: auto;
}
.pdp-buy__cart .variations td.label label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #003d4c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}
.pdp-buy__cart .variations td.value {
    flex: 1;
}
/* Size buttons (replaces select dropdown) */
.pdp-size-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pdp-size-buttons::-webkit-scrollbar { display: none; }
.pdp-size-btn {
    padding: 8px 14px;
    border: 2px solid #dbe2e9;
    border-radius: 8px;
    background: #fff;
    color: #003d4c;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}
.pdp-size-btn:hover {
    border-color: #003d4c;
    background: #f0f7f9;
}
.pdp-size-btn.active {
    background: #003d4c;
    color: #fff;
    border-color: #003d4c;
}

/* Select dropdown styling */
.pdp-buy__cart .variations select {
    width: 100%;
    height: auto;
    min-height: 54px;
    padding: 14px 50px 14px 20px;
    border: 2px solid #003d4c;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #003d4c;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M1 1l6 7 6-7' stroke='%23003d4c' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    line-height: 1.2;
}
.pdp-buy__cart .variations select:focus { border-color: #dc4405; outline: none; box-shadow: 0 0 0 3px rgba(220,68,5,0.15); }

/* Fix select text visibility */
.pdp-buy__cart .variations select option { color: #003d4c; background: #fff; }
.pdp-buy__cart .variations select option[value=""] { color: #999; }

/* Hide "Vyčistit" link */
.pdp-buy__cart .reset_variations { display: none; }

.pdp-buy__cart .single_add_to_cart_button {
    width: 100%;
    padding: 18px;
    background: #dc4405;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220,68,5,0.3);
}
.pdp-buy__cart .single_add_to_cart_button:hover {
    background: #ff5a1a;
    box-shadow: 0 6px 25px rgba(220,68,5,0.4);
    transform: translateY(-2px);
}
.pdp-buy__cart .single_add_to_cart_button.disabled,
.pdp-buy__cart .single_add_to_cart_button:disabled {
    background: #dc4405;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Availability badge */
.pdp-availability {
    margin: 10px 0 15px;
}
.pdp-avail {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pdp-avail--ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.pdp-avail--low {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}
.pdp-avail--order {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

/* Hide WooCommerce default stock text */
.pdp-buy__cart .stock,
.pdp .stock,
.pdp-buy__info .stock,
p.stock {
    display: none;
}

.pdp-buy__cart .quantity { display: none; } /* Hide quantity — kites are usually 1 */
.pdp-buy__cart .woocommerce-variation-add-to-cart .quantity,
.pdp .quantity { display: none; }

.pdp-buy__cart .woocommerce-variation-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 10px 0 15px;
}

.pdp-buy__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.pdp-buy__trust span {
    font-size: 0.78rem;
    color: #003d4c;
    font-weight: 600;
    background: #f0f7f9;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #dbe2e9;
}

/* ── 3. USP STRIP ───────────────────────────────────────────────── */
.pdp-usp {
    width: 100%;
    margin-left: 0;
    background: #003d4c;
    padding: 35px 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pdp-usp__item {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* ── 4 & 6. PANORAMA ───────────────────────────────────────────── */
.pdp-pano {
    width: 100%;
    margin-left: 0;
    height: 50vh;
    min-height: 360px;
    max-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ── 5. CONTENT ─────────────────────────────────────────────────── */
.pdp-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.pdp-content__inner h2,
.pdp-content h2,
.pdp-content__inner h3,
.pdp-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #003d4c;
    text-transform: uppercase;
    margin: 50px 0 30px;
    text-align: center;
}

/* Internal links section — hide from content (shown in buy section) */
.pdp-content .fs-internal-links { display: none; }

/* Accessories in buy section */
.pdp-buy__accessories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pdp-buy__accessories h3,
.pdp-buy__accessories h3:first-child {
    font-size: 0.8rem;
    font-weight: 700;
    color: #003d4c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    padding: 0;
    text-align: left;
    line-height: 1.3;
}

.pdp-buy__accessories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdp-buy__accessories li {
    padding: 4px 0;
    font-size: 0.85rem;
    color: #555;
}

.pdp-buy__accessories a {
    color: #003d4c;
    text-decoration: none;
    font-weight: 600;
}

.pdp-buy__accessories a:hover {
    color: #dc4405;
}

/* Feature cards (from post_content) */
.pdp-content .fs-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.pdp-content .fs-feature-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.pdp-content .fs-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,61,76,0.1);
}
.pdp-content .fs-feature-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    margin: 0;
}
.pdp-content .fs-feature-card > h3,
.pdp-content .fs-feature-card > h4,
.pdp-content .fs-feature-card > p {
    padding-left: 30px;
    padding-right: 30px;
}
.pdp-content .fs-feature-card > h3,
.pdp-content .fs-feature-card > h4 {
    margin-top: 24px;
    color: #003d4c;
}
.pdp-content .fs-feature-card > p:last-child {
    padding-bottom: 28px;
}
.pdp-content .fs-feature-card > p:empty { display: none; }

.pdp-content .fs-feature-card h4 {
    color: #003d4c;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.pdp-content .fs-feature-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Use cases (from post_content) */
.pdp-content .fs-usecases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.pdp-content .fs-usecase {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.pdp-content .fs-usecase:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,61,76,0.1);
}
.pdp-content .fs-usecase img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0;
}
.pdp-content .fs-usecase > h3,
.pdp-content .fs-usecase > h4,
.pdp-content .fs-usecase > p {
    padding-left: 25px;
    padding-right: 25px;
}
.pdp-content .fs-usecase > h3,
.pdp-content .fs-usecase > h4 {
    color: #003d4c;
    font-weight: 700;
    margin: 22px 0 10px;
}
.pdp-content .fs-usecase > p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}
.pdp-content .fs-usecase > p:last-child { padding-bottom: 24px; }
.pdp-content .fs-usecase > p:empty { display: none; }

/* Parallax sections in content — break out of container to full width */
.pdp-content .fs-parallax-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 550px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ── 7. GALLERY ─────────────────────────────────────────────────── */
.pdp-gallery {
    background: #f8f9fa;
    padding: 60px 0;
}

.pdp-gallery__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pdp-stitle {
    font-size: 1.6rem;
    font-weight: 800;
    color: #003d4c;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 30px;
}

.pdp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pdp-gallery__item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    display: block;
}

.pdp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.pdp-gallery__item:hover img {
    transform: scale(1.08);
}

/* Carousel ─────────────────────────────────────────────────────── */
.pdp-carousel {
    position: relative;
}
.pdp-carousel__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}
.pdp-carousel__track::-webkit-scrollbar { display: none; }
.pdp-carousel__slide {
    flex: 0 0 calc((100% - 48px) / 5);
    scroll-snap-align: start;
    cursor: zoom-in;
}
.pdp-carousel__btn {
    position: absolute;
    top: calc(50% - 8px);
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #003d4c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 0 0 4px;
}
.pdp-carousel__btn:hover {
    background: #dc4405;
    transform: translateY(-50%) scale(1.08);
}
.pdp-carousel__btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: translateY(-50%);
}
.pdp-carousel__btn--prev { left: -18px; }
.pdp-carousel__btn--next { right: -18px; }
@media (max-width: 1100px) {
    .pdp-carousel__slide { flex: 0 0 calc((100% - 36px) / 4); }
}
@media (max-width: 900px) {
    .pdp-carousel__slide { flex: 0 0 calc((100% - 24px) / 3); }
}
@media (max-width: 640px) {
    .pdp-carousel__slide { flex: 0 0 calc((100% - 12px) / 2); }
    .pdp-carousel__btn { width: 40px; height: 40px; font-size: 24px; }
    .pdp-carousel__btn--prev { left: 4px; }
    .pdp-carousel__btn--next { right: 4px; }
}

/* ── 8. TABS ────────────────────────────────────────────────────── */
.pdp-tabs {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.pdp-tabs__inner {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
}

.pdp-tabs__nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.pdp-tabs__btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.pdp-tabs__btn:hover { color: #003d4c; }
.pdp-tabs__btn.active {
    color: #003d4c;
    background: #fff;
    border-bottom-color: #dc4405;
}

.pdp-tabs__panel {
    display: none;
    padding: 30px;
}
.pdp-tabs__panel.active { display: block; }

/* Tab tables */
.pdp-tabs__panel table,
.fs-tab-table {
    width: 100%;
    border-collapse: collapse;
}

.pdp-tabs__panel table td,
.pdp-tabs__panel table th,
.fs-tab-table td,
.fs-tab-table th {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.pdp-tabs__panel table tr:nth-child(even),
.fs-tab-table tr:nth-child(even) {
    background: #f8f9fa;
}

.fs-tab-header td,
.fs-tab-header th {
    background: #003d4c;
    color: #fff;
    font-weight: 700;
}

.fs-tab-delivery { list-style: none; padding: 0; }
.fs-tab-delivery li { padding: 8px 0; border-bottom: 1px solid #eee; }
.fs-tab-delivery li:before { content: "✓ "; color: #003d4c; font-weight: 700; }

/* ── LIGHTBOX ────────────────────────────────────────────────────── */
#pdpLightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#pdpLightbox.active { display: flex; }
#pdpLbImg {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}
#pdpLbClose {
    position: absolute;
    top: 20px; right: 25px;
    background: none; border: none;
    color: #fff; font-size: 40px;
    cursor: pointer; z-index: 10;
    line-height: 1;
    transition: opacity 0.2s;
}
#pdpLbClose:hover { opacity: 0.7; }
#pdpLbPrev, #pdpLbNext {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 48px;
    width: 60px; height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
#pdpLbPrev { left: 20px; }
#pdpLbNext { right: 20px; }
#pdpLbPrev:hover, #pdpLbNext:hover { background: rgba(255,255,255,0.3); }

/* Clickable images */
.pdp-buy__img { cursor: zoom-in; }
.pdp-gallery__item { cursor: zoom-in; }

/* ── 9. TEST CENTER CTA ─────────────────────────────────────────── */
.pdp-cta {
    width: 100%;
    margin-left: 0;
    background: linear-gradient(135deg, #003d4c, #002a35);
    padding: 60px 20px;
    text-align: center;
}

.pdp-cta__inner { max-width: 600px; margin: 0 auto; }
.pdp-cta h3 { color: #fff; font-size: 1.8rem; margin: 0 0 10px; }
.pdp-cta p { color: rgba(255,255,255,0.8); margin: 0 0 25px; line-height: 1.6; }

.pdp-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 9999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
}
.pdp-btn--orange { background: #dc4405; color: #fff; }
.pdp-btn--orange:hover { background: #ff5a1a; color: #fff; }

.pdp-cta__contact {
    margin-top: 20px;
    font-size: 0.9rem;
}
.pdp-cta__contact a { color: rgba(255,255,255,0.7); }
.pdp-cta__contact a:hover { color: #fff; }
.pdp-cta__contact span { display: block; color: rgba(255,255,255,0.5); margin-bottom: 5px; font-size: 0.8rem; }

/* ── 10. RELATED ────────────────────────────────────────────────── */
.pdp-related {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.pdp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pdp-related__card {
    text-decoration: none;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pdp-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,61,76,0.1);
}

.pdp-related__card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.pdp-related__card h4 {
    color: #003d4c;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 5px;
}

.pdp-related__card span { color: #444; font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
/* ── RESPONSIVE — TABLET (max 1024px) ── */
@media (max-width: 1024px) {
    .pdp-buy__wrap { grid-template-columns: 1fr; gap: 30px; }
    .pdp-buy__gallery { position: static; }
    .pdp-content .fs-features-grid { grid-template-columns: 1fr; }
    .pdp-content .fs-usecases-grid { grid-template-columns: 1fr; }
    .pdp-gallery__grid { grid-template-columns: repeat(2, 1fr); }
    .pdp-related__grid { grid-template-columns: repeat(2, 1fr); }

    /* Buy section */
    .pdp-buy { margin-bottom: 40px; }
    .pdp-buy__img { max-height: 400px; }

    /* Content */
    .pdp-content { margin: 40px auto; }
    .pdp-content__inner h2,
    .pdp-content h2 { font-size: 1.5rem; margin: 35px 0 25px; }

    /* Tabs */
    .pdp-tabs { margin: 40px auto; }

    /* Related */
    .pdp-related { margin: 40px auto; }

    /* CTA */
    .pdp-cta { padding: 50px 20px; }
    .pdp-cta h3 { font-size: 1.5rem; }
}

/* ── RESPONSIVE — MOBILE (max 768px) ── */
@media (max-width: 768px) {
    /* Hero — text inside image on mobile */
    .pdp-hero {
        height: 40vh; min-height: 250px; max-height: 380px;
        margin-bottom: 25px;
        overflow: hidden;
    }
    .pdp-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 30%, rgba(0,20,30,0.6) 100%);
        z-index: 1;
        pointer-events: none;
    }
    .pdp-hero__text {
        left: 16px;
        transform: none;
        bottom: 15px;
        z-index: 2;
    }
    .pdp-hero__name { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -1px; }
    .pdp-hero__tagline {
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.7rem;
        letter-spacing: 1px;
        text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    }

    /* Buy section */
    .pdp-buy { padding: 0 16px; margin-bottom: 30px; }
    .pdp-buy__wrap { gap: 20px; }
    .pdp-buy__img { max-height: 350px; border-radius: 10px; padding: 15px; }
    .pdp-buy__thumbs { gap: 8px; margin-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pdp-buy__thumb { width: 55px; height: 55px; border-radius: 6px; flex-shrink: 0; }
    .pdp-buy__title { font-size: 1.5rem; }
    .pdp-buy__price { font-size: 1.5rem; }
    .pdp-buy__desc { font-size: 0.9rem; }
    .pdp-buy__specs th { padding: 8px 12px; font-size: 0.75rem; width: 100px; }
    .pdp-buy__specs td { padding: 8px 12px; font-size: 0.9rem; }

    /* Size buttons — allow wrapping on mobile */
    .pdp-size-buttons { flex-wrap: wrap; }
    .pdp-size-btn { padding: 8px 12px; font-size: 0.8rem; min-width: 36px; }

    /* Select dropdown */
    .pdp-buy__cart .variations select {
        min-height: 48px;
        padding: 12px 40px 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Add to cart button */
    .pdp-buy__cart .single_add_to_cart_button {
        padding: 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Variation price */
    .pdp-buy__cart .woocommerce-variation-price {
        font-size: 1.3rem;
    }

    /* Trust badges */
    .pdp-buy__trust { gap: 6px; }
    .pdp-buy__trust span { font-size: 0.72rem; padding: 5px 10px; }

    /* DPH suffix — always visible on touch devices (no hover) */
    .pdp-buy__price .woocommerce-price-suffix,
    .woocommerce-variation-price .woocommerce-price-suffix {
        display: inline;
        font-size: 0.7rem;
    }

    /* Accessories */
    .pdp-buy__accessories { padding-top: 15px; margin-top: 15px; }

    /* USP strip */
    .pdp-usp { flex-direction: column; gap: 12px; padding: 20px 16px; }
    .pdp-usp__item { font-size: 0.75rem; letter-spacing: 1.5px; }

    /* Panorama */
    .pdp-pano { height: 25vh; min-height: 180px; background-attachment: scroll; }

    /* Content */
    .pdp-content { margin: 35px auto; padding: 0 16px; }
    .pdp-content__inner h2,
    .pdp-content h2,
    .pdp-content__inner h3,
    .pdp-content h3 { font-size: 1.3rem; margin: 30px 0 20px; }
    .pdp-content .fs-parallax-section { height: 220px; min-height: 220px; background-attachment: scroll; width: calc(100% + 32px); left: auto; right: auto; margin: 30px -16px 30px -16px; }

    /* Gallery */
    .pdp-gallery { padding: 40px 0; }
    .pdp-gallery__inner { padding: 0 16px; }
    .pdp-gallery__grid { gap: 8px; }
    .pdp-stitle { font-size: 1.3rem; margin-bottom: 20px; }

    /* Tabs */
    .pdp-tabs { margin: 35px auto; padding: 0 16px; }
    .pdp-tabs__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pdp-tabs__nav::-webkit-scrollbar { display: none; }
    .pdp-tabs__btn { padding: 12px 14px; font-size: 0.72rem; flex-shrink: 0; flex: none; min-width: auto; }
    .pdp-tabs__panel { padding: 20px 16px; }
    .pdp-tabs__panel table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pdp-tabs__panel table td,
    .pdp-tabs__panel table th,
    .fs-tab-table td,
    .fs-tab-table th { padding: 8px 10px; font-size: 0.8rem; white-space: nowrap; }

    /* CTA */
    .pdp-cta { padding: 40px 16px; }
    .pdp-cta h3 { font-size: 1.3rem; }
    .pdp-cta p { font-size: 0.9rem; }
    .pdp-btn { padding: 12px 30px; font-size: 0.85rem; }

    /* Related */
    .pdp-related { margin: 35px auto; padding: 0 16px; }
    .pdp-related__grid { gap: 14px; }
    .pdp-related__card { padding: 16px; border-radius: 10px; }
    .pdp-related__card img { height: 140px; }
    .pdp-related__card h4 { font-size: 0.85rem; }

    /* Lightbox */
    #pdpLbPrev, #pdpLbNext { width: 44px; height: 44px; font-size: 32px; }
    #pdpLbPrev { left: 10px; }
    #pdpLbNext { right: 10px; }
    #pdpLbClose { top: 12px; right: 12px; font-size: 32px; }
    #pdpLbImg { max-width: 95vw; max-height: 80vh; }
}

/* ── RESPONSIVE — SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
    .pdp-hero { height: 30vh; min-height: 180px; max-height: 280px; margin-bottom: 25px; }
    .pdp-hero__text { left: 3%; }
    .pdp-hero__name { font-size: clamp(1.8rem, 7vw, 2.2rem); }
    .pdp-hero__tagline { font-size: 0.7rem; }

    .pdp-buy__title { font-size: 1.3rem; }
    .pdp-buy__price { font-size: 1.3rem; }

    .pdp-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .pdp-related__grid { grid-template-columns: 1fr; }
    .pdp-related__card img { height: 160px; }

    .pdp-pano { height: 20vh; min-height: 140px; }

    /* Tabs as scrollable on very small screens */
    .pdp-tabs__btn { padding: 10px 12px; font-size: 0.7rem; }

    /* Make CTA button full width */
    .pdp-btn { width: 100%; text-align: center; box-sizing: border-box; }
    .pdp-buy__cart .single_add_to_cart_button { font-size: 0.95rem; padding: 14px; }
}
