/* Chocomade Box - Styles */

:root {
    --milk: #FDFBF7;
    --choco: #4A3022;
    --caramel: #D4A373;
    --caramel-hover: #C39362;
    --cta-premium-top: #c9986b;
    --cta-premium-bottom: #ab7348;
    --cta-premium-hover-top: #bd8a5e;
    --cta-premium-hover-bottom: #96613a;
    --cta-premium-border: rgba(92, 58, 33, 0.22);
    --cta-premium-dark-top: #7a553d;
    --cta-premium-dark-bottom: #553727;
    --cta-premium-dark-hover-top: #886048;
    --cta-premium-dark-hover-bottom: #654131;
    --button-surface-top: #fffdf9;
    --button-surface-bottom: #f3e6d8;
    --button-surface-hover-top: #fbf4ea;
    --button-surface-hover-bottom: #ead7c4;
    --button-surface-border: rgba(92, 58, 33, 0.16);
    --button-success-top: #5c9d69;
    --button-success-bottom: #3f7c4c;
    --button-success-hover-top: #4f915d;
    --button-success-hover-bottom: #336741;
    --button-success-border: rgba(50, 100, 62, 0.24);
    --pastel: #F3E8E0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--milk);
    color: var(--choco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* paragraphs slightly larger */
body p {
    font-size: 1.125rem; /* two steps up from default 1rem */
}

/* Навігація */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--pastel);
}

header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--choco);
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

header .logo:hover {
    opacity: 0.8;
}

header .logo img {
    height: 100%;
    vertical-align: middle;
    margin-right: 8px;
}

header .logo span {
    vertical-align: middle;
}

header a {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--choco);
    transition: color 0.3s ease;
}

/* header controls - always visible */
#headerControls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* cart svg styling */
.cart-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    fill: var(--choco);
    transition: fill 0.3s ease;
}
#cartBtnHeader:hover .cart-icon {
    fill: var(--caramel);
}

header a:hover {
    color: var(--caramel);
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1098;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid rgba(92, 58, 33, 0.16);
    padding: 0.7rem 1rem 1rem;
    box-shadow: -14px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1099;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.2rem;
}

.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.4rem;
    border: none;
    background: transparent;
    color: var(--choco);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--caramel);
}

.mobile-menu-close:focus-visible {
    outline: 2px solid rgba(212, 163, 115, 0.45);
    outline-offset: 2px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 0.2rem;
}

.mobile-menu-link {
    display: block;
    text-decoration: none;
    color: var(--choco);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    padding: 0.85rem 0.1rem;
    border-bottom: 1px solid var(--pastel);
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: var(--caramel);
}

.mobile-menu-link:focus-visible {
    outline: 2px solid rgba(212, 163, 115, 0.4);
    outline-offset: 2px;
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* Героїчний розділ - фото на всю сторінку */
.hero {
    /* use percentage width so scrollbars don’t cause horizontal overflow */
    width: 100%;
    height: 100vh;
    position: relative;
    margin-top: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pastel), var(--milk));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    width: 100%;
    min-width: 100%; /* guard against collapse on narrow viewports */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    z-index: 3;
    background: rgba(212, 163, 115, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
}

.hero-placeholder {
    text-align: center;
    color: rgba(74, 48, 34, 0.5);
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
}

/* Контент над зображенням */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(74, 48, 34, 0.9), transparent);
    padding: 4rem 2rem 2rem;
    text-align: center;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* === форма замовлення і інші поля === */
form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="password"],
form input[type="search"],
form select,
form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pastel);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input[type="text"]:focus,
form input[type="tel"]:focus,
form input[type="email"]:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px rgba(212,163,115,0.25);
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

