/* Updated Shop Page Styles */

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Overrides */
.header-menu.fixed {
    background-color: #000 !important;
}

.header-menu .menu-main ul li a::before,
.header-menu .menu-main ul li .link::before {
    background-color: #fff !important;
}

.menu-main>ul>li.group:hover .mega-menu.kids-mega-menu {
    transform: translateX(-50%) scaleY(1) !important;
}

.menu-main>ul>li.group .mega-menu.kids-mega-menu {
    transform: translateX(-50%) scaleY(0) !important;
    transform-origin: top center;
}

#top-nav {
    background-color: #333333 !important;
}

/* Container Adjustment for Header */
.main-content-wrapper {
    padding-top: 80px;
    /* Space for fixed header */
    background-color: #f1f3f6;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    min-height: calc(100vh - 130px);
}

/* Left Column - Images */
.left-col {
    width: 40%;
    padding: 16px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    min-width: 416px;
}

.image-gallery {
    display: flex;
    height: 450px;
}

.thumbnail-list {
    width: 90px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.thumbnail {
    width: 90px;
    height: 106px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.thumbnail.active {
    border: 2px solid #2874f0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-image-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #f0f0f0;
    margin-left: 10px;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c2c2c2;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wishlist-icon.active i,
.add-wishlist-btn.active i,
.add-wishlist-btn-dynamic.active i {
    color: #FF4848 !important;
}

.wishlist-icon.active,
.add-wishlist-btn.active,
.add-wishlist-btn-dynamic.active {
    background-color: #fff !important;
    /* Keep circle white */
    border-color: #e0e0e0 !important;
}

/* Ensure dynamic buttons on product cards also stay white */
.add-wishlist-btn-dynamic.active,
.wishlist-icon.active {
    background-color: #fff !important;
}

.add-wishlist-btn-dynamic:hover,
.wishlist-icon:hover {
    background-color: #000 !important;
    color: #fff !important;
}

.add-wishlist-btn-dynamic.active:hover,
.wishlist-icon.active:hover {
    background-color: #fff !important;
    /* Keep it white to show red heart clearly */
}

/* Cart Button States */
.add-cart-btn-dynamic:hover,
.btn-cart:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.add-cart-btn-dynamic.added,
.btn-cart.added {
    background-color: #fff !important;
    color: #22C55E !important;
    border: 1px solid #22C55E !important;
    pointer-events: none;
    /* Prevent double adding if already in cart */
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    height: 52px;
    border: 1px solid #000;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-cart {
    background: #000;
    color: #fff;
}

.btn-cart:hover {
    background: #fff;
    color: #000;
}

.btn-buy {
    background: #fff;
    color: #000;
}

.btn-buy:hover {
    background: #000;
    color: #fff;
}

/* Right Column - Details */
.right-col {
    flex-grow: 1;
    padding: 24px;
    padding-left: 24px;
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid #f0f0f0;
    /* Optional separator */
}

.breadcrumbs {
    color: #878787;
    font-size: 12px;
    margin-bottom: 10px;
}

.breadcrumbs span {
    margin: 0 5px;
}

.actions-top {
    float: right;
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
}

.product-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #212121;
}

.ratings-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    /* Prevent overlap by allowing wrap if needed */
}

.rating-count {
    color: #878787;
    font-weight: 500;
    white-space: nowrap;
    /* Keep the count on one line */
}

.rating-badge {
    background: #388e3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 4px 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-count {
    color: #878787;
    font-weight: 500;
}

.assured-logo {
    height: 21px;
    width: 77px;
    /* Approximation */
    background: #fff;
    /* Placeholder */
    color: #2874f0;
    font-weight: 500;
    font-style: italic;
    display: flex;
    /* Placeholder flex */
    align-items: center;
}

.price-section {
    margin-bottom: 15px;
}

.special-price-label {
    color: #388e3c;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.current-price {
    font-size: 28px;
    font-weight: 500;
    color: #212121;
}

.original-price {
    font-size: 16px;
    color: #878787;
    text-decoration: line-through;
}

.discount {
    color: #388e3c;
    font-size: 16px;
    font-weight: 500;
}

.packaging-fee {
    font-size: 12px;
    color: #212121;
    margin-top: 5px;
}

.packaging-fee a {
    color: #2874f0;
    text-decoration: none;
    font-weight: 500;
}

/* Offers */
.offers-section {
    margin-bottom: 24px;
}

.section-heading {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #212121;
}

.offer-list {
    list-style: none;
}

.offer-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    align-items: flex-start;
}

