/**
 * ============================================================================
 * Brccfaka Product Styles for Riniba 01 Theme
 * ============================================================================
 * Template: Toy Store
 * Colors: #FBC270 (Primary/Accent), #67D4E0 (Secondary/Background)
 * Font: Nunito, Lato, Inter
 * Style: Playful, rounded corners, soft shadows
 * ============================================================================
 */

/* ============================================================================
   Product Card - Grid View
   ============================================================================ */

.product-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-card-image-overlay {
    opacity: 1;
    visibility: visible;
}

.product-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-card-action {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover .product-card-action:nth-child(1) { transition-delay: 0.05s; }
.product-card:hover .product-card-action:nth-child(2) { transition-delay: 0.1s; }
.product-card:hover .product-card-action:nth-child(3) { transition-delay: 0.15s; }

.product-card-action:hover {
    background: #FBC270;
    color: #fff;
}

.product-card-action.wishlist:hover {
    background: #ff5252;
}

.product-card-action.quick-view:hover {
    background: #67D4E0;
}

/* Product Badges */
.product-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-badge.sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.product-badge.new {
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    color: #fff;
}

.product-badge.hot {
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    color: #fff;
}

.product-badge.out-of-stock {
    background: #999;
    color: #fff;
}

/* Discount Badge */
.product-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
}

/* Product Card Body */
.product-card-body {
    padding: 20px;
}

.product-card-category {
    margin-bottom: 8px;
}

.product-card-category a {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #67D4E0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.product-card-category a:hover {
    color: #4FC3D0;
}

.product-card-title {
    margin: 0 0 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: #FBC270;
}

.product-card-description {
    margin: 0 0 15px;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-card-current-price {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #FBC270;
}

.product-card-current-price .currency {
    font-size: 14px;
    margin-right: 2px;
}

.product-card-original-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
}

/* Product Card Rating */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-rating-stars {
    display: flex;
    gap: 2px;
}

.product-rating-stars i {
    font-size: 13px;
    color: #ddd;
}

.product-rating-stars i.active {
    color: #ffc107;
}

.product-rating-count {
    font-size: 12px;
    color: #888;
}

/* Product Card Footer */
.product-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    border: none;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(251, 194, 112, 0.4);
}

.product-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 194, 112, 0.5);
}

.product-add-btn i {
    font-size: 14px;
}

.product-wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-wishlist-btn:hover {
    border-color: #ff5252;
    color: #ff5252;
}

.product-wishlist-btn.active {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
}

/* ============================================================================
   Product Card - List View
   ============================================================================ */