form fieldset {
    border: 1px solid var(--pastel);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

form legend {
    padding: 0 0.5rem;
    font-weight: 700;
}

form button[type="submit"],
button,
input[type="button"],
input[type="submit"] {
    cursor: pointer;
    padding: 0.75rem 1rem;
    background-color: var(--caramel);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

form button[type="submit"]:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: var(--caramel-hover);
}

.site-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    border-radius: 0.8rem;
    border: 1px solid var(--site-btn-border, var(--cta-premium-border));
    background: var(--site-btn-bg, linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%));
    color: var(--site-btn-color, #fff);
    box-shadow: var(--site-btn-shadow, 0 12px 22px rgba(96, 63, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16));
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-action-btn:hover {
    background: var(--site-btn-bg-hover, linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%));
    color: var(--site-btn-color-hover, var(--site-btn-color, #fff));
    box-shadow: var(--site-btn-shadow-hover, 0 16px 28px rgba(96, 63, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12));
    transform: translateY(-1px);
}

.site-action-btn:focus-visible,
.site-icon-btn:focus-visible {
    outline: 3px solid rgba(212, 163, 115, 0.35);
    outline-offset: 2px;
}

.site-action-btn--primary {
    --site-btn-bg: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    --site-btn-bg-hover: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    --site-btn-border: var(--cta-premium-border);
    --site-btn-color: #fff;
}

.return-policy {
    padding: 80px 0;
    background: transparent;
    font-family: inherit;
    line-height: 1.8;
}

.return-policy__container {
    max-width: 920px;
    margin: 0 auto;
}

.return-policy__title {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    color: var(--choco);
    font-weight: 800;
}

.return-policy__content {
    max-width: 860px;
}

.return-policy__text {
    font-size: 1.05rem;
    color: #4e3f33;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .return-policy {
        padding: 40px 0;
    }

    .return-policy__title {
        font-size: 2.4rem;
        margin-bottom: 1.5rem;
    }

    .return-policy__text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.site-action-btn--secondary {
    --site-btn-bg: linear-gradient(180deg, var(--button-surface-top) 0%, var(--button-surface-bottom) 100%);
    --site-btn-bg-hover: linear-gradient(180deg, var(--button-surface-hover-top) 0%, var(--button-surface-hover-bottom) 100%);
    --site-btn-border: var(--button-surface-border);
    --site-btn-color: var(--choco);
    --site-btn-color-hover: var(--choco);
    --site-btn-shadow: 0 10px 18px rgba(74, 48, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --site-btn-shadow-hover: 0 14px 24px rgba(74, 48, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.site-action-btn--dark {
    --site-btn-bg: linear-gradient(180deg, var(--cta-premium-dark-top) 0%, var(--cta-premium-dark-bottom) 100%);
    --site-btn-bg-hover: linear-gradient(180deg, var(--cta-premium-dark-hover-top) 0%, var(--cta-premium-dark-hover-bottom) 100%);
    --site-btn-border: rgba(59, 36, 24, 0.34);
    --site-btn-color: #fff;
}

.site-action-btn--success {
    --site-btn-bg: linear-gradient(180deg, var(--button-success-top) 0%, var(--button-success-bottom) 100%);
    --site-btn-bg-hover: linear-gradient(180deg, var(--button-success-hover-top) 0%, var(--button-success-hover-bottom) 100%);
    --site-btn-border: var(--button-success-border);
    --site-btn-color: #fff;
    --site-btn-shadow: 0 12px 22px rgba(63, 124, 76, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --site-btn-shadow-hover: 0 16px 28px rgba(63, 124, 76, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--button-surface-border);
    background: linear-gradient(180deg, var(--button-surface-top) 0%, var(--button-surface-bottom) 100%);
    color: var(--choco);
    box-shadow: 0 8px 16px rgba(74, 48, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-icon-btn:hover {
    background: linear-gradient(180deg, var(--button-surface-hover-top) 0%, var(--button-surface-hover-bottom) 100%);
    box-shadow: 0 12px 20px rgba(74, 48, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

#cartBtnHeader,
#menuBtn,
#cartBtnHeader:hover,
#menuBtn:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transform: none;
}

#cartBtnHeader:focus-visible,
#menuBtn:focus-visible {
    outline: 2px solid rgba(212, 163, 115, 0.35);
    outline-offset: 2px;
}

.ui-helper-hidden-accessible { display: none !important; }

/* ensure autocomplete container appears above modals */
.ui-front {
    z-index: 9999 !important;
}

/* search icon in city field */
#city {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 2.5rem;
}


.hero-content .btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid var(--cta-premium-border);
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(96, 63, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-content .btn:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    box-shadow: 0 18px 32px rgba(96, 63, 39, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.delivery-pay {
    padding: 60px 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #000;
}

.delivery-pay__container {
    max-width: 900px;
    margin: 0 auto;
}

.delivery-pay__title {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.delivery-pay__subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
}

.delivery-pay__summary {
    margin-top: 40px;
    padding-top: 10px;
    text-align: left;
}

.delivery-pay__summary p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #36251d;
}

.delivery-pay__list {
    list-style: disc inside;
    margin: 0;
    padding: 0;
    color: #36251d;
    font-size: 15px;
    line-height: 1.8;
}

.delivery-pay__list li {
    margin-bottom: 0.85rem;
}

.delivery-pay__service-title {
    font-size: 20px;
    letter-spacing: 1px;
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-transform: uppercase;
}

.delivery-pay__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 20px;
}

.delivery-pay__item {
    display: flex;
    align-items: center;
    width: calc(50% - 20px);
    text-align: left;
}

.delivery-pay__item--center {
    margin: 0 auto;
}

.delivery-pay__icon {
    flex-shrink: 0;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-pay__info {
    font-size: 16px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .delivery-pay__item {
        width: 100%;
    }
    .delivery-pay__title {
        font-size: 20px;
    }
}

/* Policy page styling */
.policy-section-container {
    padding: 60px 20px;
    background: transparent;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    line-height: 1.8;
}

.policy-main-title {
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
}

.policy-intro,
.policy-agreement {
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
}

.policy-section-title {
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 40px 0 1rem;
    padding-top: 40px;
    border-top: 1px solid #eee;
    color: #000;
}

.policy-text {
    font-size: 15px;
    color: #36251d;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.policy-list {
    list-style: disc inside;
    margin: 0;
    padding: 0;
    color: #36251d;
    font-size: 15px;
    line-height: 1.8;
}

.policy-list li {
    margin-bottom: 0.85rem;
}

@media (max-width: 768px) {
    .policy-main-title {
        font-size: 20px;
    }
    .policy-section-title {
        font-size: 18px;
    }
}

/* Основні розділи */
section {
    padding: 3rem 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    section h2 {
        font-size: 2.25rem;
    }
}

/* Як це працює */
.how-it-works {
    background-color: var(--pastel);
}

.how-it-works h2 {
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background-color: var(--milk);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* make any inline svg inside the icon scale and inherit color */
.step-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step p {
    color: rgba(74, 48, 34, 0.8);
    font-size: 0.95rem;
}

/* Каталог товарів */
#catalog {
    position: relative;
    padding: 3rem 1rem;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #f5ede4 0%, #fdf6f0 50%, #f0e4d4 100%);
}

#catalog::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 35%, rgba(74, 48, 34, 0.22) 100%),
        linear-gradient(to bottom, rgba(245, 237, 228, 0.18) 0%, transparent 25%, transparent 75%, rgba(240, 228, 212, 0.28) 100%);
}

#catalog .container {
    position: relative;
    z-index: 3;
}

.catalog-video-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.38;
    pointer-events: none;
}

.catalog-video-bg__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (min-width: 1024px) {
    .catalog-video-bg__media {
        object-position: center 35%;
    }
}

@media (max-width: 767px) {
    #catalog {
        padding: 2.4rem 0.75rem;
    }

    .catalog-video-bg__media {
        object-position: center center;
    }
}

#catalog h2 {
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.product-card {
    background: white;
    border-radius: 1.5rem;            /* rounder */
    padding: 1.1rem 1rem;             /* compact horizontal padding */
    border: 1px solid var(--pastel);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    transition: all 0.3s ease;
}

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

.product-card.disabled {
    background: #f6f6f6;
    border-color: #dcdcdc;
    color: rgba(74, 48, 34, 0.6);
    box-shadow: none;
}

.product-card.disabled .product-image {
    background-color: #e6e6e6;
}

.product-card.disabled .product-name,
.product-card.disabled .product-description,
.product-card.disabled .product-price {
    color: rgba(74, 48, 34, 0.6);
}

.product-card.disabled .view-button,
.product-card.disabled .view-button:hover {
    background: #cbcaca;
    border-color: #b8b8b8;
    color: #646464;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: var(--pastel);
    border-radius: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.875rem;
    color: rgba(74, 48, 34, 0.5);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-image img:hover {
    transform: scale(1.05);
}

/* responsive tweaks */
@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .product-price {
        font-size: 1.1rem;
    }
    .product-button, .view-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
.product-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    color: rgba(74, 48, 34, 0.7);

/* small addon thumbnail shown on product card */
.card-addon-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    left: 12px;
    top: 12px;
    border: 2px solid white;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    cursor: pointer;
}

/* addon option inside modal */
.addon-option {
    background: #FBF6EE;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.addon-thumb-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}

/* make modal background warm and rounded for product modal */
#productModal {
    background: #FBF7F0; /* very light beige */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}


/* sticky footer in modal for price + buy */
.modal-footer-fixed {
    position: sticky;
    bottom: 0;
    background: transparent;
    padding-top: 12px;
}

.modal-buy-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.modal-final-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--choco);
}

.modal-buy-btn {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid var(--cta-premium-border);
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(96, 63, 39, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.modal-buy-btn:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    box-shadow: 0 14px 26px rgba(96, 63, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-meta-note {
    font-size: 0.8rem;
    color: #6b6b6b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.product-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--caramel);
    white-space: nowrap;
}

.product-button {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: white;
    border: 1px solid var(--cta-premium-border);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(96, 63, 39, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-button:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    box-shadow: 0 14px 24px rgba(96, 63, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.view-button {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: white;
    border: 1px solid var(--cta-premium-border);
    padding: 0.78rem 1.3rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(96, 63, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.view-button:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    box-shadow: 0 14px 24px rgba(96, 63, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.grams-options {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem 0;
}
.grams-btn {
    background: linear-gradient(180deg, #fffaf5 0%, #f7eee3 100%);
    border: 1px solid rgba(74, 48, 34, 0.12);
    padding: 0.55rem 0.9rem;
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--choco);
    box-shadow: 0 6px 14px rgba(74, 48, 34, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.grams-btn:hover {
    border-color: rgba(92, 58, 33, 0.18);
    box-shadow: 0 10px 18px rgba(74, 48, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.grams-btn.active {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: white;
    border-color: var(--cta-premium-border);
    box-shadow: 0 12px 22px rgba(96, 63, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Чому це особливо */
.why-special {
    background-color: var(--pastel);
}

.why-special h2 {
    text-align: center;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto;
}

.feature {
    background-color: var(--milk);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
}

.feature-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature p {
    color: rgba(74, 48, 34, 0.8);
    font-size: 0.95rem;
}

/* Доставка та оплата */
.delivery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    color: rgba(74, 48, 34, 0.8);
}

.delivery-item {
    font-size: 0.95rem;
}

.delivery-item span {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-section h2 {
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--pastel);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--caramel);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1rem;
    color: rgba(74, 48, 34, 0.8);
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pastel);
}

/* Футер */
footer {
    background-color: var(--choco);
    color: var(--milk);
    padding: 2.5rem 1rem;
    text-align: center;
}

footer .container {
    max-width: 42rem;
}

footer h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: rgba(253, 251, 247, 0.7);
    margin-bottom: 1.5rem;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(253, 251, 247, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--caramel);
}

footer .instagram-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(253, 251, 247, 0.08);
    border: 1px solid rgba(253, 251, 247, 0.14);
    color: var(--milk);
    font-weight: 600;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

footer .instagram-link:hover {
    color: var(--milk);
    background: rgba(212, 163, 115, 0.2);
    border-color: rgba(212, 163, 115, 0.45);
    transform: translateY(-1px);
}

footer .copyright {
    font-size: 0.75rem;
    color: rgba(253, 251, 247, 0.4);
}

/* logo in footer */
footer .footer-logo {
    max-height: 50px;
    width: auto;
}

/* helper class for screen-reader-only text */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Мобільне меню */
@media (max-width: 768px) {
    header .container {
        padding: 0.5rem 0.75rem;
        height: 60px;
    }

    header .logo {
        height: auto;
        min-width: 45px;
        flex-shrink: 0;
    }

    header .logo img {
        max-height: 50px;
        height: auto;
        margin-right: 0;
    }

    header .container > div:last-child {
        gap: 1rem;
    }

    header .logo {
        font-size: 1.25rem;
    }

    .hero {
        height: 60vh;
    }

    .hero-logo {
        top: 1rem;
        left: 1rem;
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .product-card {
        padding: 1rem;
        border-radius: 1.25rem;
        min-height: 320px;
    }

    .product-image {
        height: 180px;
        margin-bottom: 0.75rem;
        border-radius: 0.75rem;
    }

    .product-name {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .product-description {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .view-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 0.75rem;
        background: var(--caramel);
        color: white;
        font-weight: 600;
        transition: background 0.3s ease;
        white-space: nowrap;
    }

    .delivery-grid {
        grid-template-columns: 1fr;
    }

    #productModal {
        padding: 1rem;
    }

    #productModal > div:nth-child(2) {
        max-width: 95vw;
        margin: 2rem auto;
    }

    #productModal > div:nth-child(2) > div {
        padding: 1rem;
    }
}

/* Дуже малі екрани (телефони) */
@media (max-width: 480px) {
    header .container {
        height: auto;
        padding: 0.5rem 0.75rem;
        min-height: 50px;
    }

    header .logo {
        height: auto;
        min-width: 40px;
        flex-shrink: 0;
    }

    header .logo img {
        max-height: 45px;
        height: auto;
        margin-right: 0;
    }

    header .container > div:last-child {
        gap: 0.75rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .product-card {
        padding: 0.5rem;
        min-height: 260px;
    }

    .product-image {
        height: 120px;
        margin-bottom: 0.5rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .view-button {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
        width: 100%;
    }

    .product-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    #productModal > div:nth-child(2) {
        max-width: 100vw;
        margin: 1rem 0;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    #productModal > div:nth-child(2) > div {
        padding: 1rem 0.75rem;
    }

    #modalTitle {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    #modalDescription {
        margin-bottom: 1rem;
    }

    #modalPrice {
        font-size: 1.25rem;
    }

    #productGallery {
        margin-bottom: 1rem;
    }

    #modalBuy, .closeBtn {
        font-size: 1rem;
        padding: 0.75rem;
    }
}

/* Moved from index.html inline <style> */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.floating-cta .floating-button {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
}

.floating-button-label {
    display: block;
    max-width: 120px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--choco);
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.94);
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.floating-button-label:hover {
    color: var(--caramel);
}

.catalog-return-section {
    padding: 1.5rem 1rem 2.25rem;
    text-align: center;
}

.catalog-return-section--after-why {
    padding-top: 0.75rem;
}

.catalog-return-section--after-video {
    padding-top: 0;
}

.catalog-return-section--before-footer {
    padding-top: 1rem;
}

.catalog-return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 14px 30px rgba(74, 48, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.catalog-return-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(74, 48, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.catalog-return-button--primary {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    border-color: var(--cta-premium-border);
    color: #fff;
    font-size: 1.08rem;
    padding: 1rem 2.4rem;
}

.catalog-return-button--primary:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
}

.catalog-return-button--secondary {
    background: linear-gradient(180deg, #fffdf9 0%, #f6ebe0 100%);
    color: var(--choco);
    border: 1px solid rgba(92, 58, 33, 0.16);
    font-size: 0.98rem;
    padding: 0.85rem 1.8rem;
}

.catalog-return-button--secondary:hover {
    background: linear-gradient(180deg, #fbf4ea 0%, #eddccb 100%);
}

.catalog-return-button--footer {
    background: linear-gradient(180deg, var(--cta-premium-dark-top) 0%, var(--cta-premium-dark-bottom) 100%);
    border-color: rgba(59, 36, 24, 0.34);
    color: #fff;
    font-size: 1rem;
    padding: 1rem 2rem;
}

.catalog-return-button--footer:hover {
    background: linear-gradient(180deg, var(--cta-premium-dark-hover-top) 0%, var(--cta-premium-dark-hover-bottom) 100%);
}

.testimonials-showcase {
    background: var(--pastel);
    padding: 3rem 0 3.5rem;
}

.testimonials-showcase .testimonials-heading {
    text-align: center;
    color: var(--choco);
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin-bottom: 1.25rem;
}

.testimonials-showcase .reviews-slider {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 32px rgba(74, 48, 34, 0.14);
}

.testimonials-showcase .reviews-slide-image {
    width: 100%;
    height: min(78vh, 760px);
    display: block;
    object-fit: contain;
    background: #fff;
}

.testimonials-showcase .reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--button-surface-border);
    background: linear-gradient(180deg, var(--button-surface-top) 0%, var(--button-surface-bottom) 100%);
    color: var(--choco);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(74, 48, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonials-showcase .reviews-arrow:hover {
    background: linear-gradient(180deg, var(--button-surface-hover-top) 0%, var(--button-surface-hover-bottom) 100%);
    box-shadow: 0 14px 24px rgba(74, 48, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.04);
}

.testimonials-showcase .reviews-arrow:focus-visible {
    outline: 3px solid rgba(212, 163, 115, 0.35);
    outline-offset: 2px;
}

.testimonials-showcase .reviews-arrow--prev {
    left: 14px;
}

.testimonials-showcase .reviews-arrow--next {
    right: 14px;
}

@media (max-width: 992px) {
    .testimonials-showcase .reviews-slider {
        border-radius: 20px;
    }

    .testimonials-showcase .reviews-slide-image {
        height: min(70vh, 620px);
    }

    .testimonials-showcase .reviews-arrow {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .testimonials-showcase {
        padding: 2rem 0 2.5rem;
    }

    .testimonials-showcase .testimonials-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding: 0 0.75rem;
    }

    .testimonials-showcase .reviews-slider {
        border-radius: 16px;
    }

    .testimonials-showcase .reviews-slide-image {
        height: 66vh;
    }

    .testimonials-showcase .reviews-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .testimonials-showcase .reviews-arrow--prev {
        left: 8px;
    }

    .testimonials-showcase .reviews-arrow--next {
        right: 8px;
    }
}

#productModal.product-modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 900;
    overflow-y: auto;
    padding: 1rem;
}

#productModal .product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

#productModal .product-modal-card {
    background-color: #f5f2e9;
    width: min(370px, calc(100vw - 2rem));
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    position: relative;
    margin: 1rem auto;
    z-index: 2;
}

#productModal .product-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--button-surface-border);
    background: linear-gradient(180deg, var(--button-surface-top) 0%, var(--button-surface-bottom) 100%);
    color: var(--choco);
    font-size: 22px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 10px 18px rgba(74, 48, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#productModal .product-modal-close:hover {
    background: linear-gradient(180deg, var(--button-surface-hover-top) 0%, var(--button-surface-hover-bottom) 100%);
    box-shadow: 0 14px 22px rgba(74, 48, 34, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#productModal .product-modal-image {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

#productModal .product-modal-image img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
    transform: rotate(-5deg);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

#productModal .product-modal-content {
    padding: 0 30px;
    margin-bottom: 18px;
}

#productModal .modal-category {
    color: #707070;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

#productModal .modal-title {
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.1;
    padding-right: 0;
}

#productModal .modal-description {
    color: #707070;
    margin: 0 0 12px;
    line-height: 1.45;
    font-size: 15px;
}

#productModal .modal-inline-price {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 16px;
    display: none;
}

#productModal #modalPrice {
    color: #1a1a1a;
    font-weight: 700;
}

#productModal #compositionBlock {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(212, 163, 115, 0.55);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(74, 48, 34, 0.06);
}

#productModal .description-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--choco);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    padding: 0;
}

#productModal .description-arrow {
    font-size: 11px;
    color: var(--caramel);
    transition: transform 0.2s ease;
}

#productModal .composition-content {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 163, 115, 0.35);
    color: #707070;
    font-size: 13px;
    line-height: 1.45;
}

#productModal .composition-content p {
    margin: 0;
}

#productModal .options-wrap {
    margin-bottom: 18px;
}

#productModal .options-title {
    color: #707070;
    font-size: 14px;
    margin-bottom: 8px;
}

