/* ==========================================================================
   ThriftedWear — Modern Shop Toolbar, Filter Drawer, Product Cards,
   Single Product Swatches, Customer Reviews, Cart & Checkout (woocommerce.css v3.2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Product Grid & Card (Top-Right Hover Cart Icon ONLY, Medium Typography)
   ----------------------------------------------------------------------- */
.products-grid,
ul.products {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.2vw, 28px);
    margin: 0;
    padding: 0;
}

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

.products-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.products-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.luxury-product-card,
ul.products li.product {
    display: flex;
    flex-direction: column;
}

.product-card-media {
    position: relative;
    aspect-ratio: 3 / 4;
    background-color: var(--tw-surface);
    overflow: hidden;
    margin-bottom: 13px;
}

.product-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-image {
    position: absolute;
    inset: 0;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--tw-ease), opacity 0.45s ease;
}

.product-card-image.secondary-image {
    opacity: 0;
}

.luxury-product-card:hover .product-card-image.secondary-image {
    opacity: 1;
}

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

.product-badges,
.gallery-floating-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    pointer-events: none;
}

.badge {
    display: inline-block;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    border-radius: 2px;
}

.badge-premium {
    background-color: var(--tw-green);
    color: var(--tw-white);
}

.badge-used {
    background-color: var(--tw-black);
    color: var(--tw-white);
}

.badge-sale {
    background-color: var(--tw-white);
    color: var(--tw-green);
    border: 1px solid var(--tw-green);
}

.badge-sold-out {
    background-color: rgba(0, 0, 0, 0.72);
    color: var(--tw-white);
}

/* Top-Right Floating Cart Icon ONLY on Hover (No Bottom "View Piece" Bar) */
.product-card-cart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 38px;
    height: 38px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: var(--tw-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.luxury-product-card:hover .product-card-cart-btn,
.product-card-cart-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card-cart-btn:hover {
    background-color: var(--tw-green);
    border-color: var(--tw-green);
    color: var(--tw-white);
}

/* Sequence: 2. Name -> 3. Reviews (if rated) -> 4. Price */
.product-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-title {
    font-family: var(--tw-font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42;
    letter-spacing: 0;
    margin: 0;
    color: var(--tw-black);
}

.product-card-title a:hover {
    color: var(--tw-green);
}

.product-card-reviews {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--tw-muted);
}

.product-card-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--tw-black);
}

.product-card-price del {
    color: #9A9A9A;
    font-weight: 400;
    margin-right: 6px;
}

.product-card-price ins {
    text-decoration: none;
    color: var(--tw-green);
}

@media (max-width: 1024px) {
    .products-grid,
    ul.products,
    .products-grid.columns-3,
    .products-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card-cart-btn {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   2. Offcanvas Cart Drawer Internals
   ----------------------------------------------------------------------- */
.cart-free-shipping-strip {
    background-color: var(--tw-surface-2);
    color: var(--tw-green);
    padding: 10px 24px;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--tw-border);
}

.offcanvas-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty-state {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.cart-empty-icon {
    color: var(--tw-muted);
    margin-bottom: 14px;
}

.cart-empty-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-empty-desc {
    font-size: 13.5px;
    color: var(--tw-muted);
    margin-bottom: 22px;
}

.cart-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--tw-border-subtle);
}

.cart-item-thumb {
    width: 74px;
    height: 96px;
    background: var(--tw-surface);
    overflow: hidden;
}

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

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-name {
    font-family: var(--tw-font-sans);
    font-size: 13.5px;
    font-weight: 500;
    margin: 0 0 4px;
}

.cart-item-remove {
    color: var(--tw-muted);
    padding: 2px;
}

.cart-item-remove:hover {
    color: var(--tw-black);
}

.cart-item-condition {
    display: inline-block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tw-green);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tw-border);
    height: 30px;
}

