﻿/* ========================================
   msrider.ru - Product Detail Page Styles
======================================== */

/* Fixed Navbar - Product Page - White style like other pages */
.navbar.scrolled.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar.scrolled.fixed .nav-link {
    color: var(--dark);
}

.navbar.scrolled.fixed .logo {
    color: var(--dark);
}

.navbar.scrolled.fixed .btn-icon {
    color: var(--dark);
}

/* Ensure navbar is always visible - White background */
#navbar {
    background: var(--white) !important;
}

#navbar .nav-link {
    color: var(--dark) !important;
}

#navbar .logo {
    color: var(--dark) !important;
}

#navbar .btn-icon {
    color: var(--dark) !important;
}

/* Breadcrumb */
.breadcrumb {
    padding: 100px 0 20px;
    background: var(--light);
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb-links a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb-links a:hover {
    color: var(--primary-dark);
}

.breadcrumb-links i {
    font-size: 12px;
    color: var(--gray-light);
}

.breadcrumb-links span {
    color: var(--dark);
    font-weight: 500;
}

/* Product Detail */
.product-detail {
    padding: 40px 0 60px;
    background: var(--light);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.product-main-image {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Gallery Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.gallery-nav i {
    font-size: 20px;
}

.product-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}

.product-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.thumbnail {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product Info Detail */
.product-info-detail {
    padding: 20px 0;
}

.product-category-name {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-stock-status.in-stock {
    background: #dcfce7;
    color: #166534;
}

.product-stock-status.preorder {
    background: #fef3c7;
    color: #92400e;
}

.product-stock-status.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

.product-stock-status i {
    font-size: 14px;
}

.current-price-large.sale-price {
    color: #dc2626;
}

.sale-badge-product {
    background: #dc2626 !important;
}

.btn-add-cart-large.disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

.product-title-large {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 4px;
    color: #ffc107;
}

.rating-count {
    font-size: 14px;
    color: var(--gray);
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.current-price-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.old-price-large {
    font-size: 24px;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-badge {
    padding: 6px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 20px;
}

.product-short-desc {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-light);
}

.product-variants {
    margin-bottom: 24px;
}

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

.product-variant-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.product-variant-group select option.option-preorder {
    color: #9ca3af;
    font-style: italic;
}

/* Variant color buttons (ride509-style) */
.variant-color-section {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

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

.variant-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    max-width: 120px;
}

.variant-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.variant-btn.active {
    border-color: var(--primary);
    background: #f0f7ff;
    box-shadow: 0 0 0 1px var(--primary);
}

/* Variant button: preorder — приглушённый вид, пунктирная рамка, баджик «часы» */
.variant-btn.variant-preorder {
    border-style: dashed;
    border-color: #d97706;
    position: relative;
}

.variant-btn.variant-preorder .variant-thumb {
    opacity: 0.55;
    filter: grayscale(0.4);
}

.variant-btn.variant-preorder:hover .variant-thumb {
    opacity: 0.85;
    filter: grayscale(0);
}

.variant-btn.variant-preorder.active {
    border-style: solid;
    background: #fffbeb;
    border-color: #d97706;
    box-shadow: 0 0 0 1px #d97706;
}

.variant-btn.variant-preorder.active .variant-thumb {
    opacity: 1;
    filter: none;
}

.variant-btn .variant-preorder-marker {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d97706;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

/* Кнопка «Заказать» (preorder) на странице товара */
.btn-add-cart.btn-add-cart-preorder,
#addToCartBtn.btn-add-cart-preorder {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706;
    color: #fff;
}

.btn-add-cart.btn-add-cart-preorder:hover,
#addToCartBtn.btn-add-cart-preorder:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.variant-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.variant-color-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Size buttons section (ride509-style) */
.variant-size-section {
    margin-bottom: 24px;
}

.size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.size-guide-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: underline;
}

.size-guide-link:hover {
    color: var(--primary-dark);
}

.size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.size-btn:hover:not(:disabled):not(.size-out-of-stock) {
    border-color: var(--primary, #dc2626);
    color: var(--primary, #dc2626);
    background: rgba(220, 38, 38, 0.05);
}

.size-btn.active {
    border-color: var(--primary, #dc2626);
    background: var(--primary, #dc2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.size-btn:disabled,
.size-btn.size-out-of-stock {
    opacity: 0.4;
    background: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    text-decoration: line-through;
    color: #9ca3af;
}

/* Size button: preorder style (amber dashed) — selectable but visually distinct */
.size-btn.size-preorder {
    border-style: dashed;
    border-color: #d97706;
    color: #92400e;
    background: #fffbeb;
    cursor: pointer;
    opacity: 1;
    text-decoration: none;
}

.size-btn.size-preorder:hover {
    border-color: #b45309;
    background: #fef3c7;
    color: #78350f;
}

.size-btn.size-preorder.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #d97706;
    border-style: solid;
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

/* Qty badge inside size button — shows how many items are left for that size */
.size-btn[data-qty] {
    flex-direction: column;
    gap: 2px;
    min-width: 52px;
    height: auto;
    padding: 6px 10px;
    line-height: 1;
}

.size-qty-badge {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.85;
    color: #059669;
}

.size-btn.active .size-qty-badge {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

/* Stock label for product page variant sections */
.stock-label-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 6px 0 4px;
}

.stock-label-row.in-stock-label {
    color: #16a34a;
}

.stock-label-row.preorder-label {
    color: #d97706;
}

/* Product Actions */
.product-actions-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.qty-btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gray-light);
}

.qty-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.btn-add-cart-large {
    flex: 1;
    min-width: 200px;
    padding: 16px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-add-cart-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-wishlist {
    width: 56px;
    height: 56px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 20px;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Installment Button Section */
.installment-section {
    margin-bottom: 28px;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffe082;
    border-radius: var(--radius);
}

.installment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 15px;
    color: #5d4037;
}

.installment-info i {
    font-size: 20px;
    color: #ff9800;
}

.installment-info strong {
    color: #e65100;
    font-size: 17px;
}

#installmentButtonContainer {
    min-height: 48px;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--success);
}

.meta-item i {
    font-size: 16px;
}

/* Product Tabs */
.product-tabs-section {
    padding: 60px 0;
    background: var(--white);
}

.product-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    border-bottom: 2px solid var(--gray-light);
    overflow-x: auto;
}

.tab-btn {
    padding: 20px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tabs-content {
    padding: 40px 24px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-panel h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.tab-panel p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.tab-panel ul {
    list-style: disc;
    padding-left: 24px;
    color: var(--gray);
    line-height: 2;
}

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

.specs-table tr {
    border-bottom: 1px solid var(--gray-light);
}

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

.specs-table td {
    padding: 16px;
    font-size: 15px;
}

.specs-table td:first-child {
    width: 40%;
    color: var(--gray);
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--dark);
    font-weight: 600;
}

/* Delivery Info */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.delivery-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius);
}

.delivery-item i {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.delivery-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.delivery-item p {
    margin-bottom: 8px;
    font-size: 14px;
}

.delivery-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.delivery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius);
    color: var(--success) !important;
    font-size: 14px !important;
}

/* Reviews */
.reviews-summary {
    text-align: center;
    padding: 32px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.rating-big {
    font-size: 64px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.rating-stars-big {
    font-size: 24px;
    color: #ffc107;
    margin: 12px 0;
}

.reviews-summary p {
    color: var(--gray);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-name {
    font-weight: 600;
    color: var(--dark);
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: var(--gray);
    margin-left: auto;
}

.review-text {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
}

/* Related Products */
.related-products {
    padding: 80px 0;
    background: var(--light);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: relative;
        top: 0;
    }
    
    .product-main-image {
        aspect-ratio: 1 / 1;
    }
    
    .product-main-image img {
        height: auto;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .product-actions-detail {
        flex-wrap: wrap;
    }
    
    .btn-add-cart-large {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 80px 0 16px;
    }
    
    .breadcrumb-links {
        font-size: 12px;
        gap: 8px;
    }
    
    .breadcrumb-links i {
        font-size: 10px;
    }
    
    .product-detail {
        padding: 20px 0 40px;
    }
    
    .product-detail-grid {
        gap: 32px;
    }
    
    .product-main-image {
        aspect-ratio: 1 / 1;
    }
    
    .product-main-image img {
        padding: 16px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav-prev {
        left: 8px;
    }
    
    .gallery-nav-next {
        right: 8px;
    }
    
    .gallery-nav i {
        font-size: 16px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        max-height: 300px;
    }
    
    .product-category-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .product-brand-name {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .product-stock-status {
        font-size: 12px;
        padding: 5px 10px;
        margin-bottom: 14px;
    }
    
    .product-title-large {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 14px;
    }
    
    .product-price-detail {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .current-price-large {
        font-size: 28px;
    }
    
    .old-price-large {
        font-size: 20px;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .product-short-desc {
        font-size: 14px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }
    
    .variant-label {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .variant-buttons {
        gap: 8px;
    }
    
    .variant-btn {
        padding: 6px;
        min-width: 70px;
        max-width: 110px;
    }
    
    .variant-thumb {
        width: 50px;
        height: 50px;
    }
    
    .variant-color-label {
        font-size: 10px;
    }
    
    .size-buttons {
        gap: 5px;
    }
    
    .size-btn {
        min-width: 40px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .size-guide-link {
        font-size: 11px;
    }
    
    .product-actions-detail {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .qty-btn {
        width: 44px;
        height: 44px;
    }
    
    .qty-input {
        width: 70px;
        height: 44px;
        font-size: 15px;
    }
    
    .btn-add-cart-large {
        width: 100%;
        min-width: auto;
        padding: 14px;
        font-size: 15px;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 48px;
    }
    
    .installment-section {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .installment-info {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .installment-info i {
        font-size: 18px;
    }
    
    .installment-info strong {
        font-size: 16px;
    }
    
    .product-meta {
        gap: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .meta-item i {
        font-size: 14px;
    }
    
    .product-tabs-section {
        padding: 40px 0;
    }
    
    .tabs-header {
        padding: 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .tabs-header::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .tabs-content {
        padding: 24px 16px;
    }
    
    .tab-panel h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .tab-panel p {
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .specs-table td:first-child {
        width: 50%;
    }
    
    .delivery-item {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .delivery-item i {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .delivery-item h4 {
        font-size: 15px;
    }
    
    .delivery-item p {
        font-size: 13px;
    }
    
    .delivery-price {
        font-size: 15px;
    }
    
    .delivery-note {
        padding: 14px;
        font-size: 13px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-date {
        margin-left: 0;
    }
    
    .review-name {
        font-size: 14px;
    }
    
    .review-stars {
        font-size: 13px;
    }
    
    .review-date {
        font-size: 12px;
    }
    
    .review-text {
        font-size: 14px;
    }
    
    .related-products {
        padding: 60px 0;
    }
    
    .related-products .section-header {
        margin-bottom: 32px;
    }
    
    .related-products .section-title {
        font-size: 24px;
    }
    
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 70px 0 12px;
    }
    
    .breadcrumb-links {
        font-size: 11px;
        gap: 6px;
    }
    
    .product-detail {
        padding: 16px 0 32px;
    }
    
    .product-detail-grid {
        gap: 24px;
    }
    
    .product-main-image img {
        padding: 12px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .gallery-nav i {
        font-size: 14px;
    }
    
    .product-badge-large {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .product-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        max-height: 200px;
    }
    
    .product-category-name {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .product-brand-name {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .product-stock-status {
        font-size: 11px;
        padding: 4px 8px;
        margin-bottom: 12px;
    }
    
    .product-stock-status i {
        font-size: 12px;
    }
    
    .product-title-large {
        font-size: clamp(18px, 6vw, 24px);
        margin-bottom: 12px;
    }
    
    .product-price-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .current-price-large {
        font-size: 24px;
    }
    
    .old-price-large {
        font-size: 16px;
    }
    
    .discount-badge {
        align-self: flex-start;
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .product-short-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }
    
    .variant-color-section,
    .variant-size-section {
        margin-bottom: 16px;
    }
    
    .variant-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .variant-buttons {
        gap: 6px;
    }
    
    .variant-btn {
        padding: 5px;
        min-width: 60px;
        max-width: 100px;
    }
    
    .variant-thumb {
        width: 44px;
        height: 44px;
    }
    
    .variant-color-label {
        font-size: 9px;
    }
    
    .size-header {
        margin-bottom: 8px;
    }
    
    .size-buttons {
        gap: 4px;
    }
    
    .size-btn {
        min-width: 36px;
        height: 32px;
        font-size: 11px;
        padding: 0 6px;
    }
    
    .size-guide-link {
        font-size: 10px;
    }
    
    .product-actions-detail {
        gap: 10px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .qty-input {
        width: 60px;
        height: 40px;
        font-size: 14px;
    }
    
    .btn-add-cart-large {
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-wishlist {
        height: 44px;
    }
    
    .installment-section {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .installment-info {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .installment-info i {
        font-size: 16px;
    }
    
    .installment-info strong {
        font-size: 15px;
    }
    
    .product-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .meta-item i {
        font-size: 13px;
    }
    
    .product-tabs-section {
        padding: 32px 0;
    }
    
    .tabs-header {
        padding: 0 12px;
    }
    
    .tab-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .tabs-content {
        padding: 20px 12px;
    }
    
    .tab-panel h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .tab-panel p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .specs-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .delivery-info {
        gap: 16px;
    }
    
    .delivery-item {
        padding: 16px;
        gap: 12px;
    }
    
    .delivery-item i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .delivery-item h4 {
        font-size: 14px;
    }
    
    .delivery-item p {
        font-size: 12px;
    }
    
    .delivery-price {
        font-size: 14px;
    }
    
    .delivery-note {
        padding: 12px;
        font-size: 12px;
    }
    
    .reviews-summary {
        padding: 24px;
    }
    
    .rating-big {
        font-size: 48px;
    }
    
    .rating-stars-big {
        font-size: 20px;
    }
    
    .reviews-summary p {
        font-size: 13px;
    }
    
    .reviews-list {
        gap: 16px;
    }
    
    .review-item {
        padding: 16px;
    }
    
    .review-name {
        font-size: 13px;
    }
    
    .review-stars {
        font-size: 12px;
    }
    
    .review-date {
        font-size: 11px;
    }
    
    .review-text {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .related-products {
        padding: 50px 0;
    }
    
    .related-products .section-header {
        margin-bottom: 28px;
    }
    
    .related-products .section-title {
        font-size: 20px;
    }
    
    .related-products .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