#productModal .options {
    display: flex;
    gap: 12px;
}

#productModal .option-item {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid rgba(74, 48, 34, 0.12);
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: linear-gradient(180deg, #fffaf5 0%, #f7eee3 100%);
    box-shadow: 0 8px 18px rgba(74, 48, 34, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#productModal .option-item:hover {
    transform: translateY(-1px);
    border-color: rgba(92, 58, 33, 0.18);
    box-shadow: 0 12px 22px rgba(74, 48, 34, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#productModal .option-item input {
    display: none;
}

#productModal .option-item-price {
    color: #7a695d;
    font-size: 12px;
}

#productModal .box-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

#productModal .option-item.active {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    color: #fff;
    border-color: var(--cta-premium-border);
    box-shadow: 0 14px 24px rgba(96, 63, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#productModal .option-item.active .option-item-price {
    color: rgba(255, 255, 255, 0.92);
}

#productModal .kids-addon {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
}

#productModal .addon-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex: 1;
    cursor: pointer;
}

#productModal .addon-option input {
    margin: 0;
}

#productModal .kids-addon-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

#productModal .addon-thumb-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

#productModal .kids-addon-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#productModal .kids-addon-name {
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.2;
}

#productModal .kids-addon-description {
    color: #707070;
    font-size: 12px;
    line-height: 1.2;
}

