/* ===============================
   GLOBAL
================================ */
.product-page {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===============================
   PRODUCT TOP
================================ */
.product-top {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    gap: 40px;
    width: 100%;
}

/* ===============================
   IMAGE + VIDEO GALLERY
================================ */
.product-image {
    display: flex;
    gap: 15px;
    position: relative;
}

.image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: #fafafa;
}

.thumb:hover {
    border-color: #f08804;
}

.video-thumb {
    color: #f08804;
    font-weight: bold;
}

/* MAIN MEDIA */
.main-image {
    width: 420px;
    height: 420px;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img,
.main-image video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===============================
   WISHLIST
================================ */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 6px 9px;
    cursor: pointer;
}

.wishlist-btn.active {
    border-color: #f08804;
}

/* ===============================
   PRODUCT INFO
================================ */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* ===============================
   RATING SUMMARY
================================ */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-value {
    font-weight: bold;
}

.rating-count {
    color: #007185;
    font-size: 14px;
}

/* ===============================
   PRICE
================================ */
.price-box {
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #565959;
    margin-right: 10px;
}

.new-price {
    font-size: 28px;
    font-weight: bold;
    color: #B12704;
}

/* ===============================
   PACK OPTIONS
================================ */
.pack-section {
    margin: 20px 0;
}

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

.pack-btn {
    padding: 8px 14px;
    border: 1px solid #d5d9d9;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.pack-btn:hover {
    border-color: #f08804;
    background: #fffaf0;
}

/* ===============================
   STOCK
================================ */
.stock {
    margin: 15px 0;
}

.out-stock {
    color: red;
    font-weight: bold;
}

/* ===============================
   ACTIONS
================================ */
.actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.add-cart-btn {
    background: #FFD814;
    border: 1px solid #FCD200;
    padding: 12px 22px;
    font-weight: bold;
    border-radius: 25px;
}

.add-cart-btn:hover {
    background: #F7CA00;
}

.back-btn {
    padding: 12px 18px;
    border: 1px solid #d5d9d9;
    border-radius: 25px;
    background: #fff;
}

/* ===============================
   DESCRIPTION
================================ */
.product-description {
    margin: 40px 0;
}

.product-description h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-description p {
    line-height: 1.6;
}

/* ===============================
   REVIEWS
================================ */
.amazon-reviews {
    margin-top: 50px;
}

.reviews-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.review-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.rating-left {
    width: 220px;
}

.rating-number {
    font-size: 32px;
    font-weight: bold;
}

.rating-stars {
    color: #FFA41C;
}

.rating-count {
    font-size: 14px;
}

/* RATING DISTRIBUTION */
.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.star-label {
    width: 50px;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
}

.bar-fill {
    height: 100%;
    background: #FFA41C;
    border-radius: 5px;
}

.bar-count {
    width: 40px;
    font-size: 12px;
}

/* ===============================
   REVIEW LIST
================================ */
.review-box {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.review-header {
    font-size: 15px;
    margin-bottom: 5px;
}

.review-stars {
    color: #FFA41C;
    margin-bottom: 8px;
}

.review-text {
    margin-bottom: 10px;
}

.review-media {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-media img,
.review-media video {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===============================
   RECOMMENDED
================================ */
.recommended-section {
    margin: 60px 0;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recommended-card {
    border: 1px solid #e7e7e7;
    padding: 15px;
    text-align: center;
}

.recommended-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
}

.recommended-card .price {
    font-weight: bold;
    color: #B12704;
}

/* ===============================
   IMAGE FULL SCREEN MODAL
================================ */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* ===============================
   REVIEW GALLERY NAV
================================ */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
}

.nav-btn.prev {
    left: 30px;
}

.nav-btn.next {
    right: 30px;
}
.action-buttons {
    display: flex;
    gap: 14px;
    margin-top: 15px;
    align-items: center;
}

.add-cart-btn {
    background: #ffc107;
    color: #000;
    padding: 12px 22px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.back-btn {
    padding: 12px 22px;
    border-radius: 25px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    background: #fff;
}

.back-btn:hover {
    background: #f5f5f5;
}
.pack-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pack-btn {
    padding: 10px 16px;
    border: 1px solid #d5d9d9;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.pack-btn.active {
    border-color: #f08804;
    background: #fff7e6;
}
.qty-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.qty-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

#quantityInput {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    height: 36px;
    font-size: 16px;
}
/* ===============================
   DELIVERY INFO
================================ */
.delivery-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #067d62;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    display: inline-block;
}

/* ===============================
   COD INFO
================================ */
.cod-info {
    margin: 8px 0 15px 0;
}

.cod-available {
    display: inline-block;
    padding: 8px 12px;
    background: #e6f7ff;
    border: 1px solid #b3e0ff;
    color: #005792;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.cod-not-available {
    display: inline-block;
    padding: 8px 12px;
    background: #fff5f5;
    border: 1px solid #f5c2c2;
    color: #b12704;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}
/* ===============================
   CONTINUE SHOPPING BUTTON
================================ */
.back-btn {
    display: inline-block;
    margin: 30px 0 10px 0;
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid #d5d9d9;
    background: #fff;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f7f7f7;
    border-color: #f08804;
    color: #f08804;
}


/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 992px) {

    .product-card {
        flex-direction: column;
        gap: 25px;
    }

    .product-image {
        flex-direction: column;
        align-items: center;
    }

    .image-thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-image {
        width: 100%;
        max-width: 450px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .review-summary {
        flex-direction: column;
    }

    .rating-left {
        width: 100%;
    }

    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }
}