.quantity-stepper .qty-btn {
    width: 28px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-stepper .qty-input {
    width: 30px;
    border: 0;
    text-align: center;
    font-size: 12.5px;
    background: transparent;
    -moz-appearance: textfield;
}

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

.cart-item-price {
    font-size: 13.5px;
    font-weight: 500;
}

.offcanvas-cart-footer {
    border-top: 1px solid var(--tw-border);
    padding: 20px 24px;
    background: var(--tw-white);
}

.cart-subtotal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.subtotal-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.subtotal-amount {
    font-size: 17px;
    font-weight: 500;
}

.cart-shipping-note {
    font-size: 12px;
    color: var(--tw-muted);
    margin-bottom: 16px;
}

.cart-drawer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   3. Modernized Shop Page Toolbar, Quick Facet Chips & Slide-Out Refine Drawer
   ----------------------------------------------------------------------- */
.shop-hero-header {
    background-color: var(--tw-surface);
    border-bottom: 1px solid var(--tw-border);
    padding-block: clamp(32px, 4.2vw, 48px);
}

.shop-title {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 500;
    margin: 0;
}

.shop-main-layout {
    padding-block: 26px 68px;
}

.modern-shop-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 14px;
    margin-bottom: 28px;
    border-top: 1px solid var(--tw-border);
    border-bottom: 1px solid var(--tw-border);
}

.shop-bar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-modern-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background-color: var(--tw-black);
    color: var(--tw-white);
    border: 1px solid var(--tw-black);
    border-radius: 2px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.btn-modern-filter:hover {
    background-color: var(--tw-green);
    border-color: var(--tw-green);
}

.filter-count-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background-color: var(--tw-green);
    color: var(--tw-white);
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

.quick-facet-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.facet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--tw-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tw-muted);
    background-color: var(--tw-white);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.facet-chip:hover {
    border-color: var(--tw-black);
    color: var(--tw-black);
}

.facet-chip.is-active {
    background-color: var(--tw-surface-2);
    border-color: var(--tw-green);
    color: var(--tw-green);
}

.chip-soon-tag {
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tw-green);
}

.shop-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.modern-piece-count {
    font-size: 12.5px;
    color: var(--tw-muted);
    white-space: nowrap;
}

/* Custom Modern Sort Popover Menu */
.modern-sort-dropdown {
    position: relative;
}

.modern-sort-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    background-color: var(--tw-white);
    font-size: 12px;
    font-weight: 500;
    color: var(--tw-black);
    transition: border-color 0.2s ease;
}

.modern-sort-trigger:hover,
.modern-sort-dropdown.is-open .modern-sort-trigger {
    border-color: var(--tw-black);
}

.sort-prefix {
    color: var(--tw-muted);
    font-weight: 400;
}

.sort-chevron {
    transition: transform 0.22s ease;
}

.modern-sort-dropdown.is-open .sort-chevron {
    transform: rotate(180deg);
}

.modern-sort-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 210px;
    background-color: var(--tw-white);
    border: 1px solid var(--tw-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.modern-sort-dropdown.is-open .modern-sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--tw-muted);
}

.sort-option-link:hover,
.sort-option-link.is-active {
    background-color: var(--tw-surface);
    color: var(--tw-black);
    font-weight: 500;
}

.sort-option-link.is-active svg {
    color: var(--tw-green);
}

/* Grid Density Switcher */
.shop-grid-switcher {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    overflow: hidden;
}

.grid-switch-btn {
    width: 34px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tw-muted);
    border-right: 1px solid var(--tw-border);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.grid-switch-btn:last-child {
    border-right: 0;
}

.grid-switch-btn:hover,
.grid-switch-btn.is-active {
    background-color: var(--tw-black);
    color: var(--tw-white);
}

/* Active Filter Pills */
.active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.active-filters-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tw-muted);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    border-radius: 999px;
    font-size: 12px;
}

.filter-pill:hover {
    border-color: var(--tw-black);
}

.clear-all-filters-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--tw-green);
    text-decoration: underline;
    margin-left: 6px;
}

/* Modern Slide-Out Refine Drawer (Desktop & Mobile) */
.shop-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(390px, 90vw);
    background-color: var(--tw-white);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.36s var(--tw-ease);
    border-right: 1px solid var(--tw-border);
}

.shop-filter-drawer.is-open {
    transform: translateX(0);
}

.filter-drawer-header {
    padding: 20px 26px;
    border-bottom: 1px solid var(--tw-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-drawer-eyebrow {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tw-green);
    margin-bottom: 2px;
}

.filter-drawer-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
}

.modern-filter-section {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tw-border-subtle);
}

.modern-filter-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.modern-filter-heading {
    font-family: var(--tw-font-sans);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--tw-muted);
    margin-bottom: 14px;
}

.drawer-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 15px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--tw-black);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.drawer-filter-chip:hover {
    border-color: var(--tw-black);
}

