/* ══════════════════════════════════════
   Single Product Page
   ══════════════════════════════════════ */

body.single-product {
    background-color: #ECEBF2;
}

/* ── Hero Background: exact same as home-hero-shape ── */
.hps-sp-hero {
    position: relative;
    width: 100%;
    padding: 40px 0 60px;
    background-color: var(--color-primary, #1e2850);
    z-index: 1;
}

/* Pattern overlay — identical to home-hero-shape::before */
.hps-sp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backpatern.svg');
    background-repeat: repeat;
    background-size: 600px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 85%);
    z-index: 0;
    pointer-events: none;
}

.hps-sp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Glass container — exact same as .home-search-glass ── */
.hps-sp-glass-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

/* ── 3 Column Layout ── */
.hps-sp-columns {
    display: flex;
    gap: 16px;
    align-items: stretch;
    direction: rtl;
}

/* Column 1 – Gallery (white card) */
.hps-sp-col-gallery {
    flex: 0 0 320px;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
}

.hps-sp-gallery {
    position: relative;
}

.hps-sp-main-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
    user-select: none;
}

.hps-sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    transform-origin: center center;
    pointer-events: none;
}

.hps-sp-main-img-wrap.is-zoomed .hps-sp-main-img {
    transition: none; /* Instant smooth tracking during mousemove */
}

/* Zoom Trigger Button */
.hps-sp-zoom-trigger {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e2850;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0.85;
    transition: all 0.25s ease;
    z-index: 5;
    padding: 0;
}

.hps-sp-zoom-trigger:hover {
    opacity: 1;
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    color: #2563eb;
}

/* Zoom Hint Badge */
.hps-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    z-index: 4;
}

.hps-sp-main-img-wrap:hover .hps-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

.hps-sp-main-img-wrap.is-zoomed .hps-zoom-hint {
    opacity: 0;
}

.hps-sp-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.hps-sp-thumbnails::-webkit-scrollbar { display: none; }

.hps-sp-thumb-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #f8fafc;
    padding: 2px;
    box-sizing: border-box;
}
.hps-sp-thumb-img:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.hps-sp-thumb-img.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ── Lightbox Modal ── */
.hps-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    direction: rtl;
}

.hps-lightbox-overlay.is-active {
    display: flex;
    opacity: 1;
}

.hps-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.hps-lightbox-dialog {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    box-sizing: border-box;
}

/* Lightbox Header */
.hps-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    color: #fff;
    flex-shrink: 0;
}

.hps-lightbox-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hps-lightbox-counter {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}

.hps-lightbox-title {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hps-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hps-lightbox-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.hps-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* Lightbox Stage */
.hps-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 6px 0;
    min-height: 0;
}

.hps-lightbox-img-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.hps-lightbox-img {
    max-width: 90vw;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease;
    cursor: zoom-in;
}

.hps-lightbox-img.is-zoomed {
    cursor: zoom-out;
    transform: scale(1.6);
}

/* Lightbox Navigation Buttons */
.hps-lightbox-nav {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 20;
    flex-shrink: 0;
    margin: 0 12px;
    padding: 0;
}

.hps-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.12);
}

/* Lightbox Thumbnails Strip */
.hps-lightbox-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    max-width: 100%;
}

.hps-lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.hps-lb-thumb-btn {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.hps-lb-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.hps-lb-thumb-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hps-lb-thumb-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hps-lightbox-dialog {
        padding: 8px;
    }
    .hps-lightbox-title {
        display: none;
    }
    .hps-lightbox-nav {
        width: 38px;
        height: 38px;
        margin: 0 2px;
    }
    .hps-lightbox-img {
        max-height: calc(100vh - 160px);
    }
    .hps-lb-thumb-btn {
        width: 44px;
        height: 44px;
    }
}


/* Column 2 – Details */
.hps-sp-col-details {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 24px;
}

.hps-sp-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e2850;
    margin: 0 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.hps-title-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: var(--color-secondary, #ffcc00);
    border-radius: 50%;
    margin-top: 6px;
}

.hps-sp-tax-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    margin-top: -10px;
}
.hps-sp-tax-box {
    background: #f4f6fa;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hps-tax-label {
    color: #94a3b8;
}
.hps-tax-value {
    color: #1e2850;
    font-weight: 700;
}
.hps-tax-icon {
    font-size: 1.1rem;
    color: #64748b;
}

/* Attributes grid – white boxes like reference image */
.hps-sp-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.hps-sp-attr-box {
    background: #f4f6fa;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    transition: box-shadow 0.2s;
}
.hps-sp-attr-box:hover {
    box-shadow: 0 4px 12px rgba(30,40,80,0.08);
}

