/* ===== PRODUCT PAGE - TABLET ===== */

/* Product Section */
.product-section {
    padding: 30px 0 50px;
    background: var(--primary-white);
}

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

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

.main-image-container {
    position: relative;
    margin-bottom: 20px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--primary-gray);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.zoom-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-image:hover .zoom-hint {
    background: var(--accent-gold);
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e74c3c;
    color: #ffffff;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.thumbnail-item {
    width: 100%;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--accent-gold);
}

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

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

.product-header {
    margin-bottom: 25px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-category {
    color: var(--text-medium);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    margin-bottom: 25px;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
}

.old-price {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 15px;
}

.product-description {
    margin-bottom: 25px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-medium);
}

/* Стили для форматированного контента в описаниях - Tablet */
.description-content {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

.description-content p {
    margin-bottom: 14px;
    font-size: 15px;
}

.description-content strong,
.description-content b {
    font-weight: 600;
    color: var(--text-dark);
}

.description-content ul,
.description-content ol {
    margin: 14px 0;
    padding-left: 24px;
    font-size: 15px;
}

.description-content ul li,
.description-content ol li {
    margin-bottom: 9px;
    line-height: 1.6;
}

/* Product Specifications */
.product-specs {
    margin-bottom: 30px;
    background: var(--primary-gray);
    padding: 20px;
    border-radius: 12px;
}

.product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--primary-border);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
    font-size: 14px;
}

.spec-value {
    color: var(--text-medium);
    text-align: right;
    font-size: 14px;
}

/* Product Actions */
.product-actions {
    margin-bottom: 25px;
}

.catalog-btn-order {
    background: var(--accent-gold);
    color: var(--primary-white);
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 15px;
}

.catalog-btn-order:hover {
    background: #c9a961;
    transform: translateY(-2px);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    background: var(--primary-white);
    border: 2px solid var(--primary-border);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

.action-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Delivery Info */
.delivery-info {
    background: var(--primary-gray);
    padding: 18px;
    border-radius: 12px;
}

.delivery-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.delivery-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
    font-size: 13px;
}

.delivery-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Image Zoom Modal */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.zoom-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
}

.zoom-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.zoom-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.zoom-prev {
    left: 15px;
}

.zoom-next {
    right: 15px;
}

.zoom-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 16px;
    z-index: 10001;
}

.zoom-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 25px;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Product Details Section */
.product-details-section {
    background: var(--primary-gray);
    padding: 50px 0;
}

.product-tabs {
    max-width: 700px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--primary-border);
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.tab-content {
    min-height: 180px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.specs-table {
    display: grid;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--primary-border);
}

.spec-key {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.spec-val {
    color: var(--text-medium);
    font-size: 14px;
}

/* Related Products */
.related-products-section {
    padding: 50px 0;
}

.related-products-section .section-header {
    margin-bottom: 30px;
}

.related-products-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}

.related-products-section .catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 15px 0;
    background: var(--primary-gray);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.breadcrumb-link {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-gold);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Современный стиль характеристик - Tablet */
.specs-list-modern {
    margin: 20px 0;
}

.spec-item-modern {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.spec-bullet {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.spec-content {
    flex: 1;
    line-height: 1.6;
    font-size: 15px;
}

.spec-item-modern .spec-key {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 7px;
    font-size: 15px;
}

.spec-item-modern .spec-value {
    color: var(--text-medium);
    font-weight: 400;
    font-size: 15px;
}

/* Responsive adjustments for tablet */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }

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