.drawer-filter-chip.is-active {
    background-color: var(--tw-black);
    border-color: var(--tw-black);
    color: var(--tw-white);
}

.drawer-chip-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-tier-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    font-size: 13.5px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drawer-tier-option:hover {
    border-color: var(--tw-black);
}

.drawer-tier-option.is-active {
    border-color: var(--tw-green);
    background-color: var(--tw-surface-2);
    font-weight: 500;
}

.drawer-tier-option.is-active svg {
    color: var(--tw-green);
}

.tier-option-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.price-preset-chips {
    margin-bottom: 16px;
}

.modern-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.price-input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    background-color: var(--tw-white);
}

.price-input-box:focus-within {
    border-color: var(--tw-black);
}

.currency-prefix {
    font-size: 12px;
    color: var(--tw-muted);
}

.price-input-box input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 13.5px;
}

.filter-drawer-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drawer-reset-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--tw-muted);
    text-decoration: underline;
}

.shop-no-products {
    text-align: center;
    padding: 64px 20px;
    border: 1px solid var(--tw-border);
}

/* Pagination */
.shop-pagination-wrapper,
.blog-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.woocommerce-pagination ul.page-numbers,
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-pagination ul.page-numbers a,
.woocommerce-pagination ul.page-numbers span,
.nav-links .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--tw-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.woocommerce-pagination ul.page-numbers span.current,
.nav-links .page-numbers.current {
    background-color: var(--tw-black);
    border-color: var(--tw-black);
    color: var(--tw-white);
}

@media (max-width: 900px) {
    .shop-grid-switcher {
        display: none;
    }

    .quick-facet-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        max-width: 100%;
        scrollbar-width: none;
    }

    .quick-facet-chips::-webkit-scrollbar {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   4. Single Product Page (Editorial Gallery + Modern Swatch Pills + Closed Accordions)
   ----------------------------------------------------------------------- */
.single-product-page-wrapper {
    padding-block: 28px 64px;
}

.single-product-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(32px, 4.5vw, 64px);
    align-items: start;
}

.product-gallery-column,
.product-summary-column {
    min-width: 0;
}

.product-gallery-container {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    position: sticky;
    top: 96px;
}

.product-gallery-container:not(:has(.gallery-thumbnails-strip)) {
    grid-template-columns: 1fr;
}

.gallery-thumbnails-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 640px;
    overflow-y: auto;
}

.gallery-thumb-btn {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid transparent;
    background: var(--tw-surface);
    overflow: hidden;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb-btn.active,
.gallery-thumb-btn:hover {
    opacity: 1;
    border-color: var(--tw-black);
}

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

.gallery-main-stage {
    position: relative;
    aspect-ratio: 3 / 4;
    background-color: var(--tw-surface);
    overflow: hidden;
}

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

/* Right Summary Column */
.single-product-title {
    font-size: clamp(28px, 3.1vw, 36px);
    font-weight: 500;
    margin-bottom: 10px;
}

.single-product-reviews-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.reviews-anchor-link {
    font-size: 13px;
    font-weight: 400;
    color: var(--tw-muted);
    text-decoration: underline;
}

.single-product-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tw-border);
}

.price-display {
    font-size: 22px;
    font-weight: 500;
    color: var(--tw-black);
}

.price-display del {
    color: #9A9A9A;
    font-weight: 400;
    font-size: 16px;
    margin-right: 8px;
}

.price-display ins {
    text-decoration: none;
    color: var(--tw-green);
}

.condition-verification-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    background-color: var(--tw-green-tint);
    color: var(--tw-green);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Modern Size / Attribute Swatch Pills (NO Dropdowns) */
.product-variations-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.variation-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.variation-label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--tw-muted);
}

.variation-selected-value {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tw-black);
}

.variation-swatch-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch-pill {
    min-width: 52px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    background-color: var(--tw-white);
    color: var(--tw-black);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.swatch-pill:hover {
    border-color: var(--tw-black);
}

.swatch-pill.is-active {
    background-color: var(--tw-black);
    border-color: var(--tw-black);
    color: var(--tw-white);
}

.tw-wc-hidden-select {
    display: none !important;
}

.single-product-short-desc {
    font-size: 14.5px;
    color: var(--tw-muted);
    margin-bottom: 22px;
}

.purchase-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.quantity-and-cart-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 12px;
}

.quantity-control-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    height: 46px;
}