#productModal .kids-addon-price {
    color: #1a1a1a;
    font-weight: 700;
    white-space: nowrap;
}

#productModal .product-modal-footer {
    background: transparent;
    height: auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0 30px 30px;
    gap: 8px;
}

#productModal .price-tag {
    background: var(--choco);
    color: #fff;
    height: 58px;
    padding: 0 18px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 2;
    white-space: nowrap;
}

#productModal .modal-buy-btn {
    flex-grow: 1;
    text-align: center;
    color: #fff;
    text-transform: none;
    font-size: 15px;
    letter-spacing: 0;
    border: 1px solid var(--cta-premium-border);
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    font-weight: 700;
    height: 58px;
    border-radius: 15px;
    padding: 0 14px;
}

#productModal .modal-buy-btn:hover {
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    transform: translateY(-1px);
    color: #fff;
}

@media (min-width: 769px) {
    #productModal .product-modal-card {
        width: min(440px, calc(100vw - 4rem));
    }

    #productModal .product-modal-image {
        height: 285px;
        padding-top: 26px;
    }

    #productModal .product-modal-content {
        padding: 0 32px;
        margin-bottom: 14px;
    }

    #productModal .product-modal-footer {
        margin: 0 32px 24px;
    }
}

@media (max-width: 480px) {
    #productModal .product-modal-card {
        width: calc(100vw - 1.25rem);
        border-radius: 28px;
    }

    #productModal .product-modal-content {
        padding: 0 18px;
    }

    #productModal .modal-title {
        font-size: 26px;
    }

    #productModal .product-modal-footer {
        margin: 0 18px 18px;
    }
}

