/* ===== SHARED PRODUCT PAGE STYLES ===== */

.product-hero { padding: 2rem 0 3rem; border-bottom: 1px solid var(--gray-200); }

.product-hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}

.product-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: var(--gray-400); margin-bottom: 1.5rem;
}
.product-breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.product-breadcrumb a:hover { color: var(--red); }
.product-breadcrumb .sep { opacity: 0.4; }

.product-hero h1 {
    font-size: 2.75rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.5rem;
}

.product-hero .product-tagline {
    font-size: 1.05rem; color: var(--gray-500); line-height: 1.7;
    margin-bottom: 1.5rem; max-width: 480px;
}

.product-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }

.product-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.85rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600;
}
.product-badge--material { background: var(--gray-100); color: var(--gray-700); }
.product-badge--cert { background: #e8f5e9; color: #2e7d32; }

.product-hero-actions { display: flex; gap: 0.75rem; }

/* Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 0.75rem; }

.product-gallery-main {
    position: relative; border-radius: 16px; overflow: hidden;
    background: var(--gray-50); aspect-ratio: 1;
    border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.product-thumb {
    aspect-ratio: 1; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--gray-200); cursor: pointer;
    transition: border-color var(--transition);
}
.product-thumb:hover, .product-thumb.active { border-color: var(--red); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product nav */
.product-nav {
    position: sticky; top: 88px; z-index: 50;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
}
.product-nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
    display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.product-nav-inner::-webkit-scrollbar { display: none; }
.product-nav a {
    padding: 0.85rem 1.25rem; font-size: 0.825rem; font-weight: 500;
    color: var(--gray-400); border-bottom: 2px solid transparent;
    transition: all var(--transition); white-space: nowrap;
}
.product-nav a:hover { color: var(--gray-700); }
.product-nav a.active { color: var(--dark); border-bottom-color: var(--red); }

/* Key specs */
.key-specs {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--gray-200); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 3rem;
}
.key-spec { background: var(--white); padding: 1.5rem; text-align: center; }
.key-spec .value {
    font-size: 1.75rem; font-weight: 800; color: var(--dark);
    letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.35rem;
}
.key-spec .value span { color: var(--red); font-weight: 700; }
.key-spec .label {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--gray-400);
}

/* Product photos grid */
.product-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.product-photo {
    border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 1; border: 1px solid var(--gray-200);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Spec table */
.spec-table-wrap { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.spec-table thead { background: var(--gray-50); }
.spec-table th {
    padding: 0.85rem 1.25rem; text-align: left; font-size: 0.7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--gray-500); border-bottom: 1px solid var(--gray-200);
}
.spec-table td { padding: 0.85rem 1.25rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--gray-50); }
.spec-table .variant-name { font-weight: 600; color: var(--dark); }

/* Features */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feature-item {
    display: flex; gap: 0.85rem; align-items: center;
    padding: 1.25rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); transition: border-color var(--transition);
    min-height: 72px;
}
.feature-item:hover { border-color: var(--gray-400); }
.feature-icon {
    width: 36px; height: 36px; min-width: 36px;
    background: var(--red-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.feature-item h4 { font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.8rem; color: var(--gray-500); line-height: 1.55; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.download-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem; border: 1px solid var(--gray-200);
    border-radius: var(--radius); transition: all var(--transition);
}
.download-card:hover { border-color: var(--red); background: var(--red-light); }
.download-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: var(--gray-100); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--gray-500);
}
.download-card:hover .download-icon { background: var(--red); color: var(--white); }
.download-card h4 { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.download-card .download-meta { font-size: 0.7rem; color: var(--gray-400); margin-top: 0.1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .product-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .key-specs { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr 1fr; }
    .product-photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .product-hero { padding: 1.5rem 0 2rem; }
    .product-hero h1 { font-size: 1.75rem; }
    .product-hero .product-tagline { font-size: 0.95rem; }
    .product-nav { top: 60px; }
    .product-nav-inner { padding: 0 1.25rem; }
    .key-specs { grid-template-columns: 1fr 1fr; }
    .key-spec .value { font-size: 1.35rem; }
    .key-spec { padding: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .product-hero-actions { flex-direction: column; }
    .product-hero-actions .btn { text-align: center; }
    .product-photos { grid-template-columns: 1fr 1fr; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .spec-table { font-size: 0.8rem; }
    .spec-table th, .spec-table td { padding: 0.65rem 0.85rem; }
}
