@import '../components/garment-specs.css';

/**
 * ========================================
 * RONGHAO Product Detail Page Styles
 * ========================================
 * Generated: 2026-09-30 | T06 fabric detail iteration (PRD 12 §4.3) + T07 garment detail refactor (PRD 12 §4.4)
 * - Part 1 compaction: gallery max-height + contain + texture, tighter spacing
 * - Param area: 3 spec-cards (Composition / Weight (gsm) / Width (cm)); garment 4 spec-cards (T07)
 * - T07: garment image sections (info 1:1 grid / gallery masonry) + lightbox list-mode nav
 * - User feedback (2026-09-30): gallery-main fixed height + full width, thumbs
 *   auto-fit so gallery blocks stay edge-aligned (no one-sided dead space)
 * - User feedback (2026-09-30, round 2): gallery-main card background follows
 *   the page gray (--color-background) instead of white
 * - Tokens only (ITSS pages layer)
 */

/* T06: --color-surface / --color-surface-alt are referenced 9x by this page
   but were never declared in base/variables.css (pre-existing gap) - declared
   here per DESIGN.md §2.1 (white cards / #F5F5F4 alt surface) so Part 1 cards
   render as designed. To be consolidated into base/variables.css in a later
   token-layer task. (.gallery-main itself now uses --color-background per the
   2026-09-30 round-2 feedback.) */
:root {
    --color-surface: #FFFFFF;
    --color-surface-alt: #F5F5F4;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    padding: 100px 0 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: color 0.25s ease;
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--color-border);
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ========================================
   Product Main Section
   ======================================== */
.product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0 48px;
    align-items: stretch;
}

@media (min-width: 992px) {
    .product-main {
        grid-template-columns: 1.1fr 1fr;
    }
}

/* ========================================
   Product Gallery
   ======================================== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

/* T06: cap image area height (PRD 12 §4.3-1), contain + texture behind
   non-square sources instead of cropping.
   User feedback (2026-09-30): `aspect-ratio: 1` + `max-height` made this box
   shrink to a 420px square inside the column flex container (aspect-ratio
   transfer via the max-height clamp), leaving dead space to its right.
   Explicit height + full width keeps the block edge-aligned with
   .gallery-thumbs / .trust-note at every viewport width.
   User feedback (2026-09-30, round 2): card background follows the page
   background (gray, not white) for both fabric gallery-main and the garment
   single main-image (same container) to reduce visual contrast. */