.btn-qty-step {
    width: 38px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-qty-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    -moz-appearance: textfield;
}

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

.btn-add-bag {
    min-height: 46px;
}

.btn-buy-now {
    min-height: 46px;
    background-color: var(--tw-green);
    border-color: var(--tw-green);
    color: var(--tw-white);
}

.btn-buy-now:hover {
    background-color: var(--tw-black);
    border-color: var(--tw-black);
}

.product-out-of-stock-notice {
    padding: 16px 18px;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    font-size: 13.5px;
    margin-bottom: 20px;
}

.product-whatsapp-inquiry {
    margin-bottom: 24px;
}

.link-wa-ask {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tw-black);
}

.link-wa-ask:hover {
    color: var(--tw-green);
    text-decoration: underline;
}

/* Accordions (Product Page — Closed by Default + FAQ Page) */
.product-accordions-wrapper {
    border-top: 1px solid var(--tw-border);
}

.accordion-item {
    border-bottom: 1px solid var(--tw-border);
}

.accordion-toggle {
    width: 100%;
    padding: 17px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: left;
}

.accordion-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.accordion-icon {
    transition: transform 0.25s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-panel {
    display: none;
    padding-bottom: 20px;
}

.accordion-item.active .accordion-panel {
    display: block;
}

.panel-inner-content {
    font-size: 14px;
    color: var(--tw-muted);
}

.shipping-perks-list {
    padding-left: 18px;
}

.shipping-perks-list li {
    margin-bottom: 8px;
}

.sizing-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--tw-border-subtle);
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   5. Single Product Customer Reviews ("Write a Review" + Live Cards)
   ----------------------------------------------------------------------- */
.single-product-reviews-section,
.single-product-related-section {
    margin-top: clamp(56px, 7vw, 86px);
    padding-top: clamp(44px, 5vw, 62px);
    border-top: 1px solid var(--tw-border);
}

.reviews-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.reviews-summary-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.reviews-avg-text,
.reviews-empty-sub {
    font-size: 14px;
    color: var(--tw-muted);
}

/* Collapsible Write a Review Composer */
.write-review-panel {
    background-color: var(--tw-surface);
    border: 1px solid var(--tw-border);
    padding: clamp(24px, 3.5vw, 36px);
    margin-bottom: 32px;
}

.review-form-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--tw-border);
}

.review-form-heading {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.star-rating-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.picker-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tw-muted);
}

.picker-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-pick-btn {
    color: #CCCCCC;
    padding: 2px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-pick-btn.is-selected {
    color: var(--tw-green);
}

.star-pick-btn:hover {
    transform: scale(1.1);
}

.picker-rating-note {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tw-black);
}

.review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.review-field {
    margin-bottom: 16px;
}

.review-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tw-black);
    margin-bottom: 7px;
}

.review-field input,
.review-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--tw-border);
    border-radius: 2px;
    background-color: var(--tw-white);
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.review-field input:focus,
.review-field textarea:focus {
    border-color: var(--tw-black);
}

.review-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.btn-cancel-review {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--tw-muted);
    text-decoration: underline;
}

.review-form-feedback {
    font-size: 13px;
    color: var(--tw-green);
}

.review-form-feedback.is-error {
    color: #B91C1C;
}

/* Customer Reviews Grid & Empty State */
.customer-reviews-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.customer-reviews-list.is-empty {
    grid-template-columns: 1fr;
}

.reviews-empty-card {
    padding: 36px 24px;
    border: 1px dashed var(--tw-border);
    text-align: center;
    color: var(--tw-muted);
    font-size: 14px;
}

.reviews-empty-card p {
    margin: 0;
}

