* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
}
html {
    scrollbar-gutter: stable;
}

@media (max-width: 600px) {
    html {
        scrollbar-gutter: auto;
    }
}


/* =========================
   PAGE
   ========================= */

.page {
    width: 100%;
    max-width: 390px;
    min-height: 700px;
    margin: 0 auto;
}

.home-page {
    max-width: 1440px;
}

.home-page + .site-footer {
    width: 100%;
    max-width: 1440px;
}


/* =========================
   HEADER
   ========================= */

.container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.top-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    width: 100%;
    min-height: 78px;
    padding: 12px clamp(22px, 4vw, 54px);
    background-color: #FAF1EA;
    z-index: 2;
}

.logo {
    display: block;
    flex: 0 0 auto;
    width: clamp(124px, 12vw, 164px);
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 30px);
    margin-left: auto;
}

.header-nav a {
    flex: 0 0 auto;
    padding: 8px 0;
    color: #302B28;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.header-nav a.active,
.header-nav a:hover {
    color: #B85C58;
}


.hero-gallery {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F4EBDD;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 600ms ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-gallery-indicators {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1;
}

.hero-gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255, 253, 249, 0.95);
    border-radius: 50%;
    background: rgba(75, 41, 36, 0.3);
    box-shadow: 0 1px 4px rgba(45, 29, 22, 0.25);
    cursor: pointer;
}

.hero-gallery-dot.is-active {
    background: #702A35;
    transform: scale(1.15);
}

.hero-gallery-dot:focus-visible {
    outline: 2px solid #702A35;
    outline-offset: 3px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    align-items: stretch;
    background: #FBF8F2;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(30px, 5vw, 76px);
}

.title {
    margin: 0;
    color: #421B20;
    font-family: "Source Serif Pro", Georgia, serif;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.subtitle {
    max-width: 36ch;
    margin: 18px 0 0;
    color: #584C44;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    line-height: 1.65;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 26px;
    padding: 0 22px;
    border: 1px solid #702A35;
    border-radius: 999px;
    background: #702A35;
    color: #FFFDF9;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.hero-cta:hover {
    background: transparent;
    color: #702A35;
    transform: translateY(-1px);
}

.hero-cta {
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-cta {
        transition: none;
    }
}

.instagram-link,
.cart-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #702A35;
    text-decoration: none;
}

.instagram-link {
    width: 26px;
    height: 28px;
}

.instagram {
    display: block;
    width: 21px;
    height: 21px;
    color: currentColor;
}

.cart-link {
    width: 30px;
    height: 30px;
}

.cart-link .cart {
    position: static;
    display: block;
    width: 28px;
    height: 28px;
}


.cart {
    color: #702A35;
}


/* =========================
   PRODUCTS
   ========================= */

.products-container {
  height:auto;
  min-height:0;
}


/* =========================
   Naše šperky
   ========================= */

.products-title {
    position: relative;



    width: 100%;
    height: 36px;

    text-align: center;

    font-family: "Source Serif Pro", serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;

    color: #B85C58;
}


/* Lines */

.products-title::before,
.products-title::after {
    content: "";

    position: absolute;

    top: 18px;

    width: 90px;
    height: 1px;

    background-color: #B85C58;
}

.products-title::before {
    left: 20px;
}

.products-title::after {
    right: 20px;
}


/* =========================
   PRODUCT CARD
   ========================= */

.product-card {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 12px;
    width: calc(100% - 12px);
    max-width: 378px;
    aspect-ratio: 1.9 / 1;
    padding: 8px;
    margin: 10px auto 0;
    background: transparent;
    border: 1px solid #D8CEC4;
    border-radius: 12px;
    cursor: pointer;
}


/* =========================
   PHOTO
   ========================= */

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}


/* =========================
   PRODUCT INFO
   ========================= */

.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    text-align: left;
}


/* =========================
   PRODUCT NAME
   ========================= */