@media (min-width: 1024px) {
    #processVideo {
        max-width: 620px !important;
        max-height: 520px;
    }
}

@media (max-width: 768px) {
    .floating-cta {
        right: 12px;
        bottom: 12px;
        gap: 6px;
    }

    .catalog-return-section {
        padding: 1.25rem 1rem 1.75rem;
    }

    .catalog-return-button {
        width: 100%;
        max-width: 320px;
    }

    .catalog-return-button--primary,
    .catalog-return-button--secondary,
    .catalog-return-button--footer {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .floating-button img {
        width: 50px !important;
        height: auto !important;
    }

    .floating-button-label {
        max-width: 82px;
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}

.image-upload {
    padding: 2rem;
    border: 2px dashed var(--caramel);
    border-radius: 1rem;
    text-align: center;
    background-color: rgba(243, 232, 224, 0.5);
    transition: all 0.3s ease;
}

.image-upload:hover {
    background-color: rgba(243, 232, 224, 1);
    border-color: var(--caramel-hover);
}

.image-upload input[type="file"] {
    display: none;
}
/* Стилі для кошика */

.cart-item-image {
    width: 112px;
    height: 112px;
    background-color: var(--pastel);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.cart-qty-btn {
    background: linear-gradient(180deg, #6b4632 0%, var(--choco) 100%);
    color: var(--milk);
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 48, 34, 0.2);
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(74, 48, 34, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.cart-qty-btn:hover {
    background: linear-gradient(180deg, var(--caramel) 0%, var(--caramel-hover) 100%);
    box-shadow: 0 14px 24px rgba(212, 163, 115, 0.26);
    transform: translateY(-1px);
}

.cart-qty-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(74, 48, 34, 0.16);
}

/* Kids Set age picker chips */
.kids-age-chip {
    display: inline-block;
    padding: 0.3rem 0.72rem;
    border: 1.5px solid var(--caramel, #D4A373);
    border-radius: 999px;
    background: white;
    color: #4A3022;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-family: inherit;
    line-height: 1.5;
}

.kids-age-chip:hover {
    background: var(--pastel, #F3E8E0);
}

.kids-age-chip.selected {
    background: var(--caramel, #D4A373);
    color: white;
    border-color: var(--caramel, #D4A373);
}

.cart-remove-btn {
    background: linear-gradient(180deg, #fff3f1 0%, #ffe3df 100%);
    color: #b7372b;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(183, 55, 43, 0.18);
    font-weight: bold;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(183, 55, 43, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-family: inherit;
}

.cart-remove-btn:hover {
    background: linear-gradient(180deg, #ffe0db 0%, #ffd1cb 100%);
    box-shadow: 0 14px 24px rgba(183, 55, 43, 0.18);
    transform: translateY(-1px);
}

.cart-remove-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(183, 55, 43, 0.16);
}

.cart-qty-btn:focus-visible,
.cart-remove-btn:focus-visible,
.cart-close-btn:focus-visible,
.cart-action-btn:focus-visible {
    outline: 3px solid rgba(212, 163, 115, 0.35);
    outline-offset: 2px;
}

.cart-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--button-surface-border);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--button-surface-top) 0%, var(--button-surface-bottom) 100%);
    color: var(--choco);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(74, 48, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-close-btn:hover {
    background: linear-gradient(180deg, var(--button-surface-hover-top) 0%, var(--button-surface-hover-bottom) 100%);
    border-color: rgba(92, 58, 33, 0.2);
    box-shadow: 0 14px 22px rgba(74, 48, 34, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.cart-sidebar-footer {
    border-top: 1px solid var(--pastel);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: linear-gradient(180deg, rgba(253, 251, 247, 0.94) 0%, #fff 100%);
    box-shadow: 0 -10px 24px rgba(74, 48, 34, 0.04);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(74, 48, 34, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cart-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(74, 48, 34, 0.16);
}

.cart-action-btn--primary {
    background: linear-gradient(180deg, var(--cta-premium-top) 0%, var(--cta-premium-bottom) 100%);
    border-color: var(--cta-premium-border);
    box-shadow: 0 14px 24px rgba(96, 63, 39, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    color: white;
}

.cart-action-btn--primary:hover {
    color: white;
    background: linear-gradient(180deg, var(--cta-premium-hover-top) 0%, var(--cta-premium-hover-bottom) 100%);
    box-shadow: 0 18px 30px rgba(96, 63, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cart-action-btn--secondary {
    background: linear-gradient(180deg, #fffaf6 0%, var(--pastel) 100%);
    color: var(--choco);
    border-color: rgba(74, 48, 34, 0.12);
}

.cart-action-btn--secondary:hover {
    color: var(--choco);
    background: linear-gradient(180deg, #fdf4ea 0%, #ecd8c7 100%);
}

.cart-action-btn--primary.disabled {
    background: linear-gradient(180deg, #c9b9ad 0%, #b0a09a 100%);
    border-color: rgba(74, 48, 34, 0.1);
    box-shadow: none;
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Модалка стилі */
#productGallery img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#productModal {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Кошик адаптація */
#cartSidebar {
    width: 384px;
}

@media (max-width: 768px) {
    #cartSidebar {
        width: 320px;
    }
}

@media (max-width: 480px) {
    #cartSidebar {
        position: fixed !important;
        right: 0 !important;
        left: auto !important;
        top: 0 !important;
        width: 85vw !important;
        max-width: 85vw !important;
        height: 100vh !important;
        border-radius: 0 !important;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000 !important;
    }

    .hero {
        height: 90vh;
        margin-top: 50px;
    }

    .hero-content {
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(74, 48, 34, 0.95), rgba(74, 48, 34, 0.7) 30%, transparent 100%);
        padding: 3rem 1rem 1.5rem;
        text-align: center;
        z-index: 3;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 0.75rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .btn {
        display: inline-block;
        background-color: var(--caramel);
        color: white;
        font-size: 0.9rem;
        font-weight: 600;
        padding: 0.65rem 1.5rem;
        border-radius: 9999px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    #cartSidebar > div:first-child {
        padding: 1rem !important;
    }

    #cartSidebar > div:first-child h2 {
        font-size: 1.25rem !important;
    }

    #cartSidebar > div:first-child button {
        font-size: 1.25rem !important;
    }

    #cartItems {
        padding: 1rem !important;
    }

    #cartItems .cart-item-image {
        width: 100px !important;
        height: 100px !important;
    }

    .cart-qty-btn {
        padding: 0.5rem 0.6rem !important;
        font-size: 1rem !important;
    }

    .cart-remove-btn {
        padding: 0.5rem 0.6rem !important;
        font-size: 1rem !important;
    }

    #cartSidebar > div:last-child {
        padding: 1rem !important;
    }

    #cartSidebar > div:last-child > div:first-child {
        font-size: 1rem !important;
    }

    #cartSidebar .cart-action-btn {
        font-size: 0.9rem !important;
        padding: 0.7rem !important;
    }
}
