/* ============================================================
   U-SHOP — бордова тема
   ============================================================ */

:root {
    --wine:        #6e1229;   /* основний бордовий */
    --wine-deep:   #4a0c1c;   /* темний бордовий (шапка, футер) */
    --wine-soft:   #8f2a43;   /* світліший бордовий (ховери) */
    --wine-tint:   #f6ecee;   /* бордовий пил — фони блоків */
    --gold:        #c2a15c;   /* приглушене золото — акцент */
    --gold-soft:   #e3cfa2;
    --ink:         #2c1a1f;   /* основний текст */
    --ink-soft:    #6e575d;   /* вторинний текст */
    --muted:       #a08c91;
    --bg:          #fbf7f6;   /* фон полотна */
    --white:       #ffffff;
    --line:        #ebdcdf;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --radius:      14px;
    --shadow-sm:   0 4px 14px rgba(74, 12, 28, 0.06);
    --shadow-md:   0 10px 30px rgba(74, 12, 28, 0.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background: #efe4e4;
    background-image: radial-gradient(circle at 50% 0, #f7ecec 0%, #e8d9da 100%);
    font-family: var(--font-body);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

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

section {
    padding: 26px 18px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

/* --- ШАПКА --- */
.brand-header {
    text-align: center;
    padding: 22px 0 20px;
    background: var(--wine-deep);
    width: 100%;
    position: relative;
}
.brand-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.brand-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    margin: 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}
.brand-header p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-soft);
    margin: 8px 0 0;
    font-weight: 500;
}

/* --- ГЕРОЙ --- */
.head_section { padding-top: 0; }

.hero-title {
    font-family: var(--font-heading);
    font-size: 30px;
    text-align: center;
    margin: 28px 0 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wine-deep);
    letter-spacing: 0.2px;
}
.hero-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    background: var(--gold);
    margin: 16px auto 0;
}

.hero-image-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero-image-wrap img { border-radius: var(--radius); }

.hero-collage {
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    gap: 4px;
    background: var(--wine-tint);
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.collage-1 { grid-template-columns: 1fr; }
.collage-2 { grid-template-columns: 1fr 1fr; }
.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; }
.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 {
    margin: 24px 0 18px;
    background: var(--white);
    padding: 20px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    width: 100%;
    position: relative;
    overflow: hidden;
}
.price_block::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--wine), var(--wine-soft));
}
.cost_block {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 10px;
}
.old_price {
    font-size: 11px;
    color: var(--muted);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}
.old_price p {
    text-decoration: line-through;
    font-size: 19px;
    margin: 6px 0 0;
    font-family: var(--font-heading);
    letter-spacing: 0;
    color: var(--muted);
}
.new_price { text-align: right; color: var(--wine); }
.new_price p {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading);
    line-height: 1;
}
.discount-tag {
    background: var(--wine);
    color: #fff;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(110, 18, 41, 0.28);
    white-space: nowrap;
}

/* --- ПЕРЕВАГИ --- */
.benefits_block {
    display: flex;
    justify-content: space-between;
    margin: 0 0 22px;
    gap: 10px;
    width: 100%;
}
.benef_card {
    flex: 1;
    text-align: center;
    background: var(--white);
    padding: 16px 6px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.benef_card h6 {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink-soft);
    letter-spacing: 0.4px;
}
.benef_card .b-mark {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 10px;
    border-radius: 2px;
}

/* --- КНОПКИ --- */
.button {
    display: block;
    width: 100%;
    padding: 18px 12px;
    background: var(--wine);
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14.5px;
    border-radius: 10px;
    letter-spacing: 1.2px;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(110, 18, 41, 0.26);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}
