:root {
    --color-pink: #F98B88;
    --color-pink-soft: #F5EFE8;
    --color-pink-add: rgba(249, 139, 136, 0.1);
    --color-dark: #4a4a4a;
    --color-gray: #490206;
    --color-text-light: #6b7280;
    --shadow-standard: 0 10px 20px rgba(255, 133, 162, 0.1);
    --radius-main: 1.5rem;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-pink-soft);
    color: var(--color-dark);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.app-container {
    width: 100%;
    max-width: 450px;
    padding-bottom: 2rem;
    position: relative;
    background: var(--color-pink-soft);
    min-height: 100vh;
}

.header {
    padding: 0 0 1.5rem 0;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.header__banner-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    line-height: 0;
    border-bottom: 6px solid var(--color-pink);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.header__image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.01);
}

.card {
    background: #fff;
    border-radius: var(--radius-main);
    overflow: hidden;
    margin: 1rem;
    box-shadow: var(--shadow-standard);
    border: 1px solid #fce7f3;
}

.slider-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    touch-action: pan-y;
    background: #f0f0f0;
}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.slider-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    font-weight: 600;
    color: var(--color-pink);
    font-size: 1rem;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.modal-dots {
    bottom: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

.card__content {
    padding: 1.25rem;
}

.card__title {
    font-size: 1.25rem;
    color: var(--color-gray);
    font-weight: 600;
    margin: 0 0 1.25rem 0;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.15rem;
    border: none;
    border-radius: 1rem;
    font-weight: 600;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    text-align: center;
    text-decoration: none;
    gap: 0.5rem;
}

.button:active {
    transform: scale(0.98);
}

.button--primary {
    background-color: var(--color-pink);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 133, 162, 0.3);
}

.button--outline {
    background-color: transparent;
    color: var(--color-pink);
    border: 2px solid var(--color-pink);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    margin-bottom: 2rem;
}

.checkbox-wrapper.active {
    border-color: var(--color-pink);
    background: var(--color-pink-add);
    box-shadow: 0 0 0 1px var(--color-pink-add);
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-wrapper.active .custom-checkbox {
    background: var(--color-pink);
    border-color: var(--color-pink);
}

.custom-checkbox svg {
    width: 16px;
    height: 16px;
    color: white;
    opacity: 0;
    transition: all 0.2s;
    transform: scale(0.5);
}

.checkbox-wrapper.active .custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
    flex-grow: 1;
}

.checkbox-price {
    font-weight: 700;
    color: var(--color-pink);
    font-size: 0.9rem;
    white-space: nowrap;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    transition: background 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(0px);
}

.modal-overlay.active {
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-sheet {
    background: #fff;
    width: 100%;
    max-width: 450px;
    height: 100%;
    position: relative;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.modal-close-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--color-gray);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding-bottom: 3px;
}

.modal-close-floating:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.9);
}

.modal-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
    position: relative;
}

.modal-body {
    padding: 1.5rem;
    background: #fff;
    position: relative;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    z-index: 20;
    min-height: 200px;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-gray);
}

.modal-description {
    line-height: 1.5;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fillings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.filling-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
    border-radius: 1rem;
    padding: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.filling-card:not(.active) {
    border-color: #fce7f3;
}

.filling-card.active {
    border-color: var(--color-pink);
    background-color: var(--color-pink-add);
}

.filling-card__img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 0.8rem;
    background: #f9fafb;
    margin-bottom: 4px;
    object-fit: cover;
}

.filling-card__name {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-dark);
    text-align: center;
    padding-bottom: 2px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filling-card__price {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-pink);
    text-align: center;
    padding-bottom: 4px;
}

.random-filling-card {
    border: none;
    background: linear-gradient(140deg, #FF9A9E 8%, #ff75d3 92%);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.4);
    padding: 20px;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.random-filling-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255, 154, 158, 0.3);
}

.random-icon {
    font-size: 40px;
    margin-bottom: 12px;
    animation: wiggly 2s infinite ease-in-out;
}

@keyframes wiggly {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.random-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.filling-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: var(--color-pink);
    font-weight: bold;
    font-family: serif;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
    font-size: 14px;
}

.info-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-popup-overlay.visible {
    display: flex;
    opacity: 1;
}

.info-popup-card {
    width: 85%;
    max-width: 320px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-popup-overlay.visible .info-popup-card {
    transform: scale(1);
}

.info-popup-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f9fafb;
}

.info-popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
}

.info-popup-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.info-popup-meta {
    font-size: 0.8rem;
    color: var(--color-pink);
    font-weight: 600;
    margin-bottom: 0.8rem;
    background: var(--color-pink-add);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.form-section {
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--color-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: none;
}

.input-field:focus {
    border-color: var(--color-pink);
    box-shadow: 0 0 0 4px var(--color-pink-add);
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    min-height: 54px;
}

.weight-selector {
    background: #fff;
    padding: 0;
    margin-bottom: 1.5rem;
}

.weight-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-pink-add);
    padding: 1rem;
    border-radius: 1.2rem;
    border: 1px solid var(--color-pink);
}

.counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.4rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.counter__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-pink-add);
    color: var(--color-pink);
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.counter__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.counter__value {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 40px;
    text-align: center;
    color: var(--color-gray);
}

.modal-price-display {
    text-align: right;
}

.modal-price-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.modal-price-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-pink);
}

.delivery-section {
    margin: 1rem; 
    margin-top: 2rem; 
    background: #fff;
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-standard);
    border: 1px solid #fce7f3;
}

.delivery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.delivery-content {
    padding: 25px;
    text-align: center;
}

.delivery-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-gray);
}

.delivery-info {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.delivery-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-pink-add);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-pink);
    border: 1px solid var(--color-pink);
    margin-top: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.delivery-address:active {
    transform: scale(0.96);
    background: var(--color-pink);
    color: #fff;
}

.icon-map {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer {
    padding: 1.5rem;
    text-align: center;
}

.footer__text {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
}