/* ===================================
   SIPZZ - PRODUCT.CSS
   Product page specific styles
   =================================== */

/* ===================================
   PRODUCT SECTION LAYOUT
   =================================== */

.product-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 80px 20px;
    max-width: 1100px;
    margin: auto;
}

/* ===================================
   PRODUCT GALLERY
   =================================== */

.product-gallery-container {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.product-image-container img {
    width: 75%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.product-image-container img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18));
}

.product-image-container.zoom-active {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200%;
}

/* Thumbnail Gallery */
.product-thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.thumbnail-item {
    padding: 5px;
    border: 2px solid var(--border-grey);
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
    transition: border-color 0.2s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item:hover {
    border-color: #999;
}

.thumbnail-item.active {
    border-color: var(--text-primary);
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

/* ===================================
   PRODUCT INFO
   =================================== */

.product-info-container {
    flex: 1 1 400px;
    padding-top: 10px;
}

.product-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.product-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 15px;
}

.reviews-link {
    font-size: 16px;
    text-decoration: underline;
    color: var(--text-primary);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-label {
    font-size: 16px;
    width: 120px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 16px;
    font-weight: bold;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 30px 0;
    color: var(--text-muted);
}

.available-on {
    display: flex;
    align-items: center;
    gap: 15px;
}

.available-on .detail-label {
    margin: 0;
}

/* ===================================
   COLOR SWATCHES
   =================================== */

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

.color-swatch.active {
    border-color: var(--text-primary);
}

.color-swatch:hover {
    border-color: #999;
}

/* ===================================
   FEATURES SECTION (Why You'll Love It)
   =================================== */

.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.features-grid-product {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===================================
   SPECIFICATIONS SECTION
   =================================== */

.details-section {
    display: flex;
    margin: 60px auto;
    max-width: 1000px;
}

.details-image-container,
.details-image {
    flex: 1 1 50%;
    min-height: 100%;
}

.details-image-container img,
.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-content,
.details-specs {
    flex: 1 1 50%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-content h2,
.details-specs h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.details-tagline-internal {
    font-size: 20px;
    color: #333;
    margin-bottom: 60px;
    font-weight: 400;
}

.details-specs ul,
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-specs li,
.specs-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-primary);
}

.spec-label {
    color: var(--text-primary);
    font-weight: 700;
    width: 140px;
    flex-shrink: 0;
}

.spec-value {
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.4;
}

.specs-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
    font-size: 20px;
}

.specs-list strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===================================
   RELATED PRODUCTS SECTION
   =================================== */

.related-products-section {
    background-color: var(--bg-white);
    padding: 60px 0;
}

.related-products-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
}

/* Carousel styles moved to carousel.css */

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 900px) {
    .product-section {
        flex-direction: column;
    }

    .features-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .details-section {
        flex-direction: column;
    }

    .details-image {
        max-width: 400px;
        margin: 0 auto 30px auto;
    }

    .details-image img {
        height: auto;
    }

    .details-specs {
        padding: 40px 30px;
    }

    .details-specs h2 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .features-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

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

    .details-specs h2 {
        font-size: 36px;
    }

    .features-section h2,
    .related-products-section h2 {
        font-size: 28px;
    }

    .detail-row {
        gap: 10px;
    }

    .detail-label {
        width: 100px;
        font-size: 14px;
    }

    .detail-value {
        font-size: 14px;
    }
}
