/* =====================================================
   PRODUCT BREADCRUMB
===================================================== */

.product-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.product-breadcrumb .breadcrumb {
    font-size: 13px;
}

.product-breadcrumb a {
    color: #777;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #111;
}


/* =====================================================
   PRODUCT DETAILS
===================================================== */

.product-details-section {
    background: #fff;
    padding: 55px 0 70px;
}


/* =====================================================
   GALLERY
===================================================== */

.product-gallery {
    position: sticky;
    top: 25px;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
    border-radius: 18px;
    overflow: hidden;
}

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

.product-main-image:hover img {
    transform: scale(1.02);
}


/* Badge */

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: #00409e;
    color: #fff;
    padding: 7px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}


/* Zoom */

.image-zoom-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .92);
    color: #111;

    cursor: pointer;

    transition: all .2s ease;
}

.image-zoom-btn:hover {
    background: #00409e;
    color: #fff;
}


/* =====================================================
   THUMBNAILS
===================================================== */

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

.product-thumb {
    width: 78px;
    height: 78px;

    padding: 0;

    border: 2px solid transparent;
    border-radius: 10px;

    overflow: hidden;

    background: #f5f5f5;

    cursor: pointer;

    transition: all .2s ease;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: #00409e;
}


/* =====================================================
   PRODUCT INFO
===================================================== */

.product-info {
    padding-top: 5px;
}

.product-brand {
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 15px;
}


/* =====================================================
   RATING
===================================================== */

.product-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    gap: 2px;
    color: #f5a623;
    font-size: 14px;
}

.rating-value {
    font-weight: 700;
    font-size: 13px;
}

.review-link {
    color: #555;
    font-size: 13px;
    text-decoration: underline;
}

.separator {
    color: #ccc;
}

.sold-count {
    color: #777;
    font-size: 13px;
}


/* =====================================================
   PRICE
===================================================== */

.product-price-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.product-current-price {
    font-size: 30px;
    font-weight: 800;
}

.product-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.product-discount {
    background: #eef8f1;
    color: #198754;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.product-short-description {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    max-width: 650px;
    margin-bottom: 18px;
}


/* =====================================================
   STOCK
===================================================== */

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #198754;

    font-size: 14px;
    font-weight: 700;
}

.stock-status i {
    font-size: 17px;
}

.product-divider {
    height: 1px;
    background: #eee;
    margin: 24px 0;
}


/* =====================================================
   OPTIONS
===================================================== */

.product-option {
    margin-bottom: 23px;
}

.option-heading {
    display: flex;
    gap: 6px;
    align-items: center;

    font-size: 14px;

    margin-bottom: 12px;
}

.option-heading span {
    color: #777;
}


/* =====================================================
   COLOR
===================================================== */

.color-options {
    display: flex;
    gap: 10px;
}

.color-option {
    width: 35px;
    height: 35px;

    border-radius: 50%;

    background: var(--option-color);

    border: 2px solid #ddd;

    cursor: pointer;

    position: relative;
}

.color-option.active {
    border-color: #00409e;
}

.color-option.active::after {
    content: "✓";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    color: #fff;

    font-size: 13px;
    font-weight: 800;

    text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}


/* =====================================================
   SIZE
===================================================== */

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.size-option {
    min-width: 48px;
    height: 44px;

    border: 1px solid #ddd;
    background: #fff;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;
}

.size-option:hover,
.size-option.active {
    border-color: #00409e;
    background: #00409e;
    color: #fff;
}


/* =====================================================
   QUANTITY
===================================================== */

.quantity-control {
    display: inline-flex;

    height: 46px;

    border: 1px solid #ddd;
    border-radius: 9px;

    overflow: hidden;
}

.quantity-control button {
    width: 45px;

    border: 0;
    background: #fff;

    cursor: pointer;

    font-size: 16px;
}

.quantity-control button:hover {
    background: #f5f5f5;
}

.quantity-control input {
    width: 55px;

    border: 0;

    border-left: 1px solid #eee;
    border-right: 1px solid #eee;

    text-align: center;

    font-weight: 700;

    outline: none;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}


/* =====================================================
   PRODUCT ACTIONS
===================================================== */

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 52px;
    gap: 10px;

    margin: 30px 0;
}

.btn-add-cart,
.btn-buy-now,
.btn-wishlist {
    height: 52px;

    border-radius: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;
}

.btn-add-cart {
    background: #fff;
    border: 1px solid #111;
    color: #111;
}

