

/* ========== SINGLE PRODUCT PAGE STYLES ========== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

/* Dark theme */
.single-product {
    background: #070b12;
    color: #f8fafc;
}

.product-main,
.product-description,
.product-reviews-panel,
.related-products,
.feature-item,
.variation-group,
.product-meta {
    background: #111827;
    border-color: #263247;
    color: #f8fafc;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .26);
}

.gallery-main,
.thumb-btn,
.product-price-box,
.variation-selected-info,
.quantity-selector,
.product-reviews-panel .comment,
.product-reviews-panel .review {
    background: #0b111c;
    border-color: #263247;
    color: #f8fafc;
}

.single-product .product-info .product-title,
.product-description h2,
.related-products .section-header h2,
.product-reviews-panel .section-header h2,
.feature-value,
.variation-group label,
.price-label {
    color: #f8fafc;
}

.breadcrumb,
.breadcrumb a,
.feature-label,
.description-content,
.product-meta,
.rating-count,
.variation-selected-info .label {
    color: #a7b4c8;
}

.current-price,
.variation-selected-info .value {
    color: #22c55e;
}

.old-price {
    color: #f87171;
}

.model-btn,
.qty-input,
.quantity-selector button,
.product-reviews-panel input,
.product-reviews-panel textarea {
    background: #0b111c;
    border-color: #263247;
    color: #f8fafc;
}

.add-to-cart-btn,
.product-reviews-panel .submit {
    background: #2563eb;
}

.add-to-cart-btn:hover,
.product-reviews-panel .submit:hover {
    background: #1d4ed8;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.breadcrumb i {
    font-size: 0.6rem;
    color: #ccc;
}

.breadcrumb span {
    color: #1a1a1a;
}

/* Product Main Layout */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    aspect-ratio: 1;
    background: #f8f8f8;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.thumb-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    background: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s;
}

.thumb-btn.active {
    border-color: #1a1a1a;
}

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

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stars {
    color: #ffb800;
    font-size: 0.8rem;
}

.rating-count {
    color: #666;
    font-size: 0.8rem;
}

.add-review {
    color: #1a1a1a;
    font-size: 0.8rem;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

/* Key Features */
.key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-item i {
    width: 20px;
    color: #1a1a1a;
    font-size: 1rem;
}

.feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 0.7rem;
    color: #888;
}

