/*
Theme Name: Roma
Author: RZStudio
Description: Чистая, эстетичная и быстрая тема интернет-магазина без использования сторонних плагинов.
Version: 1.0
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #222;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
}

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

header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 25px 0;
}

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

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Сетка каталога */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
}

.product-card a {
    text-decoration: none;
    color: #111;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.btn-add-to-cart {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-add-to-cart:hover {
    background: #333;
}

/* ОБЩАЯ СТРУКТУРА СЛАЙДЕРА */
.roma-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}
.slider-container {
    position: relative;
    width: 100%;
}
.slider-wrapper {
    display: relative;
    width: 100%;
    height: 450px;
}
.roma-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}
.roma-slide.active {
    opacity: 1;
    z-index: 2;
}
.slide-flex {
    display: flex;
    width: 100%;
    align-items: center;
}
.slide-info {
    max-width: 500px;
    padding: 30px;
    border-radius: 4px;
}
.slide-tag {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 10px;
}
.slide-info h2 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #111;
}
.slide-info p {
    font-size: 16px;
    color: #444;
    margin: 0 0 25px 0;
}
.slider-btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    font-size: 14px;
    transition: background 0.2s;
    background: #000;
    color: #fff;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25px, 25px, 25px, 0.1);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(0,0,0,0.8); color: #fff;}
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ВАРИАНТ 1: Классический (Текст слева в белой плашке) */
.roma-hero-slider.style-1 .slide-info {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.roma-hero-slider.style-1 .slide-tag { color: #35cb34; }

/* ВАРИАНТ 2: Минимализм (Текст по центру, поверх темного фона) */
.roma-hero-slider.style-2 .roma-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.roma-hero-slider.style-2 .slide-flex {
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
}
.roma-hero-slider.style-2 .slide-info h2,
.roma-hero-slider.style-2 .slide-info p,
.roma-hero-slider.style-2 .slide-tag {
    color: #fff;
}
.roma-hero-slider.style-2 .slide-tag { color: #35cb34; }

/* ВАРИАНТ 3: Карточки промо-баннеров */
.promo-grid {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1240px;
    margin: 0 auto;
}
.promo-item {
    flex: 1;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    position: relative;
}
.promo-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.promo-content span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #35cb34; font-weight: bold;}
.promo-content h3 { font-size: 26px; margin: 5px 0 15px 0; font-weight: 700; }
