:root {
    --primary-color: #ff69b4;
    --secondary-color: #4a4a4a;
    --background-color: #f9f9f9;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Шапка сайта */
.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary-color);
    color: white;
    padding: 5px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contacts a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

/* Desktop/mobile toggle elements */
.header-top-desktop { display: inline; }
.header-addr-short { display: none; }
.header-addr-full { display: inline; }
.header-address-link { color: white; text-decoration: none; }
.header-address-link:hover { text-decoration: underline; }

/* ===== Floating cart button (FAB) ===== */
.cart-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4a7c59;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 998;
    align-items: center;
    justify-content: center;
    line-height: 56px;
    text-align: center;
}
.cart-fab-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e91e63;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
}

/* Навигация */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Основной контент */
.main {
    margin-top: var(--header-height);
    padding: 50px 0;
}

/* Категории на главной */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-info {
    padding: 15px;
}

.category-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* Товары */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Стили для кнопки добавления в корзину */
.add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    position: relative;
}

.add-to-cart:hover {
    background-color: #45a049;
}

/* Стили для кнопки, когда товар добавлен в корзину */
.add-to-cart.added-to-cart {
    background-color: #2E7D32;
    cursor: default;
    position: relative;
}

.add-to-cart.added-to-cart:hover {
    background-color: #2E7D32;
}

/* Стили для состояния загрузки */
.add-to-cart.loading {
    background-color: #808080;
    cursor: wait;
    pointer-events: none;
}

.add-to-cart.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.add-to-cart.in-cart {
    background-color: #2196F3;
}

.add-to-cart.in-cart:hover {
    background-color: #1976D2;
}

.cart-icon {
    position: relative;
    font-size: 24px;
}

.cart-icon a {
    text-decoration: none;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Карусель отзывов */
.reviews-section {
    background: linear-gradient(135deg, #fdf6f0 0%, #fff5f5 50%, #f0f4ff 100%);
    padding: 40px 0 30px;
    margin-top: 40px;
}
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.reviews-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid #ffd54f;
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(255,193,7,0.2);
}
.badge-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.badge-text {
    display: flex;
    flex-direction: column;
}
.badge-title {
    font-weight: 700;
    font-size: 1.05em;
    color: #5d4037;
}
.badge-sub {
    font-size: 0.75em;
    color: #8d6e63;
}
.reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rating-stars {
    color: #ffc107;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.rating-score {
    font-weight: 700;
    font-size: 1.3em;
    color: #333;
}
.rating-count {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9em;
}
.rating-count:hover {
    text-decoration: underline;
}
.reviews-track-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.reviews-track {
    display: flex;
    gap: 16px;
    animation: scroll-reviews 40s linear infinite;
    width: max-content;
}
.reviews-track:hover {
    animation-play-state: paused;
}
@keyframes scroll-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.review-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s;
}
.review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.review-stars {
    color: #ffc107;
    font-size: 0.9em;
    letter-spacing: 2px;
}
.review-text {
    font-size: 0.88em;
    line-height: 1.5;
    color: #444;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}
.author-name {
    font-weight: 600;
    font-size: 0.82em;
    color: #333;
}
.author-date {
    font-size: 0.75em;
    color: #999;
}
.reviews-cta {
    text-align: center;
    margin-top: 20px;
}
.reviews-cta a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}
.reviews-cta a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-card {
        flex: 0 0 240px;
        padding: 14px 16px;
    }
    .reviews-section {
        padding: 28px 0 20px;
    }
}

