/**
 * ESP Product Page Styles
 *
 * Requires: homepage.css (variables), shop.css (header/footer)
 */

/* ==========================================================================
   PRODUCT LAYOUT
   ========================================================================== */

.esp-product {
    padding: 2rem 0;
}

.esp-product__main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .esp-product__main {
        flex-direction: row;
    }
}

/* Gallery Column */
.esp-product__gallery {
    width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .esp-product__gallery {
        width: 41.666667%; /* 5/12 */
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .esp-product__gallery {
        width: 50%;
    }
}

/* Info Column */
.esp-product__info {
    width: 100%;
}

@media (min-width: 768px) {
    .esp-product__info {
        width: 58.333333%; /* 7/12 */
        padding-left: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .esp-product__info {
        width: 50%;
        padding-left: 2.5rem;
    }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.esp-breadcrumb {
    background-color: var(--esp-bg-alt, #f9fafb);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--esp-border, #e5e7eb);
}

.esp-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: var(--esp-text-sm);          /* 0.875rem / 14px */
    color: var(--esp-text-light);
}

.esp-breadcrumb__item {
    display: flex;
    align-items: center;
}

.esp-breadcrumb__item a {
    color: var(--esp-text-light, #6b7280);
    text-decoration: none;
    transition: color 0.15s ease;
}

.esp-breadcrumb__item a:hover {
    color: var(--esp-primary, #d97706);
    text-decoration: underline;
}

.esp-breadcrumb__sep {
    padding: 0 0.5rem;
    color: var(--esp-text-light, #9ca3af);
}

.esp-breadcrumb__item--current {
    color: var(--esp-text);
    font-weight: var(--esp-font-medium);    /* 500 */
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.esp-gallery__main {
    position: relative;
    background: var(--esp-bg-alt, #f9fafb);
    border-radius: 0.5rem;
    overflow: hidden;
    /* Flexible sizing with constraints */
    max-width: 500px;
    min-height: 300px;
    max-height: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto; /* Center in column */
    padding: 1rem;
}

/* On mobile, allow full width but keep max-height */
@media (max-width: 767px) {
    .esp-gallery__main {
        max-width: 100%;
        min-height: 250px;
        max-height: 400px;
    }
}

.esp-gallery__main--fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    min-height: auto;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
}

.esp-gallery__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease-out;
}

/* Image hover zoom effect */
.esp-gallery__main:hover .esp-gallery__image {
    transform: translate(-50%, -50%) scale(1.05);
}

.esp-gallery__fullscreen-btn,
.esp-product .esp-gallery__fullscreen-btn,
button.esp-gallery__fullscreen-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #E6AC2C !important;
    border-radius: 0.375rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #374151 !important;
}

.esp-gallery__fullscreen-btn:hover,
.esp-product .esp-gallery__fullscreen-btn:hover,
button.esp-gallery__fullscreen-btn:hover {
    background: #E6AC2C !important;
    color: white !important;
}

.esp-gallery__close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.esp-gallery__nav,
.esp-product .esp-gallery__nav,
button.esp-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid #E6AC2C !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #374151 !important;
}

.esp-gallery__nav:hover,
.esp-product .esp-gallery__nav:hover,
button.esp-gallery__nav:hover {
    background: #E6AC2C !important;
    color: white !important;
}

.esp-gallery__nav--prev {
    left: 0.5rem;
}

.esp-gallery__nav--next {
    right: 0.5rem;
}

.esp-gallery__main--fullscreen .esp-gallery__nav {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.esp-gallery__main--fullscreen .esp-gallery__nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Thumbnails */
.esp-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.esp-gallery__thumb,
.esp-product .esp-gallery__thumb,
button.esp-gallery__thumb {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    padding: 0;
    background: white !important;
    color: inherit !important;
}

.esp-gallery__thumb:hover,
.esp-gallery__thumb:focus,
.esp-gallery__thumb--active,
.esp-product .esp-gallery__thumb:hover,
.esp-product .esp-gallery__thumb:focus,
.esp-product .esp-gallery__thumb--active,
button.esp-gallery__thumb:hover,
button.esp-gallery__thumb:focus,
button.esp-gallery__thumb--active {
    border-color: #E6AC2C !important;
    background: white !important;
    color: inherit !important;
}

.esp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .esp-gallery__thumb {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1024px) {
    .esp-gallery__thumb {
        width: 80px;
        height: 80px;
    }
}

/* Sale Badge */
.esp-product__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.esp-product__badge--sale {
    background: #ef4444;
    color: white;
}

/* ==========================================================================
   PRODUCT INFO
   ========================================================================== */

.esp-product__title {
    font-size: 1.875rem;                    /* 30px mobile */
    font-weight: 800;                       /* extrabold */
    color: var(--esp-text);
    margin: 0 0 0.5rem 0;
    line-height: var(--esp-leading-snug);   /* 1.375 */
    text-transform: uppercase;
    letter-spacing: -0.025em;               /* tracking-tight */
}

@media (min-width: 768px) {
    .esp-product__title {
        font-size: 2.25rem;                 /* 36px = text-4xl */
    }
}

.esp-product__sku {
    font-size: var(--esp-text-base);        /* 1rem / 16px */
    color: var(--esp-text-light);
    margin-bottom: 1rem;
}

/* Price */
.esp-product__price {
    margin-bottom: 1rem;
}

.esp-product__price-regular {
    text-decoration: line-through;
    color: var(--esp-text-light);
    font-size: var(--esp-text-base);        /* 1rem / 16px */
    margin-right: 0.5rem;
}

.esp-product__price-current {
    font-size: var(--esp-text-2xl);         /* 1.5rem / 24px */
    font-weight: var(--esp-font-bold);      /* 700 */
    color: var(--esp-primary);
}

/* Get Best Price Button */
.esp-product__price-action {
    margin-bottom: 1rem;
}

.esp-price-reveal {
    position: relative;
    display: inline-block;
}

.esp-price-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--esp-text-base);        /* 1rem / 16px */
    font-weight: var(--esp-font-semibold);  /* 600 */
    color: #fff;
    background: linear-gradient(135deg, #00A151 0%, #026227 100%);
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.esp-price-button:hover:not(.esp-price-button--loading):not(.esp-price-button--revealed) {
    color: #fff;
    background: linear-gradient(135deg, #026227 0%, #00A151 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.esp-price-button:active:not(.esp-price-button--loading):not(.esp-price-button--revealed) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.esp-price-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Button icon - default state */
.esp-price-button__icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Button text */
.esp-price-button__text {
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   PRICE BUTTON - LOADING STATE
   ========================================================================== */

.esp-price-button--loading {
    cursor: wait;
    pointer-events: none;
}

.esp-price-button--loading .esp-price-button__icon,
.esp-price-button--loading .esp-price-button__text {
    opacity: 0;
}

/* Loading spinner container */
.esp-price-button__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.esp-price-button--loading .esp-price-button__loader {
    opacity: 1;
}

/* Spinner animation */
.esp-price-spinner {
    width: 20px;
    height: 20px;
    animation: esp-price-spin 1s linear infinite;
}

.esp-price-spinner circle {
    stroke: currentColor;
    stroke-linecap: round;
}

.esp-price-spinner .esp-spinner-track {
    opacity: 0.25;
}

.esp-price-spinner .esp-spinner-head {
    opacity: 1;
    stroke-dasharray: 40 60;
    stroke-dashoffset: 0;
}

@keyframes esp-price-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading text */
.esp-price-button__loading-text {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* Shimmer effect overlay */
.esp-price-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.esp-price-button--loading::before {
    opacity: 1;
    animation: esp-price-shimmer 1.5s ease-in-out infinite;
}

@keyframes esp-price-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==========================================================================
   PRICE BUTTON - REVEALED STATE
   ========================================================================== */

.esp-price-button--revealed {
    background: linear-gradient(135deg, #E6AC2C 0%, #C9941F 100%);
    cursor: default;
    pointer-events: none;
    min-width: 160px;
    animation: esp-price-reveal-pulse 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes esp-price-reveal-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.esp-price-button--revealed .esp-price-button__icon,
.esp-price-button--revealed .esp-price-button__text,
.esp-price-button--revealed .esp-price-button__loader {
    opacity: 0;
}

/* Revealed price display */
.esp-price-button__price {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.esp-price-button--revealed .esp-price-button__price {
    opacity: 1;
    animation: esp-price-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes esp-price-fade-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.esp-price-button__price-label {
    font-size: var(--esp-text-xs);          /* 0.75rem / 12px */
    font-weight: var(--esp-font-medium);    /* 500 */
    opacity: 0.9;
}

.esp-price-button__price-value {
    font-size: var(--esp-text-lg);          /* 1.125rem / 18px */
    font-weight: var(--esp-font-bold);      /* 700 */
    letter-spacing: -0.01em;
}

/* Checkmark icon for revealed state */
.esp-price-button__check {
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.esp-price-button--revealed .esp-price-button__check {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

/* ==========================================================================
   PRICE BUTTON - MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 639px) {
    .esp-price-button {
        width: 100%;
        min-width: unset;
        padding: 1rem 1.5rem;
    }

    .esp-price-button__price-value {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   PRICE BUTTON - ACCESSIBILITY
   ========================================================================== */

.esp-price-button:focus-visible {
    outline: 3px solid #E6AC2C;
    outline-offset: 2px;
}

/* Screen reader only class for loading announcements */
.esp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Stock Status - TurboDrop pill style */
.esp-product__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;                  /* rounded-full pill */
    font-size: 0.875rem;                    /* text-sm */
    font-weight: 700;                       /* font-bold */
    margin-bottom: 1.5rem;
}

.esp-product__stock--instock {
    background: #dcfce7;
    color: #166534;
}

.esp-product__stock--outofstock {
    background: #fee2e2;
    color: #991b1b;
}

.esp-product__stock--onbackorder {
    background: #fef3c7;
    color: #92400e;
}

/* Cart Form */
.esp-product__cart-form {
    border-top: 1px solid var(--esp-border, #e5e7eb);
    border-bottom: 1px solid var(--esp-border, #e5e7eb);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.esp-product__cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Quantity Input */
.esp-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--esp-border, #e5e7eb);
    border-radius: 0.375rem;
    overflow: hidden;
}

.esp-quantity__btn,
.esp-product .esp-quantity__btn,
button.esp-quantity__btn {
    width: 40px;
    height: 44px;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.esp-quantity__btn:hover,
.esp-product .esp-quantity__btn:hover,
button.esp-quantity__btn:hover {
    background: #E6AC2C !important;
    border-color: #E6AC2C !important;
    color: white !important;
}

.esp-quantity__input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.esp-quantity__input::-webkit-outer-spin-button,
.esp-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button - ESP Brand Gold */
.esp-btn--add-cart,
.esp-product .esp-btn--add-cart,
button.esp-btn--add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--esp-text-base);        /* 1rem / 16px */
    font-weight: var(--esp-font-semibold);  /* 600 */
    background: var(--esp-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.esp-btn--add-cart:hover,
.esp-product .esp-btn--add-cart:hover,
button.esp-btn--add-cart:hover {
    background: #C9941F !important;
}

.esp-btn--add-cart svg {
    flex-shrink: 0;
}

/* Responsive button text */
@media (max-width: 639px) {
    .esp-btn--add-cart .esp-btn__text {
        display: none;
    }
}

@media (min-width: 640px) {
    .esp-btn--add-cart .esp-btn__text {
        display: inline;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .esp-btn--add-cart .esp-btn__text {
        display: none;
    }
}

@media (min-width: 1024px) {
    .esp-btn--add-cart .esp-btn__text {
        display: inline;
    }
}

/* Short Description */
.esp-product__short-desc {
    color: var(--esp-text);
    line-height: var(--esp-leading-relaxed); /* 1.625 */
}

.esp-product__short-desc p {
    margin: 0 0 0.5rem 0;
}

/* ==========================================================================
   TABS
   ========================================================================== */

.esp-tabs {
    margin-top: 3rem;
    border-top: 1px solid rgba(230, 172, 44, 0.5);  /* border-brand-yellow/50 */
    padding-top: 2rem;
}

/* Yellow indicator bar under tabs */
.esp-tabs__bar {
    height: 4px;
    background: var(--esp-primary, #E6AC2C);
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Desktop: Horizontal tabs - TurboDrop style */
@media (min-width: 1024px) {
    .esp-tabs__nav {
        display: flex;
        border-bottom: none;
        margin-bottom: 0;
    }

    .esp-tabs__bar {
        margin-bottom: 2rem;
    }

    .esp-tabs__trigger,
    .esp-product .esp-tabs__trigger,
    button.esp-tabs__trigger {
        padding: 1rem 2rem;
        background: white !important;
        border: none !important;
        font-size: 0.875rem;
        font-weight: 700;
        color: #6b7280 !important;
        cursor: pointer;
        transition: all 0.15s ease;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .esp-tabs__trigger:hover,
    .esp-product .esp-tabs__trigger:hover,
    button.esp-tabs__trigger:hover {
        color: #1e293b !important;
    }

    /* Active tab: Solid yellow background with dark text */
    .esp-tabs__trigger--active,
    .esp-product .esp-tabs__trigger--active,
    button.esp-tabs__trigger--active {
        background: #E6AC2C !important;
        color: #1e293b !important;
    }

    .esp-tabs__chevron {
        display: none;
    }
}

/* Mobile: Accordion */
@media (max-width: 1023px) {
    .esp-tabs__nav {
        display: flex;
        flex-direction: column;
    }

    .esp-tabs__trigger,
    .esp-product .esp-tabs__trigger,
    button.esp-tabs__trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1rem 0;
        background: none !important;
        border: none !important;
        border-bottom: 1px solid var(--esp-border, #e5e7eb) !important;
        font-size: 1rem;
        font-weight: 600;
        color: #374151 !important;
        cursor: pointer;
        text-transform: uppercase;
    }

    .esp-tabs__trigger:hover,
    .esp-product .esp-tabs__trigger:hover,
    button.esp-tabs__trigger:hover {
        color: #E6AC2C !important;
    }

    .esp-tabs__trigger--active,
    .esp-product .esp-tabs__trigger--active,
    button.esp-tabs__trigger--active {
        color: #E6AC2C !important;
    }

    .esp-tabs__chevron {
        width: 20px;
        height: 20px;
        transition: transform 0.2s ease;
    }

    .esp-tabs__trigger--active .esp-tabs__chevron {
        transform: rotate(180deg);
    }

    .esp-tabs__panel {
        padding: 1rem 0;
        border-bottom: 1px solid var(--esp-border, #e5e7eb);
    }
}

/* Tab Content */
.esp-tabs__content {
    min-height: 200px;
}

.esp-prose {
    color: var(--esp-text);
    line-height: var(--esp-leading-relaxed); /* 1.625 */
}

.esp-prose p {
    margin: 0 0 1rem 0;
}

.esp-prose ul,
.esp-prose ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.esp-prose li {
    margin-bottom: 0.5rem;
}

/* Specifications Table */
.esp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.esp-specs-table tr:nth-child(odd) {
    background: var(--esp-bg-alt, #f9fafb);
}

.esp-specs-table th,
.esp-specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--esp-border, #e5e7eb);
}

.esp-specs-table th {
    width: 40%;
    color: var(--esp-text, #1e293b);
    font-weight: var(--esp-font-semibold, 600);
    background: rgba(230, 172, 44, 0.15);
    border-right: 1px solid var(--esp-border, #e5e7eb);
}

.esp-specs-table td {
    color: var(--esp-text);
    background: rgba(249, 250, 251, 0.5);
}

/* ==========================================================================
   UTILITY OVERRIDES
   ========================================================================== */

/* Ensure body doesn't scroll when fullscreen gallery is open */
body.esp-gallery-fullscreen {
    overflow: hidden;
}

/* WooCommerce review form overrides */
.esp-tabs__panel .comment-respond {
    margin-top: 2rem;
}

.esp-tabs__panel .comment-form-rating {
    margin-bottom: 1rem;
}

.esp-tabs__panel .comment-form-rating label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.esp-tabs__panel .stars {
    display: inline-flex;
    gap: 0.25rem;
}

.esp-tabs__panel .stars a {
    color: #fbbf24;
    font-size: 1.25rem;
}

.esp-tabs__panel .comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--esp-border, #e5e7eb);
    border-radius: 0.375rem;
    resize: vertical;
}

.esp-tabs__panel .form-submit input[type="submit"] {
    background: var(--esp-primary, #d97706);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
}

.esp-tabs__panel .form-submit input[type="submit"]:hover {
    background: var(--esp-primary-dark, #b45309);
}

/* Reviews list styling */
.esp-tabs__panel .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.esp-tabs__panel .comment_container {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--esp-border, #e5e7eb);
}

.esp-tabs__panel .comment_container img.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.esp-tabs__panel .comment-text {
    flex: 1;
}

.esp-tabs__panel .star-rating {
    display: inline-flex;
    color: #fbbf24;
    font-size: 0.875rem;
}

.esp-tabs__panel .meta {
    color: var(--esp-text-light, #6b7280);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.esp-tabs__panel .description p {
    margin: 0;
    color: var(--esp-text, #374151);
}

/* ==========================================================================
   SPINNER ANIMATION (Add to Cart)
   ========================================================================== */

.esp-spinner {
    animation: esp-spin 1s linear infinite;
}

@keyframes esp-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Opacity utilities for spinner parts */
.esp-spinner .opacity-25 {
    opacity: 0.25;
}

.esp-spinner .opacity-75 {
    opacity: 0.75;
}

/* Button disabled state */
.esp-btn--add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
