.product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    margin-top: 40px;
    align-items: flex-start;
}

/* Ліва половина — фото */
.product-gallery {
    flex: 0 0 48%;
    max-width: 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.product-gallery img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ccc;
    display: block;
    margin: 0 auto;
}

/* Права половина — інформація */
.product-info {
    flex: 0 0 48%;
    max-width: 48%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: left;
}

.sku {
    margin: 5px 0;
    font-weight: bold;
}

.description {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.price {
    font-size: 24px;
    color: #e76a00;
    margin: 10px 0;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-specs li {
    margin-bottom: 8px;
}

/* Плитки розміру */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 20px;
}

.size-option {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    background: #f9f9f9;
    transition: background 0.2s ease;
}

.size-option:hover {
    background: #eaeaea;
}

.size-option.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* === Breadcrumbs базові стилі (розширені стилі в product.php) === */
.breadcrumbs {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 0;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs span {
    color: #333;
}

/* === Контейнер кнопок === */
.cart-and-whatsapp {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
    align-items: center;
}

.cart-and-whatsapp .btn-add-cart,
.cart-and-whatsapp .whatsapp-button {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
}

.cart-and-whatsapp .whatsapp-button img {
    margin-top: -2px;
}

/* === Базові стилі кнопок (розширені стилі в product.php) === */
.btn-add-cart {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.btn-add-cart:hover {
    background-color: #218838;
}

.btn-view {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    cursor: pointer;
}

.btn-view:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

/* === Заголовки === */
.shop-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 30px 0;
    color: #333;
    position: relative;
}

.shop-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f26522, #ff7e3d);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === Сітка товарів === */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 0 0 60px 0;
}

.shop-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f26522, #ff7e3d);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.shop-card:hover::before {
    transform: scaleX(1);
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #f26522;
    text-decoration: none;
    color: inherit;
}

.shop-card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.shop-card:hover img {
    transform: scale(1.05);
}

.shop-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
}

.product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 20px;
    color: #f26522;
    font-weight: 700;
    position: relative;
}

.product-price::before {
    content: "from ";
    font-size: 12px;
    color: #666;
    font-weight: 400;
    position: absolute;
    top: -15px;
    left: 0;
}

/* === МОБІЛЬНА АДАПТИВНІСТЬ === */
@media (max-width: 768px) {
    /* === Товар на всю ширину === */
    .product-gallery,
    .product-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-page {
        flex-direction: column;
        gap: 20px;
    }

    .product-gallery img {
        max-width: 100%;
    }

    /* === ПЕРЕВИЗНАЧЕННЯ для product.php - використовуємо grid замість flex === */
    .shop-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        justify-content: unset !important;
        flex-wrap: unset !important;
    }

    .shop-card {
        width: 100% !important;
        flex: unset !important;
        padding: 15px;
    }

    .shop-card-image {
        height: 180px;
        margin-bottom: 12px;
    }

    .shop-card-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .product-info-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 12px !important;
        width: 100% !important;
    }

    .product-price {
        font-size: 16px !important;
        text-align: center !important;
        order: -1 !important;
    }

    .product-price::before {
        position: static !important;
        display: inline !important;
    }

    .btn-view {
        width: 100% !important;
        text-align: center !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    .shop-title {
        font-size: 24px;
        margin: 30px 0 25px 0;
    }

    .breadcrumbs {
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* === ПЕРЕВИЗНАЧЕННЯ для дуже маленьких екранів === */
    .shop-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .shop-card {
        padding: 12px;
    }

    .shop-card-image {
        height: 160px;
    }

    .shop-card-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .product-info-row {
        gap: 6px !important;
    }

    .btn-view {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}