/**
 * Laravel Product Integration Styles - Zonenscherm.nl Style
 */

/* Container */
.laravel-products-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: #fff;
}

/* Back Navigation */
.product-back-navigation {
    margin-bottom: 25px;
}

.back-to-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007ac2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    padding: 10px 15px;
    border: 2px solid #007ac2;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-to-category:hover {
    background: #007ac2;
    color: #fff;
    text-decoration: none;
    transform: translateX(-4px);
}

/* Category Overview */
.category-overview .category-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.category-overview .category-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.3em;
    color: #007ac2;
    margin: 0 0 10px;
    font-weight: 600;
}

.product-card-subtitle {
    font-size: 0.95em;
    color: #666;
    margin: 0 0 12px;
    font-style: italic;
}

.product-card-excerpt {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card-link {
    display: inline-block;
    color: #007ac2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    margin-top: auto;
    transition: color 0.3s ease;
}

.product-card-link:hover {
    color: #005a8c;
    text-decoration: underline;
}

/* Product Item */
.product-item {
    background: #fff;
    overflow: visible;
}

.product-inner {
    display: grid;
    gap: 50px;
    align-items: start;
}

.product-inner.two-column-layout {
    grid-template-columns: 1fr 1fr;
}

.product-column-left {
    display: flex;
    flex-direction: column;
}

.product-column-right {
    display: flex;
    flex-direction: column;
}

/* === IMAGE SLIDER SECTION === */
.product-images {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Main Image Slider */
.product-image-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.15s ease;
}

.product-image-main img.loading {
    opacity: 0.5;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 122, 194, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: 300;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: #005a8c;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Hide arrows if only one image */
.product-images[data-image-count="1"] .slider-nav {
    display: none;
}

/* Thumbnail Gallery */
.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

/* Image Caption */
.product-image-caption {
    margin-top: 0;
    padding: 15px 18px;
    background: #f8f9fa;
    border-left: 4px solid #007ac2;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    border-radius: 0 4px 4px 0;
}

.product-image-caption p {
    margin: 0;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border: 2px solid #ddd;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f5f5f5;
    border-radius: 4px;
}

.gallery-thumb:hover {
    border-color: #007ac2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 194, 0.2);
}

.gallery-thumb.active {
    border-color: #007ac2;
    border-width: 3px;
    box-shadow: 0 2px 8px rgba(0, 122, 194, 0.25);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

/* === CONTENT SECTION === */
.product-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Typography */
.product-title {
    margin: 0 0 12px 0;
    font-size: 2em;
    font-weight: 600;
    color: #007ac2;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.product-subtitle {
    margin: 0 0 20px 0;
    font-size: 1.05em;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
}

.product-seo-description {
    margin: 0 0 25px 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
}

/* Specifications Box */
.product-specifications {
    background: #007ac2;
    color: #fff;
    padding: 22px 28px;
    margin: 0 0 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 122, 194, 0.15);
}

.product-specifications h3 {
    margin: 0 0 15px 0;
    font-size: 1.25em;
    font-weight: 600;
    color: #fff;
}

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

.product-specifications li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-start;
    font-size: 0.95em;
    line-height: 1.5;
}

.product-specifications li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-specifications li::before {
    content: "✓";
    margin-right: 12px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

/* Content Sections */
.product-description,
.product-attributes,
.product-advantages,
.product-disadvantages {
    margin: 0 0 30px 0;
    padding: 0;
    border: none;
}

.product-description h2,
.product-description h3 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #007ac2;
    font-weight: 600;
}

.product-attributes h3,
.product-advantages h3,
.product-disadvantages h3 {
    font-size: 1.35em;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 600;
}

.description-content,
.attributes-content,
.advantages-content,
.disadvantages-content {
    font-size: 0.95em;
    color: #444;
    line-height: 1.8;
}

.description-content p {
    margin: 0 0 15px 0;
}

.description-content ul,
.description-content ol {
    margin: 0 0 15px 20px;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 10px;
}

/* List styling for advantages/disadvantages */
.advantages-content,
.disadvantages-content,
.attributes-content {
    white-space: pre-line;
}

/* Product Price */
.product-price-block {
    margin: 30px 0;
    padding: 25px 30px;
    background: #f8f9fa;
    border-left: 4px solid #007ac2;
    border-radius: 4px;
}

.price-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #007ac2;
    margin: 0;
}

