:root {
    --primary: #1a1a1a;       
    --accent: #c4a484;        
    --bg-color: #faf9f8;      
    --white: #ffffff;
    --alert: #d9534f;         
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    background-color: #eeeded;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--primary);
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

.main_wrap {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    padding: 20px 15px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --- HEADERS --- */
.head_section { padding-top: 0; }
.brand-header { text-align: center; padding: 20px 0; background: var(--white); width: 100%; }
.brand-header h2 { font-family: var(--font-heading); font-size: 32px; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
.brand-header p { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: #888; margin: 5px 0 0; }
.hero-title { font-family: var(--font-heading); font-size: 28px; text-align: center; margin: 20px 0; font-style: italic; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }

/* --- DYNAMIC HERO COLLAGE (Виправлено рівняння) --- */
.hero-collage {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    gap: 2px;
    background: #fff;
}

.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block; /* Прибирає нижні відступи */
}

/* 1 Фото */
.collage-1 { grid-template-columns: 1fr; }

/* 2 Фото (50/50 вертикально) */
.collage-2 { grid-template-columns: 1fr 1fr; }

/* 3 Фото (Одне зліва, два справа) */
.collage-3 {
    grid-template-columns: 1.5fr 1fr; 
    grid-template-rows: 1fr 1fr; 
}
.collage-3 img:nth-child(1) {
    grid-row: 1 / 3; /* На всю висоту зліва */
    grid-column: 1;
}

/* 4 Фото (Одне зліва, три справа - Журнальний стиль) */
.collage-4 {
    grid-template-columns: 1.5fr 1fr; 
    grid-template-rows: 1fr 1fr 1fr;
}
.collage-4 img:nth-child(1) {
    grid-row: 1 / 4; /* На всю висоту зліва */
    grid-column: 1;
}

/* --- PRICE BLOCK --- */
.price_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0 15px 0;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}
.price_block .rating-box { margin: 0 0 10px 0; transform: scale(0.9); }
.cost_block { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.old_price { font-size: 14px; color: #999; text-align: center; }
.old_price p { text-decoration: line-through; font-size: 18px; margin: 5px 0 0; }
.new_price { text-align: center; color: var(--alert); }
.new_price p { font-size: 32px; font-weight: 700; margin: 0; font-family: var(--font-heading); }
.discount-tag { background: var(--primary); color: var(--white); padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* --- BENEFITS --- */
.benefits_block { display: flex; justify-content: space-between; margin: 0 0 25px 0; gap: 10px; width: 100%; box-sizing: border-box; }
.benef_card { flex: 1; text-align: center; background: var(--white); padding: 15px 5px; border-radius: 6px; border: 1px solid #eee; }
.benef_card h6 { margin: 0; font-size: 11px; text-transform: uppercase; font-weight: 600; line-height: 1.4; font-family: var(--font-body); }

/* --- BUTTONS --- */
.button {
    display: block; width: 100%; padding: 18px 0; background-color: var(--primary); color: var(--white);
    text-align: center; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 16px;
    border-radius: 4px; letter-spacing: 1px; transition: background 0.3s; border: none; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); box-sizing: border-box; font-family: var(--font-body);
}
.button:hover { background-color: var(--accent); }

/* --- STOCK BAR --- */
.stock-container { width: 90%; margin: 15px auto 25px auto; text-align: center; }
.stock-text { color: #d9534f; font-size: 13px; font-weight: 700; text-transform: uppercase; margin: 0 0 8px 0; display: flex; align-items: center; justify-content: center; gap: 5px; letter-spacing: 0.5px; animation: pulse-red 2s infinite; }
.stock-bar { width: 100%; height: 6px; background-color: #e9ecef; border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); }
.stock-fill { height: 100%; background: linear-gradient(90deg, #d9534f, #ff6b6b); border-radius: 3px; transition: width 1s ease-out; }
@keyframes pulse-red { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

/* --- SHOWROOM / DETAILS (Виправлено злипання тексту) --- */
.sec_title { font-family: var(--font-heading); font-size: 26px; text-align: center; margin: 0 0 30px 0; position: relative; padding-bottom: 15px; width: 100%; }
.sec_title::after { content: ""; display: block; width: 60px; height: 2px; background: var(--accent); margin: 10px auto 0; }
.desc_bl { width: 100%; }
.description_block { list-style: none; padding: 20px; background: var(--white); border-radius: 8px; margin: 0; }

/* ОСЬ ТУТ ВИПРАВЛЕННЯ ДЛЯ ТЕКСТУ: */
.description_block li {
    display: flex;
    flex-direction: column; /* Текст під заголовком */
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.description_block li:last-child { border-bottom: none; }
.description_block li b { 
    color: var(--primary); 
    font-size: 15px; 
    margin-bottom: 8px; /* Відступ між заголовком і текстом */
    width: 100%; 
    display: block;
}
.description_block li span {
    color: #555;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    display: block;
}

/* --- TABLE --- */
.title_table { text-align: center; text-transform: uppercase; font-size: 14px; letter-spacing: 2px; margin: 30px 0 10px; font-weight: 700; }
.tbl_size { width: 100%; border-collapse: collapse; background: var(--white); font-size: 13px; text-align: center; }
.tbl_size td { border: 1px solid #eee; padding: 8px; }
.tops td { background: var(--primary); color: var(--white); font-weight: 600; }
.sep { height: 30px; width: 100%; }

/* --- PRODUCT CARD --- */
.product_card { background: var(--white); padding: 0 0 20px 0; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.03); width: 100%; box-sizing: border-box; }
.product_card .slider { margin: 0; padding: 0; }
.product_card h5 { display: none; }
.text_block_card { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.color { font-family: var(--font-heading); font-size: 22px; margin: 0; }
.color .smler { display: block; font-family: var(--font-body); font-size: 14px; color: var(--accent); margin-top: 5px; }
.product_card .button { width: 90%; margin: 0 auto; }

/* --- SIZE CHIPS --- */
.size_wrapper { width: 90%; margin: 0 auto 15px auto; text-align: center; }
.size_label { font-size: 12px; color: #777; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }
.size-selector-block { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.size-btn-chip { padding: 10px 15px; background-color: #fff; border: 1px solid #1a1a1a; color: #1a1a1a; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; border-radius: 4px; min-width: 60px; }
.size-btn-chip:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(196, 164, 132, 0.4); }
.size-btn-chip:active { transform: scale(0.95); }

/* --- HOW TO ORDER --- */
.howto_section { background: var(--white); padding: 40px 20px; text-align: center; }
.howto_section .sec_title { color: var(--primary); margin-bottom: 30px; }
.delivery_grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 10px; }
.del_item { width: 48%; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 10px; }
.del_icon_wrapper { width: 60px; height: 60px; background-color: var(--bg-color); border: 1px solid var(--accent); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; position: relative; transition: all 0.3s ease; }
.del_icon_wrapper::after { content: attr(data-step); position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; background-color: var(--primary); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; justify-content: center; align-items: center; }
.del_item:hover .del_icon_wrapper { background-color: var(--accent); box-shadow: 0 5px 15px rgba(196, 164, 132, 0.4); }
.del_item:hover .del_icon_wrapper img { filter: invert(1); }
.del_item img { width: 28px; height: auto; transition: all 0.3s ease; }
.del_item h4 { margin: 0 0 5px 0; font-size: 14px; text-transform: uppercase; font-family: var(--font-heading); font-weight: 700; color: var(--primary); }
.del_item p { margin: 0; font-size: 11px; line-height: 1.4; color: #666; font-weight: 400; }

/* --- FORM --- */
.form_section { background: var(--white); padding-bottom: 40px; }
form { width: 90%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.field { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); font-size: 14px; box-sizing: border-box; outline: none; transition: border 0.3s; background: #f9f9f9; }
.field:focus { border-color: var(--accent); background: #fff; }
select.field { cursor: pointer; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 10px auto; -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* --- FOOTER --- */
footer { background: #111; color: #666; padding: 30px 15px; text-align: center; font-size: 10px; width: 100%; box-sizing: border-box; }
footer a { color: #888; text-decoration: none; }
.copyright { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.discount-note { color: var(--accent); margin-bottom: 20px; font-size: 12px; }
.bx-wrapper { box-shadow: none !important; border: none !important; margin-bottom: 0 !important; background: transparent !important; }

/* --- RATING --- */
.rating-box { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 10px 0; }
.rating-stars { color: #eebb00; font-size: 18px; letter-spacing: 2px; }
.rating-text { font-size: 11px; font-family: var(--font-body); color: #999; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.review-summary { text-align: center; margin-bottom: 20px; }
.review-summary .rating-stars { font-size: 24px; }
.review-summary p { margin: 5px 0 0 0; font-size: 13px; color: #555; }

/* --- REVIEWS LIST --- */
.reviews-container { display: flex; flex-direction: column; gap: 15px; width: 90%; margin: 0 auto; }
.review-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #f0f0f0; text-align: left; }
.rev-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.rev-name { font-weight: 700; font-size: 14px; color: var(--primary); }
.rev-stars { color: #eebb00; font-size: 14px; letter-spacing: 1px; }
.rev-date { font-size: 11px; color: #999; }
.rev-text { font-size: 14px; line-height: 1.5; color: #555; font-style: italic; margin: 0; }
.leave-review-block { margin: 40px auto 20px auto; padding: 20px; background: #fff; border-radius: 8px; width: 90%; box-sizing: border-box; border: 1px dashed #ccc; text-align: center; }
.leave-review-block h4 { margin-top: 0; font-family: var(--font-heading); }
.rev-field { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); box-sizing: border-box; }
.rev-btn { background: var(--primary); color: #fff; border: none; padding: 12px 20px; border-radius: 4px; cursor: pointer; font-weight: 600; text-transform: uppercase; width: 100%; }

/* --- MOBILE FIXES --- */
@media screen and (max-width: 480px) {
    .stock-text { font-size: 10px; white-space: nowrap; letter-spacing: 0px; width: 100%; justify-content: center; }
    .stock-container { margin: 10px auto 20px auto; }
    .size-selector-block { gap: 5px; padding: 0; }
    .size-btn-chip { padding: 8px 10px; font-size: 11px; min-width: 45px; border-width: 1px; }
    .product_card { padding-bottom: 15px; }
    
    /* КОЛАЖ НА МОБІЛЬНОМУ */
    .collage-4 {
        /* Залишаємо той же стиль, що і на ПК (1 велике + 3 малих), бо він гарний */
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
}