.hps-sp-attr-label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.hps-sp-attr-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e2850;
}
.hps-sp-attr-value p { margin: 0; }

/* Short description */
.hps-sp-short-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.85;
}
.hps-sp-short-desc p { margin: 0 0 8px; }

.hps-sp-more-desc {
    color: #1e2850;
    font-weight: 700;
    text-decoration: none;
    margin-right: 4px;
}

/* ─────────────────────────────────────
   Cart Box (Redesigned)
   ───────────────────────────────────── */
.hps-sp-col-cart { flex: 0 0 280px; min-width: 0; }

.hps-sp-cart-box {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    padding: 14px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    direction: rtl;
}
.hps-sp-cart-box::-webkit-scrollbar { display: none; }

/* ── Seller Header ── */
.hps-cb-seller-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}

.hps-cb-seller-label {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 4px;
}

.hps-cb-seller-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hps-cb-seller-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e8ecf2;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1e2850;
    flex-shrink: 0;
}

.hps-cb-seller-info { display: flex; flex-direction: column; gap: 3px; }

.hps-cb-seller-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e2850;
}

.hps-cb-stars { display: flex; gap: 2px; }
.hps-cb-stars .icon-star-1 { font-size: 0.8rem; color: #e2e8f0; }
.hps-cb-stars .icon-star-1.filled { color: #ffcc00; }

.hps-cb-seller-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #64748b;
}
.hps-cb-dot { color: #cbd5e1; }

.hps-cb-other-sellers {
    font-size: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
    margin-top: 4px;
}
.hps-cb-other-sellers:hover { text-decoration: underline; }

/* ── Price Block ── */
.hps-cb-price-block {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.hps-cb-stock-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e2850;
    margin-bottom: 7px;
}
.hps-cb-stock-line i { font-size: 1rem; color: #64748b; }
.hps-cb-stock-line .stock { margin: 0; color: #1e2850; font-size: 0.82rem; }

.hps-cb-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.hps-cb-discount-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 8px;
    flex-shrink: 0;
}

.hps-cb-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 1;
}

.hps-cb-old-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
}

.hps-cb-new-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e2850;
    text-decoration: none;
    direction: rtl;
}
.hps-cb-new-price ins,
.hps-cb-new-price .amount { font-size: inherit; font-weight: inherit; }

.hps-out-of-stock { color: #ef4444; font-weight: 700; }

/* ── Add to Cart ── */
.hps-cb-atc-wrapper form.cart {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 6px;
    margin-top: 6px;
}
.hps-cb-atc-wrapper .quantity { display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }

.hps-cb-atc-wrapper button.single_add_to_cart_button,
.hps-cb-atc-wrapper .button {
    font-family: inherit !important;
    background: #ffcc00 !important;
    color: #1e2850 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 10px !important;
    width: 100% !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: background 0.25s !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}
.hps-cb-atc-wrapper button.single_add_to_cart_button:hover,
.hps-cb-atc-wrapper .button:hover { background: #e6b800 !important; }

/* ── Guarantees ── */
.hps-cb-guarantees {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}
.hps-cb-guarantees li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #475569;
    padding: 4px 0;
    border-bottom: 1px solid #f8fafc;
    line-height: 1.3;
}
.hps-cb-guarantees li:last-child { border-bottom: none; }

.hps-cb-guarantee-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e2850;
    font-size: 0.8rem;
}

.hps-cb-law-link {
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: none;
    margin-right: 4px;
}
.hps-cb-law-link:hover { color: #1e2850; }

/* ══════════════════════════════════════
   Tabs Section (outside hero, white bg)
   ══════════════════════════════════════ */
.hps-sp-tabs-outer {
    background: #ECEBF2;
    padding: 40px 24px 60px;
}

.hps-sp-tabs-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Tabs – identical structure/style to home product tabs */
.hps-sp-tabs-section .hps-tabs-wrapper {
    overflow-x: auto;
    margin-bottom: 0;
    direction: rtl;
    padding: 10px 0 30px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.08)) 0 calc(100% - 18px) / 100% 2px no-repeat;
}
.hps-sp-tabs-section .hps-tabs-wrapper::-webkit-scrollbar { display: none; }

.hps-sp-tabs-section .hps-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Full-width stretch for the 3 tabs */
.hps-sp-tabs-section .hps-tabs .hps-tab {
    flex: 1;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
}