.gallery-main {
    position: relative;
    background-color: var(--color-background);
    background-image: radial-gradient(var(--color-border) 1px, transparent 1.5px);
    background-size: 18px 18px;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    height: 420px;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-main:hover .gallery-zoom-icon {
    opacity: 1;
}

/* User feedback (2026-09-30): auto-fit (not auto-fill) collapses unused
   tracks, so with the typical 4-5 thumbs the row still stretches to the full
   gallery width and its right edge aligns with .gallery-main */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.thumb-item {
    aspect-ratio: 1;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.thumb-item:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.thumb-item.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.1);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Trust Note (T06: compressed) */
.trust-note {
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    padding: 10px 14px;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.trust-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.trust-text strong {
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
}

/* ========================================
   Product Info Card
   ======================================== */
.product-info {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-category-tag {
    display: inline-block;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: clamp(24px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.product-code {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

/* Core Specs Cards (T06: 3 compact cards, PRD 12 §4.3-1) */
.core-specs {
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Functions Tags */
.functions-tags {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.functions-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.function-tag {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(190, 18, 60, 0.08);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(190, 18, 60, 0.2);
    transition: var(--transition);
}

.function-tag:hover {
    background: rgba(190, 18, 60, 0.15);
    transform: translateY(-1px);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* T06: Part 1 param small cards - fabric only (3 columns, 1 on mobile) */
.spec-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.spec-card {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.spec-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spec-card-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* T07: garment Part 1 - 4 spec cards in a 2x2 grid (PRD 12 §4.4-1) */
.spec-cards--garment {
    grid-template-columns: repeat(2, 1fr);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* CTA Box */
.cta-box {
    background: var(--color-surface-alt);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--color-border);
    margin-top: auto;
}

.cta-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.cta-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: #9F1239;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(190, 18, 60, 0.25);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    margin-top: 12px;
}

.btn-secondary:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-text-secondary);
}

.contact-quick-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-contact {
    flex: 1;
    padding: 10px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.btn-contact:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.cta-micro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #16A34A;
}

.cta-micro strong {
    font-weight: 600;
}

/* ========================================
   Product Tabs Section
   ======================================== */
.product-tabs-section {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-bottom: 60px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
    overflow-x: auto;
    gap: 8px;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-body);
}

.tab-btn:hover {
    color: var(--color-text-primary);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Features */
.features-section {
    margin-bottom: 40px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .features-list {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-surface-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text-primary);
}

.feature-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Applications */
.applications-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.applications-table-wrapper {
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.applications-table th,
.applications-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.applications-table th {
    background: var(--color-surface-alt);
    font-weight: 600;
    color: var(--color-text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.applications-table td {
    color: var(--color-text-secondary);
}

.applications-table tr:hover td {
    background: var(--color-surface-alt);
}

/* Tab 2: Specifications */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(odd) {
    background: var(--color-surface-alt);
}

.specs-table td {
    padding: 16px 20px;
    font-size: 15px;
}

.specs-table td:first-child {
    width: 40%;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Tab 3: Certifications */
.test-standards-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

/* Test Standards - Cards Grid for report_spec.test_standards */
.standards-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.standard-card {
    background: var(--color-surface-alt);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.standard-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.standard-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.standard-card-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Test Standards - Default text content */
.test-standards-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding: 20px 0;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.standard-item {
    background: var(--color-surface-alt);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.standard-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

.standard-name {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.industry-certs-section {
    margin-top: 40px;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.cert-card {
    background: var(--color-surface-alt);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-card-icon {
    width: 56px;
    height: 56px;
    background: var(--color-surface);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.cert-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.cert-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Tab 4: Colors */
.colors-intro {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.color-card {
    text-align: center;
}

.color-swatch {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.color-swatch:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.color-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.color-name {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

/* Colors Placeholder - when no color data available */
.colors-placeholder {
    text-align: center;
    padding: 60px 20px;
}

.contact-colors-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* ========================================
   Related Products Section
   ======================================== */
.related-products-section {
    padding: 60px 0;
    background: var(--color-background);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

.related-product-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-decoration: none;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.related-product-image {
    aspect-ratio: 1;
    background: var(--color-surface-alt);
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 20px;
}

.related-product-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-specs {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========================================
   Bottom CTA Section
   ======================================== */
.bottom-cta {
    background: var(--color-primary);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    margin-bottom: 80px;
}

.bottom-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.bottom-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.btn-white {
    background: white;
    color: var(--color-accent);
    padding: 16px 40px;
    font-size: 16px;
}

.btn-white:hover {
    background: var(--color-surface-alt);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ========================================
   Lightbox Modal
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0;
    font-family: inherit;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--color-accent);
}

.lightbox-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* T07: list-mode navigation & counter */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--color-accent);
}

.lightbox-nav:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.lightbox-nav[disabled] {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.lightbox-nav.is-hidden,
.lightbox-counter.is-hidden {
    display: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* ========================================
   Garment Image Sections (T07, PRD 12 §4.4-2)
   Section 1: info[] 1:1 grid, cover-crop non-square
   Section 2: gallery[] CSS columns masonry, natural ratio
   ======================================== */
.garment-image-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 60px;
}

.garment-image-sections[hidden] {
    display: none;
}

.gis-section {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.gis-section[hidden] {
    display: none;
}

.gis-header {
    margin-bottom: 24px;
}

.gis-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.gis-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* Section 1: 1:1 square grid, object-fit cover */
.gis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gis-item {
    margin: 0;
    min-width: 0;
}

.gis-item-btn {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: var(--color-surface-alt);
    cursor: zoom-in;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gis-item-btn:hover {
    box-shadow: var(--shadow-md);
}

.gis-item-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.gis-item-btn img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.gis-item-btn:hover img {
    transform: scale(1.04);
}

/* Section 1 square items: 1:1 + cover crop */
.gis-item--square .gis-item-btn {
    aspect-ratio: 1;
}

.gis-item--square .gis-item-btn img {
    height: 100%;
    object-fit: cover;
}

/* Section 2: masonry - natural aspect ratio, no cropping */
.gis-masonry {
    columns: 3;
    column-gap: 16px;
}

.gis-masonry .gis-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.gis-masonry .gis-item-btn img {
    height: auto;
}

/* Customization footnote strip (Section 1 area, one line) */
.gis-customization-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--color-surface-alt);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.gis-customization-note[hidden] {
    display: none;
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 80px 0 16px;
    }
    
    .product-main {
        gap: 28px;
        padding: 12px 0 32px;
    }

    .product-info {
        padding: 24px;
    }

    .product-title {
        font-size: 24px;
    }

    .gallery-main {
        height: 360px;
    }

    .spec-cards {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tabs-section {
        padding: 24px;
    }
    
    .tab-nav {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .standards-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    .colors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .bottom-cta {
        padding: 40px 24px;
    }
    
    .bottom-cta h2 {
        font-size: 24px;
    }
    
    .contact-quick-row {
        flex-direction: column;
    }

    /* T07: garment image sections on mobile */
    .garment-image-sections {
        gap: 24px;
        margin-bottom: 48px;
    }

    .gis-section {
        padding: 24px;
    }

    .gis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gis-masonry {
        columns: 1;
        column-gap: 0;
    }

    .gis-item-btn img {
        transform: none;
    }
}

/* T07: garment masonry - tablet band only (mobile 1-col comes from the
   max-width:768 block above; narrowing here keeps cascade order correct) */
@media (max-width: 991px) and (min-width: 768px) {
    .gis-masonry {
        columns: 2;
    }
}
