/**
 * Single Product Page Styles
 * 
 * MVP: Title, Breadcrumb, Gallery, Specifications
 * 
 * @package Kadence_Child
 */

/* ============================================
   MAIN CONTAINER
   ============================================ */

.dianfong-product-container {
    width: 60%;
    margin: 0 auto;
    padding: 40px 0;
}

/* ============================================
   PART 1: HEADER (Title + Breadcrumb)
   ============================================ */

.product-header {
    margin-bottom: 40px;
}

.product-title-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.product-alias {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
}

.product-eu-shape {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.product-breadcrumb a {
    color: #007BFF;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.product-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #333;
    transition: width 0.3s ease;
}

.product-breadcrumb a:hover {
    color: #333;
}

.product-breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #aaa;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* ============================================
   PART 2: GALLERY ROW (Gallery + Switchers)
   ============================================ */

.product-gallery-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    flex: 0 0 auto;
    max-width: 500px;
}

.product-switchers {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
}

/* PART 3: SPECS (Full Width Below) */
.product-specs {
    width: 100%;
}

/* ============================================
   VARIANT SWITCHERS
   ============================================ */

.variant-switchers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.switcher-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.switcher-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.switcher-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dianfong-product-container .switcher-btn,
a.switcher-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    background: #fff !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dianfong-product-container .switcher-btn:hover,
a.switcher-btn:hover {
    border-color: #007BFF !important;
    color: #007BFF !important;
    background: #f0f7ff !important;
}

.dianfong-product-container .switcher-btn.active,
a.switcher-btn.active {
    background: #007BFF !important;
    border-color: #007BFF !important;
    color: #fff !important;
    font-weight: 600;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-wrapper {
    position: relative;
}

.gallery-main-image {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    max-width: 500px;
    /* Prevent oversized images */
}

.gallery-main-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.2s;
}

.gallery-thumb:hover {
    border-color: #007BFF;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: #007BFF;
}

/* ============================================
   SPECIFICATIONS TABLE
   ============================================ */

.specs-table-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.specs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr.even {
    background: #fff;
}

.specs-table tr.odd {
    background: #f8f9fa;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

.specs-table th {
    width: 40%;
    font-weight: 600;
    color: #333;
}

.specs-table td {
    width: 60%;
    color: #555;
}

/* ============================================
   PRODUCT SHORT DESCRIPTION
   ============================================ */

.product-short-description-wrapper {
    margin-top: 40px;
    padding: 25px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 8px;
}

.short-description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.product-short-description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.product-short-description-content p {
    margin: 0 0 1em;
}

.product-short-description-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   PRODUCT DESCRIPTION
   ============================================ */

.product-description-wrapper {
    margin-top: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.product-description-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.product-description-content p {
    margin: 0 0 1em;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

.no-specs {
    color: #999;
    font-style: italic;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .dianfong-product-container {
        width: 90%;
        padding: 30px 0;
    }

    .product-gallery-row {
        flex-direction: column;
    }

    .product-gallery {
        max-width: 100%;
    }

    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .dianfong-product-container {
        width: 95%;
        padding: 20px 0;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }

    .specs-table-wrapper {
        padding: 15px;
    }

    .specs-table th,
    .specs-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}