.hps-sp-tabs-section .hps-tabs .hps-tab i {
    font-size: 1.4rem;
    color: var(--color-primary-dark, #1e2850);
    flex-shrink: 0;
}

.hps-sp-tabs-section .hps-tabs .hps-tab::after {
    content: '';
    position: absolute;
    top: calc(100% + 12px);
    left: 20%;
    right: 20%;
    height: 6px;
    background: var(--color-secondary, #ffcc00);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.hps-sp-tabs-section .hps-tab-title {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary-dark, #1e2850);
}

.hps-sp-tabs-section .hps-tabs .hps-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.hps-sp-tabs-section .hps-tabs .hps-tab.active {
    background: var(--color-secondary, #ffcc00);
}
.hps-sp-tabs-section .hps-tabs .hps-tab.active::after { opacity: 1; }
.hps-sp-tabs-section .hps-tabs .hps-tab.active i { color: var(--color-primary-dark, #1e2850); }
.hps-sp-tabs-section .hps-tabs .hps-tab.active .hps-tab-title { color: var(--color-primary-dark, #1e2850); }

.hps-sp-tabs-section .hps-tab-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hps-sp-tabs-section .hps-tab-pane {
    display: none;
    animation: spTabFadeIn 0.3s ease;
}
.hps-sp-tabs-section .hps-tab-pane.active { display: block; }

@keyframes spTabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hps-sp-tabs-section .hps-tab-pane h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e2850;
    margin: 0 0 20px;
}

/* WooCommerce attribute table inside tab */
.hps-sp-tabs-section table.shop_attributes {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}
.hps-sp-tabs-section table.shop_attributes th,
.hps-sp-tabs-section table.shop_attributes td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    text-align: right;
}
.hps-sp-tabs-section table.shop_attributes th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e2850;
    width: 35%;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hps-sp-columns { flex-wrap: wrap; }
    .hps-sp-col-gallery { flex: 0 0 100%; }
    .hps-sp-col-cart { flex: 0 0 100%; }
    .hps-sp-cart-box { position: static; max-height: none; }
}

@media (max-width: 700px) {
    .hps-sp-attributes { grid-template-columns: 1fr; }
    .hps-sp-tabs-section .hps-tabs { flex-direction: column; }
    .hps-sp-tabs-section .hps-tabs .hps-tab { min-width: auto; }
}
/* ── Reviews Customization ── */
#reviews.woocommerce-Reviews {
    background: transparent;
    direction: rtl;
}

/* Header */
.hps-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f6fa;
    border: 2px solid #3b82f6; /* Based on blue outline in screenshot */
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.hps-rh-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-Reviews-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e2850;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hps-rh-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffcc00;
    border-radius: 50%;
}

.hps-rh-count {
    font-size: 0.95rem;
    color: #1e2850;
}

.hps-rh-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.hps-btn-leave-review {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 10px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.hps-btn-leave-review:hover {
    background: #cbd5e1;
    color: #1e2850;
}

/* Comments List */
#reviews ol.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

#reviews ol.commentlist li.review {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

#reviews .comment_container {
    display: flex;
    align-items: flex-start;
}

#reviews .comment_container > img.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-left: 16px;
    object-fit: cover;
}

#reviews .comment-text {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: 
        "stars meta"
        "desc desc";
    column-gap: 20px;
    row-gap: 10px;
}

#reviews .comment-text .meta {
    grid-area: meta;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    gap: 4px;
}

#reviews .comment-text .meta .woocommerce-review__author {
    order: 2;
    font-size: 1.1rem;
    color: #1e2850;
    font-weight: 800;
}

#reviews .comment-text .meta .woocommerce-review__published-date {
    order: 1;
    font-size: 0.8rem;
    color: #94a3b8;
}

#reviews .comment-text .meta .woocommerce-review__dash {
    display: none;
}

#reviews .comment-text .star-rating {
    grid-area: stars;
    justify-self: end;
    align-self: center;
    margin: 0;
}

/* Adjust WC star rating to match */
#reviews .comment-text .star-rating span {
    color: #ffcc00;
}

#reviews .comment-text .description {
    grid-area: desc;
    width: 100%;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}
#reviews .comment-text .description p { margin: 0; }

/* Form wrapper */
#review_form_wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    border: 1px solid #e8ecf2;
}

#review_form .comment-reply-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e2850;
    margin-bottom: 16px;
    display: block;
}

#review_form .comment-form p {
    margin-bottom: 16px;
}

#review_form .comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

#review_form .comment-form input[type="text"],
#review_form .comment-form input[type="email"],
#review_form .comment-form textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1e2850;
}
#review_form .comment-form textarea { height: 120px; resize: vertical; }

#review_form .comment-form input[type="submit"] {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
#review_form .comment-form input[type="submit"]:hover {
    background: #2563eb;
}