* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #fca120;
    --secondary-maroon: #761340;
    --accent-pink: #ffe9f3;
    --text-dark: #555555;
    --text-light: #555555;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --max-width: 1512px;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

.product-container {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 10px;
    max-width: 1512px;
    margin: 0 auto;
    padding: 40px 60px;
}
.policy-section-cntnt {
    display: flex;
    align-items: center;
    gap: 10px;
    /* margin-top: 20px; */
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    display: flex;
    gap: 20px;
}

.main-image {
    width: 100%;
    max-width: 369px;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 581px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    /* display: flex;
    flex-direction: column;
    gap: 11px; */
    max-width: 157px;
        max-width: 157px;
    height: 100%;
    max-height: 581px;
    overflow-y: auto;                 /* hidden by default */
  scroll-behavior: smooth;            /* smooth scroll */
  -webkit-overflow-scrolling: touch;  /* iOS smooth scroll */

  /* Firefox scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #761340 transparent;
}
/* Enable scroll on hover */
.thumbnail-gallery:hover {
  overflow-y: auto;
}

/* Webkit scrollbar styling (Chrome, Edge, Safari) */
.thumbnail-gallery::-webkit-scrollbar {
  width: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
  background-color: #761340;
  border-radius: 8px;
}

/* Optional hover effect on scrollbar thumb */
.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
  background-color: #5e0f2e;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    padding: 0;
    height: 149px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-gallery:nth-child(2) {
    height: 293px;
}
.thumbnail:hover {
    border-color: var(--primary-orange);
}

.thumbnail.active {
    border-color: var(--secondary-maroon);
    height: 194px;
}
.thumbnail.active img {
    height: 194px;
}

/* ===== PRODUCT DETAILS ===== */
.product-details-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
}

.product-header {
    display: flex;
        align-items: center;
    gap: 10px;
}