.submitted-review-card {
    background-color: var(--tw-white);
    border: 1px solid var(--tw-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submitted-review-card.is-newly-added {
    border-color: var(--tw-green);
}

.submitted-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submitted-review-top .review-card-stars {
    margin-bottom: 0;
}

.submitted-review-date {
    font-size: 12px;
    color: var(--tw-muted);
}

.submitted-review-title {
    font-family: var(--tw-font-sans);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.submitted-review-body {
    font-size: 14px;
    color: var(--tw-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.submitted-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--tw-border-subtle);
}

.author-avatar-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--tw-surface-2);
    color: var(--tw-green);
    font-size: 12.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.related.products > h2 {
    display: none;
}

@media (max-width: 991px) {
    .single-product-main-grid,
    .customer-reviews-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-gallery-container {
        position: static;
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails-strip {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .gallery-thumb-btn {
        width: 68px;
        flex-shrink: 0;
    }

    .review-form-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   6. Cart & Checkout Pages
   ----------------------------------------------------------------------- */
.cart-page-title {
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 500;
    margin-bottom: 32px;
}

.cart-page-layout-grid,
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    align-items: start;
}

.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form__contents th {
    text-align: left;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--tw-border);
    color: var(--tw-muted);
}

.woocommerce-cart-form__contents td {
    padding: 20px 10px;
    border-bottom: 1px solid var(--tw-border-subtle);
    vertical-align: middle;
}

.woocommerce-cart-form__contents .product-thumbnail img {
    width: 72px;
    height: 92px;
    object-fit: cover;
}

.badge-mini-condition {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--tw-green-tint);
    color: var(--tw-green);
}

.actions-row {
    padding-top: 20px !important;
}

.coupon-box {
    display: inline-flex;
    gap: 8px;
    margin-right: 12px;
}

.coupon-field {
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--tw-border);
}

.cart_totals,
.checkout-order-review-card {
    border: 1px solid var(--tw-border);
    padding: 28px;
    background: var(--tw-surface);
}

.cart_totals h2,
.order-review-title {
    font-family: var(--tw-font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.cart_totals table,
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart_totals th,
.cart_totals td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--tw-border);
    font-size: 14px;
    text-align: left;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button,
#place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    background-color: var(--tw-green);
    color: var(--tw-white);
    border: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
}

.cart_totals .wc-proceed-to-checkout a.checkout-button:hover,
#place_order:hover {
    background-color: var(--tw-black);
}

.checkout-trust-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 20px;
    background: var(--tw-surface);
    border: 1px solid var(--tw-border);
    margin-bottom: 36px;
}

.trust-banner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.trust-banner-item svg {
    color: var(--tw-green);
}

.woocommerce-billing-fields__field-wrapper p.form-row,
.woocommerce-shipping-fields__field-wrapper p.form-row {
    display: block;
    margin-bottom: 16px;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tw-border);
    background: var(--tw-white);
    outline: none;
}

.checkout-support-note {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--tw-green);
}

@media (max-width: 991px) {
    .cart-page-layout-grid,
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .checkout-trust-banner {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   7. Shop Page: Desktop Sidebar + Products Body Grid (>= 992px)
   ----------------------------------------------------------------------- */
.shop-body-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.shop-filter-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--tw-border);
    border-radius: 3px;
    background-color: var(--tw-white);
    padding: 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.shop-filter-sidebar .modern-filter-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.shop-filter-sidebar .modern-filter-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.shop-products-area {
    min-width: 0;
}

.shop-modern-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0;
    margin-bottom: 28px;
    border-block: 1px solid var(--tw-border);
}

.shop-toolbar-left,
.shop-toolbar-right,
.toolbar-active-chips {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-toolbar-left,
.shop-toolbar-status {
    min-width: 0;
}

.shop-toolbar-right {
    margin-left: auto;
}

.shop-result-count {
    font-size: 12px;
    color: var(--tw-muted);
}

.shop-result-count strong {
    color: var(--tw-black);
    font-weight: 600;
}

.toolbar-active-chips {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.toolbar-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--tw-border);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    background: var(--tw-surface-2);
}

.toolbar-clear-link,
.sidebar-reset-inline {
    color: var(--tw-green);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--tw-border);
    border-radius: 4px;
    font-size: 12px;
}

.filter-offcanvas-header {
    display: none;
}

.filter-sidebar-desktop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--tw-border);
}

.sidebar-head-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
}

.filter-sidebar-body {
    min-height: 0;
    padding: 20px;
}

.sidebar-option-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-check-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    font-size: 13px;
}

.sidebar-check-option:hover,
.sidebar-check-option.is-active {
    color: var(--tw-green);
}

.check-radio {
    width: 16px;
    height: 16px;
    border: 1px solid #C9CDCA;
    border-radius: 50%;
    flex-shrink: 0;
}

.is-active > .check-radio {
    border: 5px solid var(--tw-green);
}

.option-text-with-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sidebar-check-option .pill-soon {
    margin-left: auto;
}

.sidebar-price-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.sidebar-price-pill {
    border: 1px solid var(--tw-border);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 11px;
}

