/* Products Page Styles */

.products-main {
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #fff9e6 0%, #ffeebb 100%);
}

/* Page Header */
.products-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.products-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 15px;
}

.products-header p {
    font-size: 18px;
    color: #666;
}

/* Product Cards Section */
.product-cards-section {
    padding: 20px 40px 60px;
}

.product-cards-hint {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 25px;
    font-style: italic;
}

.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-select-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-select-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-select-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    outline: 3px solid #f5a623;
    outline-offset: 3px;
}

.product-select-card.active {
    border-color: #f5a623;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.25);
}

.product-select-card.has-cert-badge {
    position: relative;
}

.card-cert-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 50px;
    height: auto;
    transform: rotate(12deg);
    z-index: 2;
}

.product-card-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-select-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Product Detail Section */
.product-detail-section {
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail {
    display: none;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease;
}

.product-detail.active {
    display: block;
    position: relative;
}

/* Scroll hint */
.scroll-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 105, 20, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 50;
    opacity: 1;
    transition: opacity 0.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-arrow {
    display: inline-block;
    animation: bounceDown 1s ease-in-out infinite;
    font-size: 11px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail-name {
    font-size: 32px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5a623;
}

.product-detail-content {
    display: flex;
    gap: 50px;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}

.gallery-thumbnails .thumbnail:hover {
    opacity: 0.9;
}

.gallery-thumbnails .thumbnail:focus-visible {
    opacity: 0.9;
    outline: 3px solid #f5a623;
    outline-offset: 2px;
}

.gallery-thumbnails .thumbnail.active {
    border-color: #f5a623;
    opacity: 1;
}

.gallery-main {
    width: 350px;
    height: 350px;
    background: #f9f9f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main .main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Product Description */
.product-description {
    flex: 1;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    margin-top: 25px;
}

.product-description h3:first-child {
    margin-top: 0;
}

.contact-sales-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623 0%, #d4920a 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-sales-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.product-description p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-description ul li {
    font-size: 15px;
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.product-description ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8b6914;
    font-weight: 700;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.use-case-item {
    background: linear-gradient(135deg, #fff9e6 0%, #ffeebb 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #f5a623;
}

.use-case-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #8b6914;
    margin-bottom: 10px;
}

.use-case-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.spec-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.spec-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5a623;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.spec-table tr td:last-child {
    color: #333;
}

/* Product Tagline */
.product-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-radius: 8px;
    border-left: 4px solid #f5a623;
}

.tagline-icon {
    font-size: 20px;
}

.product-tagline span:last-child {
    font-size: 14px;
    color: #e0e0e0;
}

.product-tagline a {
    color: #f5a623;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-tagline a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* Product Certification Badge */
.product-certification {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeebb 100%);
    border-radius: 8px;
}

.product-certification img {
    width: 50px;
    height: auto;
}

.product-certification span {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
}

/* Sample CTA & OEM Teaser Sections */
.sample-cta-section,
.oem-teaser-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.sample-cta-section h2,
.oem-teaser-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #f5a623;
    margin-bottom: 15px;
}

.sample-cta-section p,
.oem-teaser-section p {
    font-size: 17px;
    color: #e0e0e0;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 25px;
}

.sample-cta-btn,
.oem-teaser-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f5a623 0%, #d4920a 100%);
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sample-cta-btn:hover,
.oem-teaser-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.oem-teaser-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Wholesale Info Section */
.wholesale-info-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #ffeebb 100%);
}

.wholesale-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.wholesale-info-card {
    background: linear-gradient(135deg, #f5a623 0%, #d4920a 100%);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wholesale-info-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.wholesale-info-card p {
    font-size: 15px;
    color: #fff;
    line-height: 1.7;
    opacity: 0.95;
}

.wholesale-info-card a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.wholesale-info-card a:hover {
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .product-select-card {
        padding: 15px 12px;
    }

    .product-select-card h3 {
        font-size: 16px;
    }

    .card-cert-badge {
        width: 40px;
    }

    .product-detail-content {
        flex-direction: column;
    }

    .product-gallery {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sample-cta-section h2,
    .oem-teaser-section h2 {
        font-size: 26px;
    }

    .wholesale-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wholesale-info-card {
        padding: 25px 20px;
    }

    .wholesale-info-card h3 {
        font-size: 17px;
    }

    .wholesale-info-card p {
        font-size: 13px;
    }

    .products-header {
        padding: 20px 20px 10px;
    }

    .products-header h1 {
        font-size: 26px;
    }

    .products-header p {
        font-size: 14px;
    }

    .product-cards-section {
        padding: 20px 20px 10px;
    }

    .product-cards-grid {
        gap: 10px;
    }

    .product-card-image {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .product-select-card {
        padding: 12px 10px;
        border-radius: 8px;
        border-width: 2px;
    }

    .product-select-card h3 {
        font-size: 14px;
    }

    .card-cert-badge {
        width: 35px;
        top: 4px;
        right: 4px;
    }

    .product-detail-section {
        padding: 0 20px 40px;
    }

    .product-detail {
        padding: 25px;
    }

    .product-detail-name {
        font-size: 26px;
    }

    .product-gallery {
        flex-direction: column-reverse;
        align-items: center;
    }

    .gallery-thumbnails {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-thumbnails .thumbnail {
        width: 50px;
        height: 50px;
    }

    .gallery-main {
        width: 100%;
        max-width: 300px;
        height: 250px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
