/* ================================================================
   SHOPBAR — SINGLE PRODUCT
   ================================================================ */

.single-product .woocommerce-breadcrumb,
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-tabs,
.single-product .product_title,
.single-product .summary,
.single-product #tab-description,
.single-product .woocommerce-message,
.single-product .woocommerce-info {
    display: none !important;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none !important;
}

.single-product #review_form_wrapper {
    display: none;
}

/* Entrance animation */
@keyframes shopbarFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shopbarSpin {
    to { transform: rotate(360deg); }
}

/* ── Layout primitives ── */
.shopbar-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ================================================================
   BREADCRUMB
   ================================================================ */
.shopbar-breadcrumb {
    background: transparent;
    padding: 22px 0 0;
}

.shopbar-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 12px;
    color: var(--brand-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.shopbar-breadcrumb-link {
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.shopbar-breadcrumb-link:hover {
    color: var(--brand-dark);
}

.shopbar-breadcrumb-sep {
    margin: 0 10px;
    opacity: 0.45;
}

.shopbar-breadcrumb-current {
    color: var(--brand-muted);
    font-weight: 500;
}


/* ================================================================
   MAIN PRODUCT SECTION
   ================================================================ */
.shopbar-pdp-main {
    background: transparent;
    padding: 24px 0 64px;
}

.shopbar-pdp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}


/* ── Gallery ── */
.shopbar-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shopbar-gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--brand-bg-secondary);
    border: 1px solid var(--brand-border-light);
    cursor: zoom-in;
}

.shopbar-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.shopbar-gallery-main:hover img {
    transform: scale(1.03);
}

.shopbar-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.shopbar-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.shopbar-thumb-btn {
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--brand-card);
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

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

.shopbar-thumb-btn:hover {
    opacity: 1;
    border-color: var(--brand-text-muted);
}

.shopbar-thumb-btn.active {
    opacity: 1;
    border-color: var(--brand-dark);
}


/* ── Product Badge ── */
.shopbar-pdp-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    background: var(--brand-dark);
}

.shopbar-badge-sale {
    background: #C44D4D;
}

.shopbar-badge-bestseller {
    background: var(--brand-accent-warm);
}

.shopbar-badge-new {
    background: var(--brand-accent-warm);
}


/* ================================================================
   INFO COLUMN
   ================================================================ */
.shopbar-pdp-info {
    display: flex;
    flex-direction: column;
    animation: shopbarFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.08s;
}

/* Eyebrow tag */
.shopbar-pdp-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-accent-warm-hover);
    margin: 0 0 12px;
    padding: 5px 12px;
    border: 1px solid rgba(184, 151, 126, 0.35);
    border-radius: var(--radius-full);
    background: rgba(184, 151, 126, 0.06);
}

/* Brand */
.shopbar-pdp-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand-text-muted);
    margin: 0 0 6px;
}

/* Title */
.shopbar-pdp-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 500;
    color: var(--brand-dark);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

/* Rating row */
.shopbar-pdp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
}

.shopbar-rating-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.shopbar-star-icon {
    display: inline-flex;
    line-height: 1;
}

.shopbar-star-filled {
    color: var(--brand-highlight);
}

.shopbar-star-filled svg {
    fill: var(--brand-highlight);
}

.shopbar-star-empty {
    color: #E2DED7;
}

.shopbar-star-empty svg {
    fill: #E2DED7;
}

.shopbar-rating-link {
    font-size: 13px;
    color: var(--brand-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.shopbar-rating-link:hover {
    color: var(--brand-dark);
}


/* ── Price ── */
.shopbar-pdp-price-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 4px;
}

.shopbar-price-current,
.shopbar-price-current .woocommerce-Price-amount {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    color: var(--brand-dark);
    letter-spacing: -0.015em;
    line-height: 1;
}

.shopbar-price-current del,
.shopbar-price-current ins {
    text-decoration: none;
}

/* Sale: current price turns red */
.shopbar-pdp-price-block.is-on-sale .shopbar-price-current,
.shopbar-pdp-price-block.is-on-sale .shopbar-price-current .woocommerce-Price-amount {
    color: #C44D4D;
}

.shopbar-price-original,
.shopbar-price-original .woocommerce-Price-amount {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-text-muted);
    text-decoration: line-through;
}

.shopbar-price-save {
    font-size: 12px;
    font-weight: 600;
    color: #C44D4D;
    letter-spacing: 0.02em;
}


/* ── Description ── */
.shopbar-pdp-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--brand-text-secondary, var(--brand-muted));
    margin: 18px 0 0;
    max-width: 520px;
}

.shopbar-pdp-desc p {
    margin: 0 0 10px;
}

.shopbar-pdp-desc p:last-child {
    margin-bottom: 0;
}

.shopbar-pdp-purchase {
    position: relative;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--brand-border-light);
}