/* Call to Action */
.product-actions {
    margin-top: 30px;
    padding-top: 20px;
}

.product-link {
    display: inline-block;
    padding: 16px 40px;
    background: #76b82a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(118, 184, 42, 0.2);
}

.product-link:hover {
    background: #5f9621;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(118, 184, 42, 0.35);
}

/* Error Messages */
.laravel-products-error {
    padding: 20px 25px;
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c33;
    margin: 20px 0;
    font-size: 1em;
}

/* Loading State */
.product-image-main.loading img {
    opacity: 0.3;
}

.product-image-main img {
    transition: opacity 0.15s ease;
}

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

/* Tablet & Mobile */
@media (max-width: 768px) {
    .product-inner.two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-overview .category-title {
        font-size: 2em;
    }

    .laravel-products-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .product-title {
        font-size: 1.75em;
    }

    .product-subtitle {
        font-size: 1em;
    }

    .product-image-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .slider-nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .slider-nav.prev {
        left: 5px;
    }

    .slider-nav.next {
        right: 5px;
    }

    .product-price {
        font-size: 2em;
    }

    .product-specifications {
        padding: 18px 22px;
    }

    .product-link {
        display: block;
        text-align: center;
        padding: 14px 30px;
        font-size: 0.95em;
    }

    .back-to-category {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-title {
        font-size: 1.5em;
    }

    .product-image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .product-specifications {
        padding: 15px 18px;
    }

    .product-specifications h3 {
        font-size: 1.1em;
    }

    .product-price-block {
        padding: 20px;
    }

    .product-price {
        font-size: 1.8em;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Showcase / Featured Product */
.zonscherm-product-showcase {
    margin: 20px 0;
}

.zonscherm-product-showcase .showcase-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.zonscherm-product-showcase .showcase-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.zonscherm-product-showcase .showcase-image {
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.zonscherm-product-showcase .showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.zonscherm-product-showcase .showcase-image a {
    display: block;
    text-decoration: none;
}

.zonscherm-product-showcase .showcase-content {
    padding: 20px;
}

.zonscherm-product-showcase .showcase-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.zonscherm-product-showcase .showcase-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zonscherm-product-showcase .showcase-title a:hover {
    color: #007ac2;
}

.zonscherm-product-showcase .showcase-subtitle {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

.zonscherm-product-showcase .showcase-description {
    margin: 15px 0;
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
}

.zonscherm-product-showcase .showcase-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 15px 0;
    font-size: 1em;
    color: #666;
}

.zonscherm-product-showcase .price-label {
    font-weight: 600;
    color: #555;
}

.zonscherm-product-showcase .price-amount {
    font-size: 1.4em;
    font-weight: 700;
    color: #007ac2;
}

.zonscherm-product-showcase .showcase-actions {
    margin-top: 20px;
}

.zonscherm-product-showcase .showcase-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007ac2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: 2px solid #007ac2;
    cursor: pointer;
}

.zonscherm-product-showcase .showcase-button:hover {
    background: #005fa3;
    border-color: #005fa3;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Showcase */
@media (max-width: 600px) {
    .zonscherm-product-showcase .showcase-content {
        padding: 15px;
    }

    .zonscherm-product-showcase .showcase-title {
        font-size: 1.2em;
    }

    .zonscherm-product-showcase .price-amount {
        font-size: 1.2em;
    }

    .zonscherm-product-showcase .showcase-button {
        width: 100%;
        text-align: center;
    }
}