.product-name {
    width: 100%;
    flex: 0 0 36px;
    max-height: 36px;

    font-family: "Roboto Serif", serif;
    font-size: 18px;
    font-weight: 600;
    font-style: italic;
    line-height: 18px;
    letter-spacing: -0.2px;

    color: #302B28;

    overflow: hidden;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-title-rule {
    display: block;
    width: 34px;
    height: 1px;
    flex: 0 0 1px;
    margin: 7px 0 0;
    background: #B85C58;
}


/* =========================
   DESCRIPTION
   ========================= */

.product-description {
    width: 100%;
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    height: 55px;
    margin-top: 7px;
    overflow: hidden;
}

.product-description-text {
    width: 100%;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 12px;
    letter-spacing: 0;

    color: #756B64;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    width: 100%;
    margin-top: auto;
    padding-top: 2px;
}

.product-features--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0 3px;
    text-align: center;
}

.product-feature + .product-feature {
    border-left: 1px solid #E5D9CF;
}

.product-feature-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-bottom: 1px;
    background-color: var(--product-icon-color, #302B28);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.product-feature-icon--hand {
    -webkit-mask-image: url("image/hand.svg");
    mask-image: url("image/hand.svg");
}

.product-feature-icon--leaf {
    -webkit-mask-image: url("image/leaf.svg");
    mask-image: url("image/leaf.svg");
}

.product-feature-icon--diamond {
    -webkit-mask-image: url("image/diamond.svg");
    mask-image: url("image/diamond.svg");
}

.product-feature-label {
    display: block;
    width: 100%;
    color: #302B28;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    line-height: 10px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}


/* =========================
   PRICE
   ========================= */

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding-right: 4px;
}

.product-price {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 3px 17px 4px;
    border-radius: 999px;
    background: rgba(184, 92, 88, 0.1);
    font-family: "Roboto Serif", serif;
    font-size: 22px;
    font-weight: 600;
    font-style: italic;
    line-height: 24px;
    letter-spacing: -0.2px;

    color: #B85C58;
    white-space: nowrap;
}

.reviews-section {
    margin-top: 30px;
    scroll-margin-top: 16px;
    padding: 24px 20px 30px;
    border-top: 1px solid #D8CEC4;
    text-align: center;
}

.info-section {
    scroll-margin-top: 16px;
    padding: 24px 24px 26px;
    border-top: 1px solid #D8CEC4;
    color: #756B64;
    font-family: "Montserrat", sans-serif;
    text-align: center;
}

.catalog-section {
    margin-top: 30px;
    padding: 24px 0 0;
    border-top: 0;
}

.catalog-photo-note {
    margin: 0 auto 18px !important;
}

#about {
    margin-top: 30px;
}

#about .about-story {
    max-width: 310px;
    margin-top: 14px;
    color: #756B64;
    font-size: 14px;
    line-height: 1.7;
}

#about .about-story + .about-story {
    margin-top: 10px;
}

.info-section h2 {
    margin: 0;
    color: #302B28;
    font-family: "Roboto Serif", serif;
    font-size: 21px;
    font-style: italic;
}

.info-section p,
.info-section ol {
    max-width: 310px;
    margin: 9px auto 0;
    font-size: 14px;
    line-height: 20px;
}

.info-section ol {
    font-size: 14px;
    line-height: 20px;
}

.about-progress-note {
    margin-top: 6px !important;
    color: #A49A93;
    font-size: 10px !important;
    font-style: italic;
}

.pickup-note {
    margin-top: 12px !important;
    color: #702A35;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 20px;
}

.info-section ol {
    padding-left: 20px;
    text-align: left;
}

.info-section li + li {
    margin-top: 5px;
}

.reviews-section h2 {
    margin: 0;
    color: #302B28;
    font-family: "Roboto Serif", serif;
    font-size: 21px;
    font-style: italic;
}

.reviews-section p {
    max-width: 290px;
    margin: 8px auto 12px;
    color: #756B64;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.reviews-section a {
    color: #B85C58;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.reviews-carousel {
    width: min(100%, 620px);
    margin: 24px auto 18px;
}

