/* ========== PRODUCT PAGE CONTAINER ========== */
.product-container {
    max-width: 1400px;
    margin: 32px auto 56px;
    padding: 0 20px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #0b3850;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.breadcrumb a:hover {
    color: #4fd8ff;
    transform: translateY(-1px);
    text-decoration: none;
}

.breadcrumb span {
    color: rgba(21, 32, 43, 0.38);
}

.breadcrumb > span:last-child {
    color: #09121c;
    font-weight: 700;
}

/* ========== PRODUCT LAYOUT ========== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
    align-items: start;
}

/* ========== GALLERY ========== */
.product-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(207, 227, 239, 0.82);
    box-shadow: 0 22px 54px rgba(8, 19, 31, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    filter: drop-shadow(0 12px 18px rgba(8, 19, 31, 0.10));
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(207, 227, 239, 0.75);
    border-radius: 16px;
    cursor: pointer;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 10px 24px rgba(8, 19, 31, 0.08);
}

.thumbnail:hover {
    border-color: rgba(79, 216, 255, 0.58);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(8, 19, 31, 0.12);
}

.thumbnail.active {
    border-color: rgba(79, 216, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(79, 216, 255, 0.18), 0 16px 34px rgba(8, 19, 31, 0.14);
}

/* ========== PRODUCT INFO ========== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(207, 227, 239, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    box-shadow: 0 24px 64px rgba(8, 19, 31, 0.10);
    backdrop-filter: blur(12px);
}

.product-title {
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 800;
    color: #09121c;
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin: 0;
}

/* Мета информация */
.product-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.product-article {
    color: rgba(21, 32, 43, 0.72);
}

.product-article strong {
    color: #09121c;
}

.product-category a {
    color: #0b3850;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.25s ease;
}

.product-category a:hover {
    color: #4fd8ff;
    text-decoration: none;
}

/* Цена и наличие */
.product-price-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    background:
        radial-gradient(circle at top left, rgba(79, 216, 255, 0.08), transparent 28%),
        rgba(8, 19, 31, 0.03);
    border-radius: 22px;
    border: 1px solid rgba(207, 227, 239, 0.8);
    box-shadow: 0 12px 28px rgba(8, 19, 31, 0.06);
}

.product-price {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #09121c;
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    padding-left: 14px;
}

.product-price::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 1.05em;
    transform: translateY(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, #4fd8ff, #58c98a);
}

.stock-status {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.stock-status.in-stock {
    background: rgba(88, 201, 138, 0.12);
    color: #2b8f62;
}

.stock-status.out-of-stock {
    background: rgba(227, 75, 68, 0.12);
    color: #c73f38;
}

/* Краткое описание */
.product-short-desc {
    padding: 16px 18px;
    background: rgba(8, 19, 31, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(207, 227, 239, 0.78);
}

.product-short-desc p {
    margin: 0;
    color: rgba(21, 32, 43, 0.78);
    line-height: 1.6;
    font-size: 15px;
}

/* ========== CHARACTERISTICS ========== */
.product-characteristics {
    border: 1px solid rgba(207, 227, 239, 0.82);
    border-radius: 24px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    box-shadow: 0 18px 46px rgba(8, 19, 31, 0.08);
}

.product-characteristics h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #09121c;
    border-bottom: 2px solid rgba(79, 216, 255, 0.85);
    padding-bottom: 12px;
}

.characteristics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: stretch;
}

.characteristic {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.char-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(21, 32, 43, 0.54);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.char-value {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #09121c;
    font-weight: 500;
    padding: 10px 14px;
    background:
        radial-gradient(circle at top left, rgba(79, 216, 255, 0.10), transparent 28%),
        rgba(8, 19, 31, 0.04);
    border-radius: 14px;
    border-left: 3px solid rgba(79, 216, 255, 0.85);
    min-height: 40px;
}

/* ========== COLOR PALETTE ========== */
.product-color-palette {
    border: 1px solid rgba(207, 227, 239, 0.82);
    border-radius: 24px;
    padding: 22px 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    box-shadow: 0 18px 46px rgba(8, 19, 31, 0.08);
    display: grid;
    gap: 16px;
}

.product-color-palette h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #09121c;
    border-bottom: 2px solid rgba(79, 216, 255, 0.85);
    padding-bottom: 12px;
}