.button:hover { background: var(--wine-soft); }
.button:active { transform: scale(0.985); }
.button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen {
    0%   { left: -60%; }
    45%  { left: 130%; }
    100% { left: 130%; }
}
.button--ghost {
    background: transparent;
    color: var(--wine);
    border: 1.5px solid var(--wine);
    box-shadow: none;
}
.button--ghost:hover { background: var(--wine); color: #fff; }

/* --- СТРІЧКА ДОВІРИ (замість лічильника) --- */
.trust-strip {
    display: flex;
    width: 100%;
    margin: 18px 0 4px;
    background: var(--wine-tint);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.trust-item {
    flex: 1;
    text-align: center;
    padding: 14px 6px;
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-item b {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--wine);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
    font-weight: 600;
}

/* --- ЗАГОЛОВКИ СЕКЦІЙ --- */
.sec_title {
    font-family: var(--font-heading);
    font-size: 26px;
    text-align: center;
    margin: 0 0 26px;
    padding-bottom: 4px;
    width: 100%;
    color: var(--wine-deep);
    font-weight: 600;
}
.sec_title::after {
    content: "";
    display: block;
    width: 54px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 0;
}

/* --- ОПИС --- */
.desc_bl { width: 100%; }
.description_block {
    list-style: none;
    padding: 6px 22px;
    background: var(--white);
    border-radius: var(--radius);
    margin: 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.description_block li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.description_block li:last-child { border-bottom: none; }
.description_block li b {
    color: var(--wine);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 9px;
    width: 100%;
    display: block;
}
.description_block li span {
    color: var(--ink-soft);
    line-height: 1.75;
    width: 100%;
    display: block;
    white-space: pre-line;
}

/* --- ТАБЛИЦЯ РОЗМІРІВ --- */
.title_table {
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2.5px;
    margin: 32px 0 14px;
    font-weight: 700;
    color: var(--wine);
}
.tbl_size {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 13px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tbl_size td { border: 1px solid var(--line); padding: 11px 8px; color: var(--ink-soft); }
.tbl_size tr:nth-child(even) td { background: #fdf9f9; }
.tops td {
    background: var(--wine);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-color: var(--wine);
}
.sep { height: 26px; width: 100%; }
.ps { color: var(--muted) !important; }

/* --- КАРТКА ТОВАРУ --- */
.main_section { background: var(--wine-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.product_card {
    background: var(--white);
    padding: 0 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    width: 100%;
}
.product_card .slider { margin: 0; padding: 0; }
.product_card h5 { display: none; }

.text_block_card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.color {
    font-size: 10px;
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 600;
}
.color .smler {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--wine-deep);
    margin-top: 6px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.text_block_card .new_price p { font-size: 26px; }
.product_card .button { width: calc(100% - 40px); margin: 0 auto; }

/* --- РОЗМІРИ --- */
.size_wrapper { width: calc(100% - 40px); margin: 0 auto 18px; text-align: center; }
.size_label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.2px;
}
.size-selector-block { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.size-btn-chip {
    padding: 11px 16px;
    background: var(--white);
    border: 1.5px solid var(--line);
    color: var(--wine-deep);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 8px;
    min-width: 62px;
}
.size-btn-chip:hover {
    background: var(--wine);
    border-color: var(--wine);
    color: #fff;
    box-shadow: 0 6px 16px rgba(110, 18, 41, 0.28);
}
.size-btn-chip:active { transform: scale(0.95); }

/* --- ЯК ЗАМОВИТИ --- */
.howto_section { background: var(--white); padding: 40px 20px; text-align: center; }
.delivery_grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 10px; }
.del_item { width: 48%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.del_icon_wrapper {
    width: 64px;
    height: 64px;
    background: var(--wine-tint);
    border: 1px solid var(--gold-soft);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.3s ease;
}
.del_icon_wrapper::after {
    content: attr(data-step);
    position: absolute;
    top: -4px; right: -4px;
    width: 21px; height: 21px;
    background: var(--wine);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 8px rgba(110, 18, 41, 0.3);
}
.del_item:hover .del_icon_wrapper { background: var(--wine); border-color: var(--wine); }
.del_item:hover .del_icon_wrapper img { filter: brightness(0) invert(1); }
.del_item img { width: 28px; transition: all 0.3s ease; }
.del_item h4 {
    margin: 0 0 7px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--wine-deep);
}
.del_item p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink-soft); }

/* --- ФОРМА --- */
.form_section { background: var(--wine-deep); padding-bottom: 42px; }
.form_section .sec_title { color: #fff; }
.form_section .sec_title::after { background: var(--gold); }
.form_section .price_block { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none; }
.form_section .price_block::before { background: var(--gold); }
.form_section .old_price, .form_section .old_price p { color: rgba(255,255,255,0.5); }
.form_section .new_price { color: #fff; }
.form_section .discount-tag { background: var(--gold); color: var(--wine-deep); box-shadow: none; }

form { width: 100%; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.field {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border 0.25s, box-shadow 0.25s;
    background: #fff;
    color: var(--ink);
}
.field::placeholder { color: var(--muted); }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(194, 161, 92, 0.18); }
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%236e1229%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 16px top 50%;
    background-size: 11px auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form_section .button { background: var(--gold); color: var(--wine-deep); margin-top: 6px; box-shadow: 0 10px 26px rgba(0,0,0,0.25); }
.form_section .button:hover { background: #d4b370; }
.form-note {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    text-align: center;
    margin: 14px 0 0;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* --- ЛИПКА ПАНЕЛЬ --- */
.sticky-cta {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 120%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: rgba(74, 12, 28, 0.97);
    backdrop-filter: blur(8px);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99;
    transition: transform 0.35s ease;
    border-top: 1px solid rgba(194, 161, 92, 0.4);
}
.sticky-cta.is-visible { transform: translate(-50%, 0); }
.sticky-cta .s-price { color: #fff; line-height: 1.2; flex-shrink: 0; }
.sticky-cta .s-price small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-soft); margin-bottom: 3px; }
.sticky-cta .s-price b { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.sticky-cta .button { margin: 0; padding: 14px 10px; font-size: 13px; background: var(--gold); color: var(--wine-deep); box-shadow: none; }
.sticky-cta .button:hover { background: #d4b370; }

/* --- ФУТЕР --- */
footer {
    background: #3c0814;
    color: rgba(255,255,255,0.55);
    padding: 34px 18px 100px;
    text-align: center;
    font-size: 11px;
    width: 100%;
    border-top: 1px solid rgba(194, 161, 92, 0.35);
}
footer a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(227, 207, 162, 0.3); padding-bottom: 2px; }
footer a:hover { color: #fff; }
.copyright { display: flex; justify-content: center; gap: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.discount-note { color: var(--gold-soft); margin: 0 0 20px; font-size: 12px; letter-spacing: 0.4px; }
.fop { line-height: 1.7; margin: 0; font-size: 10.5px; }

/* --- СЛАЙДЕР --- */
.bx-wrapper { box-shadow: none !important; border: none !important; margin-bottom: 0 !important; background: transparent !important; position: relative; }
.bx-wrapper .bx-pager { padding-top: 0 !important; position: absolute; bottom: 12px; left: 0; right: 0; z-index: 5; }
.bx-wrapper .bx-pager.bx-default-pager a { background: rgba(255,255,255,0.6) !important; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.35); margin: 0 4px; }
.bx-wrapper .bx-pager.bx-default-pager a.active { background: var(--gold) !important; }

/* --- СТАТИЧНІ СТОРІНКИ (доставка / політика) --- */
.doc-page { background: var(--white); padding: 30px 20px 40px; }
.doc-page h1 { font-family: var(--font-heading); font-size: 26px; color: var(--wine-deep); text-align: center; margin: 0 0 8px; font-weight: 600; }
.doc-page .doc-rule { width: 54px; height: 2px; background: var(--gold); margin: 0 auto 26px; }
.doc-page h2 { font-family: var(--font-heading); font-size: 19px; color: var(--wine); margin: 28px 0 10px; font-weight: 600; }
.doc-page h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--wine); margin: 22px 0 8px; }
.doc-page p { font-size: 14px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 14px; }
.doc-back { display: inline-block; margin-top: 26px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--wine); text-decoration: none; font-weight: 600; }

/* --- МОБІЛЬНІ ПРАВКИ --- */
@media screen and (max-width: 480px) {
    .hero-title { font-size: 26px; }
    .sec_title { font-size: 23px; }
    .new_price p { font-size: 30px; }
    .size-selector-block { gap: 6px; }
    .size-btn-chip { padding: 10px 12px; font-size: 12px; min-width: 54px; }
    .trust-item { font-size: 9.5px; padding: 12px 4px; }
    .trust-item b { font-size: 13px; }
    .sticky-cta .s-price b { font-size: 19px; }
}