.btn-add-cart:hover {
    background: #00409e;
    color: #fff;
}

.btn-buy-now {
    border: 1px solid #111;
    background: #00409e;
    color: #fff;
}

.btn-buy-now:hover {
    background: #333;
}

.btn-wishlist {
    border: 1px solid #ddd;
    background: #fff;
    font-size: 19px;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    border-color: #00409e;
    background: #00409e;
    color: #fff;
}


/* =====================================================
   SERVICE INFORMATION
===================================================== */

.product-service-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.service-item {
    display: flex;
    gap: 13px;
    margin-bottom: 18px;
}

.service-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f5f5f5;
}

.service-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.service-item span {
    display: block;
    color: #777;
    font-size: 12px;
}


/* =====================================================
   PRODUCT INFORMATION TABS
===================================================== */

.product-information-section {
    background: #f7f7f8;
    padding: 70px 0;
}

.product-tabs {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
}

.product-tabs .nav-tabs {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.product-tabs .nav-link {
    color: #777;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 18px;
    font-weight: 600;
}

.product-tabs .nav-link:hover {
    color: #111;
}

.product-tabs .nav-link.active {
    color: #111;
    background: transparent;
    border-bottom-color: #111;
}

.tab-pane h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 15px;
}

.tab-pane p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}


/* =====================================================
   SPECIFICATIONS
===================================================== */

.specification-table {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #eee;

    font-size: 14px;
}

.spec-row:last-child {
    border-bottom: 0;
}

.spec-row span {
    color: #777;
}


/* =====================================================
   REVIEWS
===================================================== */

.review-summary {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 20px;

    background: #f8f8f8;

    border-radius: 12px;

    margin-bottom: 25px;
}

.review-score {
    font-size: 42px;
    font-weight: 800;
}

.review-summary span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.review-item {
    display: flex;
    gap: 15px;

    padding: 20px 0;

    border-bottom: 1px solid #eee;
}

.review-avatar {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #00409e;
    color: #fff;

    font-weight: 700;
}

.review-item strong {
    font-size: 14px;
}

.review-item p {
    margin-top: 8px;
}


/* =====================================================
   RELATED PRODUCTS
===================================================== */

.related-products-section {
    background: #fff;
    padding: 70px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;

    margin-bottom: 30px;
}

.section-eyebrow {
    display: block;

    color: #888;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.section-heading h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.view-all-link {
    color: #111;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}


/* Related Card */

.related-product-card {
    height: 100%;
}

.related-product-image {
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 13px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .3s ease;
}

.related-product-card:hover img {
    transform: scale(1.04);
}

.related-product-content {
    padding-top: 13px;
}

.related-product-category {
    color: #999;
    font-size: 11px;
    margin-bottom: 3px;
}

.related-product-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 5px;
}

.related-product-content strong {
    font-size: 15px;
}


/* =====================================================
   IMAGE ZOOM
===================================================== */

.zoom-close {
    position: absolute;

    right: 10px;
    top: -45px;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;
}

.zoomed-image {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}


/* =====================================================
   HEADER ACTIONS
===================================================== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111;
    text-decoration: none;

    border-radius: 50%;
}

.header-action:hover {
    background: #f5f5f5;
}

.cart-count {
    position: absolute;

    right: -3px;
    top: -2px;

    min-width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    background: #00409e;
    color: #fff;

    border-radius: 50%;

    font-size: 9px;
    font-weight: 700;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 991px) {

    .product-gallery {
        position: static;
    }

    .product-info {
        padding-top: 0;
    }

}

@media (max-width: 767px) {

    .product-details-section {
        padding: 30px 0 45px;
    }

    .product-main-image {
        border-radius: 12px;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .product-thumb {
        width: 62px;
        height: 62px;
    }

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

    .product-current-price {
        font-size: 25px;
    }

    .product-actions {
        grid-template-columns: 1fr 1fr;
    }

    .btn-wishlist {
        grid-column: span 2;
    }

    .product-information-section,
    .related-products-section {
        padding: 45px 0;
    }

    .product-tabs {
        padding: 18px;
        border-radius: 12px;
    }

    .product-tabs .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .product-tabs .nav-link {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 12px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

}

@media (max-width: 480px) {

    .product-actions {
        grid-template-columns: 1fr;
    }

    .btn-wishlist {
        grid-column: auto;
    }

    .service-item {
        margin-bottom: 15px;
    }

}