.product-card-list {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card-list:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.product-card-list .product-card-image {
    flex-shrink: 0;
    width: 280px;
    height: auto;
    min-height: 220px;
}

.product-card-list .product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.product-card-list .product-card-title {
    font-size: 18px;
    -webkit-line-clamp: 1;
}

.product-card-list .product-card-description {
    -webkit-line-clamp: 3;
    margin-bottom: 20px;
}

.product-card-list .product-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.product-card-list .product-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* ============================================================================
   Product Grid Layout
   ============================================================================ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================================================
   Product Detail Page
   ============================================================================ */

.product-detail {
    padding: 40px 0;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-gallery-main:hover img {
    transform: scale(1.05);
}

.product-gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-gallery-main:hover .product-gallery-zoom {
    opacity: 1;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 15px;
}

.product-gallery-thumb {
    flex: 1;
    max-width: 100px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: #67D4E0;
    opacity: 1;
}

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

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

.product-breadcrumb {
    margin-bottom: 20px;
}

.product-breadcrumb a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: #67D4E0;
}

.product-breadcrumb span {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.product-breadcrumb i {
    margin: 0 10px;
    font-size: 10px;
    color: #ccc;
}

.product-category {
    margin-bottom: 10px;
}

.product-category a {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(103, 212, 224, 0.1);
    color: #67D4E0;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.product-category a:hover {
    background: #67D4E0;
    color: #fff;
}

.product-title {
    margin: 0 0 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-rating .product-rating-stars {
    display: flex;
    gap: 4px;
}

.product-rating .product-rating-stars i {
    font-size: 16px;
}

.product-rating-text {
    font-size: 14px;
    color: #888;
}

.product-rating-link {
    font-size: 14px;
    color: #67D4E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-rating-link:hover {
    color: #4FC3D0;
}

/* Product Price */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.product-current-price {
    font-family: 'Nunito', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #FBC270;
}

.product-current-price .currency {
    font-size: 20px;
    margin-right: 3px;
}

.product-original-price {
    font-size: 20px;
    color: #aaa;
    text-decoration: line-through;
}

.product-discount {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
}

/* Product Short Description */
.product-short-description {
    margin-bottom: 25px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* Product Meta Info */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-meta-item i {
    font-size: 18px;
    color: #67D4E0;
}

.product-meta-item span {
    font-size: 13px;
    color: #666;
}

.product-meta-item strong {
    font-weight: 600;
    color: #333;
}

/* Product Stock Status */
.product-stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.product-stock-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.product-stock-indicator.in-stock {
    background: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.product-stock-indicator.low-stock {
    background: #FBC270;
    box-shadow: 0 0 8px rgba(251, 194, 112, 0.5);
}

.product-stock-indicator.out-of-stock {
    background: #ff5252;
    box-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
}

.product-stock-text {
    font-size: 14px;
    font-weight: 600;
}

.product-stock-text.in-stock {
    color: #4caf50;
}

.product-stock-text.low-stock {
    color: #e8a94d;
}

.product-stock-text.out-of-stock {
    color: #ff5252;
}

/* Product Variants */
.product-variants {
    margin-bottom: 25px;
}

.product-variant-group {
    margin-bottom: 20px;
}

.product-variant-label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.product-variant-label span {
    font-weight: 400;
    color: #888;
    margin-left: 10px;
}

.product-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-variant-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 18px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-variant-option:hover {
    border-color: #67D4E0;
}

.product-variant-option.active {
    background: #67D4E0;
    border-color: #67D4E0;
    color: #fff;
}

.product-variant-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Color Variants */
.product-variant-color {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    position: relative;
}

.product-variant-color::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease;
}

.product-variant-color.active::after {
    border-color: #67D4E0;
}

/* Product Quantity */
.product-quantity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.product-quantity-label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.product-quantity-control {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 5px;
}

.product-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-quantity-btn:hover:not(:disabled) {
    background: #67D4E0;
    color: #fff;
}

.product-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.product-quantity-input:focus {
    outline: none;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.product-buy-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    border: none;
    border-radius: 28px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 194, 112, 0.4);
}

.product-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 194, 112, 0.5);
}

.product-buy-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.product-cart-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: #fff;
    border: 2px solid #67D4E0;
    border-radius: 28px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #67D4E0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-cart-btn:hover {
    background: #67D4E0;
    color: #fff;
}

.product-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-action-btn:hover {
    border-color: #67D4E0;
    color: #67D4E0;
}

.product-action-btn.wishlist:hover,
.product-action-btn.wishlist.active {
    border-color: #ff5252;
    color: #ff5252;
}

.product-action-btn.wishlist.active {
    background: #ff5252;
    color: #fff;
}

/* Product Guarantee */
.product-guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: rgba(103, 212, 224, 0.1);
    border-radius: 15px;
}

.product-guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-guarantee-item i {
    font-size: 20px;
    color: #67D4E0;
}

.product-guarantee-item span {
    font-size: 13px;
    color: #666;
}

/* ============================================================================
   Product Tabs
   ============================================================================ */

.product-tabs {
    margin-top: 50px;
}

.product-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.product-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: none;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tab-btn:hover {
    color: #333;
}

.product-tab-btn.active {
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    color: #fff;
}

.product-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.product-tab-content.active {
    display: block;
}

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

/* Product Description Tab */
.product-description {
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-description h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.product-description p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.product-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #666;
}

.product-description ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    position: absolute;
    left: 0;
    color: #67D4E0;
}