.reviews-carousel-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(380px, 72vh, 720px);
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: pan-y pinch-zoom;
}

.reviews-carousel-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border: 1px solid #D8CEC4;
    border-radius: 14px;
    object-fit: contain;
    opacity: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 280ms ease;
}

.reviews-carousel-image.is-active {
    opacity: 1;
}

.reviews-carousel-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0 0 4px;
    border: 1px solid rgba(216, 206, 196, 0.9);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #702A35;
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 160ms ease, box-shadow 160ms ease;
    z-index: 1;
}

.reviews-carousel-arrow:hover {
    background: #FFF;
    box-shadow: 0 3px 12px rgba(69, 45, 36, 0.14);
}

.reviews-carousel-arrow:focus-visible,
.reviews-carousel-dot:focus-visible {
    outline: 2px solid #B85C58;
    outline-offset: 3px;
}

.reviews-carousel-prev { left: 14px; }
.reviews-carousel-next { right: 14px; }

.reviews-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 30px;
    margin-top: 12px;
}

.reviews-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.reviews-carousel-dot {
    appearance: none;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #D8CEC4;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease;
}

.reviews-carousel-dot[aria-current="true"] {
    background: #B85C58;
    transform: scale(1.45);
}

.reviews-carousel-count {
    flex: 0 0 auto;
    color: #8B7E75;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .reviews-carousel {
        width: min(100%, 470px);
        margin-top: 20px;
    }

    .reviews-carousel-stage {
        height: clamp(360px, 68svh, 640px);
    }

    .reviews-carousel-image { border-radius: 12px; }

    .reviews-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

    .reviews-carousel-prev { left: 9px; }
    .reviews-carousel-next { right: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .reviews-carousel-image,
    .reviews-carousel-arrow,
    .reviews-carousel-dot {
        transition: none;
    }
}

@media (max-width: 720px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 350px) {
    .product-card {
        grid-template-columns: 36% minmax(0, 1fr);
        gap: 8px;
        aspect-ratio: 1.72 / 1;
        padding: 7px;
    }

    .product-name {
        font-size: 16px;
        line-height: 18px;
        max-height: 36px;
    }

    .product-description {
        flex-basis: 50px;
        height: 50px;
    }

    .product-description-text {
        font-size: 10px;
        line-height: 11px;
        -webkit-line-clamp: 5;
    }

    .product-price {
        font-size: 19px;
        line-height: 21px;
        padding: 3px 13px;
    }
}

/* =========================
   PRODUCT MODAL
   ========================= */

.product-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 100;

    background-color: rgba(48, 43, 40, 0.38);

    justify-content: center;
    align-items: center;

    padding: 15px;
}


.product-detail {
    position: relative;

    width: 100%;
    max-width: 360px;

    max-height: calc(100vh - 30px);

    overflow-y: auto;
    overflow-x: hidden;

    background-color: #FAF1EA;

    border-radius: 18px;

    padding: 14px;

    box-shadow:
        0 8px 20px rgba(48, 43, 40, 0.18),
        0 20px 50px rgba(48, 43, 40, 0.28);
}

/* =========================
   GALLERY DOTS
   ========================= */

.detail-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;

    gap: 6px;

    height: 12px;

    margin-top: 8px;
}

.detail-dot {
    appearance: none;
    width: 7px;
    height: 7px;

    padding: 0;
    border: 0;

    border-radius: 50%;

    background-color: #D8CEC4;

    cursor: pointer;

    transition: transform 0.15s ease,
                background-color 0.15s ease;
}

.detail-dot.active {
    background-color: #B85C58;

    transform: scale(1.35);
}

/* =========================
   CLOSE BUTTON
   ========================= */

.product-close {
    position: absolute;

    top: 5px;
    right: 5px;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background-color: rgba(250, 241, 234, 0.92);

    color: #302B28;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 32px;

    padding: 0;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(48, 43, 40, 0.18);

    z-index: 10;
}