.sidebar-price-pill:hover,
.sidebar-price-pill.is-active {
    border-color: var(--tw-green);
    color: var(--tw-green);
    background: var(--tw-surface-2);
}

.modern-price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.price-input-box {
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--tw-border);
    border-radius: 4px;
    padding: 9px 6px;
    font-size: 11px;
}

.price-input-box:focus-within {
    border-color: var(--tw-green);
}

.price-input-box input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: textfield;
}

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

.shop-filter-sidebar .filter-drawer-footer {
    padding: 16px 0 0;
    border: 0;
}

.shop-pagination-wrapper .page-numbers {
    border-radius: 4px;
}

.shop-pagination-wrapper ul.page-numbers {
    flex-wrap: wrap;
    border: 0;
    margin: 0;
    padding: 0;
}

.shop-pagination-wrapper ul.page-numbers li {
    border: 0;
    margin: 0;
    float: none;
}

.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    border: 0;
    margin: 0;
}

.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li {
    border: 0;
    float: none;
}

.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--tw-border);
    border-radius: 4px;
    color: var(--tw-black);
    background: var(--tw-white);
    font-size: 13px;
    font-weight: 500;
}

.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li span.current,
.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce .shop-pagination-wrapper nav.woocommerce-pagination ul.page-numbers li a:focus-visible {
    color: var(--tw-white);
    border-color: var(--tw-green);
    background: var(--tw-green);
}

/* On mobile/tablet: hide desktop sidebar, show offcanvas trigger */
@media (max-width: 991px) {
    .shop-body-grid {
        grid-template-columns: 1fr;
    }

    .shop-filter-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(350px, 90vw);
        max-height: none;
        z-index: 1005;
        border: 0;
        border-radius: 0;
        overflow: hidden;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s var(--tw-ease), visibility 0.3s;
    }

    .shop-filter-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .shop-mobile-filter-btn {
        display: inline-flex;
    }

    .filter-sidebar-desktop-head {
        display: none;
    }

    .filter-offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid var(--tw-border);
    }

    .filter-sidebar-body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    body.admin-bar .shop-filter-sidebar {
        top: 32px;
    }
}

@media (max-width: 600px) {
    .quantity-and-cart-row {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 10px;
    }

    .btn-add-bag {
        padding-inline: 12px;
        gap: 6px;
        font-size: 11px;
        letter-spacing: 0.05em;
    }

    .single-product-reviews-header {
        flex-wrap: wrap;
    }

    .shop-modern-toolbar {
        gap: 12px;
    }

    .shop-toolbar-left {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .shop-toolbar-right,
    .modern-sort-dropdown,
    .modern-sort-trigger {
        width: 100%;
    }

    .modern-sort-trigger {
        justify-content: space-between;
        height: 42px;
    }

    body.admin-bar .shop-filter-sidebar {
        top: 46px;
    }
}

/* On desktop: hide mobile filter trigger */
@media (min-width: 992px) {
    .btn-mobile-filter-trigger {
        display: none !important;
    }

    .shop-filter-drawer {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   8. Review Photo Upload Dropzone & Moderation Notice
   ----------------------------------------------------------------------- */
.review-photo-upload-section {
    margin-top: 16px;
    margin-bottom: 16px;
}

.review-photo-upload-section label {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tw-black);
    margin-bottom: 7px;
}

.photo-dropzone {
    border: 2px dashed var(--tw-border);
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.24s ease, background-color 0.24s ease;
    background-color: var(--tw-surface);
}

.photo-dropzone:hover,
.photo-dropzone.is-dragover {
    border-color: var(--tw-green);
    background-color: var(--tw-surface-2);
}

.photo-dropzone-icon {
    color: var(--tw-muted);
    margin-bottom: 8px;
}

.photo-dropzone-text {
    font-size: 13px;
    color: var(--tw-muted);
    margin: 0;
}

.photo-dropzone-hint {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.38);
    margin-top: 4px;
}

.photo-previews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.photo-preview-item {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--tw-border);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--tw-white);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.photo-preview-remove:hover {
    background: var(--tw-black);
}

/* Moderation pending banner on newly submitted reviews */
.review-moderation-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 3px;
    font-size: 13px;
    color: #6D4C00;
    margin-bottom: 20px;
}

.review-moderation-notice svg {
    flex-shrink: 0;
    color: #F59E0B;
}