/* Product Specifications Tab */
.product-specifications {
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.product-spec-table tr {
    border-bottom: 1px solid #eee;
}

.product-spec-table tr:last-child {
    border-bottom: none;
}

.product-spec-table th,
.product-spec-table td {
    padding: 15px 20px;
    text-align: left;
}

.product-spec-table th {
    width: 30%;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f9f9f9;
}

.product-spec-table td {
    font-size: 14px;
    color: #666;
}

/* Product Reviews Tab */
.product-reviews {
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-reviews-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.product-reviews-score-number {
    font-family: 'Nunito', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #FBC270;
    line-height: 1;
}

.product-reviews-score .product-rating-stars {
    margin-top: 10px;
}

.product-reviews-score-count {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.product-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-reviews-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-reviews-bar-label {
    font-size: 13px;
    color: #888;
    width: 50px;
}

.product-reviews-bar-track {
    width: 120px;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.product-reviews-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    border-radius: 4px;
}

.product-reviews-bar-count {
    font-size: 13px;
    color: #888;
}

.product-write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    border: none;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 212, 224, 0.4);
}

/* Individual Review */
.product-review {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.product-review:last-child {
    border-bottom: none;
}

.product-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-review-info {
    flex: 1;
}

.product-review-author {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.product-review-date {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.product-review-rating {
    display: flex;
    gap: 2px;
}

.product-review-rating i {
    font-size: 14px;
    color: #ffc107;
}

.product-review-content {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.product-review-actions {
    display: flex;
    gap: 20px;
}

.product-review-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.product-review-action:hover {
    color: #67D4E0;
}

/* ============================================================================
   Related Products
   ============================================================================ */

.related-products {
    margin-top: 60px;
}

.related-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.related-products-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #333;
}

.related-products-title span {
    color: #FBC270;
}

.related-products-nav {
    display: flex;
    gap: 10px;
}

.related-products-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-products-nav-btn:hover {
    background: #67D4E0;
    border-color: #67D4E0;
    color: #fff;
}

/* ============================================================================
   Quick View Modal
   ============================================================================ */

.product-quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10000;
    padding: 20px;
}

.product-quickview-overlay.show {
    opacity: 1;
    visibility: visible;
}

.product-quickview {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.product-quickview-overlay.show .product-quickview {
    transform: scale(1);
}

.product-quickview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-quickview-close:hover {
    transform: rotate(90deg);
}

.product-quickview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow-y: auto;
}

.product-quickview-image {
    height: 500px;
    background: #f8f9fa;
}

.product-quickview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-quickview-info {
    padding: 40px;
    overflow-y: auto;
}

/* ============================================================================
   Responsive Styles
   ============================================================================ */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid.cols-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid,
    .product-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery-main {
        height: 400px;
    }
    
    .product-quickview-content {
        grid-template-columns: 1fr;
    }
    
    .product-quickview-image {
        height: 350px;
    }
    
    .product-card-list {
        flex-direction: column;
    }
    
    .product-card-list .product-card-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .product-grid,
    .product-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-grid.cols-5,
    .product-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .product-card-body {
        padding: 15px;
    }
    
    .product-card-title {
        font-size: 14px;
    }
    
    .product-card-current-price {
        font-size: 18px;
    }
    
    .product-detail-container {
        padding: 25px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-current-price {
        font-size: 28px;
    }
    
    .product-tabs-nav {
        flex-wrap: wrap;
    }
    
    .product-tab-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .product-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .product-reviews-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-reviews-score {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-image-overlay {
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .product-card-action {
        transform: translateY(0);
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    
    .product-gallery-main {
        height: 300px;
    }
    
    .product-gallery-thumbnails {
        gap: 10px;
    }
    
    .product-gallery-thumb {
        height: 60px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-buy-btn,
    .product-cart-btn {
        width: 100%;
    }
    
    .product-quickview-info {
        padding: 25px;
    }
}

/* ============================================================================
   Product Loading States
   ============================================================================ */

.product-card-skeleton {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-card-skeleton .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}

.product-card-skeleton .skeleton-image {
    height: 220px;
    border-radius: 0;
}

.product-card-skeleton .skeleton-body {
    padding: 20px;
}

.product-card-skeleton .skeleton-text {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 10px;
}

.product-card-skeleton .skeleton-text.title {
    width: 80%;
    height: 16px;
}

.product-card-skeleton .skeleton-text.price {
    width: 40%;
    height: 20px;
}

@keyframes skeletonShimmer {
    to {
        background-position: -200% 0;
    }
}

/* ============================================================================
   Product Animations
   ============================================================================ */

.product-card {
    animation: productFadeIn 0.5s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

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

/* ============================================================================
   Product Image Gallery - Spec Images
   ============================================================================ */

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-block {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.main-product-image {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.02);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.thumbnail-item {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    background: #f8f9fa;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.thumbnail-item:hover {
    border-color: rgba(251, 194, 112, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.thumbnail-item.active {
    border-color: #FBC270;
    box-shadow: 0 4px 15px rgba(251, 194, 112, 0.4);
}

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

/* Spec badge on thumbnails */
.thumbnail-item.spec-image::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #67D4E0;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(103, 212, 224, 0.5);
}

.thumbnail-item.spec-image {
    position: relative;
}

/* Image zoom indicator */
.main-image-block::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Pro', 'Font Awesome 6 Pro', FontAwesome;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-image-block:hover::after {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .main-product-image {
        min-height: 250px;
        max-height: 350px;
    }
    
    .thumbnail-gallery {
        justify-content: center;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .main-image-block {
        border-radius: 15px;
    }
    
    .thumbnail-item {
        width: 52px;
        height: 52px;
        border-radius: 8px;
        gap: 8px;
    }
}

/* ============================================================================
   End of Product Styles
   ============================================================================ */