.product-color-palette__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(8, 19, 31, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, outline 0.25s ease;
}

.product-color-swatch.is-active {
    outline: 3px solid rgba(79, 216, 255, 0.28);
    outline-offset: 3px;
    transform: translateY(-2px) scale(1.08);
}

.product-color-swatch.is-blue {
    background: #4fd8ff;
}

.product-color-swatch.is-cyan {
    background: #8fe9ff;
}

.product-color-swatch.is-black {
    background: #0b1320;
}

.product-color-swatch.is-white {
    background: #f6f8fb;
    border-color: rgba(26, 26, 26, 0.14);
}

.product-color-swatch.is-red {
    background: #e34b44;
}

.product-color-swatch.is-green {
    background: #58c98a;
}

.product-color-swatch.is-yellow {
    background: #f4d03f;
}

.product-color-swatch.is-orange {
    background: #ff8a3d;
}

.product-color-swatch.is-graphite {
    background: #3b4656;
}

/* ========== PURCHASE ========== */
.product-purchase {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    border: 1px solid rgba(79, 216, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 46px rgba(8, 19, 31, 0.08);
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.quantity-selector label {
    font-weight: 600;
    color: #09121c;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid rgba(207, 227, 239, 0.92);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(8, 19, 31, 0.06);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(79, 216, 255, 0.08);
    color: #0b3850;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.qty-btn:hover {
    background: rgba(79, 216, 255, 0.18);
    color: #09121c;
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #09121c;
    background: transparent;
}

#quantity:focus {
    outline: none;
    background: rgba(79, 216, 255, 0.06);
}

/* Кнопки действия */
.btn-add-to-cart,
.btn-wishlist {
    padding: 15px 20px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #4fd8ff, #58c98a);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 28px rgba(79, 216, 255, 0.18);
}

.btn-add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(79, 216, 255, 0.24);
}

.btn-add-to-cart:disabled {
    background: #CCC;
    border-color: #CCC;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-wishlist {
    background: rgba(255, 255, 255, 0.92);
    color: #0b3850;
    border: 1px solid rgba(207, 227, 239, 0.92);
    box-shadow: 0 8px 18px rgba(8, 19, 31, 0.06);
}

.btn-wishlist:hover {
    background: rgba(79, 216, 255, 0.08);
    transform: translateY(-2px);
}

/* ========== HISTORY SECTION ========== */
.product-history {
    margin-bottom: 60px;
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    border-radius: 28px;
    border: 1px solid rgba(207, 227, 239, 0.82);
    box-shadow: 0 18px 46px rgba(8, 19, 31, 0.08);
}

.product-history h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: #09121c;
    border-bottom: 2px solid rgba(79, 216, 255, 0.85);
    padding-bottom: 15px;
}

.history-content {
    color: rgba(21, 32, 43, 0.78);
    line-height: 1.8;
    font-size: 15px;
}

.history-content p {
    margin-bottom: 15px;
}

/* ========== RECOMMENDATIONS ========== */
.product-recommendations {
    margin-bottom: 60px;
}

.product-recommendations h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #09121c;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.94));
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(207, 227, 239, 0.82);
    box-shadow: 0 18px 46px rgba(8, 19, 31, 0.08);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 56px rgba(8, 19, 31, 0.12);
}

.rec-image {
    width: 100%;
    height: 150px;
    background:
        radial-gradient(circle at top left, rgba(79, 216, 255, 0.10), transparent 28%),
        rgba(8, 19, 31, 0.03);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.recommendation-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #09121c;
    margin: 12px;
    line-height: 1.3;
}

.rec-price {
    font-size: 16px;
    font-weight: 800;
    color: #0b3850;
    margin: 0 12px 12px 12px;
}

.no-image {
    color: rgba(21, 32, 43, 0.46);
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 32px;
    }

    .characteristics-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-purchase {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background:
            linear-gradient(180deg, rgba(8, 19, 31, 0.98), rgba(11, 23, 37, 0.96));
        border-radius: 20px 20px 0 0;
        border: 1px solid rgba(79, 216, 255, 0.18);
        z-index: 100;
    }

    .product-history {
        padding: 25px;
    }

    .product-history h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-layout {
        gap: 20px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-meta {
        gap: 10px;
        font-size: 12px;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .characteristics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        font-size: 12px;
        gap: 8px;
    }
}