/* Rating Distribution Bars */
.rating-distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    max-width: 320px;
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 48px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.rating-bar-label {
    color: var(--tw-muted);
    font-weight: 500;
    white-space: nowrap;
}

.rating-bar-track {
    height: 6px;
    border-radius: 999px;
    background-color: var(--tw-surface);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 999px;
    background-color: var(--tw-green);
    transition: width 0.4s var(--tw-ease);
}

.rating-bar-count {
    text-align: right;
    color: var(--tw-muted);
    font-size: 12px;
}

/* Review Photos Lightbox */
.review-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.review-photo-thumb {
    width: 56px;
    height: 56px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--tw-border);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.review-photo-thumb:hover {
    border-color: var(--tw-green);
}

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

/* Variation Clear Button */
.variation-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tw-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.variation-clear-btn:hover {
    color: var(--tw-black);
}

.variation-clear-btn .times {
    font-size: 14px;
    line-height: 1;
}

/* Approved reviews, rating summary, customer photos and moderation feedback. */
.reviews-overview-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
    align-items: center;
    gap: 32px;
    padding: 28px;
    margin-bottom: 28px;
    background: var(--tw-surface-2);
    border: 1px solid var(--tw-border);
    border-radius: 8px;
}

.reviews-overview-dashboard .section-title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 12px;
}

.reviews-big-score-row,
.dist-star-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-big-number {
    font-family: var(--tw-font-display);
    font-size: 52px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.reviews-big-meta,
.reviewer-details,
.review-rating-and-date {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.reviews-based-on,
.review-date-stamp,
.review-form-subnote {
    font-size: 12px;
    color: var(--tw-muted);
}

.reviews-distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dist-bar-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.dist-star-label {
    gap: 5px;
}

.dist-bar-track {
    height: 6px;
    overflow: hidden;
    background: #DFE6E0;
    border-radius: 8px;
}

.dist-bar-fill {
    display: block;
    height: 100%;
    background: var(--tw-green);
    border-radius: inherit;
}

.dist-bar-count {
    text-align: right;
    color: var(--tw-muted);
}

.modern-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.modern-reviews-grid.is-empty {
    display: block;
}

.modern-review-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--tw-border);
    border-radius: 8px;
    background: var(--tw-white);
}

.modern-review-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.reviewer-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.reviewer-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tw-surface-2);
    color: var(--tw-green);
    font-weight: 600;
}

.reviewer-name {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.reviewer-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--tw-green);
}

.modern-review-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--tw-muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.review-card-photos,
.review-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.review-photo-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border-radius: 6px;
}

.review-photo-dropzone {
    position: relative;
    padding: 22px;
    border: 1px dashed #A8B5AA;
    border-radius: 6px;
    background: var(--tw-white);
}

.review-photo-dropzone.is-dragover,
.review-photo-dropzone:focus-within {
    border-color: var(--tw-green);
    background: var(--tw-surface-2);
}

.review-field input.review-photo-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.dropzone-icon {
    color: var(--tw-green);
}

.dropzone-copy strong,
.dropzone-copy span {
    display: block;
    font-size: 12px;
}

.dropzone-copy span {
    margin-top: 4px;
    font-size: 11px;
    color: var(--tw-muted);
}

.review-preview-item {
    position: relative;
    width: 76px;
    height: 76px;
}

.review-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.review-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tw-black);
    color: var(--tw-white);
    line-height: 1;
    padding: 0;
}

.review-moderation-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #CBDCCF;
    border-radius: 6px;
    background: var(--tw-surface-2);
}

.moderation-banner-icon {
    color: var(--tw-green);
}

.moderation-banner-content h4 {
    margin: 0 0 5px;
    font-size: 15px;
}

.moderation-banner-content p {
    margin: 0;
    font-size: 13px;
    color: var(--tw-muted);
}

.review-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: rgba(0, 0, 0, 0.88);
}

.review-photo-lightbox > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--tw-white);
}

@media (max-width: 1100px) {
    .reviews-overview-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr);
        gap: 24px;
    }

    .reviews-overview-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .reviews-overview-dashboard,
    .modern-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-overview-dashboard,
    .modern-review-card {
        padding: 20px;
    }

    .reviews-overview-cta .btn-luxury {
        width: 100%;
    }

    .picker-stars {
        flex-wrap: wrap;
    }

    .picker-rating-note {
        flex-basis: 100%;
        margin: 4px 0 0;
    }
}