.product-close:active {
    transform: scale(0.92);
}

/* =========================
   GALLERY ARROWS
   ========================= */

.detail-prev,
.detail-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background-color: rgba(250, 241, 234, 0.88);

    color: #302B28;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 28px;

    padding: 0;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(48, 43, 40, 0.18);

    z-index: 5;
}

.detail-prev:hover,
.detail-next:hover {
    background-color: #FFFDF9;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 3px 10px rgba(48, 43, 40, 0.25);
}

.detail-prev:active,
.detail-next:active {
    transform: translateY(-50%) scale(0.88);
}

.detail-prev {
    left: 10px;
}

.detail-next {
    right: 10px;
}

.detail-gallery {
    position: relative;
    width: 100%;
}

.detail-image-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
}

.detail-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;

    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

.detail-image-incoming {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: 100%;
    object-fit: contain;
}
.detail-name {
    margin-top: 12px;
    font-family: "Roboto Serif", serif;
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    line-height: 28px;
    color: #302B28;
}

.detail-description {
    margin-top: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    line-height: 18px;
    color: #756B64;
}

.detail-price {
    margin-top: 0;
    white-space: nowrap;
    font-family: "Roboto Serif", serif;
    font-size: 36px;
    font-weight: 600;
    font-style: italic;
    line-height: 36px;
    color: #B85C58;
}

.detail-order {
    width: 190px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 24px;
    background-color: #B85C58;
    color: #FFFDF9;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 3px 8px rgba(48, 43, 40, 0.18);
}

.detail-order img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.detail-order:active {
    transform: scale(0.98);
}

.detail-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.back-to-catalog {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 14px;

    margin-bottom: 28px;

    border: 1px solid #B8AEA7;
    border-radius: 20px;

    color: #756B64;
    background: #FFFFFF;

    font-family: inherit;
    font-size: 12px;
    font-style: normal;
    text-decoration: none;

    transition: all 0.2s ease;
}

.back-to-catalog:hover {
    border-color: #C75F5A;
    color: #C75F5A;
}

.cart-page {
    position: relative;
    padding: 31px 20px 40px;
}

.cart-title {
    margin: 0;

    font-family: "Source Serif Pro", serif;
    font-size: 26px;
    font-weight: 600;
    font-style: italic;
    line-height: 27px;

    color: #302B28;
}

.cart-intro {
    margin-top: 19px;

    max-width: 200px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    line-height: 16px;

    color: #302B28;
}

.form-field {
    margin-top: 20px;
}

.form-field label,
.note-container label {
    display: block;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    line-height: 16px;

    color: #302B28;
}

.form-field label span {
    color: #EE1140;
}

.form-field input {
    display: block;

    width: 320px;
    height: 28px;

    margin-top: 10px;
    margin-left: 15px;

    padding: 0 20px;

    border: 1px solid #AEB4BA;
    border-radius: 8px;

    background-color: #FFFFFF;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;

    color: #302B28;
}

.form-field input::placeholder {
    color: #BFC3C7;
}

#address,
#note {
    display: block;

    width: 320px;
    height: 56px;

    margin-top: 10px;
    margin-left: 15px;

    padding: 8px 20px;

    border: 1px solid #AEB4BA;
    border-radius: 8px;

    background-color: #FFFFFF;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;

    color: #302B28;

    resize: none;
}

#address::placeholder,
#note::placeholder {
    color: #BFC3C7;
}

.cart-items {
    margin-top: 30px;
}

.cart-items-title {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    line-height: 16px;
    color: #302B28;
}

#cart-items-list {
    margin-top: 12px;
}

