:root {
    --cart-green: #25D366;
    --cart-green-hover: #20BD5A;
}

/* Dialog Overlay */
.product-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-dialog {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
}

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

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.dialog-close:hover {
    background: var(--teal, #2BB8C8);
    color: white;
}

.dialog-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow: hidden;
}

@media (max-width: 768px) {
    .dialog-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
}

/* Gallery */
.product-gallery {
    background: #f8f9fa;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    flex: 1;
    min-height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.no-image {
    color: #999;
    font-size: 14px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
}

.thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: white;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumb.active {
    border-color: var(--teal, #2BB8C8);
}

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

/* Product Details */
.product-details {
    padding: 32px;
    overflow-y: auto;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .product-details {
        max-height: none;
        padding: 20px;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-top: 0;
}

.breadcrumb a {
    color: var(--text-mid, #2C3E50);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--teal, #2BB8C8);
}

.breadcrumb .current {
    color: var(--navy, #0F2A44);
    font-weight: 500;
}

.brand-name {
    font-size: 13px;
    color: var(--teal, #2BB8C8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy, #0F2A44);
    line-height: 1.3;
    margin-bottom: 16px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy, #0F2A44);
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #FF6B6B;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.short-desc {
    color: var(--text-mid, #2C3E50);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Attributes */
.attributes-section {
    margin-bottom: 24px;
}

.attribute-group {
    margin-bottom: 16px;
}

.attribute-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy, #0F2A44);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attr-btn {
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.attr-btn:hover:not(.disabled) {
    border-color: var(--teal, #2BB8C8);
}

.attr-btn.selected {
    border-color: var(--navy, #0F2A44);
    background: var(--navy, #0F2A44);
    color: white;
}

.attr-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Stock */
.stock-status {
    margin-bottom: 20px;
}

.stock-status span {
    font-size: 14px;
    font-weight: 500;
}

.stock-status .in { color: #27ae60; }
.stock-status .low { color: #f39c12; }
.stock-status .out { color: #e74c3c; }

/* Cart Section */
.cart-section {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

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

.quantity-selector button {
    width: 44px;
    height: 48px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.quantity-selector button:hover:not(:disabled) {
    background: #f5f5f5;
}

.quantity-selector button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-selector span {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.btn-add-cart {
    flex: 1;
    padding: 14px 28px;
    background: var(--navy, #0F2A44);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.btn-add-cart:hover:not(:disabled):not(.success):not(.adding) {
    background: var(--teal, #2BB8C8);
    transform: translateY(-2px);
}

.btn-add-cart:disabled:not(.success):not(.adding) {
    background: #ccc;
    color: #FFFFFF;
    cursor: not-allowed;
    transform: none;
}

.btn-add-cart.adding {
    background: var(--navy, #0F2A44);
    opacity: 0.85;
    cursor: wait;
    transform: none;
}

.btn-add-cart.success,
.btn-add-cart.success:disabled {
    background: var(--cart-green, #25D366);
    color: #FFFFFF;
    opacity: 1;
    cursor: default;
    transform: none;
}

.btn-add-cart.success:hover:not(:disabled) {
    background: var(--cart-green, #25D366);
    transform: none;
}

.btn-add-cart-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    animation: gallery-cart-spin 0.7s linear infinite;
}

.add-to-cart-block {
    margin: 20px 0;
}

.stock-notify {
    margin: 20px 0;
}

.add-to-cart-block .quantity-row {
    margin: 0 0 10px;
}

.btn-add-cart-checkout {
    width: 100%;
    padding: 14px 28px;
    background: transparent;
    color: var(--navy, #0F2A44);
    border: 2px solid var(--navy, #0F2A44);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart-checkout:hover:not(:disabled):not(.adding) {
    background: var(--teal, #2BB8C8);
    border-color: var(--teal, #2BB8C8);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-add-cart-checkout:disabled,
.btn-add-cart-checkout.adding {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.add-cart-error {
    margin-top: 8px;
    color: #c0392b;
    font-size: 14px;
}

/* Info Boxes */
.info-box {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-box.digital {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.info-box.service {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.info-box p {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy, #0F2A44);
}

.info-box ul {
    list-style: none;
    font-size: 13px;
}

.info-box li {
    padding: 4px 0;
    color: var(--text-mid, #2C3E50);
}

/* Description */
.full-description {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.full-description h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0F2A44);
    margin-bottom: 12px;
}

.description-content {
    color: var(--text-mid, #2C3E50);
    line-height: 1.7;
    font-size: 14px;
}

/* Tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-mid, #2C3E50);
}

.view-full-page {
    display: inline-block;
    color: var(--teal, #2BB8C8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.view-full-page:hover {
    text-decoration: underline;
}

/* -- Full page layout -- */
.product-fullpage { padding: 20px 16px; max-width: 1100px; margin: 0 auto; }
.fullpage-inner {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15,42,68,0.08);
    border: 1px solid rgba(15,42,68,0.06);
}
.product-close-btn {
    display: none;
}
.fullpage-inner .breadcrumb {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.pdp-recently-viewed {
    margin-top: 20px;
}

.pdp-recently-viewed .qv-recent {
    border: 1px solid rgba(15, 42, 68, 0.06);
    border-radius: 16px;
    background: #fafafa;
    box-shadow: 0 2px 12px rgba(15, 42, 68, 0.04);
}

.fullpage-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.product-gallery {
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
    padding: 24px;
}
.product-details {
    padding: 28px 28px;
    background: white;
}

/* -- Carousel -- */
.carousel-wrap {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: zoom-in;
}
.carousel-main {
    width: 100%; height: 100%;
    position: relative;
}
.carousel-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.carousel-wrap:hover .carousel-img { transform: scale(1.03); }
.gallery-cart-fab,
.gallery-zoom-fab {
    position: absolute; bottom: 10px; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    cursor: pointer; transition: background 0.15s, transform 0.15s, opacity 0.15s;
}
.gallery-cart-fab {
    right: 10px;
    background: var(--navy, #0F2A44);
}
.gallery-zoom-fab {
    left: 10px;
    background: var(--navy, #0F2A44);
}
.gallery-cart-fab:hover:not(:disabled):not(.success):not(.adding) {
    background: var(--teal, #2BB8C8);
    transform: scale(1.06);
}
.gallery-zoom-fab:hover:not(:disabled) {
    background: var(--teal, #2BB8C8);
    transform: scale(1.06);
}
.gallery-cart-fab:disabled:not(.success) {
    background: #ccc;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
}
.gallery-cart-fab.adding {
    background: var(--navy, #0F2A44);
    opacity: 0.85;
    cursor: wait;
    transform: none;
}
.gallery-cart-fab.success,
.gallery-cart-fab.success:disabled {
    background: var(--cart-green, #25D366);
    opacity: 1;
    cursor: default;
    transform: none;
}
.gallery-cart-fab.success:hover:not(:disabled) {
    background: var(--cart-green, #25D366);
    transform: none;
}
.gallery-cart-fab-spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    animation: gallery-cart-spin 0.7s linear infinite;
}
@keyframes gallery-cart-spin {
    to { transform: rotate(360deg); }
}

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2; background: white; border: none; border-radius: 50%;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); cursor: pointer;
    transition: background 0.15s;
}
.carousel-btn:hover { background: var(--teal, #2BB8C8); color: white; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* -- Thumbnail strip -- */
.thumbnail-strip {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.thumbnail-strip .thumb {
    width: 60px; height: 60px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; background: none; padding: 0; cursor: pointer; flex-shrink: 0;
    transition: border-color 0.15s;
}
.thumbnail-strip .thumb.active { border-color: var(--teal, #2BB8C8); }
.thumbnail-strip .thumb img { width: 100%; height: 100%; object-fit: cover; background: #f5f5f5; }

/* -- Zoom lightbox -- */
.zoom-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 2000; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
/* Close button top-right corner */
.zoom-close {
    position: fixed; top: 16px; right: 16px;
    background: rgba(255,255,255,0.18); color: white; border: none;
    border-radius: 50%; width: 44px; height: 44px;
    min-width: 44px; min-height: 44px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 2002; transition: background 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.zoom-close:hover,
.zoom-close:focus-visible { background: rgba(255,255,255,0.32); outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }
/* Nav arrows on sides of screen */
.zoom-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); color: white; border: none;
    border-radius: 50%; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s; z-index: 2001;
}
.zoom-nav:hover { background: rgba(255,255,255,0.28); }
.zoom-nav--prev { left: 16px; }
.zoom-nav--next { right: 16px; }
/* Image container */
.zoom-box {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; width: 100%; height: 100%;
    padding: 60px 80px 20px;
    box-sizing: border-box;
}
.zoom-img-wrap {
    flex: 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    width: 100%;
}
.zoom-img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; display: block;
    transition: transform 0.15s ease;
    transform-origin: center center;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}
.zoom-img-wrap {
    cursor: grab;
}
.zoom-img-wrap.dragging {
    cursor: grabbing;
}
/* Zoom controls bar at bottom */
.zoom-controls {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.1); border-radius: 30px;
    padding: 8px 20px; color: white; flex-shrink: 0;
}
.zoom-controls button {
    background: rgba(255,255,255,0.12); border: none; color: white;
    font-size: 20px; font-weight: 700; cursor: pointer;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.15s;
}
.zoom-controls button:hover,
.zoom-controls button:focus-visible { background: rgba(255,255,255,0.28); }
.zoom-controls button:focus-visible { outline: 2px solid rgba(255,255,255,0.45); outline-offset: 2px; }
.zoom-controls span:not(.zoom-controls-divider) { font-size: 14px; min-width: 52px; text-align: center; font-weight: 600; }
.zoom-controls-divider {
    width: 1px; height: 28px; background: rgba(255,255,255,0.22);
    margin-inline: 4px; flex-shrink: 0;
}
.zoom-controls-close {
    background: rgba(255,255,255,0.2) !important;
}
.zoom-controls-close:hover,
.zoom-controls-close:focus-visible {
    background: rgba(255,255,255,0.34) !important;
}
@media (max-width: 480px) {
    .zoom-box { padding: 56px 16px 16px; }
    .zoom-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
    .zoom-nav--prev { left: 4px; }
    .zoom-nav--next { right: 4px; }
}

/* -- Price / qty on white -- */
.price-row { display: flex; align-items: center; gap: 12px; margin: 12px 0 20px; }
.price-current { font-size: 28px; font-weight: 700; color: var(--navy, #0F2A44); }
.price-original { font-size: 16px; color: #aaa; text-decoration: line-through; }
.quantity-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: 10px; overflow: hidden; }
.qty-control button { width: 38px; height: 42px; border: none; background: #f8f8f8; font-size: 20px; cursor: pointer; color: var(--navy, #0F2A44); }
.qty-control button:hover { background: #eee; }
.qty-control span { min-width: 42px; text-align: center; font-weight: 600; font-size: 15px; }

@media (max-width: 768px) {
    .fullpage-content { grid-template-columns: 1fr; }
    .product-gallery { border-right: none; border-bottom: 1px solid #f0f0f0; padding: 16px; }
    .gallery-cart-fab {
        bottom: max(10px, env(safe-area-inset-bottom));
        right: max(10px, env(safe-area-inset-right));
    }
    .gallery-zoom-fab {
        bottom: max(10px, env(safe-area-inset-bottom));
        left: max(10px, env(safe-area-inset-left));
    }
    .product-details { padding: 20px 16px; }
    .product-fullpage { padding: 12px 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .quantity-row { flex-direction: row; align-items: center; flex-wrap: wrap; }
    .product-detail-page .quantity-row .btn-add-cart { display: none; }
    .btn-add-cart-checkout { width: 100%; min-height: 48px; }
    .attr-btn { min-height: 40px; padding: 8px 14px; }
    .zoom-nav--prev { left: 4px; }
    .zoom-nav--next { right: 4px; }
    .fullpage-inner .breadcrumb { padding-inline-end: 56px; }
    .product-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border: none;
        border-radius: 50%;
        background: #f5f5f5;
        color: var(--navy, #0F2A44);
        cursor: pointer;
        z-index: 5;
        transition: background 0.2s, color 0.2s;
    }
    .product-close-btn:hover,
    .product-close-btn:active {
        background: #e8e8e8;
    }
}

/* Loading & Not Found */
.product-loading,
.product-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.product-loading p {
    max-width: 100%;
    overflow-wrap: break-word;
    line-height: 1.45;
}

.loading-spinner {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.spinner-dot {
    width: 12px;
    height: 12px;
    background: var(--teal, #2BB8C8);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.product-not-found h1 {
    font-size: 24px;
    color: var(--navy, #0F2A44);
    margin-bottom: 12px;
}

.product-not-found p {
    color: var(--text-mid, #2C3E50);
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
    color: var(--teal, #2BB8C8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-back:hover {
    color: var(--navy, #0F2A44);
    text-decoration: underline;
}

/* Wishlist button */
.wishlist-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e0e0e0; background: white; color: #999; cursor: pointer; margin-left: auto; transition: all 0.15s; }
.wishlist-btn:hover { border-color: #FFCDD2; background: #FFEBEE; color: #E91E63; }
.wishlist-btn.active { border-color: #FFCDD2; background: #FFEBEE; color: #E91E63; }
.wishlist-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Reviews */
.btn-review { display: inline-flex; align-items: center; gap: 6px; background: var(--navy, #0F2A44); color: white; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: background 0.2s; }
.btn-review:hover { background: var(--teal, #2BB8C8); }
.reviews-loading { display: flex; justify-content: center; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); width: 100%; box-sizing: border-box; }
.reviews-empty { text-align: center; padding: 32px; color: #888; }
.review-form { max-width: 520px; }
.review-error { background: #FFEBEE; color: #C62828; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.star-input { margin-bottom: 16px; }
.star-input label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 6px; }
.star-input .stars { display: flex; gap: 4px; }
.star-btn { background: none; border: none; font-size: 28px; color: #ddd; cursor: pointer; line-height: 1; padding: 0 2px; transition: color 0.15s; }
.star-btn.active { color: #FFC107; }
.star-btn:hover { color: #FFC107; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-size: 14px; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal, #2BB8C8); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn-submit { background: var(--navy, #0F2A44); color: white; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: background 0.2s; }
.btn-submit:hover:not(:disabled) { background: var(--teal, #2BB8C8); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-cancel { background: #f5f5f5; color: #666; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; }
.review-summary-bar { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f0f0f0; }
.big-rating { text-align: center; }
.rating-number { font-size: 48px; font-weight: 800; color: var(--navy, #0F2A44); line-height: 1; }
.stars-display { display: flex; gap: 2px; justify-content: center; margin: 6px 0; }
.stars-display .star { font-size: 18px; color: #ddd; }
.stars-display .star.filled { color: #FFC107; }
.rating-count { font-size: 13px; color: #888; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 24px; gap: 8px; align-items: center; font-size: 13px; color: #666; }
.bar-track { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #FFC107; border-radius: 4px; transition: width 0.3s ease; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }
.review-card { padding: 16px; border-radius: 12px; background: #fafafa; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.reviewer-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviewer-name { font-weight: 700; font-size: 14px; color: var(--navy, #0F2A44); }
.verified-badge { font-size: 11px; font-weight: 600; color: #2E7D32; background: #E8F5E9; padding: 2px 8px; border-radius: 12px; white-space: nowrap; }
.review-meta { display: flex; align-items: center; gap: 10px; }
.review-stars { display: flex; gap: 1px; }
.review-stars .star { font-size: 14px; color: #ddd; }
.review-stars .star.filled { color: #FFC107; }
.review-date { font-size: 12px; color: #aaa; }
.review-title { font-weight: 700; font-size: 14px; color: var(--navy, #0F2A44); margin-bottom: 4px; }
.review-comment { font-size: 14px; color: #555; line-height: 1.5; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review-photo-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 1.5px solid #eee; transition: border-color 0.15s; }
.review-photo-thumb:hover { border-color: var(--teal, #2BB8C8); }
.photo-hint { font-weight: 400; color: #aaa; font-size: 12px; }
.photo-input { display: block; margin-bottom: 8px; }
.photo-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-preview { position: relative; width: 80px; height: 80px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.photo-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: #E53935; color: white; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-uploading { font-size: 13px; color: #888; margin-top: 6px; }
.checkbox-field { margin-bottom: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #555; }
.checkbox-label input { width: auto; margin: 0; }
.review-photo-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.review-photo-lightbox img { max-width: 90%; max-height: 90%; border-radius: 12px; object-fit: contain; }
.review-photo-close { position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,0.15); color: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3001; }
.review-photo-close:hover { background: rgba(255,255,255,0.3); }
@media (max-width: 640px) {
    .review-summary-bar { grid-template-columns: 1fr; gap: 16px; }
}

/* More products row */
.more-products-section { max-width: 1100px; margin: 24px auto 0; padding: 0 16px; }
.more-products-inner {
    background: white; border-radius: 20px; padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.more-products-title {
    font-size: 20px; font-weight: 700; color: var(--navy, #0F2A44);
    margin: 0 0 16px;
}
.more-products-row {
    display: flex; gap: 14px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; scrollbar-width: thin;
}
.more-prod-card {
    flex: 0 0 150px; min-width: 150px; max-width: 160px;
    scroll-snap-align: start; text-decoration: none; color: inherit;
    background: #fafafa; border-radius: var(--product-card-radius); overflow: hidden;
    border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s;
}
.more-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.more-prod-img-wrap {
    aspect-ratio: 1; background: #f0f2f5; position: relative; overflow: hidden;
}
.more-prod-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.more-prod-no-img {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #999;
}
.more-prod-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--teal, #2BB8C8); color: white; font-size: 10px;
    padding: 3px 8px; border-radius: 20px; font-weight: 700;
}
.more-prod-body { padding: 10px 12px 12px; }
.more-prod-brand {
    font-size: 10px; color: #888; text-transform: uppercase;
    letter-spacing: 0.3px; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.more-prod-name {
    font-size: 13px; font-weight: 600; color: var(--navy, #0F2A44);
    line-height: 1.3; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.6em;
}
.more-prod-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.more-prod-price { font-size: 13px; font-weight: 700; color: var(--navy, #0F2A44); }
.more-prod-old-price { font-size: 11px; color: #aaa; text-decoration: line-through; }
.more-prod-card.skeleton { pointer-events: none; }
.more-prod-card .skeleton-block { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; }
.more-prod-card .skeleton-text { height: 12px; margin-bottom: 6px; }
.more-prod-card .skeleton-text.short { width: 60%; }
.more-prod-card.skeleton .more-prod-img { background: #eee; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 480px) {
    .more-prod-card { flex: 0 0 140px; min-width: 140px; }
}

/* Reviews section wrapper (inline styles from Blazor) */
.reviews-section {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 16px;
}

.reviews-section-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.reviews-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews-section-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy, #0F2A44);
    margin: 0;
}

