/* ============================================= */
/* WCC Product Page Styles                       */
/* Version: 1.0 - Optimized December 2025        */
/* Load: Single product pages only               */
/* ============================================= */

/* ============================================= */
/* Product Gallery Centering                     */
/* ============================================= */

.wc-block-components-product-image img,
.wc-block-grid__product-image img,
.woocommerce-product-gallery__image img {
    max-width: 500px !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 0 !important;
}

.wp-block-woocommerce-product-image-gallery {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.woocommerce-product-gallery {
    width: 100% !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Override Woo default float left on images block */
.woocommerce div.product div.images,
.woocommerce div.product div.images figure,
.woocommerce div.product div.woocommerce-product-gallery {
    float: none !important;
    margin: 0 auto !important;
}

.woocommerce-product-gallery__wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image--placeholder {
    width: auto !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
    margin: 0 auto !important;
    display: block !important;
}

/* ============================================= */
/* Product Image Container                       */
/* ============================================= */

.wc-block-components-product-image,
.wc-block-grid__product-image {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

/* ============================================= */
/* Two-Column Layout                             */
/* ============================================= */

.single-product .wp-block-columns.alignwide {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 20px;
}

.single-product .wp-block-columns.alignwide > .wp-block-column:first-child {
    flex-basis: 50% !important;
}

.single-product .wp-block-columns.alignwide > .wp-block-column:last-child {
    flex-basis: 50% !important;
}

/* Single product price */
.single-product .wcc-price {
    font-size: 1.3em !important;
    font-weight: 700 !important;
}

/* ============================================= */
/* Full Specifications Container                 */
/* ============================================= */

.wcc-specs-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    margin: 25px 0;
}

/* ============================================= */
/* Key Specs Grid (Icon + Label + Value)         */
/* ============================================= */

.wcc-key-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 60px;
    padding: 25px 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.wcc-key-spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wcc-key-spec-item i {
    font-size: 40px;
    color: #007cba;
    min-width: 50px;
    flex-shrink: 0;
}

.wcc-key-spec-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcc-key-spec-content span {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.wcc-key-spec-content strong {
    font-size: 20px;
    color: #000;
    font-weight: 600;
}

/* ============================================= */
/* Technical Data List                           */
/* ============================================= */

.wcc-technical-data .wcc-data-title,
.wcc-features-section .wcc-data-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
}

.wcc-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.wcc-data-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 15px;
}

.wcc-data-list li:nth-child(even) {
    background-color: #f7f9fc;
}

.wcc-data-list .wcc-data-label {
    color: #555;
    font-weight: 500;
}

.wcc-data-list .wcc-data-value {
    color: #111;
    font-weight: 600;
}

/* ============================================= */
/* Technical Data Two-Column Layout              */
/* ============================================= */

.wcc-tech-columns {
    display: flex;
    gap: 30px;
}

.wcc-tech-column {
    flex: 1;
    min-width: 0;
}

.wcc-tech-column .wcc-data-list {
    border-radius: 8px;
    overflow: hidden;
}

.wcc-tech-column .wcc-data-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
}

.wcc-tech-column .wcc-data-list li:nth-child(even) {
    background-color: #f7f9fc;
}

.wcc-tech-column .wcc-data-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-weight: 500;
}

.wcc-tech-column .wcc-data-label i {
    color: #007cba;
    font-size: 14px;
}

.wcc-tech-column .wcc-data-value {
    color: #111;
    font-weight: 600;
}

@media (max-width: 768px) {
    .wcc-tech-columns {
        flex-direction: column;
        gap: 0;
    }
    
    .wcc-tech-column {
        width: 100%;
    }
}

/* ============================================= */
/* Features Grid (3 columns)                     */
/* ============================================= */

.wcc-features-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.wcc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wcc-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    padding: 10px 12px;
    border-left: 3px solid #0073e6;
    background-color: #f9fafb;
    border-radius: 3px;
}

.wcc-feature-item .fa-solid,
.wcc-feature-item .fa-check {
    color: #0073e6;
    font-size: 13px;
    flex-shrink: 0;
}

/* ============================================= */
/* RESPONSIVE - TABLET (768px)                   */
/* ============================================= */

@media (max-width: 768px) {
    .single-product .wp-block-columns.alignwide {
        flex-direction: column;
        max-width: 100%;
    }
    
    .single-product .wp-block-columns.alignwide > .wp-block-column:first-child,
    .single-product .wp-block-columns.alignwide > .wp-block-column:last-child {
        flex-basis: 100% !important;
    }
    
    .wcc-key-specs-table td {
        display: block;
        width: 100%;
    }
    
    .wcc-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ============================================= */
/* RESPONSIVE - MOBILE (600px)                   */
/* ============================================= */

@media (max-width: 600px) {
    .wcc-key-specs-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 20px 20px !important;
    }

    .wcc-key-spec-item {
        gap: 12px !important;
    }

    .wcc-key-spec-item i {
        font-size: 30px !important;
        min-width: 40px !important;
    }

    .wcc-key-spec-content strong {
        font-size: 16px !important;
    }

    .wcc-key-spec-content span {
        font-size: 12px !important;
    }

    .wcc-data-list li {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .wcc-data-list .wcc-data-label {
        font-weight: 500 !important;
    }

    .wcc-data-list .wcc-data-value {
        font-weight: 600 !important;
    }
}

/* ============================================= */
/* RESPONSIVE - SMALL MOBILE (480px)             */
/* ============================================= */

@media (max-width: 480px) {
    .wcc-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ============================================= */
/* RESPONSIVE - VERY SMALL (375px)               */
/* ============================================= */

@media (max-width: 375px) {
    .wcc-features-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .wcc-feature-item {
        font-size: 13px !important;
        padding: 9px 11px !important;
    }

    .single-product .wp-block-columns.alignwide {
        flex-direction: column !important;
    }
}

/* ============================================= */
/* RESPONSIVE - EXTRA SMALL (320px)              */
/* ============================================= */

@media (max-width: 320px) {
    .wcc-features-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .wcc-feature-item {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
}

/* ============================================= */
/* RESPONSIVE - TABLET+ (601px - 1024px)         */
/* ============================================= */

@media (min-width: 601px) and (max-width: 1024px) {
    .wcc-key-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 25px 25px !important;
    }

    .wcc-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================= */
/* RESPONSIVE - DESKTOP (1025px+)                */
/* ============================================= */

@media (min-width: 1025px) {
    .wcc-key-specs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 60px !important;
    }

    .wcc-features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================= */
/* END OF FILE                                   */
/* ============================================= */