.cart-product {
    position: relative;

    width: 320px;
    height: 95px;

    margin: 12px auto 0;

    border: 1px solid #D8CEC4;
    border-radius: 12px;

    background-color: #FFFFFF;

    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cart-product.removing {
    opacity: 0;
    transform: scale(0.92);
}

.cart-product-image {
    position: absolute;

    left: 10px;
    top: 10px;

    width: 100px;
    height: 75px;

    object-fit: cover;
    border-radius: 7px;
}

.cart-product-info {
    position: absolute;

    left: 120px;
    top: 10px;

    width: 140px;
    height: 75px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    text-align: center;
}

.cart-product-name {
    width: 125px;

    font-family: "Roboto Serif", serif;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    line-height: 13px;

    color: #302B28;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

}


.cart-product-price {
    position: absolute;

    right: 5px;
    top: 10px;

    width: 40px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;
    background-color: #FAF1EA;

    color: #B85C58;

    font-family: "Roboto Serif", serif;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.cart-product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-minus,
.quantity-plus {
    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid #D8CEC4;
    border-radius: 50%;

    background-color: #FFFDF9;

    color: #302B28;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 42px;

    cursor: pointer;
    touch-action: manipulation;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background-color: #FAF1EA;
}

.quantity-minus:active,
.quantity-plus:active {
    transform: scale(0.92);
}

.quantity-value {
    width: 20px;

    text-align: center;

    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 600;

    color: #302B28;
}

#clear-cart {
    display: block;

    width: 150px;
    height: 34px;

    margin: 14px auto 0;

    padding: 0;

    border: 1px solid #D8CEC4;
    border-radius: 17px;

    background-color: #FAF1EA;

    color: #756B64;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

#clear-cart:hover {
    background-color: #FFFDF9;
    color: #302B28;
}

#clear-cart:active {
    transform: scale(0.96);
}

.quantity-plus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cart-count {
    position: absolute;

    top: -3px;
    right: -10px;

    min-width: 18px;
    height: 18px;

    padding: 0 4px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #EE1140;
    color: #FFFFFF;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;

    z-index: 10;
}

.product-cart-badge {
    display: none;

    padding: 6px 10px;
    border-radius: 15px;

    background: #FAF1EA;
    border: 1px solid #D8CEC4;

    color: #B85C58;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}

.detail-bottom {
    flex-wrap: wrap;
}

#note-counter {
    position: absolute;

    left: 300px;
    top: 105px;

    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: #BFC3C7;

    pointer-events: none;
}

.note-container {
    position: relative;
    width: 320px;
    margin-left: 15px;
    margin-top: 25px;
    margin-bottom: 50px;
}

.note-container label {
    margin-left: -15px;
}

#note {
    display: block;

    width: 320px;
    height: 70px;

    margin-top: 10px;
    margin-left: 0;

    padding: 8px 20px;

    border: 1px solid #AEB4BA;
    border-radius: 8px;

    background-color: #FFFFFF;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;

    color: #302B28;

    resize: none;
    box-sizing: border-box;
}

#note::placeholder {
    color: #BFC3C7;
}

#submit-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    width: 320px;
    height: 38px;

    margin-left: 15px;
    margin-top: 10px;

    padding: 0;

    border: none;
    border-radius: 10px;

    background-color: #C75F5A;
    color: #FFFFFF;

    font-family: "Roboto Serif", serif;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;

    cursor: pointer;

     box-shadow:
            0 3px 6px rgba(48, 43, 40, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);

    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
}

#submit-order img {
    width: 19px;
    height: 19px;

    object-fit: contain;
}

#submit-order:hover {
    background-color: #B85652;

    box-shadow:
            0 4px 8px rgba(48, 43, 40, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#submit-order:active {
    transform: translateY(2px);

    box-shadow:
        0 1px 3px rgba(48, 43, 40, 0.18),
        inset 0 2px 3px rgba(48, 43, 40, 0.12);
}

#order-success {
    display: none;

    margin-top: 20px;

    text-align: center;
}

.order-success-title {
    font-family: "Roboto Serif", serif;
    font-size: 20px;
    font-weight: 500;
    font-style: italic;

    color: #302B28;
}

.order-success-text {
    margin-top: 8px;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;

    color: #756B64;
}