/* ── Options (size / attributes) ── */
.shopbar-option-group {
    margin: 18px 0;
}

.shopbar-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-dark);
    margin: 0 0 12px;
}

.shopbar-option-value {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--brand-text-muted);
}

.shopbar-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.shopbar-size-btn {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: var(--brand-card);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shopbar-size-btn:hover {
    border-color: var(--brand-dark);
    transform: translateY(-1px);
}

.shopbar-size-btn.active {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.shopbar-size-btn.oos {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

/* Size guide link */
.shopbar-size-guide-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-accent-warm-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.shopbar-size-guide-btn:hover {
    color: var(--brand-dark);
}

.shopbar-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shopbar-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--brand-border);
    padding: 0;
    background: var(--brand-card);
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color var(--transition-fast);
}

.shopbar-color-swatch:hover {
    transform: scale(1.08);
}

.shopbar-color-swatch.active {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 2px var(--brand-card), 0 0 0 3.5px var(--brand-dark);
}

.shopbar-color-dot {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    margin: 5px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.shopbar-swatch-inner {
    display: block;
}


/* ── Variation price ── */
.shopbar-variation-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 4px 0 8px;
}

.shopbar-variation-price-current {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    color: var(--brand-dark);
}

.shopbar-variation-price-original {
    font-size: 16px;
    color: var(--brand-text-muted);
    text-decoration: line-through;
}

.shopbar-variation-price-save {
    font-size: 12px;
    font-weight: 600;
    color: #C44D4D;
}


/* ================================================================
   PURCHASE ROW
   ================================================================ */
.shopbar-pdp-purchase {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

/* Quantity selector */
.shopbar-qty-selector {
    display: inline-flex;
    align-items: center;
    height: 54px;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    background: var(--brand-card);
    padding: 0 4px;
    transition: border-color var(--transition-fast);
}

.shopbar-qty-selector:focus-within {
    border-color: var(--brand-dark);
}

.shopbar-qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.shopbar-qty-btn:hover {
    background: var(--brand-bg-secondary);
}

.shopbar-qty-input {
    width: 44px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    -moz-appearance: textfield;
}

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

.shopbar-qty-input:focus {
    outline: none;
}

/* Add to cart */
.shopbar-add-to-cart {
    flex: 1 1 220px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0 28px;
    transition: all var(--transition-fast);
}

.shopbar-add-to-cart:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(28, 28, 28, 0.18);
}

.shopbar-add-to-cart svg {
    flex-shrink: 0;
}

/* Wishlist button (round) */
.shopbar-wishlist-btn {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    background: var(--brand-card);
    color: var(--brand-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shopbar-wishlist-btn:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.shopbar-wishlist-btn.active {
    color: var(--brand-secondary);
    border-color: var(--brand-secondary);
}


/* ================================================================
   PRODUCT META / TRUST SIGNALS
   ================================================================ */
.shopbar-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--brand-border-light);
    font-size: 12.5px;
    color: var(--brand-text-muted);
}

.shopbar-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Trust signals block (defensive) */
.shopbar-trust-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
    width: 100%;
    margin-bottom: 4px;
}

.shopbar-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--brand-text-secondary, var(--brand-muted));
}

.shopbar-trust-item svg {
    color: var(--brand-accent-warm);
    flex-shrink: 0;
}


/* ================================================================
   PRODUCT TABS (description / additional info)
   ================================================================ */
.shopbar-product-tabs-section {
    padding: 16px 0 72px;
}

.shopbar-product-tabs {
    margin: 0 auto;
}

.shopbar-tab-headers {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid var(--brand-border-light);
}

.shopbar-tab-header {
    position: relative;
    padding: 0 0 16px;
    margin-bottom: -1px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.shopbar-tab-header:hover {
    color: var(--brand-dark);
}

.shopbar-tab-header.active-tab {
    color: var(--brand-dark);
    border-bottom-color: var(--brand-dark);
}

.shopbar-tab-panel {
    display: none;
    padding: 30px 0 0;
}

.shopbar-tab-panel.active-panel {
    display: block;
    animation: shopbarFadeUp 0.4s ease both;
}

.shopbar-tab-panel p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--brand-text-secondary, var(--brand-muted));
    margin: 0 0 16px;
}

.shopbar-tab-panel h2,
.shopbar-tab-panel h3,
.shopbar-tab-panel h4 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brand-dark);
    letter-spacing: -0.01em;
    margin: 24px 0 12px;
}

.shopbar-tab-panel h2 { font-size: 22px; }
.shopbar-tab-panel h3 { font-size: 18px; }

.shopbar-tab-panel ul,
.shopbar-tab-panel ol {
    padding-left: 20px;
    margin: 0 0 16px;
    color: var(--brand-text-secondary, var(--brand-muted));
    font-size: 15px;
    line-height: 1.75;
}