.product-title-detail {
    font-size: 30px;
    font-weight: 600;
    color: var(--secondary-maroon);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.wishlist-btn {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid #180fb5;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.wishlist-btn:hover {
    background-color: #180fb5;
}

.wishlist-icon {
    width: 14px;
    height: 14px;
    background-color: #180fb5;
    border-radius: 50%;
}

.wishlist-btn:hover .wishlist-icon {
    background-color: #ffffff;
}

/* ===== RATING SECTION ===== */
.rating-section-product {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 0;
}

.product-stars {
    display: flex;
    gap: 5px;
   font-size:0.38px;
}
.product-stars svg{
    padding-right: 4px;
}
.rating-stars svg {
    width: 25.38px;
    height: 25.38px;
}
.star {
    transition: var(--transition);
}

.star.filled {
    color: var(--primary-orange);
}

.star.empty {
    color: #ddd;
}

.review-count-detail {
    font-size: 24px;
    font-weight: 500;
    color: var(--secondary-maroon);
    padding-top: 5px;
}

/* ===== SHIPPING INFO ===== */
.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.shipping-info p {
    padding: 0;
    margin: 0;
}

.shipping-label-detail {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 400;
}

.shipping-time-detail {
    font-size: 26px;
    font-weight: 400;
    color: var(--secondary-maroon);
}

/* ===== PRICE SECTION ===== */
.price-section {
    display: flex;
    gap: 13px;
    flex-direction: column;
    /* padding: 20px 0; */
}

.price-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-item.total {
    padding-top: 15px;
    font-weight: 600;
}

.price-label-detail {
    font-size: 26px;
    color: var(--text-dark);
    font-weight: 400;
}

.original-price-detail {
    font-size: 22px;
    color: #555555;
    text-decoration: line-through;
    font-weight: 500;
}

.discount-price-detail {
    font-size: 22px;
    font-weight: 500;
    color: var(--secondary-maroon);
}

.total-price {
    font-size: 32px;
    font-weight: 600;
    color: var(--secondary-maroon);
}

/* ===== QUANTITY SECTION ===== */
.quantity-section-detail {
    display: flex;
    align-items: center;
    gap: 23px;
    margin: 23px 0 25px;
}

.qty-btn-detail {
    width: 41.5px;
    height: 45px;
    background-color: #ffffff;
    color: var(--secondary-maroon);
    font-size: 24px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
.quantity-section-detail-btn .qty-input-detail {
    border: none;
}
.quantity-section-detail-btn {
    display: flex;
    align-items: center;
    border: 1px solid var(--secondary-maroon);
    border-radius: 5px;
}

/* .qty-btn-detail:hover {
    background-color: var(--accent-pink);
} */

.qty-input-detail {
    width: 40px;
    height: 45px;
    border-radius: 6px;
    font-size: 18px;
    text-align: center;
    color: var(--secondary-maroon);
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    border: none;
}

.qty-input-detail:focus {
    outline: none;
    background-color: var(--accent-pink);
}

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

.qty-input-detail[type="number"] {
    -moz-appearance: textfield;
}

.total-label-detail {
    margin-left: auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
}

.total-amount {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary-maroon);
}


/* ===== SECONDARY ACTIONS ===== */
.secondary-actions {
    display: flex;
    gap: 12px;
}

.btn-wishlist,
.btn-compare {
    max-width: 189px;
    font-size: 17px;
    max-height: 53px;
    flex: 1;
    background-color: var(--dsr-secondary-color);
    color: var(--dsr-primary-color);
    border: 1px solid transparent;
    min-height: 45px;
}

.btn-wishlist:hover,
.btn-compare:hover {
    background-color: #ffd6e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(118, 19, 64, 0.15);
}

/* ===== POLICY SECTION ===== */
.policy-section {
    display: flex;
    align-items: center;
    /* gap: 34px; */
        margin: 20px 0;
}

.policy-item {
    gap: 8px;
}

.policy-label {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 400;
}

/* .policy-item.guarantee {
    margin-left: auto;
} */

.guarantee-badge {
    width: 39px;
    height: 39px;
}

.view-policy {
    color: var(--secondary-maroon);
    text-decoration: underline;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.view-policy:hover {
    color: var(--primary-orange);
}

/* ===== SOCIAL MEDIA ===== */
.social-media {
    display: flex;
    gap: 7px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-pink);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--secondary-maroon);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn:hover {
    /* background-color: var(--secondary-maroon); */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(118, 19, 64, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1500px) {
.product-details-box{
    padding-left: 0;
}
}
@media (max-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }

    .product-title-detail {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .secondary-actions {
        flex-direction: column;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        gap: 25px;
        padding: 25px 12px;
    }

    .product-title-detail {
        font-size: 20px;
    }

    .rating-section-product {
        flex-wrap: wrap;
    }

    .product-stars {
        font-size: 24px;
    }

    .review-count-detail {
        font-size: 16px;
    }

    .shipping-time-detail {
        font-size: 20px;
    }

    .price-item {
        /* flex-direction: column;
        align-items: flex-start; */
        gap: 8px;
    }

    .quantity-section-detail {
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 5px;
    }

    .total-label-detail {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .total-amount {
        width: 100%;
    }

    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .social-media {
        gap: 10px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .policy-section {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-sub-header-revelent {
    }

    .policy-item.guarantee {
        margin-left: 0;
    }

    .guarantee-badge {
        width: 50px;
        height: 50px;
    }

    .view-policy {
        font-size: 14px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .product-container {
        display: block;
        gap: 20px;
        padding: 0px 20px 10px;
    }

    .product-header {
        gap: 15px;
    }

    .wishlist-btn {
        display: none;
    }

    .product-title-detail {
        font-size: 18px;
    }

    .shipping-label-detail,
    .policy-label {
        font-size: 16px;
    }

    .shipping-time-detail {
        font-size: 18px;
    }

    .price-label-detail {
        font-size: 16px;
    }

    .original-price-detail,
    .discount-price-detail,
    .total-price {
        font-size: 20px;
    }

    .quantity-section-detail {
        gap: 10px;
    }

    .qty-btn-detail,
    .qty-input-detail {
        height: 40px;
        font-size: 16px;
    }

    .qty-btn-detail {
        width: 40px;
    }

    .qty-input-detail {
        width: 50px;
    }

    .action-buttons,
    .secondary-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        font-size: 14px;
        padding: 11px 16px;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .social-media {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .total-label-detail {
        font-size: 14px;
    }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.social-btn:focus {
    outline: 2px solid var(--secondary-maroon);
    outline-offset: 2px;
}

.social-btn:focus {
    outline-offset: -2px;
}

/* ===== MOBILE: product-gallery adjustments ===== */
@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    /* Put the main image first and thumbnails below it (mobile-friendly order) */
    .main-image {
        order: 1;
        width: 100%;
        max-width: 100%;
        max-height: 250px;
        height: auto;
           aspect-ratio: 1 / 1;
        border-radius: 8px;
        padding: 0;
    }

    .main-image img {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }

    /* Make thumbnails horizontal and scrollable under the main image */
    .thumbnail-gallery {
        order: 2;
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 6px 2px;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail {
        flex: 0 0 auto;
        min-width: 80px;
        height: 80px;
        aspect-ratio: 1/1;
        border-radius: 6px;
        border-width: 2px;
    }

    /* Avoid forcing large fixed heights on active thumbnail in mobile */
    .thumbnail.active,
    .thumbnail.active img {
        height: auto;
        min-height: 0;
    }

    /* remove any leftover nth-child height rule effect on mobile */
    .thumbnail-gallery:nth-child(2) {
        height: auto;
    }
}

@media (max-width: 480px) {
    .main-image img {
        /* max-height: 50vh; */
    }

    .thumbnail {
        min-width: 64px;
        height: 64px;
    }

    .thumbnail-gallery {
        gap: 8px;
        padding: 0px 0px 25px;
    }
}

/* Stronger mobile thumbnail fixes: override inline heights, enable scroll-snap, hide scrollbars */
@media (max-width: 768px) {
    .thumbnail-gallery {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
    }

    .thumbnail-gallery::-webkit-scrollbar {
        display: none; /* Safari/WebKit */
        height: 0;
    }

    /* Force thumbnails to respect mobile sizing even if inline styles exist */
    .thumbnail,
    .thumbnail img,
    .thumbnail.active,
    .thumbnail.active img {
        height: auto !important;
        max-height: 80px;
        min-width: 80px;
        width: auto;
        box-sizing: border-box;
    }

    .thumbnail {
        scroll-snap-align: center;
        flex: 0 0 auto;
        border-radius: 6px;
        padding: 0;
        margin: 0;
    }

    .thumbnail img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .thumbnail,
    .thumbnail img,
    .thumbnail.active,
    .thumbnail.active img {
        max-height: 64px !important;
        min-width: 64px !important;
    }
}
/* ===== ADDITIONAL PRODUCT SECTION STYLES ===== */
.section-sub-header-revelent {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.product-features {
    width: 100%;
    margin: 0 auto;
}
.review-wrapper {
    display: flex;
    flex-direction: column;
    gap: 33px;
}
.product-features-container {
    max-width: var(--max-width);
    background-color: #fff4f9;
    border-radius: 10px;
    margin: 0 auto;
    padding: 20px 58px 50px 58px;
}

/* Tabs Section */
.tabs-section {
    position: relative;
    margin-bottom: 20px;
    border-bottom: 1px solid #e3e3e3;
}

.tabs {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 48px;
    letter-spacing: 0.2px;
    color: #555555;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.tab-btn.active {
    color: #761340;
}

.tab-btn:hover {
    color: #761340;
}

.tab-underline {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 140px;
    height: 3px;
    background-color: #761340;
    transition: left 0.3s ease;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    /* grid-template-columns: 0.3fr 1fr; */
    gap: 37px;
    align-items: start;
}

/* Product Card */
.product-card {
    position: relative;
    width: 339px;
    height: 588px;
    max-width: 339px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1.3;
}

.product-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

/* Product Details */
.product-details-box-info {
    display: flex;
    flex-direction: column;
    /* gap: 25px; */
}

/* Instagram Section */
.instagram-section {
    display: flex;
    align-items: center;
    gap: 15px;
    /* flex-wrap: wrap; */
}

.instagram-logo {
    width: 51px;
    height: 51px;
    background: linear-gradient(135deg, #ffdd55 0%, #ff543e 50%, #c837ab 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.likes-count {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 0.2px;
    color: #761340;
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 15px;
}

.icon-btn {
    width: 51px;
    height: 51px;
    background-color: #fad5e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    color: #761340;
    font-size: 20px;
    border: none;
}

.icon-btn:hover {
    background-color: #f5b8d4;
    transform: scale(1.05);
}

/* Username */
.product-details-box h2 {
    margin: 0;
    padding: 0;
}
.username {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 0.2px;
    color: #761340;
    margin: 0;
    padding: 0;
    margin-top: 10px;
}

/* Product Info */
.product-info-detail {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-text, .product-info-detail p {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0.2px;
    color: #7d7d7d;
    margin: 0;
}

.info-text.price {
    color: #761340;
    font-weight: 500;
    font-size: 20px;
}

/* View Profile Button */
.view-profile-btn {
    margin-top: 20px;
    background-color: #761340;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 33px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
}

.view-profile-btn:hover {
    background-color: #5a0f2f;
    transform: translateY(-2px);
}

.view-profile-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs {
        gap: 30px;
    }

    .tab-btn {
        font-size: 20px;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .instagram-section {
        gap: 12px;
    }

    .likes-count {
        font-size: 22px;
    }

    .username {
        font-size: 24px;
    }

    .info-text {
        font-size: 16px;
        line-height: 28px;
    }

    .action-icons {
        gap: 10px;
    }

    .icon-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
  
    .tabs {
        gap: 15px;
        padding-bottom: 15px;
    }

    .tab-btn {
        font-size: 16px;
        line-height: 32px;
        padding: 8px 0;
    }

    .tab-underline {
        width: 100px;
    }

    .instagram-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .action-icons {
        /* width: 100%; */
        justify-content: flex-end;
    }

    .likes-count {
        font-size: 20px;
    }

    .username {
        font-size: 20px;
    }

    .info-text {
        font-size: 14px;
        line-height: 24px;
    }

    .view-profile-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .product-card {
        max-width: 100%;
    }
}
.prdct-reviews {
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
}
.review-user-img {
    height: 67px;
    width: 67px;
    border-radius: 50%;
    object-fit: cover;
}
.review-avatar {
    height: 67px;
    width: 67px;
    border-radius: 50%;
    object-fit: cover;
}
.review-username {
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0.2px;
    color: #761340;
    margin-top: 7px;
}
.review-count-detail {
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0.2px;
    color: #555555;
}
.review-rates {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 10px;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    color: #555555;
    line-height: 100%;
    letter-spacing: 0.2px;
}
.review-cnt {
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0.2px;
    color: #555555;
    margin-top: 10px;
}

/* Responsive adjustments for review cards */
@media (max-width: 768px) {
    .review-wrapper {
        gap: 20px;
    }

    .prdct-reviews {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 12px;
    }

    .review-user-img,
    .review-avatar {
        height: 56px;
        width: 56px;
    }

    .review-username {
        font-size: 20px;
        margin-top: 6px;
    }

    .review-count-detail {
        font-size: 14px;
    }

    .review-rates {
        gap: 6px;
        font-size: 16px;
        margin-top: 8px;
        align-items: center;
    }

    .review-cnt {
        font-size: 16px;
        line-height: 1.4;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .product-features-container {
        padding: 15px 20px 30px 20px;
    }
    .prdct-reviews {
        padding: 8px 10px;
        gap: 10px;
    }

    .review-user-img,
    .review-avatar {
        height: 48px;
        width: 48px;
    }

    .review-username {
        font-size: 18px;
        margin-top: 4px;
    }

    .review-count-detail {
        font-size: 13px;
    }

    .review-rates svg {
        width: 28px;
        height: 28px;
    }

    .review-cnt {
        font-size: 14px;
    }
}

/* Extra small screens: tighten product-details-box layout */
@media (max-width: 420px) {
    .product-details-box {
        padding-left: 0px;
        padding-right: 0x;
        gap: 14px;
    }

    .product-header {
        align-items: center;
        gap: 8px;
    }

    .product-title-detail {
        font-size: 16px;
        line-height: 1.25;
        word-break: break-word;
    }

    /* Scale down rating SVGs and make them wrap if needed */
    .product-stars svg {
        width: 20px;
        height: 20px;
    }

    .review-count-detail {
        font-size: 13px;
    }

    /* Price and quantity stack more compactly */
    .price-section {
        gap: 8px;
    }

    .price-item {
        /* flex-direction: column;
        align-items: flex-start; */
        gap: 6px;
    }

    .original-price-detail,
    .discount-price-detail,
    .total-amount {
        font-size: 18px;
    }

    .quantity-section-detail {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .quantity-section-detail-btn {
        width: 140px;
        margin-right: 0;
    }

    .qty-btn-detail {
        width: 36px;
        height: 38px;
        font-size: 18px;
    }

    .qty-input-detail {
        width: 48px;
        height: 38px;
        font-size: 16px;
    }

    .total-label-detail {
        font-size: 13px;
        margin-left: 0;
    }

    /* Make primary actions full width and visually prominent */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: none;
        padding: 12px;
        font-size: 14px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    /* Policy and social wrap neatly */
    .policy-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .policy-item.guarantee {
        margin-left: 0;
    }

    .guarantee-badge {
        width: 48px;
        height: 48px;
    }

    .social-media {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    /* Ensure thumbnails and main image stay usable */
    .main-image img {
        /* max-height: 45vh; */
    }
}

/* Extra small: content-wrapper / product-card specific tweaks */
@media (max-width: 420px) {
    .product-features-container {
        padding: 15px 20px 30px 20px;
    }
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: stretch;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        border-radius: 8px;
        margin: 0 auto;
    }

    .product-image-container {
        height: auto;
    }

    .product-image {
        width: 100%;
        height: auto;
        /* max-height: 50vh; */
        object-fit: contain;
    }

    .product-details-box-info {
        padding: 0;
        gap: 12px;
    }

    .instagram-section {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .insta-icon {
        width: 40px;
        height: 40px;
        object-fit: cover;
    }

    .likes-count {
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
        margin-left: 8px;
        color: var(--secondary-maroon);
        flex: 1;
    }

    .action-icons {
        gap: 8px;
        margin-left: 8px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .username {
        font-size: 18px;
        line-height: 1.2;
    }

    .product-info-detail {
        gap: 8px;
    }

    .info-text {
        font-size: 14px;
        line-height: 20px;
    }

    .view-profile-btn {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: 6px;
    }
}

/* Modal Overlay */

#cartpopup {
    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: rgba(0, 0, 0, 0.5);

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1000;

    padding: 16px;
}

/* allow overlay to scroll on small screens and enable smooth touch scrolling */

.modal-overlay {
    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}

/* Modal Container */

.modal-container {
    background-color: #ffffff;

    border-radius: 15px;

    width: 100%;

    width: 980px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    animation: slideUp 0.3s ease-out;
}

/* keep modal height within the viewport and allow internal scrolling when content is tall */

.modal-container {
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;

        transform: translateY(20px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

/* Success Header */

.success-header {
    position: relative;

    background: rgba(191, 255, 188, 0.55);

    padding: 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    min-height: 77px;
}

.success-icon {
    width: 34px;

    height: 34px;

    color: #0b8219;

    flex-shrink: 0;
}

.success-title {
    font-size: 18px;

    font-weight: 400;

    color: #0b8219;

    letter-spacing: 0.2px;

    line-height: normal;

    margin: 0;
}

.close-btn {
    position: absolute;

    right: 15px;

    top: 50%;

    transform: translateY(-50%);

    background: none;

    border: none;

    cursor: pointer;

    padding: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #555555;

    transition: color 0.2s ease;
}

/* make the close button a larger touch target */

.close-btn {
    min-width: 44px;

    min-height: 44px;

    padding: 6px;

    border-radius: 6px;
}

.close-btn:hover {
    color: #000;
}

.close-btn svg {
    width: 28px;

    height: 28px;

    stroke: #000;

    stroke-width: 1.5px;
}

/* Modal Content */

.modal-content {
    display: grid;

    grid-template-columns: 0.4fr 1fr;

    gap: 40px;

    padding: 40px;

    align-items: flex-start;
}

/* ensure modal content stretches and wraps nicely on very small screens */

.modal-content {
    width: 100%;
}

/* Product Image */

.product-image-container {
    width: 100%;

    max-width: 261px;

    aspect-ratio: 261 / 452;

    background: #fca120;

    border-radius: 10px;

    overflow: hidden;
}

/* let the image scale down responsively and cap its height on small viewports */

.product-image-container {
    height: auto;

    max-height: 50vh;
}

.product-image {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.rating-product-stars svg {
    width: 25.38px;
    height: 25.38px;
}
/* Product Details */

.product-details-box {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.product-title-detail {
    font-size: 20px;

    font-weight: 600;

    color: #761340;

    letter-spacing: 0.2px;

    line-height: normal;

    margin: 0;
}

/* Rating Section */

.rating-section-product {
        margin: 12px 0;
    display: flex;

    align-items: center;

    gap: 8px;
}

.product-stars {
    display: flex;

    gap: 4px;
}

.star {
    font-size: 38px;

    line-height: 1;

    transition: color 0.2s ease;
}

.star.filled {
    color: #fca120;
}

.star.empty {
    color: #fca120;

    opacity: 0.4;
}

.review-count-detail {
        margin-top: 7px;
    font-size: 15px;

    font-weight: 500;

    color: #761340;

    letter-spacing: 0.2px;

    white-space: nowrap;
}

/* Shipping Section */

.shipping-section {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.shipping-label-detail {
    font-size: 18px;

    font-weight: 400;

    color: #555555;

    letter-spacing: 0.2px;
}

.shipping-time-detail {
    font-size: 18px;

    font-weight: 400;

    color: #555555;

    letter-spacing: 0.2px;

    margin: 0;
}

/* Pricing Section */

.pricing-section {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.price-row {
    display: flex;

    /* flex-wrap: wrap; */

    gap: 16px;

    /* align-items: center; */
}

.price-label-detail {
    font-size: 18px;

    font-weight: 400;

    color: #555555;

    letter-spacing: 0.2px;
}

.original-price-detail {
    font-size: 22px;

    font-weight: 500;

    color: #555555;

    text-decoration: line-through;

    letter-spacing: 0.2px;
}

.discount-price-detail {
    font-size: 22px;

    font-weight: 600;

    color: #761340;

    letter-spacing: 0.2px;
}

/* Total Section */

.total-section {
    display: flex;

    /* justify-content: space-between; */

    align-items: baseline;

    gap: 16px;
}

.total-label-detail {
    font-size: 18px;

    font-weight: 400;

    color: #555555;

    letter-spacing: 0.2px;
}

.total-price {
    font-size: 18px;

    font-weight: 600;

    color: #761340;

    letter-spacing: 0.2px;
}

/* Button Group */

.button-group {
    display: flex;

    gap: 16px;

    margin-top: 20px;
}

.btn {
    flex: 1;

    padding: 13px 10px;

    border: none;

    border-radius: 7px;

    font-family: "Poppins", sans-serif;

    font-size: 17px;

    font-weight: 500;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition: all 0.3s ease;

    line-height: 30px;
}

/* make buttons full width on stacked layouts */

.button-group .btn {
    min-width: 0;
}

.btn-secondary {
    background-color: #ffe9f3;

    color: #761340;
}

.btn-secondary:hover {
    background-color: #ffd9e8;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(118, 19, 64, 0.15);
}

.btn-primary {
    background-color: #761340;

    color: #ffffff;
}

.btn-primary:hover {
    background-color: #5a0f32;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(118, 19, 64, 0.3);
}

/* Tablet Responsive */

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;

        gap: 24px;

        padding: 24px;
    }

    .product-image-container {
        max-width: 100%;

        max-width: 220px;

        margin: 0 auto;
    }

    .product-details-box {
                padding-left: 0px;
        gap: 5px;
    }
    .product-code {
   
    bottom:110px;
    }
    .product-code-label{
        z-index: 9 !important;
        margin-top: 75% !important;
    }

    .success-title {
        font-size: 22px;

        line-height: 33px;
    }

    .product-title-detail {
        font-size: 24px;

        line-height: 36px;
    }

    .price-row {
        /* flex-direction: column; */

        gap: 8px;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Mobile Responsive */

@media (max-width: 480px) {
        .product-code {
        bottom:-47px;
    }
    .modal-overlay {
        padding: 8px;
    }

    .modal-container {
            height: fit-content;
        border-radius: 12px;
    }

    .success-header {
        padding: 16px;

        min-height: auto;
    }

    .success-icon {
        width: 28px;

        height: 28px;
    }

    .success-title {
        font-size: 18px;

        line-height: 27px;
    }

    .close-btn {
        right: 10px;
    }

    .close-btn svg {
        width: 40px;

        height: 40px;
    }

    .modal-content {
        gap: 16px;

        padding: 16px;
    }

    .product-image-container {
        max-width: 180px;
    }

    .product-title-detail {
        font-size: 17px;

        line-height: 18px;
    }

    .rating-section-product {
            margin: 7px 0;
        gap: 12px;
    }
    .today-deal-container .section-header {
        font-size: 20px;
        padding-bottom: 10px;
    }
    .star {
        font-size: 28px;
    }

    .review-count-detail {
        font-size: 16px;
    }

    .shipping-label-detail,
    .price-label-detail,
    .original-price-detail,
    .total-label-detail {
        font-size: 16px;
    }

    .shipping-time-detail,
    .discount-price-detail {
        font-size: 20px;
    }

    .total-price {
        font-size: 24px;
    }

    .btn {
        padding: 12px 20px;

        font-size: 16px;

        line-height: 24px;
    }
}
/* size box */
.size-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: sans-serif;
  background-color: #ffffff;
  padding: 0px;
      margin: 20px 0;
}

.size-label {
  font-size: 18px;
  color: #555555; /* Approximate color */
  font-weight: normal;
}

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

.size-btn {
  background-color: transparent;
  border: 1px solid #761340;
  color: #761340;
  width: 83px;
  height: 40px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;

  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s, border-color 0.2s;
  box-shadow: none;
}

/* Optional: Add a hover or selected state */
.size-btn:hover {
}

/* Add a class for an active/selected button if needed via JavaScript */
.size-btn.active {
  background-color: #761340;
  color: #ffffff;
}
/* tab */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-btn {
    cursor: pointer;
}




 @media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) {
	.main-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 581px;
}
  }
  
    @media only screen and (min-device-width: 820px) and (max-device-width: 1180px) {
		
		
		.main-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 581px;
}
		
	}