* {
    box-sizing: border-box;
}

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

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;
}


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

.container {
    width: 390px;
    height: 279px;
    position: relative;
}

.top-bar {
    position: absolute;

    left: 0;
    top: 0;

    width: 390px;
    height: 40px;

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

    z-index: 2;
}


.header-image {
    position: absolute;

    left: 0;
    top: 0;

    width: 390px;
    height: 279px;

    object-fit: cover;
    display: block;

    z-index: 0;
}


.instagram {
    position: absolute;
    width: 19px;
    height: 19px;
    top: 10px;
    left: 300px;
    z-index: 3;
    color: #C75F5A;
}

.cart {
    width: 22px;
    height: 22px;
    color: #C75F5A;
}


/* Main title */

.title {
    position: absolute;

    left: 30px;
    top: 80px;

    z-index: 3;

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

    color: #302B28;
}


/* Subtitle */

.subtitle {
    position: absolute;

    left: 30px;
    top: 180px;

    z-index: 3;

    width: 130px;

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

    color: #302B28;
}

.header-signature {
    position: absolute;

    left: 265px;
    top: 235px;

    z-index: 3;

    font-family: "Ms Madi", cursive;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;

    color: #302B28;

    transform: rotate(-12.5deg);
    transform-origin: center center;
}


/* =========================
   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 {
    position: relative;

    width: calc(100% - 12px);
    max-width: 378px;
    height: 149px;

    margin: 10px auto 0;

    background-color: #FFFFFF;

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


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

.product-image {
    position: absolute;

    left: 12px;
    top: 12px;

    width: 164px;
    height: 123px;

    object-fit: cover;

    border-radius: 7px;
}


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

.product-info {
    position: absolute;
    left: 190px;
    right: 5px;
    top: 14px;
    width: auto;
}


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

.product-name {
    width: 100%;
    max-height: 46px;

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

    color: #302B28;

    overflow: hidden;
}


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

.product-description {
    width: 100%;
    margin-top: 6px;

    max-height: 56px;

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    line-height: 13px;
    letter-spacing: -0.1px;

    color: #756B64;

    overflow: hidden;
}


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

.product-price {
    position: absolute;

    left: 190px;
    top: 115px;

    width: 150px;

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

    color: #B85C58;
}

/* =========================
   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);
}

.logo {
    position: absolute;

    width: 55px;
    height: auto;

    left: 25px;
    top: 5px;

    z-index: 3;
}

/* =========================
   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-link {
    position: absolute;

    left: 345px;
    top: 8px;

    width: 22px;
    height: 22px;

    z-index: 5;

    color: #EE1140;
}

.cart-link .cart {
    position: absolute;
    inset: 0;

    width: 22px;
    height: 22px;
}

.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: 11px;
    font-weight: 400;
    line-height: 16px;

    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: 10px;
    line-height: 15px;
    color: #756B64;
}

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

}

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

.footer-note {
    margin-top: 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    line-height: 14px;
    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;
    }

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

    .container,
    .top-bar,
    .header-image,
    .site-footer {
        width: 100%;
    }

    .instagram {
        left: auto;
        right: 71px;
    }

    .cart-link {
        left: auto;
        right: 22px;
    }

    .cart-link .cart {
        left: 0;
        right: auto;
    }

    .header-signature {
        left: auto;
        right: 35px;
    }

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