.form-error {
    display: none;

    margin: 10px 0 0px;

    text-align: center;

    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    line-height: 16px;

    color: #B85C58;
}

.site-footer {
    position: relative;
    width: 390px;
    box-sizing: border-box;

    margin: 0 auto;
    text-align: center;
}

.footer-content {
    position: relative;
    z-index: 1;
    overflow: clip;
    padding: 15px 20px 24px;
}

.footer-title {
    font-family: "Roboto Serif", serif;
    font-size: 18px;
    font-style: italic;
    color: #302B28;
}

.footer-subtitle {
    margin-top: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 16px;
    color: #756B64;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;

}

.footer-link {
    color: #B85C58;
    text-decoration: none;
}

.footer-note {
    margin-top: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    line-height: 15px;
    color: #A49A93;
}

.footer-copy {
    margin-top: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    color: #B8AEA7;
}

.cart-header-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cart-header-background img {
    width: 390px;
    display: block;
}

.cart-page > *:not(.cart-header-background) {
    position: relative;
    z-index: 1;
}

.cart-footer-background {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;

    width: 390px;
    z-index: 0;

    pointer-events: none;
    mix-blend-mode: multiply;
}

.cart-footer-background img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-brand {
    display: inline-block;

    color: #302B28;
    text-decoration: none;

    font-family: "Roboto Serif", serif;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
}

.footer-line {
    position: absolute;

    top: 0;
    left: 0;
    margin-bottom: 15px;

    width: 100%;
    height: 1px;

    background-color: #D8CEC4;

    z-index: 5;
    pointer-events: none;
}

/* =========================
   CATEGORY
   ========================= */

.category-title {
    position: relative;

    width: 100%;
    height: 36px;

    margin-top: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Source Serif Pro", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 36px;

    color: #B85C58;

    cursor: pointer;

    user-select: none;
}


/* Линии слева и справа */

.category-title::before,
.category-title::after {
    content: "";

    position: absolute;

    top: 18px;

    width: 90px;
    height: 1px;

    background-color: #B85C58;
}


.category-title::before {
    left: 20px;
}


.category-title::after {
    right: 20px;
}


/* Название категории */

.category-name {
    position: relative;

    z-index: 2;

    padding: 0 8px;

    background-color: #FFFFFF;
}


/* Стрелка */

.category-arrow {
    position: relative;

    z-index: 2;

    margin-left: 5px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;

    color: #B85C58;

    transition:
        transform 0.25s ease;
}


/* Открытая категория */

.category-arrow.open {
    transform: rotate(180deg);
}


/* Товары категории */

.category-products {
    max-height:0;
    overflow:hidden;
    width:100%;
    transition:max-height 0.4s ease;
}

@media (max-width: 600px) {
    .page {
        max-width: none;
    }

    .home-page {
        width: 100%;
    }

    .cart-page {
        width: 100%;
        max-width: none;
    }

    .container,
    .site-footer {
        width: 100%;
    }

    .top-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 28px 30px;
        grid-template-rows: auto auto;
        gap: 9px 16px;
        min-height: 0;
        padding: 12px 18px 10px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        width: clamp(108px, 34vw, 136px);
    }

    .header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        margin: 0;
    }

    .header-nav a {
        padding: 4px 0;
        font-size: clamp(10px, 2.8vw, 12px);
    }

    .instagram-link {
        grid-column: 2;
        grid-row: 1;
    }

    .cart-link {
        grid-column: 3;
        grid-row: 1;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy {
        padding: 26px clamp(22px, 6vw, 38px) 28px;
    }

    .title {
        font-size: clamp(30px, 8.4vw, 40px);
    }

    .subtitle {
        max-width: 42ch;
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-cta {
        min-height: 44px;
        margin-top: 18px;
        font-size: 13px;
    }

    .cart-header-background img,
    .cart-footer-background {
        width: 100%;
    }
}

@media (max-width: 350px) {
    .header-nav {
        gap: 5px;
    }

    .header-nav a {
        font-size: 9px;
    }

}