/* Подвал */
.footer {
    background: white;
    padding: 40px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.category-header {
    margin-bottom: 30px;
    text-align: center;
}

.category-header h1 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.category-description {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* Соотношение сторон 1:1 */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    background: #f5f5f5; /* фон при отсутствии изображения */
}

.product-image[src=""] {
    display: none;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5 url('/images/no-image.jpg') center/contain no-repeat;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-wrapper:has(img[src=""])::after,
.product-image-wrapper:has(img:not([src]))::after {
    opacity: 1;
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary-color);
}

a.product-image-wrapper {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ===== Адаптивность: планшет ===== */
@media (max-width: 768px) {
    :root { --header-height: 34px; }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-name { font-size: 13px; height: 36px; }
    .product-price { font-size: 16px; }
    .add-to-cart { padding: 10px; font-size: 13px; }
    .product-info { padding: 10px; gap: 6px; }
    .product-variation { font-size: 12px; padding: 6px; margin: 4px 0; }

    .product-image-wrapper,
    a.product-image-wrapper {
        display: block;
        position: relative;
        padding-top: 100%;
        overflow: hidden;
    }
    .product-image {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Header: only top bar on mobile */
    .header-main { display: none; }
    .header-top-desktop { display: none; }
    .header-addr-full { display: none; }
    .header-addr-short { display: inline; }
    .header-top .container { flex-wrap: nowrap; justify-content: space-between; gap: 0; text-align: left; }
    .header-top { font-size: 13px; padding: 6px 0; }
    .header-contacts { margin: 0; }
    .header-contacts a { margin-right: 0; font-weight: 600; }

    .cart-fab { display: flex; }

    .category-header h1 { font-size: 22px; margin-top: 16px; }
    .categories { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-image { height: 140px; }
    .category-name { font-size: 15px; }

    .discount-badge { font-size: 11px; padding: 4px 8px; }
    .price-old { font-size: 0.75em; }
    .price-new { font-size: 1em; }
    .price-discount-label { font-size: 0.65em; padding: 2px 4px; margin-left: 3px; }
    .discount-footnote { font-size: 12px; }
}

/* ===== Адаптивность: телефон ===== */
@media (max-width: 480px) {
    :root { --header-height: 32px; }
    .main { padding: 8px 0; }
    .container { padding: 0 8px; }

    .products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-name { font-size: 12px; height: 32px; -webkit-line-clamp: 2; }
    .product-price { font-size: 14px; margin-bottom: 6px; }
    .product-info { padding: 8px; gap: 4px; }
    .product-variation { font-size: 11px; padding: 5px; }
    .add-to-cart { padding: 8px; font-size: 12px; border-radius: 6px; }

    .price-old { display: block; margin-right: 0; margin-bottom: 2px; }
    .price-new { display: block; }
    .price-discount-label { margin-left: 0; margin-top: 2px; }
}

/* Главный баннер */
.main-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 50px;
    margin-top: 30px;
    border-radius: 8px;
}

.main-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.main-banner p {
    font-size: 24px;
    opacity: 0.9;
}

/* Секции */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Преимущества */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

@media (max-width: 768px) {
    .main-banner { padding: 50px 16px; margin-top: 16px; margin-bottom: 30px; }
    .main-banner h1 { font-size: 26px; }
    .main-banner p { font-size: 16px; }
    .section-title { font-size: 22px; margin-bottom: 20px; }
    .section { margin-bottom: 36px; }
}
@media (max-width: 480px) {
    .main-banner { padding: 36px 12px; border-radius: 6px; }
    .main-banner h1 { font-size: 22px; margin-bottom: 12px; }
    .main-banner p { font-size: 14px; }
    .section-title { font-size: 20px; }
}

/* Анимация счетчика корзины */
@keyframes cartCountUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-count-update {
    animation: cartCountUpdate 0.3s ease-out;
}

/* Стили для состояний кнопки */
.add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.add-to-cart.success {
    background-color: #4CAF50;
}

.add-to-cart.error {
    background-color: #ff0000;
} 

/* Стили для корзины */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.cart-items {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
}

.cart-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    gap: 20px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #f5f5f5;
}

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

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cart-item-total {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.remove-from-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.remove-from-cart:hover {
    color: #ff4444;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.cart-totals {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--secondary-color);
}

.total-row.grand-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.submit-order {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-order:hover {
    background-color: #ff4d94;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-total {
        text-align: left;
    }

    .remove-from-cart {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }
}

.product-variation {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.product-variation:focus {
    outline: none;
    border-color: var(--primary-color);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.header-search {
    flex: 1;
    margin: 0 20px;
}

.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px 0 0 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-form input:focus {
    border-color: #4CAF50;
}

.search-form button {
    padding: 10px 20px;
    background: #4CAF50;
    border: none;
    border-radius: 0 6px 6px 0;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #388E3C;
}

.search-results {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-results h1 {
    margin-bottom: 20px;
    color: #333;
}

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

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Скидки */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4444, #e60023);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(230, 0, 35, 0.3);
    letter-spacing: 0.5px;
}

.price-old {
    text-decoration: line-through;
    text-decoration-color: #e60023;
    text-decoration-thickness: 2px;
    color: #999;
    font-size: 0.8em;
    font-weight: 400;
    margin-right: 8px;
}

.price-new {
    color: #e60023;
    font-weight: 700;
    font-size: 1.15em;
}

.price-discount-label {
    display: inline-block;
    background: #e60023;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.discount-footnote {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}
.discount-footnote a {
    color: #4a7c59;
    font-weight: 600;
}

/* ============ Product Detail ============ */
.breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}
.breadcrumb a { color: #4a7c59; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 20px 0 40px;
}

.product-detail__gallery { position: relative; }

.product-detail__main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail__main-image img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    object-fit: contain;
}

.product-detail__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
}
.product-detail__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity .2s, border-color .2s;
}
.product-detail__thumb:hover,
.product-detail__thumb.active {
    opacity: 1;
    border-color: #4a7c59;
}

.product-detail__info h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
}

.product-detail__price {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-detail__stock { font-size: 14px; margin-bottom: 16px; }
.product-detail__stock--in { color: #4a7c59; }
.product-detail__stock--out { color: #c00; }

.product-detail__variations {
    margin-bottom: 20px;
}
.product-detail__variations label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.product-detail__variations select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.product-detail__cart-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    background: #4a7c59;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 24px;
}
.product-detail__cart-btn:hover { background: #3d6a4b; }

.product-detail__description {
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.product-detail__description h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.product-detail__seo-text {
    margin: 0 0 40px;
    padding: 24px;
    background: #fafafa;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 8px 0 20px;
    }
    .product-detail__info h1 { font-size: 20px; margin-bottom: 8px; }
    .product-detail__price { font-size: 20px; }
    .product-detail__main-image { max-height: 60vw; border-radius: 8px; }
    .product-detail__main-image img { max-height: 60vw; width: 100%; object-fit: contain; }
    .product-detail__thumb { width: 48px; height: 48px; }
    .product-detail__thumbs { gap: 6px; margin-top: 6px; }
    .product-detail__cart-btn { padding: 12px; font-size: 16px; border-radius: 8px; }
    .product-detail__variations select { padding: 10px 12px; font-size: 14px; }
    .product-detail__description h3 { font-size: 16px; }
    .product-detail__seo-text { padding: 12px; font-size: 14px; }
    .breadcrumb { font-size: 12px; padding: 6px 0; }
}

@media (max-width: 480px) {
    .product-detail__info h1 { font-size: 17px; }
    .product-detail__price { font-size: 18px; }
    .product-detail__main-image { max-height: 55vw; }
    .product-detail__main-image img { max-height: 55vw; }
    .product-detail__thumb { width: 40px; height: 40px; }
    .product-detail__cart-btn { font-size: 14px; padding: 10px; }
}