.shopbar-tab-panel li {
    margin-bottom: 6px;
}

/* Additional info table */
.shopbar-tab-panel .woocommerce-product-attributes,
.shopbar-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.shopbar-product-attributes tr {
    border-bottom: 1px solid var(--brand-border-light);
}

.shopbar-product-attributes th,
.shopbar-product-attributes td {
    padding: 14px 0;
    text-align: left;
    font-size: 14px;
}

.shopbar-product-attributes th {
    font-weight: 600;
    color: var(--brand-dark);
    width: 40%;
}

.shopbar-product-attributes td {
    color: var(--brand-text-secondary, var(--brand-muted));
}


/* ================================================================
   REVIEWS
   ================================================================ */
.shopbar-reviews-section {
    padding: 56px 0;
    border-top: 1px solid var(--brand-border-light);
}

.shopbar-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Summary */
.shopbar-reviews-summary {
    display: flex;
    flex-direction: column;
}

.shopbar-reviews-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--brand-dark);
    letter-spacing: -0.015em;
    margin: 0 0 18px;
}

.shopbar-reviews-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.shopbar-reviews-big-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.shopbar-reviews-out-of {
    font-size: 14px;
    color: var(--brand-text-muted);
}

.shopbar-reviews-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
}

.shopbar-reviews-based-on {
    font-size: 13px;
    color: var(--brand-text-muted);
    margin: 0 0 22px;
}

/* Rating distribution bars */
.shopbar-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
    max-width: 320px;
}

.shopbar-bar-row {
    display: grid;
    grid-template-columns: 16px 1fr 38px;
    align-items: center;
    gap: 10px;
}

.shopbar-bar-label {
    font-size: 12px;
    color: var(--brand-text-muted);
    font-variant-numeric: tabular-nums;
}

.shopbar-bar-track {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--brand-bg-secondary);
    overflow: hidden;
}

.shopbar-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--brand-accent-warm);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shopbar-bar-count {
    font-size: 12px;
    color: var(--brand-text-muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.shopbar-write-review-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid var(--brand-dark);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shopbar-write-review-btn:hover {
    background: var(--brand-dark);
    color: #fff;
}


/* Review list */
.shopbar-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shopbar-review-card {
    border: 1px solid var(--brand-border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    background: var(--brand-card);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.shopbar-review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shopbar-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shopbar-review-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 6px;
}

.shopbar-review-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--brand-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.shopbar-review-verified {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--success);
    background: rgba(90, 138, 106, 0.1);
    padding: 4px 9px;
    border-radius: var(--radius-full);
}

.shopbar-review-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--brand-text-secondary, var(--brand-muted));
    margin: 0 0 16px;
}

.shopbar-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shopbar-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--brand-bg-secondary);
    flex-shrink: 0;
}

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

.shopbar-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
}

.shopbar-author-meta {
    font-size: 12px;
    color: var(--brand-text-muted);
    margin: 0;
}

.shopbar-review-hidden {
    display: none;
}

.shopbar-no-reviews {
    font-size: 14px;
    color: var(--brand-text-muted);
    padding: 24px;
    text-align: center;
    border: 1px dashed var(--brand-border);
    border-radius: var(--radius-md);
}

.shopbar-load-more-reviews {
    align-self: center;
    margin-top: 8px;
    padding: 12px 28px;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shopbar-load-more-reviews:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
}


/* ================================================================
   REVIEW MODAL
   ================================================================ */
.shopbar-review-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shopbar-review-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.shopbar-review-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 28, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.shopbar-review-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--brand-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.shopbar-review-modal.active .shopbar-review-modal-content {
    transform: translateY(0) scale(1);
}

.shopbar-review-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full);
    background: var(--brand-bg-secondary);
    color: var(--brand-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shopbar-review-modal-close:hover {
    background: var(--brand-dark);
    color: #fff;
}

.shopbar-review-modal-header {
    margin-bottom: 24px;
    padding-right: 40px;
}

.shopbar-review-modal-header h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--brand-dark);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.shopbar-review-modal-header p {
    font-size: 14px;
    color: var(--brand-text-muted);
    margin: 0;
}

/* Form */
.shopbar-review-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.shopbar-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shopbar-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
}

.shopbar-form-group input,
.shopbar-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: var(--brand-card);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--brand-dark);
    transition: border-color var(--transition-fast);
}

.shopbar-form-group input:focus,
.shopbar-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-dark);
}

