/* Single Product Page - Beautiful Modern Design */

.single-product-page {
    padding: 40px 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 70vh !important;
}

.single-product-page .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Hide any WooCommerce duplicate content */
.single-product-page .woocommerce-product-gallery,
.single-product-page .summary.entry-summary,
.single-product-page .woocommerce-tabs {
    display: none !important;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 18px 24px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #2e4152;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumbs a:hover {
    color: #e74c3c;
    background: #f8f9fa;
}

.breadcrumbs span:not(.delimiter) {
    color: #2c3e50;
    font-weight: 600;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #ccc;
}

/* Product Content - 2 Column Layout */
.product-content {
    display: grid !important;
    grid-template-columns: 45% 55% !important;
    gap: 40px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    margin-bottom: 40px !important;
}

/* Left Column - Gallery */
.product-gallery {
    padding: 30px !important;
    background: #f8f9fa !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.main-image {
    width: 100% !important;
    height: 400px !important;
    background: white !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.main-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: white;
}

.thumbnail:hover {
    border-color: #2e4152;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 65, 82, 0.2);
}

.thumbnail.active {
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Right Column - Info */
.product-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0;
}

.product-sku {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2e4152;
}

.sku-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.sku-value {
    color: #666;
    font-size: 0.9rem;
    font-family: monospace;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.category-link {
    padding: 6px 14px;
    background: #2e4152;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Tabs */
.product-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #2e4152;
}

.tab-button.active {
    color: #2e4152;
    border-bottom-color: #2e4152;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.description-text p {
    margin-bottom: 15px;
}

.description-text h2,
.description-text h3,
.description-text h4 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 12px;
}

.description-text ul,
.description-text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.description-text li {
    margin-bottom: 8px;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #e9ecef;
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 12px 16px;
    font-weight: 600;
    color: #2c3e50;
    width: 40%;
    background: #f8f9fa;
}

.spec-value {
    padding: 12px 16px;
    color: #666;
}

/* Price Button */
.product-price-section {
    margin-top: auto;
}

.btn-contact {
    width: 100%;
    padding: 18px 36px;
    background: linear-gradient(135deg, #2e4152 0%, #3d5367 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 65, 82, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Related Products */
.related-products {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.related-products h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.related-product-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.related-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    width: 100%;
    height: 120px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.related-title {
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-gallery {
        padding: 25px;
    }

    .main-image {
        height: 350px;
    }

    .product-info {
        padding: 30px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .single-product-page {
        padding: 20px 0;
    }

    .product-gallery {
        padding: 20px;
    }

    .main-image {
        height: 280px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .thumbnail {
        height: 60px;
    }

    .product-info {
        padding: 25px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .tab-buttons {
        gap: 5px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .related-products {
        padding: 20px;
    }

    .related-products h2 {
        font-size: 1.1rem;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .related-image {
        height: 100px;
        padding: 8px;
    }

    .related-title {
        padding: 10px;
        font-size: 0.75rem;
        min-height: 45px;
    }
}

@media (max-width: 480px) {
    .product-content {
        border-radius: 12px;
    }

    .product-gallery {
        padding: 15px;
    }

    .main-image {
        height: 220px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .thumbnail {
        height: 50px;
    }

    .product-info {
        padding: 20px;
        gap: 20px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .btn-contact {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .related-products {
        padding: 15px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
