@import './base.css';

.product-details-bradecruumbs {
    display: flex;
    padding: 24px 30px;
    align-items: center;
    gap: 6px;
    align-self: stretch;
}

.product-details-bradecruumbs h4 {
    color: var(--color-primary);
    text-align: center;
    font-variant-numeric: ordinal;
    font-feature-settings: 'dlig' on;
    /* Paragraph/Medium */
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 24px */
}

.product-details-bradecruumbs h4 span,
.product-details-bradecruumbs h4 a {
    color: #696969;
    text-decoration: none;
    text-align: center;
    /* Paragraph/regular */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    /* 24px */
}


/* **************************************** */

/* ===== PRODUCT DETAILS RESPONSIVE STYLES ===== */
.product-details-wrapper {
    width: 100%;
    margin: 0 auto;
}


/* Gallery Styles */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.wishlist-icon,
.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFBEF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-icon:hover,
.share-icon:hover {
    transform: scale(1.1);
    background: #ffe69b;
}

/* Thumbnail Slider */
.thumbnail-slider {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.thumbnail-slider::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-slider::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.product-details-wrapper .thumbnail-container {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    justify-content: flex-start;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Content */
.product-content {
    padding-left: 30px;
}

.bestseller {
    display: inline-block;
    padding: 6px 16px;
    background: #FFD042;
    color: var(--color-primary);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    /* Reduced from 15px to bring title closer to breadcrumbs */
    flex-wrap: wrap;
    gap: 10px;
}

.product-title h2 {
    font-size: 28px;
    /* Reduced to match reference */
    font-weight: 500;
    /* Made bolder like reference */
    color: #000;
    margin: 0;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: #FFECE9;
    color: #FF3B30;
    border-radius: 38px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.review {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stars {
    display: flex;
    gap: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.price-row h3 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 500;
    color: #000;
    margin: 0;
}

.linethru {
    color: #686868;
    font-size: 16px;
    text-decoration: line-through;
}

.off {
    color: #189E33;
    font-size: 14px;
    font-weight: 500;
    background: #E8F5E9;
    padding: 4px 8px;
    border-radius: 4px;
}

.mrp {
    color: #686868;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Size Section */
.product-details-wrapper .size-section {
    margin: 25px 0;
}

.product-details-wrapper .size-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-details-wrapper .size-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.product-details-wrapper .size-box {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.size-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.size-box.active {
    border: 1px solid var(--color-primary);
    background: #FFF5E6;
}

.size-weight {
    font-weight: 600;
    font-size: 16px;
    padding: 15px 10px;
    /* Increased vertical padding */
    text-align: center;
    color: #333;
    border-bottom: 1px solid #E0E0E0;
    background: #fcfcfc;
    /* Subtle header background */
}

.size-box.active .size-weight {
    border-bottom: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    /* Show parent active background */
}

.size-box.active .size-price {
    color: var(--color-primary);
}

.size-box.active .size-details {
    background: transparent;
    /* Show parent active background */
}

.size-details {
    padding: 20px 15px;
    /* Increased vertical padding to match tall reference design */
    text-align: center;
    background: #fff;
}

.size-price {
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.size-original {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 5px;
}

.size-discount {
    color: #189E33;
    font-size: 14px;
    font-weight: 500;
    margin-left: 5px;
}

/* Offers Section */
.offers-section {
    margin: 25px 0;
}

.offers-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
}

.offers-flex {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.offer-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
}

.offer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.offer-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.offer-details li {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-details li::before {
    content: "•";
    color: #999;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.offer-code-wrapper {
    border: 1px dashed #999;
    padding: 8px 15px;
    border-radius: 20px;
    flex-grow: 1;
    text-align: center;
}

.offer-code {
    font-weight: 600;
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

.copy-btn {
    background: #189E33;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #14822a;
}

/* Delivery Features */
.delivery-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.feature svg {
    width: 40px;
    height: 40px;
}

.feature span {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 40px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    padding: 4px;
    background: white;
    border-radius: 6px;
    border: 2px solid var(--Primary-500, #622F2B);
}

.product-details-wrapper .product-actions .quantity-control {
    flex: 1;
    min-width: 140px;
    height: 52px;
    /* Fixed height to match buttons */
    justify-content: space-between;
    padding: 0 12px;
}


.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.product-details-wrapper .product-actions .add-to-cart-btn,
.product-details-wrapper .product-actions .buy-now-btn {
    flex: 1;
    min-width: 140px;
    height: 52px;
    /* Fixed height to match quantity control */
    padding: 0 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-details-wrapper .product-actions .add-to-cart-btn {
    background: var(--color-primary) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(144, 9, 12, 0.15);
}

.product-actions .add-to-cart-btn:hover {
    background: #7a080a !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(144, 9, 12, 0.25);
}

.product-actions .add-to-cart-btn:hover svg path {
    stroke: white;
}

.product-actions .buy-now-btn {
    background: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: white;
}

.product-actions .buy-now-btn:hover {
    background: #78070a;
    border-color: #78070a;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .product-details-wrapper {
        padding: 0 30px 50px 30px;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .product-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .size-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-flex {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {


    .delivery-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .quantity-control {
        width: 100%;
        justify-content: center;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }

    .product-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .product-details-wrapper {
        padding: 10px;
    }

    .product-card {
        padding: 0px !important;
    }

    .review-content {
        padding-left: 0px !important;
        border: none !important;
    }

    .review-item {
        display: flex;
        gap: 0 !important;
    }

    .offers-flex {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        flex-direction: column;
        gap: 20px;
    }

    .offers-flex {
        grid-template-columns: 1fr;
    }

    .delivery-features {
        text-align: left;
    }

    .feature {
        flex-direction: column;
        justify-content: flex-start;
    }

    .product-details-bradecruumbs {
        margin-top: 122px;
    }

    .img-icon {
        top: 10px;
        right: 10px;
    }

    .wishlist-icon,
    .share-icon {
        width: 36px;
        height: 36px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .price-row h3 {
        font-size: 22px;
    }
}

/* Mobile Small */
@media (max-width: 375px) {
    .review {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-row {
        flex-wrap: wrap;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* *************************************************************** */


/* Product Details Accordion Styles */
.product-details-accordion {
    padding: 60px 30px;
    background: #FFFBF0;
}

.accordion-header {
    margin-bottom: 40px;
}

.accordion-header h3 {
    color: var(--color-primary);
    /* Display/semiBold-5 */
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 48px */
    letter-spacing: -0.8px;
}

.accordion-header p {
    font-size: 16px;
    color: #686868;
    margin-top: 8px;
}

.accordion-container {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--Primary-100, #E5DAD8);
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-title:hover {
    background: #fafafa;
}

.accordion-item.active {
    background: white;
}

.accordion-title span:first-child {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

.accordion-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
    padding: 0 25px;
    background: #fafafa;
}

/* .accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 20px 25px;
} */

.accordion-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content ul li {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.accordion-content ul li:before {
    content: '•';
    color: var(--color-primary);
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -2px;
}

.accordion-content ul li strong {
    color: #000;
    font-weight: 600;
}

.accordion-title {
    padding: 15px 20px;
    color: var(--color-primary);
    /* Heading/Medium-h4 */
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    /* 28px */
    letter-spacing: -0.2px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-details-accordion {
        padding: 40px 0;
    }

    .accordion-header h3 {
        font-size: 28px;
    }

    .accordion-header p {
        font-size: 14px;
    }

    .accordion-title span {
        padding: 15px 20px;
        color: var(--color-primary);
        /* Heading/Medium-h4 */
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        /* 28px */
        letter-spacing: -0.2px;
    }

    .accordion-title span:first-child {
        font-size: 16px;
    }

    .accordion-icon {
        font-size: 20px;
    }

    .accordion-content p,
    .accordion-content ul li {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-details-accordion {
        padding: 30px 22px;
    }

    .accordion-header {
        margin-bottom: 20px;
        text-align: center;
    }

    .our-bestseller .heading {
/*        padding-bottom: 0 !important;
*/    }

    .accordion-header h3 {
        font-size: 24px;
    }

    .accordion-title {
        padding: 12px 15px;
    }

    .accordion-title span:first-child {
        font-size: 15px;
    }

    .accordion-content.active {
        padding: 15px;
    }
}

/* *********************************************************** */


/* Customer Reviews Section */
.customer-reviews-section {
    padding: 60px 30px;
    background: #fff;
}

.customer-reviews-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reviews Summary */
.reviews-summary {
    text-align: center;
}

.reviews-summary h3 {
    color: var(--Primary);
    text-align: center;
    /* Display/semiBold-5 */
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 48px */
    letter-spacing: -0.8px;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    justify-content: center;
}

.rating-number {
    color: var(--color-primary);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 25.6px;
    /* 160% */
}

.overall-rating .stars {
    display: flex;
    gap: 5px;
}

.overall-rating .stars i {
    color: #FFC800;
    font-size: 12px;
}

.based-on {
    color: #686868;
    font-size: 16px;
    margin: 0;
}

/* Reviews Header */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.sort-select {
    padding: 10px 30px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.sort-select:hover {
    border-color: var(--color-primary);
}

.write-review-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-btn:hover {
    background: #90090C;
    color: #fff;
    transform: translateY(-2px);
}

    .write-review-btn.edit-mode {
        background: #622F2B;
        border: none;
        color: white;
    }

/*.write-review-btn.edit-mode:hover {
    background: #90090C;
    color: #fff;
}*/

.delete-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fffafa;
    color: #dc3545;
    border: 1px solid #ffc1c1;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-review-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding: 25px;
    background: #FAFAFA;
    border-radius: 16px;
    border: 1px solid #EFEFEF;
    transition: all 0.3s ease;
}

.review-item:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.reviewer-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.reviewer-title {
    font-size: 14px;
    color: #686868;
    margin: 0;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-rating {
    margin-bottom: 12px;
}

.review-rating .stars {
    display: flex;
    gap: 4px;
}

.review-rating .stars i {
    color: #FFC800;
    font-size: 16px;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
    font-style: italic;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.page-number.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-dots {
    color: #999;
    font-size: 16px;
    padding: 0 5px;
}

#modalProductSummary {
    border: 1px solid #eee;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
}

#modalProductImg {
    border-radius: 6px;
    background: white;
    padding: 4px;
    border: 1px solid #eee;
}

#modalProductName {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.review-modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--color-primary);
    color: white;
}

.modal-body {
    padding: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 8px;
}

.rating-stars i {
    font-size: 24px;
    color: #FFC800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Image Upload */
.image-upload-container {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: var(--color-primary);
    background: #fff9f9;
}

.image-upload-area i {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.image-upload-area p {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px 0;
}

.image-upload-area span {
    font-size: 12px;
    color: #999;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.cancel-btn,
.submit-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

.submit-btn {
    background: var(--color-primary);
    color: white;
}

.submit-btn:hover {
    background: #78070a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(144, 9, 12, 0.3);
}

.customer-reviews-section {
    padding: 60px 0;
}




/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .reviews-summary {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .overall-rating {
        justify-content: center;
    }

    .reviews-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-by {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .write-review-btn {
        width: 100%;
        justify-content: center;
    }

    .pagination-container {
/*        flex-direction: column;
*/        align-items: center;
    }
}

@media (max-width: 576px) {
    .customer-reviews-section {
        padding: 40px 22px;
    }

    .reviews-summary h3 {
        font-size: 24px;
        color: var(--color-primary);
    }

    .sort-by {
        display: flex;
        flex-direction: column;
    }

    .overall-rating .stars i {
        font-size: 14px;
    }

    .reviewer-info {
        flex-direction: column;
    }

    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .page-number {
        width: 35px;
        height: 35px;
    }

    .modal-content {
        width: 95%;
    }

    .form-actions {
        flex-direction: column;
    }

    .cancel-btn,
    .submit-btn {
        width: 100%;
    }
}

/* Review Pagination Styling */
.pagination-container {
    /*padding: 30px 0;
    border-top: 1px solid #eee;*/
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff9f9;
}

.page-number.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(144, 9, 12, 0.2);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #ccc;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fdfdfd;
}

.pagination-btn i {
    font-size: 14px;
}



/* *************************************************** */
/* Review Item with Compact 30-70 Split Layout */
.review-item.compact-split {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    min-height: 300px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.review-item.compact-split:hover {
    box-shadow: 0 15px 35px rgba(98, 47, 43, 0.08);
    transform: translateY(-4px);
    border-color: rgba(98, 47, 43, 0.2);
}

/* Meta Sidebar (30%) */
.review-meta-sidebar {
    flex: 0 0 30%;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #eef0f2;
    gap: 15px;
    position: relative;
}

.review-meta-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--Primary-500, #622F2B);
    opacity: 0.7;
}

/* Content Body (70%) */
.review-content-body {
    flex: 1;
    padding: 15px 25px;
    background: white;
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 2px 0;
}

.reviewer-verified {
    font-size: 11px;
    color: #ffffff;
    background: #1a7c33;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(26, 124, 51, 0.2);
}

.review-stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-stats .stars i {
    color: #ffb800;
    font-size: 14px;
}

.rating-text {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.review-age {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.review-subject-heading {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.review-narrative {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    font-style: italic;
    transition: all 0.3s ease;
}

.review-narrative.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-narrative-container {
    position: relative;
    margin-bottom: 5px;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    color: #78070a;
    text-decoration: none;
}


.review-images {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.review-thumb {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #f1f3f5;
    position: relative;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.review-thumb.review-video-thumb {
    background: #000;
}

.review-thumb.review-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.review-thumb.review-video-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

/* Skeleton loader / Placeholder */
.review-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 50%, #f1f3f5 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    z-index: 1;
}

.review-thumb.loaded::after {
    display: none;
}

.review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.review-thumb.loaded img {
    opacity: 1;
    transform: scale(1);
}

.review-thumb:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Stacking */
@media (max-width: 768px) {
    .review-item.compact-split {
        flex-direction: column;
    }

    .review-meta-sidebar {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eef0f2;
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .review-meta-sidebar::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
    }

    .review-content-body {
        padding: 20px;
    }
}

.reviewer-left .reviewer-title {
    font-size: 12px;
    color: #686868;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 30px;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 10px;
}

.review-content {
    flex: 1;
    min-width: 0;
    border-left: 1px solid #80808061;
    padding-left: 26px;
}

.review-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-content .review-rating {
    margin-bottom: 0;
}

.review-content .review-date {
    font-size: 14px;
    color: #999;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 30px;
    white-space: nowrap;
}

.review-content .review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    margin: 0;
    font-style: italic;
}

/* Hide old reviewer-info styles when using new layout */
.review-item .reviewer-info {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .review-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .reviewer-left {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 15px;
    }

    .review-meta-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ************************************************************** */

.our-bestseller {
    margin-top: 0 !important;
    background-color: var(--color-white) !important;
    padding-top: 0 !important;
}

/* restore rule previously removed during refactor */
.product-card .quantity-control {
    display: flex;
    height: auto;
    justify-content: space-between;
    align-items: center;
    flex: 0;
    border-radius: 6px;
    border: 2px solid #622F2B;
    background: #FFF;
}

/* *************************************************************** */

/* Hide accidental Swiper arrows in product gallery - Aggressive */
.product-details-wrapper .swiper-button-next,
.product-details-wrapper .swiper-button-prev,
.product-details-wrapper .swiper-button-next::after,
.product-details-wrapper .swiper-button-prev::after,
.product-details-wrapper .main-image-container .swiper-button-next,
.product-details-wrapper .main-image-container .swiper-button-prev {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ********************************************************************** */

/* Recommended products section styling to match our-bestseller */
.recommended-section {
    margin-top: 0 !important;
    background-color: var(--color-white) !important;
    padding-top: 0 !important;
}

.recommended-section .heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    position: relative;
}

.recommended-section .heading h3 {
    color: var(--color-primary);
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.8px;
}

.recommended-section .swiper-nav-buttons {
    display: flex;
    gap: 30px;
    margin-left: 20px;
    align-items: center;
}

.recommended-section .button-wrapper {
    display: flex;
    gap: 10px;
}

.recommended-section .view-all {
    color: var(--color-primary);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.2px;
    text-decoration: none;
}

.recommended-section .swiper-button-next,
.recommended-section .swiper-button-prev {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 0;
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
}

.recommended-section .swiper-button-next:hover,
.recommended-section .swiper-button-prev:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.recommended-section .swiper-button-next svg path,
.recommended-section .swiper-button-prev svg path {
    stroke: currentColor;
}

.recommended-section .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 20px;
}

.recommended-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.recommended-section .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 767px) {
    .recommended-section .heading {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .recommended-section .heading h3 {
        font-size: 28px;
        text-align: center;
    }

    .recommended-section .swiper-nav-buttons {
        gap: 15px;
    }

    .recommended-section .button-wrapper {
        display: none;
    }
}

/* Review images styling - Modernized Layouts */
.review-content-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-media-featured {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-media-featured img,
.review-media-featured video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media-grid-2 {
    display: flex;
    gap: 8px;
    width: auto;
}

.review-media-grid-2 .review-thumb {
    width: 80px;
    height: 80px;
    flex: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.review-media-slider-container {
    width: 100%;
    position: relative;
    padding-bottom: 25px;
}

.review-media-swiper {
    width: 100%;
    overflow: hidden;
}

.review-media-swiper .swiper-slide {
    width: 100px;
}

.review-media-swiper .review-thumb {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.review-thumb {
    position: relative;
    background: #f1f3f5;
}

.review-thumb img,
.review-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-video-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    z-index: 5;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.pagination-review-media {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.pagination-review-media .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* Magnific Popup custom styling */
.mfp-bg {
    background: rgba(0, 0, 0, 0.9);
}

.mfp-title {
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.mfp-arrow-right::after,
.mfp-arrow-right::before {
    border-left-color: #fff;
}

.mfp-arrow-left::after,
.mfp-arrow-left::before {
    border-right-color: #fff;
}

.mfp-close {
    color: #fff !important;
    font-size: 40px;
}

/* *********************************************************************** */