/* Product Page - Modern Redesign (Stores.php Style) */

/* Base Wrapper */
.product-wrapper {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
}

.page-background { position: fixed; inset: 0; z-index: -1; }
.page-gradient {
    position: absolute; inset: 0;
    background: var(--hero-bg, linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%));
}
[data-theme="dark"] .page-gradient {
    background: linear-gradient(135deg, #0f1115 0%, #1a1d24 50%, #0d0f12 100%);
}
.page-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--hero-pattern-color, rgba(0, 0, 0, 0.04)) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.8;
}
[data-theme="dark"] .page-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* Hero Section */
.product-hero {
    padding: 40px 0 30px;
    text-align: center;
    animation: fadeInDown 0.5s ease-out;
}

.product-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}
.product-hero__back:hover {
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
    transform: translateX(-3px);
}

.product-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(5, 214, 193, 0.1);
    border: 1px solid rgba(5, 214, 193, 0.3);
    border-radius: 50px;
    color: var(--primary, #05d6c1);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
    animation: scaleIn 0.4s ease-out 0.1s both;
}

.product-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 12px;
    line-height: 1.3;
    animation: fadeInUp 0.4s ease-out 0.15s both;
}

.product-hero__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.4s ease-out 0.2s both;
}

.product-hero__category,
.product-hero__rating,
.product-hero__id {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-secondary, #a0a0b0);
}
.product-hero__category i { color: var(--primary, #05d6c1); }
.product-hero__rating i { color: #fbbf24; }

/* Main Layout */
.product-main {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease-out 0.25s both;
    align-items: start;
}

/* Make gallery card extend to match purchase card height */
.product-main .product-card:first-child {
  width: 100%;
  height: 100%;
}

/* Cards Base */
.product-card {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px; 
    transition: all 0.3s ease;
    width: 100%;
}
.product-card:hover { border-color: rgba(5, 214, 193, 0.3); }

.product-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card__title i { color: var(--primary, #05d6c1); font-size: 12px; }

/* Product Gallery */
.product-gallery {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 24px;
    padding: 24px;
    animation: fadeInLeft 0.6s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-gallery__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-elevated, #0f0f1a);
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted, #6b7280);
    gap: 16px;
}

.image-placeholder i {
    font-size: 64px;
}

.image-placeholder span {
    font-size: 14px;
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.image-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--primary, #05d6c1);
    color: white;
    border-color: transparent;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary, #05d6c1);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-section {
    animation: fadeInRight 0.6s ease-out;
}

.store-info-header {
    margin-bottom: 20px;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.store-link:hover {
    border-color: var(--primary, #05d6c1);
    transform: translateY(-2px);
}

.store-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-elevated, #0f0f1a);
    flex-shrink: 0;
}

.store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #05d6c1) 0%, var(--primary-dark, #4fd1c5) 100%);
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.store-details .store-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star-rating i {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.star-rating i.active {
    color: #fbbf24;
}

.store-rating span {
    font-size: 13px;
    color: var(--text-secondary, #a0a0b0);
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-category {
    margin-bottom: 16px;
}

.product-category a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 30px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-category a:hover {
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.product-rating .star-rating i.active {
    color: #fbbf24;
}

.rating-text {
    font-size: 14px;
    color: var(--text-secondary, #a0a0b0);
}

/* Price Section */
.product-pricing {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.price-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.sale-price,
.current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary, #05d6c1);
}

.original-price {
    font-size: 20px;
    color: var(--text-muted, #6b7280);
    text-decoration: line-through;
}

.savings-info {
    font-size: 14px;
    color: var(--primary, #05d6c1);
    font-weight: 500;
}

/* Variants */
.product-variants {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.variant-group {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 12px 20px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-option:hover,
.variant-option.selected {
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
    background: rgba(5, 214, 193, 0.1);
}

.price-modifier {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 6px;
}

/* Purchase Section */
.product-purchase {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.quantity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 14px;
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.qty-btn:hover {
    background: var(--primary, #05d6c1);
    color: white;
}

#quantity {
    width: 70px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 18px;
    font-weight: 600;
}

.stock-info {
    margin-bottom: 20px;
}

.in-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #05d6c1);
    font-size: 14px;
}

.out-of-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 14px;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary, #05d6c1) 0%, var(--primary-dark, #4fd1c5) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(5, 214, 193, 0.3);
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 214, 193, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-primary, #2a2a4a);
    color: var(--text-primary, #fff);
    flex: 1;
}

.btn-outline:hover {
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
}

.btn-secondary {
    background: var(--bg-elevated, #0f0f1a);
    color: var(--text-muted, #6b7280);
    flex: 1;
}

.btn-large {
    padding: 18px 36px;
}

/* Shipping Section */
.shipping-fee-section {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    padding: 24px;
}

.shipping-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-title i {
    color: var(--primary, #05d6c1);
}

.city-selector {
    margin-bottom: 20px;
}

.shipping-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary, #a0a0b0);
    margin-bottom: 10px;
}

.shipping-label i {
    color: var(--primary, #05d6c1);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary, #05d6c1);
}

.shipping-fees {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.fee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 12px;
}

.fee-item i {
    color: var(--primary, #05d6c1);
    font-size: 18px;
}

.fee-details {
    flex: 1;
}

.fee-details strong {
    font-size: 13px;
    color: var(--text-secondary, #a0a0b0);
}

.fee-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.current-shipping-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(5, 214, 193, 0.1);
    border: 1px solid rgba(5, 214, 193, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.current-shipping-fee strong {
    font-size: 14px;
    color: var(--text-primary, #fff);
}

.selected-fee {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #05d6c1);
}

.store-location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #a0a0b0);
}

.store-location-info i {
    color: var(--primary, #05d6c1);
}

/* Content Sections */
.content-section {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    animation: fadeInUp 0.5s ease-out;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary, #05d6c1);
}

.description-content {
    font-size: 15px;
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.8;
}

/* Specifications */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--border-primary, #2a2a4a);
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 16px 0;
    font-size: 14px;
}

.specifications-table td:first-child {
    color: var(--text-secondary, #a0a0b0);
    width: 180px;
}

.specifications-table td:last-child {
    color: var(--text-primary, #fff);
}

/* Reviews */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    padding: 20px;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary, #05d6c1) 0%, var(--primary-dark, #4fd1c5) 100%);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    display: block;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 2px;
}

.review-rating i {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.review-rating i.active {
    color: #fbbf24;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.review-content p {
    font-size: 14px;
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.7;
    margin: 0;
}

.empty-reviews {
    text-align: center;
    padding: 60px 20px;
}

.empty-reviews .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 214, 193, 0.1);
    border-radius: 50%;
}

.empty-reviews .empty-icon i {
    font-size: 32px;
    color: var(--primary, #05d6c1);
}

.empty-reviews h5 {
    font-size: 18px;
    color: var(--text-primary, #fff);
    margin: 0 0 8px 0;
}

.empty-reviews p {
    font-size: 14px;
    color: var(--text-secondary, #a0a0b0);
    margin: 0 0 20px 0;
}

/* Content Sections Container */
.content-sections {
    margin-top: 40px;
}

/* Related Products */
.related-products-section {
    margin-top: 40px;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.related-product-card {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-product-card:hover {
    border-color: var(--primary, #05d6c1);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(5, 214, 193, 0.15);
}

.related-product-link {
    text-decoration: none;
}

.related-product-image {
    aspect-ratio: 3 / 4;
    background: var(--bg-elevated, #0f0f1a);
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b7280);
    font-size: 36px;
}

.related-product-info {
    padding: 16px;
}

.related-product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 6px 0;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.related-category-name {
    font-size: 10px;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.related-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.related-product-rating i {
    font-size: 10px;
}

.related-product-rating .star-filled {
    color: #fbbf24;
}

.related-product-rating .star-empty {
    color: var(--text-muted, #6b7280);
}

.related-rating-value,
.related-rating-count {
    font-size: 11px;
    color: var(--text-secondary, #a0a0b0);
}

.related-product-price {
    margin-top: 8px;
}

.related-price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #05d6c1);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 16px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-large {
        padding: 16px 24px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .price-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sale-price,
    .current-price {
        font-size: 28px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Review Modal Styles */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.review-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 20px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #22c55e 0%, #04a99a 100%);
    color: white;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.review-modal-body {
    padding: 24px;
}

.review-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 12px;
    margin-bottom: 24px;
}

.review-product-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b7280);
    font-size: 24px;
}

.review-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-product-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.review-rating-section {
    margin-bottom: 20px;
}

.review-rating-section label,
.review-text-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 10px;
}

.star-select {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-select i:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.review-text-section textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.review-text-section textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.review-text-section textarea::placeholder {
    color: var(--text-muted, #6b7280);
}

.review-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-elevated, #0f0f1a);
    border-top: 1px solid var(--border-primary, #2a2a4a);
}

.btn-cancel-review {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-review:hover {
    border-color: var(--text-secondary, #a0a0b0);
    color: var(--text-primary, #fff);
}

.btn-submit-review {
    flex: 2;
    padding: 14px 20px;
    background: linear-gradient(135deg, #22c55e 0%, #04a99a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-submit-review:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   NEW BEM STYLES - Modern Redesign
   ============================================ */

/* Product Gallery Card */
.product-card--gallery {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Product Gallery - Main Image Container */
.product-gallery__main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-elevated, #0f0f1a);
    aspect-ratio: 3 / 4;
    width: 100%;
}

.product-gallery__back {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    z-index: 4;
    transition: all 0.2s ease;
}

.product-gallery__back:hover {
    background: rgba(15, 15, 26, 0.95);
    color: white;
    transform: translateY(-1px);
}

.product-gallery__back i {
    font-size: 11px;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-gallery__main img:hover { transform: scale(1.02); }
.product-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted, #6b7280);
    font-size: 48px;
}
.product-gallery__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}
.product-gallery__actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}
.product-gallery__action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-gallery__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.product-gallery__action.favorited,
.product-gallery__action[style*="background: rgb(231, 76, 60)"],
.product-gallery__action[style*="background: #e74c3c"] {
    background: #e74c3c !important;
    color: white !important;
    border-color: #c0392b !important;
    animation: heartBeat 0.3s ease;
}
.product-gallery__action.favorited:hover {
    background: #c0392b;
    transform: translateY(-2px);
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.product-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}
.product-gallery__thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.product-gallery__thumb:hover,
.product-gallery__thumb.active {
    border-color: var(--primary, #05d6c1);
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Column */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Store Mini Card */
.product-card--store {
    text-decoration: none;
    display: block;
    padding: 12px 16px;
}
.store-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}
.store-mini__logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated, #0f0f1a);
    flex-shrink: 0;
}
.store-mini__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.store-mini__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 214, 193, 0.1);
    color: var(--primary, #05d6c1);
    font-size: 18px;
}
.store-mini__info { flex: 1; }
.store-mini__name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 2px;
}
.store-mini__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary, #a0a0b0);
}
.store-mini__rating i { color: #fbbf24; }
.store-mini__location i { color: var(--primary, #05d6c1); }
.store-mini__arrow {
    color: var(--text-muted, #6b7280);
    font-size: 12px;
    transition: transform 0.3s ease;
}
.product-card--store:hover .store-mini__arrow { transform: translateX(3px); }

/* Price Card */
.product-card--price { padding: 14px 16px; }
.price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.price-display__main {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.price-display__current {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary, #05d6c1);
}
.price-display__original {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    text-decoration: line-through;
}
.price-display__save {
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 20px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
}
.stock-display { font-size: 12px; }
.stock-display__in {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary, #05d6c1);
}
.stock-display__out {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ef4444;
}

/* Variants Card */
.product-card--variants { padding: 14px 16px; }
.variant-group { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.variant-group:last-child { margin-bottom: 0; }
.variant-group__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #a0a0b0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 100px;
    padding-top: 8px;
    flex-shrink: 0;
}
.variant-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.variant-btn {
    padding: 8px 14px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 8px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.variant-btn:hover,
.variant-btn.selected {
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
    background: rgba(5, 214, 193, 0.1);
}
.variant-btn__price {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 4px;
}

/* Color Variant Button Styles */
.variant-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
     flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.variant-color-name {
    font-weight: 600;
    margin-right: 4px;
}
.variant-color-hex {
font-size: 10px;
opacity: 0.6;
font-family: monospace;
}
.variant-btn.selected .variant-color-dot {
border-color: none;
box-shadow: 0 0 0 2px rgba(5, 214, 193, 0.3);
}

/* Out of Stock Variant Button */
.variant-btn.out-of-stock {
opacity: 0.5;
cursor: not-allowed;
position: relative;
text-decoration: line-through;
}
.variant-btn.out-of-stock:hover {
border-color: #ef4444;
color: #ef4444;
background: rgba(239, 68, 68, 0.1);
}
.variant-btn.out-of-stock .variant-color-dot {
opacity: 0.5;
}

/* Required Badge for Variants */
.required-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: 10px;
    font-weight: 500;
}

/* Highlight shake animation for variant card */
@keyframes highlightShake {
    0%, 100% { transform: translateX(0); box-shadow: 0 0 0 2px transparent; }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.highlight-shake {
    animation: highlightShake 0.6s ease;
    box-shadow: 0 0 0 2px #ef4444 !important;
}

/* Purchase Card */
.product-card--purchase { padding: 14px 16px; }
.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.quantity-row__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}
.quantity-row__controls {
    display: flex;
    align-items: center;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 10px;
    overflow: hidden;
}
.quantity-row__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary, #a0a0b0);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}
.quantity-row__btn:hover {
    background: var(--primary, #05d6c1);
    color: white;
}
.quantity-row__input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-weight: 600;
}
.purchase-actions {
    display: flex;
    gap: 10px;
}
.purchase-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.purchase-btn--primary {
    background: linear-gradient(135deg, var(--primary, #05d6c1) 0%, var(--primary-dark, #4fd1c5) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 214, 193, 0.3);
}
.purchase-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 214, 193, 0.4);
}
.purchase-btn--outline {
    background: rgba(5, 214, 193, 0.15);
    border: 2px solid rgba(5, 214, 193, 0.3);
    color: rgba(5, 214, 193, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 transparent;
}
.purchase-btn--outline:hover {
    background: rgba(5, 214, 193, 1);
    border: 2px solid rgba(5, 214, 193, 1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 214, 193, 0.3);
}
.purchase-btn--outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.purchase-btn--outline > * {
    position: relative;
    z-index: 1;
}
.purchase-btn--outline:hover::before {
    left: 120%;
}
.purchase-btn--disabled {
    background: var(--bg-elevated, #0f0f1a);
    color: var(--text-muted, #6b7280);
    cursor: not-allowed;
}

/* Shipping Card */
.product-card--shipping { padding: 14px 16px; }
.shipping-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    margin-bottom: 12px;
    cursor: pointer;
}
.shipping-select:focus {
    outline: none;
    border-color: var(--primary, #05d6c1);
}
.shipping-info { margin-bottom: 10px; }
.shipping-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-secondary, #a0a0b0);
    border-bottom: 1px solid var(--border-primary, #2a2a4a);
}
.shipping-info__row:last-child { border-bottom: none; }
.shipping-info__row i { color: var(--primary, #05d6c1); margin-right: 5px; }
.shipping-info__row strong { color: var(--text-primary, #fff); }
.shipping-info__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(5, 214, 193, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #05d6c1);
    margin-top: 8px;
}
.shipping-location {
    font-size: 11px;
    color: var(--text-secondary, #a0a0b0);
}
.shipping-location i { color: var(--primary, #05d6c1); margin-right: 4px; }

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Content Cards */
.content-card {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px;
    padding: 16px;
    animation: fadeInUp 0.4s ease-out both;
}
.content-card--reviews { grid-column: span 2; }
.content-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
} 
.content-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.content-card__title i { color: var(--primary, #05d6c1); font-size: 13px; }
.content-card__body {
    font-size: 13px;
    color: var(--text-secondary, #a0a0b0);
    line-height: 1.7;
}
.content-card__empty {
    color: var(--text-muted, #6b7280);
    font-style: italic;
    margin: 0;
}

/* Specs List */
.specs-list { display: flex; flex-direction: column; gap: 8px; }
.specs-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary, #2a2a4a);
    font-size: 12px;
}
.specs-list__item:last-child { border-bottom: none; }
.specs-list__label { color: var(--text-secondary, #a0a0b0); }
.specs-list__value { color: var(--text-primary, #fff); font-weight: 500; }
.specs-list__value--success { color: var(--primary, #05d6c1); }
.specs-list__value--error { color: #ef4444; }
.specs-list__values { display: flex; flex-wrap: wrap; gap: 6px; }
.specs-list__tag {
    padding: 4px 10px;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-primary, #fff);
}
.specs-list__tag--color {
    display: flex;
    align-items: center;
    gap: 6px;
}
.specs-list__color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Review Button */
.review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(5, 214, 193, 0.15);
    border: 2px solid rgba(5, 214, 193, 0.3);
    border-radius: 10px;
    color: rgba(5, 214, 193, 1);
    font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 transparent;
}

.review-btn:hover {
    background: rgba(5, 214, 193, 1);
    border: 2px solid rgba(5, 214, 193, 1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 214, 193, 0.3);
}

.review-btn:active {
    transform: translateY(0);
}

.review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.review-btn > * {
    position: relative;
    z-index: 1;
}

.review-btn:hover::before {
    left: 120%;
}

.review-btn i {
    font-size: 16px;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.review-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.review-btn .svg-inline--fa {
    width: 16px !important;
    height: 16px !important;
    display: block;
    flex-shrink: 0;
}

.review-locked-msg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 12px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
} 

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}
.empty-state__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 214, 193, 0.1);
    border-radius: 50%;
}
.empty-state__icon i {
    font-size: 26px;
    color: var(--primary, #05d6c1);
    line-height: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state__icon svg {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
}
.empty-state__icon .svg-inline--fa {
    width: 26px !important;
    height: 26px !important;
    display: block;
    flex-shrink: 0;
    transform: translateY(1px);
}
.empty-state__icon i,
.empty-state__icon svg {
    transform: translateY(1px);
}
.empty-state h4 {
    font-size: 16px;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
}
.empty-state p {
    font-size: 13px;
    color: var(--text-secondary, #a0a0b0);
    margin: 0 0 16px;
}

/* Related Section */
.related-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}
.related-section__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-section__title i { color: var(--primary, #05d6c1); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.related-card {
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}
.related-card:hover {
    border-color: var(--primary, #05d6c1);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(5, 214, 193, 0.15);
}
.related-card__image { 
    position: relative;
    background: var(--bg-elevated, #0f0f1a);
    overflow: hidden;
    aspect-ratio: 3 / 4;
}
.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.related-card:hover .related-card__image img { transform: scale(1.05); }
.related-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b7280);
    font-size: 28px;
}
.related-card__info { padding: 12px; }
.related-card__category {
    display: block;
    font-size: 9px;
    color: var(--text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.related-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0 0 8px;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.related-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.related-card__rating {
    font-size: 11px;
    color: var(--text-secondary, #a0a0b0);
}
.related-card__rating i { color: #fbbf24; }
.related-card__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #05d6c1);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-main { grid-template-columns: 1fr; }
    .product-info { order: -1; }
    .content-grid { grid-template-columns: 1fr; }
    .content-card--reviews { grid-column: span 1; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-container { padding: 0 16px; }
    .product-hero { padding: 30px 0 20px; }
    .product-hero__title { font-size: 22px; }
    .product-hero__meta { gap: 10px; }
    .product-gallery__main img { height: 100%; }
    .product-gallery__placeholder { min-height: 0; }
    .price-display__current { font-size: 22px; }
    .purchase-actions { flex-direction: column; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
    .product-hero__title { font-size: 20px; }
    .product-gallery__thumbs { gap: 6px; }
    .product-gallery__thumb { width: 50px; height: 50px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-card__image { aspect-ratio: 3 / 4; }
}

/* Cart Quantity Badge */
.cart-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.8);
    box-shadow: 0px 0px 5px rgba(239, 68, 68, 0.99);    border-radius: 10px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.2s ease;
}
.purchase-btn { position: relative; }

/* Description Info List */
.desc-info-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary, #2a2a4a);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.desc-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: var(--bg-elevated, #0f0f1a);
    border-radius: 8px;
}
.desc-info-label {
    font-size: 11px;
    color: var(--text-muted, #6b7280);
    display: flex;
    align-items: center;
    gap: 6px;
}
.desc-info-label i { color: var(--primary, #05d6c1); font-size: 10px; }
.desc-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}
.desc-info-value--success { color: var(--primary, #05d6c1); }
.desc-info-value--error { color: #ef4444; }

/* Review Submitted Badge */
.review-submitted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.review-card {
    background: var(--bg-elevated, #0f0f1a);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 16px;
    padding: 16px;
    overflow: visible;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.review-card__avatar {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(5, 214, 193, 0.15);
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #05d6c1);
    font-weight: 700;
}

.review-card__avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block !important;
}

.review-card__info {
    flex: 1;
    min-width: 160px;
}

.review-card__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    display: block;
    margin-bottom: 4px;
}

.review-card__rating {
    display: flex;
    gap: 3px;
}

.review-card__rating i {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.review-card__rating i.active {
    color: #fbbf24;
}

.review-card__date {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
    margin-left: auto;
}

/* Review Card Menu */
.review-card__menu {
    position: relative;
    margin-left: auto;
}
.review-menu-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}
.review-menu-btn:hover {
    background: var(--bg-card, #1a1a2e);
    color: var(--text-primary, #fff);
}
.review-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 10px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.review-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.review-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary, #a0a0b0);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.review-menu-dropdown button:hover {
    background: var(--bg-elevated, #0f0f1a);
    color: var(--text-primary, #fff);
}
.review-menu-dropdown button i { font-size: 12px; width: 16px; }
.review-menu-delete:hover { color: #ef4444 !important; }

/* Review Inline Edit */
.review-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-edit-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-edit-rating label {
    font-size: 12px;
    color: var(--text-secondary, #a0a0b0);
}
.star-edit-select {
    display: flex;
    gap: 4px;
}
.star-edit-select i {
    font-size: 18px;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}
.star-edit-select i.active { color: #fbbf24; }
.star-edit-select i:hover { transform: scale(1.2); }
.review-edit-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card, #1a1a2e);
    border: 1px solid var(--border-primary, #2a2a4a);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
}
.review-edit-textarea:focus {
    outline: none;
    border-color: var(--primary, #05d6c1);
}
.review-edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.review-edit-cancel,
.review-edit-save {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.review-edit-cancel {
    background: transparent;
    border: 1px solid var(--border-primary, #2a2a4a);
    color: var(--text-secondary, #a0a0b0);
}
.review-edit-cancel:hover {
    border-color: var(--text-secondary, #a0a0b0);
    color: var(--text-primary, #fff);
}
.review-edit-save {
    background: var(--primary, #05d6c1);
    border: none;
    color: white;
}
.review-edit-save:hover { opacity: 0.9; }
.review-card__text .no-text { color: var(--text-muted, #6b7280); }

/* Review Images - Constrain size */
.review-card__text img,
.review-content img,
.review-card img:not(.review-card__avatar img):not(.review-product-image img) {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin: 10px 0;
}

@media (max-width: 480px) {
    .desc-info-list { grid-template-columns: 1fr; }
}

/* ============================================
   IMAGE LIGHTBOX - Full Screen Viewer
   ============================================ */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Toolbars */
.lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-toolbar--top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.lightbox-toolbar--bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    padding: 12px 24px;
}

.lightbox-toolbar__left,
.lightbox-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-toolbar__center {
    flex: 1;
    text-align: center;
}

.lightbox-counter {
    padding: 6px 14px;
    background: rgba(5, 214, 193, 0.15);
    border-radius: 20px;
    color: var(--primary, #05d6c1);
    font-size: 13px;
    font-weight: 600;
}

.lightbox-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
    display: inline-block;
}

/* Buttons */
.lightbox-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-btn:hover {
    background: rgba(5, 214, 193, 0.2);
    border-color: var(--primary, #05d6c1);
    color: var(--primary, #05d6c1);
    transform: translateY(-2px);
}

.lightbox-btn--close {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.lightbox-btn--close:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
    color: white;
}

.lightbox-btn--reset {
    width: auto;
    padding: 0 16px;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Image Area */
.lightbox-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 95vw;
    max-height: calc(100vh - 160px);
    min-width: 60vw;
    min-height: 60vh;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

.lightbox-nav:hover {
    background: var(--primary, #05d6c1);
    border-color: var(--primary, #05d6c1);
    color: #1a1a2e;
    transform: translateY(-50%) scale(1.1);
}

/* Bottom Controls */
.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.lightbox-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lightbox-control-group--wide {
    min-width: 200px;
}

.lightbox-control-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lightbox-control-label i {
    color: var(--primary, #05d6c1);
}

.lightbox-control-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-value {
    min-width: 50px;
    text-align: center;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* Brightness Slider */
.lightbox-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lightbox-slider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.lightbox-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #05d6c1 0%, #04a99a 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(5, 214, 193, 0.4);
    transition: transform 0.2s ease;
}

.lightbox-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.lightbox-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #05d6c1 0%, #04a99a 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(5, 214, 193, 0.4);
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-toolbar {
        padding: 12px 16px;
    }
    
    .lightbox-title {
        display: none;
    }
    
    .lightbox-image-wrapper {
        padding: 70px 20px 120px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-nav--prev { left: 10px; }
    .lightbox-nav--next { right: 10px; }
    
    .lightbox-controls {
        gap: 12px;
    }
    
    .lightbox-control-group {
        gap: 4px;
    }
    
    .lightbox-control-label {
        font-size: 10px;
    }
    
    .lightbox-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .lightbox-slider {
        width: 80px;
    }
    
    .lightbox-control-group--wide {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .lightbox-toolbar--bottom {
        padding: 10px 12px;
    }
    
    .lightbox-controls {
        gap: 8px;
    }
    
    .lightbox-control-group--wide {
        min-width: 120px;
        order: 10;
        width: 100%;
    }
    
    .lightbox-slider-wrapper {
        width: 100%;
        justify-content: center;
    }
    
    .lightbox-slider {
        flex: 1;
        max-width: 150px;
    }
}