.feature-value {
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-value.in-stock {
    color: #2e7d32;
}

/* Price Box */
.product-price-box {
    background: #f8f8f8;
    padding: 1.2rem;
    border-radius: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    color: #666;
}

.price-values {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.current-price {
    color: #e33629;
    font-size: 1.3rem;
    font-weight: 700;
}

.save-badge {
    background: #e33629;
    color: #fff;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

/* Variations */
.product-variations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variation-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.variation-group label {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 40px;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.color-btn.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1a1a1a;
}

.model-options {
    display: flex;
    gap: 0.5rem;
}

.model-btn {
    padding: 0.4rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.model-btn.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.variation-selected-info {
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}

.variation-selected-info .info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #475569;
    font-size: 0.85rem;
}

.variation-selected-info .info-row + .info-row {
    margin-top: 0.55rem;
}

.variation-selected-info .label {
    color: #64748b;
}

.variation-selected-info .value {
    color: #0f172a;
    font-weight: 700;
}

.variation-selected-info .in-stock {
    color: #059669;
}

.variation-selected-info .out-of-stock {
    color: #dc2626;
}

.variation-option.active {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.model-btn.variation-option.active {
    background: #2563eb;
    border-color: #2563eb;
}

/* Add to Cart */
.add-to-cart-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 40px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 44px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.quantity-selector button:hover {
    background: #f5f5f5;
}

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
}

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

.add-to-cart-btn {
    flex: 1;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background: #333;
}

.add-to-cart-btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.add-to-cart-btn.is-loading {
    cursor: wait;
    background: #334155;
}

.add-to-cart-btn.is-success {
    background: #059669;
}

.add-to-cart-btn.is-error {
    background: #dc2626;
}

.nixstore-product-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10000;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transform: translateY(14px);
    transition: all 0.25s ease;
}

.nixstore-product-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.nixstore-product-notice.error {
    background: #dc2626;
}

/* Product Meta */
.product-meta {
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #888;
    border-top: 1px solid #eee;
}

.product-meta a {
    color: #888;
    text-decoration: none;
}

.product-meta a:hover {
    color: #1a1a1a;
}

/* Product Description */
.product-description {
    margin-bottom: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.product-description h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.description-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content h3 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.description-content ul {
    list-style: disc;
    padding-right: 1.5rem;
}

.description-content li {
    margin-bottom: 0.3rem;
}

.product-reviews-panel {
    margin-bottom: 4rem;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid #e8edf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .05);
}

.product-reviews-panel .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.product-reviews-panel .section-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
}

.product-reviews-panel .commentlist {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.product-reviews-panel .comment,
.product-reviews-panel .review {
    padding: 14px;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    background: #fbfdff;
}

.product-reviews-panel .comment-text,
.product-reviews-panel .description {
    color: #334155;
    font-size: .9rem;
    line-height: 1.8;
}

.product-reviews-panel #review_form,
.product-reviews-panel #respond {
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
}

.product-reviews-panel input,
.product-reviews-panel textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
}

.product-reviews-panel input:focus,
.product-reviews-panel textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.product-reviews-panel .submit {
    width: auto;
    border: 0;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font-weight: 850;
}

/* Related Products */
.related-products {
    margin-bottom: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.3rem;
    }
    
    .key-features {
        grid-template-columns: 1fr;
    }
    
    .add-to-cart-box {
        flex-direction: column;
    }

    .variation-group {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.7rem;
    }

    .color-options,
    .model-options {
        flex-wrap: wrap;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .gallery-thumbs {
        gap: 0.5rem;
    }
    
    .thumb-btn {
        width: 60px;
        height: 60px;
    }

    .nixstore-product-notice {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
        text-align: center;
    }
}

/* Final single product redesign */
.single-product {
    /* padding: clamp(24px, 4vw, 56px) 0 70px; */
    background: #f8fafc;
}

.single-product .container {
    display: grid;
    gap: 22px;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    color: #94a3b8;
}

.breadcrumb a {
    color: #64748b;
    font-weight: 750;
}

.breadcrumb span {
    color: #0f172a;
    font-weight: 800;
}

.product-main {
    align-items: start;
    gap: 24px;
    margin: 0;
    padding: clamp(14px, 2.2vw, 22px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.product-gallery {
    top: 92px;
}

.gallery-main {
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #f8fafc;
}

.gallery-main img {
    padding: 18px;
}

.gallery-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
}

.thumb-btn.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.product-info {
    gap: 14px;
}

.single-product .product-info .product-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.45;
}

.product-rating {
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}

.add-review {
    color: #2563eb;
    border: 0;
    font-weight: 800;
}

.key-features {
    padding: 0;
    border: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.feature-item {
    min-height: 62px;
    padding: 11px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #f8fafc;
}

.feature-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.feature-label {
    color: #64748b;
    font-weight: 750;
}

.feature-value {
    color: #0f172a;
    font-weight: 850;
}

.product-price-box {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.price-label {
    color: #475569;
    font-weight: 850;
}

.current-price {
    color: #0f766e;
    font-size: clamp(1.2rem, 2.4vw, 1.65rem);
    font-weight: 950;
}

.save-badge {
    border-radius: 8px;
    background: #dc2626;
    font-weight: 850;
}

.product-variations {
    gap: 12px;
}

.variation-group {
    padding: 12px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #fff;
}

.variation-group label {
    color: #0f172a;
    font-weight: 850;
}

.color-btn {
    width: 34px;
    height: 34px;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.color-btn.active,
.variation-option.active {
    outline: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.model-btn {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    color: #334155;
    font-weight: 800;
}

.model-btn.active,
.model-btn.variation-option.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.add-to-cart-box {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px;
}

.quantity-selector {
    width: 132px;
    border-color: #dbe7ef;
    border-radius: 8px;
    background: #fff;
}

.quantity-selector button,
.qty-input {
    height: 48px;
}

.add-to-cart-btn {
    min-height: 48px;
    border-radius: 8px;
    background: #0f172a;
    font-weight: 900;
}

.add-to-cart-btn:hover {
    background: #2563eb;
}

.product-meta {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    background: #fbfdff;
    color: #64748b;
}

.product-meta a {
    color: #2563eb;
    font-weight: 800;
}

.product-description,
.product-reviews-panel,
.related-products {
    margin: 0;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.05);
}

.product-description h2,
.related-products .section-header h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
}

.description-content {
    color: #334155;
    font-size: 0.96rem;
    line-height: 2;
}

.product-reviews-panel {
    border-radius: 8px;
}

.product-reviews-panel .comment,
.product-reviews-panel .review,
.product-reviews-panel input,
.product-reviews-panel textarea {
    border-radius: 8px;
}

.related-products .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.related-products .product-card {
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
}

@media (max-width: 768px) {
    .product-main {
        padding: 12px;
    }

    .key-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .add-to-cart-box {
        grid-template-columns: 1fr;
    }

    .quantity-selector {
        width: 100%;
    }
}

/* Dark theme final pass */
.single-product { background: #070b12; color: #f8fafc; }
.product-main,
.product-description,
.product-reviews-panel,
.related-products,
.feature-item,
.variation-group,
.product-meta { background: #111827; border-color: #263247; color: #f8fafc; box-shadow: 0 18px 46px rgba(0, 0, 0, .26); }
.gallery-main,
.thumb-btn,
.product-price-box,
.variation-selected-info,
.quantity-selector,
.product-reviews-panel .comment,
.product-reviews-panel .review { background: #0b111c; border-color: #263247; color: #f8fafc; }
.single-product .product-info .product-title,
.product-description h2,
.related-products .section-header h2,
.product-reviews-panel .section-header h2,
.feature-value,
.variation-group label,
.price-label { color: #f8fafc; }
.breadcrumb,
.breadcrumb a,
.feature-label,
.description-content,
.product-meta,
.rating-count,
.variation-selected-info .label { color: #a7b4c8; }
.current-price,
.variation-selected-info .value { color: #22c55e; }
.old-price { color: #f87171; }
.model-btn,
.qty-input,
.quantity-selector button,
.product-reviews-panel input,
.product-reviews-panel textarea { background: #0b111c; border-color: #263247; color: #f8fafc; }
.add-to-cart-btn,
.product-reviews-panel .submit { background: #2563eb; color: #fff; }
.add-to-cart-btn:hover,
.product-reviews-panel .submit:hover { background: #1d4ed8; }
.related-products .product-card { background: #111827; border-color: #263247; }

/* Mobile product summary and reviews final pass */
.product-main {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
}

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

.gallery-main {
    max-height: min(620px, calc(100vh - 150px));
}

.single-product .product-info .product-title {
    overflow-wrap: anywhere;
}

.product-reviews-panel .nix-comments {
    --comments-bg: #111827;
    --comments-soft: #0b111c;
    --comments-line: #263247;
    --comments-text: #f8fafc;
    --comments-muted: #a7b4c8;
    --comments-primary: #2563eb;
}

.product-reviews-panel .nix-comments__head,
.product-reviews-panel .nix-comment__body,
.product-reviews-panel .nix-comment-form,
.product-reviews-panel .nix-comments__closed {
    background: var(--comments-bg);
    border-color: var(--comments-line);
    box-shadow: none;
}

.product-reviews-panel .nix-comment-form input,
.product-reviews-panel .nix-comment-form textarea,
.product-reviews-panel .nix-comment-form select {
    background: var(--comments-soft);
    border-color: var(--comments-line);
    color: var(--comments-text);
}

.product-reviews-panel .nix-comment-form input:focus,
.product-reviews-panel .nix-comment-form textarea:focus,
.product-reviews-panel .nix-comment-form select:focus {
    background: #101826;
    border-color: #60a5fa;
}

.product-reviews-panel .product-reviews-content,
.product-reviews-panel .woocommerce-Reviews {
    min-width: 0;
}

.product-reviews-panel .woocommerce-Reviews {
    display: grid;
    gap: 18px;
}

.product-reviews-panel .woocommerce-Reviews #comments {
    display: grid;
    gap: 14px;
}

.product-reviews-panel .woocommerce-Reviews-title {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #263247;
    border-radius: 8px;
    background: #0b111c;
    color: #f8fafc;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 900;
    line-height: 1.8;
}

.product-reviews-panel .woocommerce-Reviews-title span {
    color: #93c5fd;
}

.product-reviews-panel .commentlist {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-reviews-panel .commentlist > li {
    margin: 0;
    padding: 0;
}

.product-reviews-panel .comment_container {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid #263247;
    border-radius: 8px;
    background: #0b111c;
}

.product-reviews-panel .comment_container .avatar {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 2px solid #1f2a3d;
    background: #111827;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.product-reviews-panel .comment-text {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
}

.product-reviews-panel .comment-text .meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: #a7b4c8;
    font-size: .84rem;
}

.product-reviews-panel .woocommerce-review__author {
    color: #f8fafc;
    font-size: .95rem;
    font-weight: 900;
}

.product-reviews-panel .woocommerce-review__dash {
    color: #475569;
}

.product-reviews-panel .woocommerce-review__published-date {
    color: #94a3b8;
}

.product-reviews-panel .comment-text .description {
    color: #dbe4f0;
    font-size: .94rem;
    line-height: 1.95;
}

.product-reviews-panel .comment-text .description p {
    margin: 0;
}

.product-reviews-panel .comment-text .star-rating {
    float: none;
    margin: 0 0 2px;
    color: #f59e0b;
}

.product-reviews-panel .commentlist .children {
    margin: 12px 74px 0 0;
    padding: 0;
    list-style: none;
}

.product-reviews-panel #review_form_wrapper {
    margin-top: 4px;
}

.product-reviews-panel #review_form,
.product-reviews-panel #respond {
    min-width: 0;
}

.product-reviews-panel #respond {
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid #263247;
    border-radius: 8px;
    background: #0b111c;
}

.product-reviews-panel #reply-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 950;
}

.product-reviews-panel #cancel-comment-reply-link {
    color: #fca5a5;
    font-size: .78rem;
    font-weight: 800;
}

.product-reviews-panel .comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-reviews-panel .comment-form > p,
.product-reviews-panel .comment-form-rating {
    margin: 0;
}

.product-reviews-panel .comment-notes,
.product-reviews-panel .comment-form-rating,
.product-reviews-panel .comment-form-comment,
.product-reviews-panel .comment-form-cookies-consent,
.product-reviews-panel .form-submit {
    grid-column: 1 / -1;
}

.product-reviews-panel .comment-notes {
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 8px;
    background: rgba(96, 165, 250, .08);
    color: #a7b4c8;
    font-size: .84rem;
    line-height: 1.9;
}

.product-reviews-panel .required,
.product-reviews-panel .required-field-message {
    color: #fca5a5;
}

.product-reviews-panel .comment-form label {
    display: block;
    margin: 0 0 7px;
    color: #f8fafc;
    font-size: .86rem;
    font-weight: 850;
}

.product-reviews-panel .comment-form input[type="text"],
.product-reviews-panel .comment-form input[type="email"],
.product-reviews-panel .comment-form textarea,
.product-reviews-panel .comment-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #263247;
    border-radius: 8px;
    background: #111827;
    color: #f8fafc;
    font-family: inherit;
    font-size: .92rem;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.product-reviews-panel .comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.9;
}

.product-reviews-panel .comment-form input[type="text"]:focus,
.product-reviews-panel .comment-form input[type="email"]:focus,
.product-reviews-panel .comment-form textarea:focus,
.product-reviews-panel .comment-form select:focus {
    border-color: #60a5fa;
    background: #101826;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .16);
}

.product-reviews-panel .comment-form-rating {
    padding: 12px;
    border: 1px solid #263247;
    border-radius: 8px;
    background: #111827;
}

.product-reviews-panel .comment-form-rating .stars {
    margin: 0;
}

.product-reviews-panel .comment-form-rating .stars span {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 7px;
}

.product-reviews-panel .comment-form-rating .stars a {
    position: relative;
    width: 30px;
    height: 30px;
    overflow: hidden;
    color: transparent !important;
    text-indent: 999px;
    white-space: nowrap;
}

.product-reviews-panel .comment-form-rating .stars a::before {
    content: "\f005";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #475569;
    font-family: "Font Awesome 5 Free";
    font-size: 1.38rem;
    font-weight: 900;
    text-indent: 0;
    transition: color .16s ease, transform .16s ease;
}

.product-reviews-panel .comment-form-rating .stars a:hover::before,
.product-reviews-panel .comment-form-rating .stars a:hover ~ a::before,
.product-reviews-panel .comment-form-rating .stars.selected a.active::before,
.product-reviews-panel .comment-form-rating .stars.selected a.active ~ a::before,
.product-reviews-panel .comment-form-rating .stars a[aria-checked="true"]::before,
.product-reviews-panel .comment-form-rating .stars a[aria-checked="true"] ~ a::before {
    color: #f59e0b;
    transform: scale(1.08);
}

.product-reviews-panel .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #a7b4c8;
}

.product-reviews-panel .comment-form-cookies-consent input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 3px;
    accent-color: #2563eb;
}

.product-reviews-panel .comment-form-cookies-consent label {
    margin: 0;
    color: #a7b4c8;
    font-weight: 650;
    line-height: 1.8;
}

.product-reviews-panel .form-submit {
    display: flex;
    justify-content: flex-end;
}

.product-reviews-panel .form-submit .submit {
    min-width: 140px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-weight: 950;
    transition: background .18s ease, transform .18s ease;
}

.product-reviews-panel .form-submit .submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.product-reviews-panel .clear {
    display: none;
}

@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-gallery {
        position: static;
        top: auto;
    }

    .gallery-main {
        max-height: none;
        aspect-ratio: 1 / .82;
    }

    .single-product .product-info .product-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }
}

@media (max-width: 560px) {
    .single-product .container {
        gap: 16px;
    }

    .breadcrumb {
        font-size: .76rem;
    }

    .product-main,
    .product-description,
    .product-reviews-panel,
    .related-products {
        padding: 12px;
    }

    .gallery-main {
        aspect-ratio: 1;
    }

    .gallery-main img {
        padding: 10px;
    }

    .thumb-btn {
        width: 62px;
        height: 62px;
    }

    .product-rating {
        gap: 8px;
    }

    .price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-reviews-panel .comment_container {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .product-reviews-panel .comment_container .avatar {
        width: 44px;
        height: 44px;
    }

    .product-reviews-panel .comment-text .meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .product-reviews-panel .woocommerce-review__dash {
        display: none;
    }

    .product-reviews-panel .commentlist .children {
        margin: 10px 18px 0 0;
    }

    .product-reviews-panel .woocommerce-Reviews-title {
        padding: 12px;
    }

    .product-reviews-panel .comment-form {
        grid-template-columns: 1fr;
    }

    .product-reviews-panel #reply-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-reviews-panel .form-submit {
        justify-content: stretch;
    }

    .product-reviews-panel .form-submit .submit {
        width: 100%;
    }
}