.offer-icon {
    color: #16bd49;
    /* Green tag icon color */
    margin-top: 2px;
    font-size: 14px;
    font-weight: bold;
}

.offer-text {
    color: #212121;
}

.offer-text a {
    color: #2874f0;
    text-decoration: none;
    font-weight: 500;
}

/* Utility */
.svg-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.weight-list {
    margin: 0;
    padding-left: 16px;
    font-size: 14px;
}

.weight-list li {
    margin-bottom: 4px;
}

.weight-options {
    display: flex;
    gap: 10px;
}

.weight-box {
    padding: 8px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.weight-box:hover {
    border-color: #2874f0;
}

.weight-box.selected {
    border-color: #2874f0;
    color: #2874f0;
    font-weight: 600;
}

.size-chart-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.size-chart-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 6px;
    position: relative;
}

.size-chart-content h3 {
    margin-top: 0;
}

.size-chart-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.size-chart-content th,
.size-chart-content td {
    border: 1px solid #ddd;
    padding: 8px;
    font-size: 14px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
}

.buy-together-box {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 50px;
}

.bt-header {
    font-size: 24px;
    font-weight: 500;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #212121;
}

.bt-content {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.bt-item {
    width: 32%;
    position: relative;
}

.bt-checkbox {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #c2c2c2;
    border-radius: 2px;
    cursor: pointer;
}

.bt-plus {
    color: #c2c2c2;
    font-size: 30px;
    font-weight: 300;
    margin-top: 60px;
    /* Align with image center roughly */
}

.bt-image-box {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.bt-image-box img {
    max-height: 100%;
    max-width: 100%;
}

.bt-title {
    display: block;
    color: #2874f0;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.4;
}

.bt-title:hover {
    text-decoration: underline;
}

.bt-rating {
    background: #388e3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
}

.bt-rating-count {
    color: #878787;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.bt-price-row {
    margin-top: 5px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.bt-price {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
}

.bt-mrp {
    color: #878787;
    text-decoration: line-through;
    font-size: 12px;
}

.bt-off {
    color: #388e3c;
    font-size: 12px;
    font-weight: 500;
}

.bt-special-msg {
    color: #388e3c;
    font-size: 12px;
    margin-top: 5px;
}

.bt-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bt-footer-text {
    font-size: 14px;
    color: #212121;
    font-weight: 500;
}

.bt-add-btn {
    background: #878787;
    /* Disabled grey color from screenshot */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 2px;
    cursor: not-allowed;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-box {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 16px 0;
}

.specs-header {
    font-size: 18px;
    font-weight: 600;
    padding: 0 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 18px;
    color: #555;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f0f0f0;
}

.highlight-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.highlight-key {
    font-size: 13px;
    color: #878787;
    margin-bottom: 4px;
}

.highlight-val {
    font-size: 14px;
    color: #212121;
    line-height: 1.4;
}

/* Quantity Selection Styles */
.quantity-section {
    margin-bottom: 24px;
}

.quantity-header {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 12px;
}

.quantity-header span {
    font-weight: 400;
    margin-left: 4px;
}

.quantity-options-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.quantity-option-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quantity-box {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #212121;
    min-width: 140px;
    text-align: center;
}

.quantity-box.selected {
    background: #212121;
    color: #fff;
    border-color: #212121;
}

/* Hover effect for non-selected items */
.quantity-box:not(.selected):hover {
    border-color: #212121;
}

.quantity-price {
    font-size: 14px;
    color: #878787;
    font-weight: 400;
}

.quantity-skeleton {
    width: 140px;
    height: 50px;
    border-radius: 8px;
}


/* Details Table Styles */
.details-table {
    margin-top: 24px;
    display: table;
    width: 100%;
    border-spacing: 0 16px;
}

.details-row {
    display: table-row;
}

.details-label {
    display: table-cell;
    width: 110px;
    color: #878787;
    font-weight: 500;
    vertical-align: top;
    padding-right: 10px;
}

.details-value {
    display: table-cell;
    color: #212121;
    vertical-align: top;
}

/* Logo box for warranty */
.brand-warranty {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-box {
    width: 60px;
    height: 30px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

/* Color options */
.color-options {
    display: flex;
    gap: 10px;
}

.color-thumb {
    width: 50px;
    height: 50px;
    padding: 2px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.color-thumb.selected {
    border: 2px solid #2874f0;
}

.color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Delivery Input */
.delivery-check {
    border-bottom: 2px solid #2874f0;
    display: inline-flex;
    align-items: center;
    width: 250px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.delivery-input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    font-family: inherit;
}

.check-btn {
    color: #2874f0;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.pincode-tooltip {
    background: #212121;
    color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    font-size: 12px;
    margin-left: 10px;
    position: relative;
    display: inline-block;
}

.pincode-tooltip::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent #212121 transparent transparent;
}

/* Specs List */
.specs-list {
    list-style: none;
}

.specs-list li {
    margin-bottom: 8px;
    color: #212121;
    position: relative;
    padding-left: 15px;
}

.specs-list li::before {
    content: '•';
    color: #c2c2c2;
    position: absolute;
    left: 0;
}

.flex-row {
    display: flex;
    gap: 40px;
}

/* Product Description Box */
.product-desc-box {
    margin-top: 24px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 2px;
}

.desc-header {
    font-size: 24px;
    font-weight: 500;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #212121;
}

.desc-row {
    display: flex;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    gap: 20px;
}

.desc-row:last-child {
    border-bottom: none;
}

.desc-text-col {
    flex: 1;
}

.desc-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: #212121;
    font-weight: 400;
}

.desc-content {
    font-size: 14px;
    color: #212121;
    line-height: 1.5;
}

.desc-img-col {
    width: 150px;
    flex-shrink: 0;
}

.desc-img-col img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.view-all-features {
    display: block;
    padding: 24px;
    color: #2874f0;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
}

/* Specifications Box */
.specs-box {
    margin-top: 24px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 2px;
    margin-bottom: 50px;
    /* Extra space at bottom */
}

.specs-header {
    font-size: 24px;
    font-weight: 500;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #212121;
}

.spec-section {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.spec-section-title {
    font-size: 18px;
    color: #212121;
    margin-bottom: 16px;
    font-weight: 400;
}

.spec-table {
    display: table;
    width: 100%;
    border-spacing: 0 10px;
}

.spec-row {
    display: table-row;
}

.spec-key {
    display: table-cell;
    width: 25%;
    color: #878787;
    font-size: 14px;
    vertical-align: top;
}

.spec-val {
    display: table-cell;
    color: #212121;
    font-size: 14px;
    vertical-align: top;
}

.read-more {
    display: block;
    padding: 24px;
    color: #2874f0;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}

.qa-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 50px;
}

.qa-header {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-title {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
}

.qa-search-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    fill: #212121;
}

.qa-item {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.qa-row {
    margin-bottom: 8px;
    font-size: 14px;
    color: #212121;
    display: flex;
    align-items: flex-start;
}

.qa-prefix {
    font-weight: 700;
    margin-right: 5px;
    flex-shrink: 0;
}

.qa-content {
    line-height: 1.4;
}

.qa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: #878787;
}

.qa-author {
    font-weight: 500;
    margin-bottom: 4px;
}

.qa-actions {
    display: flex;
    gap: 20px;
}

.qa-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.qa-action-btn svg {
    width: 16px;
    height: 16px;
    fill: #c2c2c2;
}

.qa-chevron {
    cursor: pointer;
    fill: #878787;
    width: 12px;
    height: 12px;
    margin-left: 10px;
}

.all-questions {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.all-questions a {
    color: #2874f0;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
}


.ratings-box {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    margin-bottom: 50px;
}

.ratings-header-row {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ratings-title {
    font-size: 24px;
    font-weight: 500;
    color: #212121;
}

.rate-btn {
    background: #fff;
    border: 1px solid #ccc;
    /* Slightly darker border */
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-summary {
    padding: 24px;
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.big-rating-col {
    width: 15%;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    padding-right: 20px;
}

.big-star {
    font-size: 48px;
    font-weight: 400;
    color: #212121;
}

.big-star span {
    font-size: 32px;
}

.total-review-text {
    font-size: 14px;
    color: #878787;
    margin-top: 5px;
}

.bars-col {
    width: 35%;
    padding: 0 40px;
    border-right: 1px solid #f0f0f0;
}

.bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 12px;
    color: #212121;
}

.bar-bg {
    flex-grow: 1;
    height: 5px;
    background: #f0f0f0;
    margin: 0 15px;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 5px;
}

.bar-fill.green {
    background: #388e3c;
}

.bar-fill.yellow {
    background: #ff9f00;
}

.bar-fill.red {
    background: #ff6161;
}

.circles-col {
    flex-grow: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 20px;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-chart {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
}

/* Conic gradient borders */
.c-44 {
    background: conic-gradient(#388e3c 0% 88%, #e0e0e0 88% 100%);
}

.c-42 {
    background: conic-gradient(#388e3c 0% 84%, #e0e0e0 84% 100%);
}

.circle-chart::before {
    content: '';
    position: absolute;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
}

.circle-chart span {
    position: relative;
    z-index: 1;
}

.circle-label {
    font-size: 14px;
    color: #212121;
}

/* Image Gallery */
.review-images-row {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.review-thumb {
    width: 72px;
    height: 72px;
    border-radius: 2px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.last-thumb {
    position: relative;
}

.last-thumb::after {
    content: '+ 180';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
}

/* Review Item */
.review-item {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-star-badge {
    background: #388e3c;
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 2px;
    font-weight: 500;
}

.review-title {
    font-weight: 500;
    font-size: 14px;
    color: #212121;
}

.review-body {
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
    margin-bottom: 12px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #878787;
}

.reviewer-name {
    font-weight: 500;
    margin-right: 8px;
    color: #212121;
    /* Slightly darker */
}

.check-icon {
    font-size: 10px;
    background: #878787;
    color: #fff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.review-action-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-action-btn svg {
    width: 14px;
    height: 14px;
    fill: #c2c2c2;
}

/* FULL WIDTH SUMMARY */
.rating-summary-full {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/* LEFT SIDE */
.rating-summary-left {
    display: flex;
    gap: 40px;
    flex: 1;
}

/* BIG RATING */
.big-rating-col {
    min-width: 180px;
}

.big-star {
    font-size: 42px;
    font-weight: 600;
}

.big-star span {
    font-size: 28px;
}

.total-review-text {
    font-size: 14px;
    color: #878787;
    margin-top: 6px;
}

/* BARS */
.bars-col {
    flex: 1;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}

.bar-bg {
    flex: 1;
    height: 6px;
    background: #f0f0f0;
    border-radius: 4px;
}

.bar-fill {
    height: 100%;
    background: #388e3c;
    /* Default green for bars */
    border-radius: 4px;
    transition: width 0.3s ease;
}

.green {
    background: #388e3c;
}

.yellow {
    background: #ff9f00;
}

.red {
    background: #ff6161;
}

.count {
    width: 60px;
    text-align: right;
    color: #878787;
}

/* RIGHT BUTTON */
.rating-summary-right {
    margin-left: 30px;
}

.rate-btn {
    padding: 10px 18px;
    border: 1px solid #d0d0d0;
    background: #fff;
    font-weight: 500;
    cursor: pointer;
}

/* IMAGES ROW */
.review-images-row {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.review-images-row img,
.more-images {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
}

.more-images {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Review Modal Styles (Design-First) */
.review-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.review-modal .modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.review-modal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #efefef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
}

.review-modal .modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.review-modal .close-review-modal {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.review-modal .modal-body {
    padding: 24px;
}

.star-rating-input {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.star-rating-input i {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-rating-input i.active,
.star-rating-input i.hover {
    color: #ff9f00;
    transform: scale(1.1);
}

.review-modal textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.review-modal textarea:focus {
    border-color: #000;
    outline: none;
}

.photo-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f9f9f9;
    border: 1.5px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.photo-upload-label:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

#photoPreviewContainer {
    position: relative;
    display: inline-block;
}

#removePhoto {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

/* Related Products Carousel Styles */
.buy-together-dynamic {
    background: #fff;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 24px;
    text-align: left;
}

.buy-together-dynamic .bt-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    color: #212121;
}

.related-carousel-container {
    position: relative;
    padding: 0 40px;
    overflow: hidden;
}

.related-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.bt-card {
    min-width: 200px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 12px;
    transition: box-shadow 0.3s;
}

.bt-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#relatedPrevBtn,
#relatedNextBtn {
    transition: all 0.3s;
    opacity: 0.8;
}

#relatedPrevBtn:hover,
#relatedNextBtn:hover {
    opacity: 1;
    background: #f0f0f0;
    border-color: #bbb;
}

#relatedPrevBtn:active,
#relatedNextBtn:active {
    transform: translateY(-50%) scale(0.95);
}

.related-carousel-container {
    padding: 0 40px;
    position: relative;
    overflow: hidden;
}

.related-slider {
    display: flex;
    transition: transform 0.4s ease-out;
    gap: 20px;
}

/* Reviews Redesign Styles */
.review-images-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 5px;
    flex-wrap: nowrap;
    border-bottom: 1px solid #f0f0f0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.review-images-row::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.review-images-row.grid-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    overflow-x: visible;
}

.review-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.review-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-thumb.last-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.review-item {
    padding: 30px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
}

.review-body {
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-star-badge {
    background: #388e3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.review-user-inline {
    font-weight: 600;
    font-size: 14px;
    color: #212121;
}

/* Photo Viewer Modal */
.review-photo-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.review-photo-viewer.open {
    display: flex;
}

.viewer-content {
    max-width: 800px;
    width: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.viewer-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.viewer-counter {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.viewer-nav:hover {
    background: #222;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.viewer-prev {
    left: 20px;
}

.viewer-next {
    right: 20px;
}

.viewer-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.close-viewer {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    transition: all 0.2s;
}

.close-viewer:hover {
    background: #fff;
    transform: rotate(90deg);
}

.viewer-img-box {
    width: 100%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 70vh;
}

.viewer-img-box img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.viewer-text-box {
    padding: 20px;
    max-height: 20vh;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
}

.viewer-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

/* Skeletons for reviews */
.skeleton-review-thumb {
    width: 100px;
    height: 100px;
    background: #eee;
    border-radius: 4px;
}

.skeleton-badge {
    width: 40px;
    height: 20px;
    background: #eee;
    border-radius: 3px;
}

/* responsive */
@media (max-width: 991px) {
    .main-content-wrapper {
        padding-top: 56px;
        /* Match header height */
    }

    .product-container {
        flex-direction: column;
        min-height: auto;
    }

    .left-col {
        width: 100%;
        min-width: 100%;
        padding: 10px;
        position: static;
    }

    .image-gallery {
        flex-direction: column-reverse;
        /* Thumbnails below main image */
        height: auto;
    }

    .thumbnail-list {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
        gap: 8px;
        scrollbar-width: none;
    }

    .thumbnail-list::-webkit-scrollbar {
        display: none;
    }

    .thumbnail {
        width: 70px;
        height: 80px;
        flex-shrink: 0;
    }

    .main-image-wrapper {
        width: 100%;
        height: 350px;
        margin-left: 0;
        margin-bottom: 0;
    }

    .action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px;
        margin-top: 0;
        z-index: 500;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        gap: 8px;
        display: flex;
    }

    .btn {
        height: 48px;
        font-size: 14px;
        flex: 1;
    }

    .right-col {
        padding: 16px;
        padding-bottom: 100px;
        height: auto;
        overflow-y: visible;
        border-left: none;
        width: 100%;
    }

    .product-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .current-price {
        font-size: 22px;
    }

    .quantity-options-wrapper {
        flex-wrap: wrap;
        gap: 10px;
    }

    .quantity-box {
        min-width: calc(50% - 5px);
        padding: 10px 14px;
        font-size: 14px;
    }

    .details-table {
        margin-top: 15px;
        display: block;
    }

    .details-row {
        display: block;
        margin-bottom: 20px;
    }

    .details-label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        font-weight: 700;
        font-size: 14px;
    }

    .details-value {
        display: block;
        font-size: 13px;
    }

    .flex-row {
        flex-direction: column;
        gap: 15px;
    }

    .desc-header,
    .specs-header,
    .bt-header,
    .ratings-title {
        font-size: 18px;
        padding: 15px;
    }

    .desc-row {
        flex-direction: column;
        padding: 15px;
        text-align: left;
    }

    .desc-img-col {
        width: 100%;
        max-width: 200px;
        margin: 15px 0;
        order: -1;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        padding: 10px 15px;
    }

    .rating-summary-full {
        flex-direction: column;
        padding: 15px 0;
    }

    .rating-summary-left {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .big-rating-col {
        width: 100%;
        text-align: center;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }

    .bars-col {
        width: 100%;
        padding: 0;
        border-right: none;
    }

    .rate-btn {
        width: 100%;
        margin-top: 15px;
        margin-left: 0;
    }

    .review-images-row img,
    .more-images,
    .skeleton-review-thumb {
        width: 65px;
        height: 65px;
    }

    .review-item {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .main-image-wrapper {
        height: 300px;
    }

    .quantity-box {
        min-width: 100%;
    }

    .action-buttons {
        padding: 8px;
    }

    .btn {
        height: 48px;
        font-size: 13px;
    }
}