.shopbar-form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.shopbar-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Star rating input */
.shopbar-star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.shopbar-star-rating-input .star {
    cursor: pointer;
    color: #E2DED7;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.shopbar-star-rating-input .star:hover,
.shopbar-star-rating-input .star:hover ~ .star {
    color: var(--brand-highlight);
}

.shopbar-star-rating-input .star:hover svg,
.shopbar-star-rating-input .star:hover ~ .star svg {
    fill: var(--brand-highlight);
}

.shopbar-star-rating-input .star.active,
.shopbar-star-rating-input .star.active ~ .star {
    color: var(--brand-highlight);
}

.shopbar-star-rating-input .star.active svg,
.shopbar-star-rating-input .star.active ~ .star svg {
    fill: var(--brand-highlight);
}

.shopbar-star-rating-input .star svg {
    fill: #E2DED7;
}

.shopbar-submit-review {
    margin-top: 6px;
    padding: 14px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.shopbar-submit-review:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(28, 28, 28, 0.18);
}

.shopbar-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ================================================================
   RELATED PRODUCTS
   ================================================================ */
.shopbar-related-section {
    background: transparent;
    border-top: 1px solid var(--brand-border-light);
    padding: 56px 0 88px;
}

.shopbar-related-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    color: var(--brand-dark);
    text-align: center;
    letter-spacing: -0.015em;
    margin: 0 0 36px;
}


/* ================================================================
   LIGHTBOX
   ================================================================ */
.shopbar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shopbar-lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.shopbar-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.shopbar-lightbox.visible img {
    transform: scale(1);
}

.shopbar-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.shopbar-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* ================================================================
   SCROLL TO TOP
   ================================================================ */
.shopbar-scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-full);
    background: var(--brand-dark);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(28, 28, 28, 0.18);
}

.shopbar-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.shopbar-scroll-top:hover {
    background: #000;
    transform: translateY(-3px);
}


/* ================================================================
   ACCORDION
   ================================================================ */
.shopbar-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--brand-border-light);
}

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

.shopbar-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    color: var(--brand-dark);
    text-align: left;
    letter-spacing: -0.01em;
}

.shopbar-accordion-trigger:hover {
    color: var(--brand-accent-warm-hover);
}

.shopbar-acc-icon {
    transition: transform var(--transition-fast);
    color: var(--brand-text-muted);
    flex-shrink: 0;
}

.shopbar-accordion-item.active .shopbar-acc-icon {
    transform: rotate(45deg);
    color: var(--brand-dark);
}

.shopbar-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.shopbar-accordion-item.active .shopbar-accordion-content {
    max-height: 800px;
}

.shopbar-accordion-text {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--brand-text-secondary, var(--brand-muted));
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Two-column PDP on desktop */
@media (min-width: 1024px) {
    .shopbar-pdp-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 60px;
    }

    /* Vertical thumbnail rail */
    .shopbar-gallery {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .shopbar-gallery-thumbs {
        order: -1;
        flex-direction: column;
        width: 74px;
        flex-wrap: nowrap;
        max-height: 620px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .shopbar-gallery-thumbs::-webkit-scrollbar {
        width: 4px;
        display: block;
    }

    .shopbar-gallery-thumbs::-webkit-scrollbar-thumb {
        background: var(--brand-border);
        border-radius: var(--radius-full);
    }

    .shopbar-thumb-btn {
        width: 74px;
        height: 74px;
    }

    .shopbar-gallery-main {
        flex: 1;
        min-width: 0;
    }

    /* Reviews: summary + list */
    .shopbar-reviews-grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 56px;
    }

    .shopbar-reviews-summary {
        position: sticky;
        top: 24px;
    }
}

@media (max-width: 1023px) {
    .shopbar-pdp-grid {
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .shopbar-pdp-main {
        padding: 16px 0 48px;
    }

    .shopbar-pdp-title {
        font-size: 26px;
    }

    .shopbar-price-current,
    .shopbar-price-current .woocommerce-Price-amount {
        font-size: 26px;
    }

    .shopbar-thumb-btn {
        width: 60px;
        height: 60px;
    }

    .shopbar-tab-headers {
        gap: 24px;
    }

    .shopbar-reviews-section {
        padding: 40px 0;
    }

    .shopbar-reviews-big-number {
        font-size: 44px;
    }

    .shopbar-review-card {
        padding: 20px;
    }

    .shopbar-related-section {
        padding: 40px 0 64px;
    }

    .shopbar-related-title {
        margin-bottom: 28px;
    }

    .shopbar-review-modal-content {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .shopbar-container {
        padding: 0 18px;
    }

    .shopbar-pdp-purchase {
        flex-wrap: wrap;
    }

    .shopbar-add-to-cart {
        flex: 1 1 100%;
        order: 3;
    }

    .shopbar-qty-selector,
    .shopbar-wishlist-btn {
        height: 50px;
    }

    .shopbar-qty-selector {
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .shopbar-wishlist-btn {
        width: 50px;
    }

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

    .shopbar-breadcrumb-nav {
        font-size: 11px;
    }

    .shopbar-scroll-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .shopbar-pdp-title {
        font-size: 24px;
    }
}
