/* =========================================
   EXOTELECTRONICS - PRODUCT PAGE
   ========================================= */

.product-page {
    max-width: 1250px;
    margin: 25px auto 60px;
    padding: 0 20px;
    color: #252b33;
}

/* PRODUCT BREADCRUMB */

.product-page .product-breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px 9px;

    width: 100%;
    min-width: 0;
    height: auto !important;

    margin: 0 0 22px;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    font-size: 13px;
    line-height: 1.6;
    color: #777;
}

.product-page .product-breadcrumb a {
    display: inline !important;
    flex: 0 0 auto !important;

    width: auto !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;

    color: #1769aa !important;
    text-decoration: none;
    white-space: normal;
}

.product-page .product-breadcrumb a:hover {
    text-decoration: underline;
}

.product-page .breadcrumb-separator {
    color: #999;
    flex: 0 0 auto;
}

.product-page .breadcrumb-current {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #555;
}

.product-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 38px;
    align-items: start;
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
}

.product-gallery {
    min-width: 0;
}

.product-main-image {
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    overflow: hidden;
}

.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 75px;
    height: 75px;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 5px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border: 2px solid #1769aa;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    min-width: 0;
}

.product-category {
    color: #1769aa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 27px;
    line-height: 1.35;
    color: #202832;
    margin: 0 0 15px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eee;
    color: #68717b;
    font-size: 13px;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.product-stock.in-stock {
    color: #198754;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.product-price {
    font-size: 32px;
    font-weight: 700;
    color: #1769aa;
    margin: 22px 0 5px;
}

.product-price-note {
    color: #777;
    font-size: 12px;
}

.product-purchase {
    margin-top: 22px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e5e9ee;
    border-radius: 10px;
}

.product-purchase label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-quantity {
    width: 100px;
    height: 42px;
    padding: 8px;
    border: 1px solid #ccd3da;
    border-radius: 6px;
    font-size: 16px;
}

.product-add-cart {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    background: #1769aa;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.product-add-cart:hover {
    background: #105488;
}

.product-add-cart:disabled {
    background: #999;
    cursor: not-allowed;
}

.product-shipping {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e2e6ea;
    color: #626b75;
    font-size: 13px;
    line-height: 2;
}

.product-shipping i {
    width: 22px;
    color: #1769aa;
}

.product-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
}

.product-section h2 {
    font-size: 21px;
    color: #252b33;
    margin: 0 0 20px;
    padding-bottom: 13px;
    border-bottom: 2px solid #1769aa;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #454d56;
    overflow-wrap: anywhere;
}

.product-specifications {
    width: 100%;
    border-collapse: collapse;
}

.product-specifications th,
.product-specifications td {
    padding: 13px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.product-specifications th {
    width: 35%;
    background: #f7f9fb;
    color: #333;
}

.product-related {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-related-card {
    border: 1px solid #e5e8ec;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}

.product-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.product-related-card a {
    text-decoration: none;
    color: inherit;
}

.product-related-card img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 12px;
    background: #fff;
}

.product-related-card h3 {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 12px;
    min-height: 42px;
}

.product-related-card .related-price {
    color: #1769aa;
    font-size: 17px;
    font-weight: 700;
    padding: 0 12px 15px;
}

/* Capacitor selectors */

.product-page .capacitor-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: end;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e5e8ec;
    border-radius: 9px;
}

.product-page .cap-select-group {
    flex: 1 1 150px;
}

.product-page .cap-select-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.product-page .cap-select-group select,
.product-page .cap-select-group input {
    width: 100%;
    height: 42px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #ccd3da;
    border-radius: 6px;
    background: #fff;
}

.product-page #confirmBtn,
.product-page #nonpolarConfirmBtn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #1769aa;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.product-page #selectionSummary {
    margin-top: 20px;
    padding: 18px;
    background: #f0f7ff;
    border: 1px solid #c9e0f5;
    border-radius: 8px;
}

/* Capacitor price tables */

.product-page table {
    width: 100%;
    border-collapse: collapse;
}

.product-page table th,
.product-page table td {
    padding: 10px;
    border: 1px solid #e0e5ea;
    text-align: center;
    font-size: 13px;
}

.product-page table th {
    background: #f2f5f8;
}

/* Responsive */

@media (max-width: 850px) {
    .product-overview {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-main-image {
        height: 350px;
    }

    .product-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .product-page {
        padding: 0 12px;
        margin-top: 15px;
    }

    .product-overview,
    .product-section {
        padding: 15px;
    }

    .product-main-image {
        height: 270px;
    }

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

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

    .product-related-card img {
        height: 130px;
    }

    .product-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
