@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&family=Cinzel:wght@500;700&family=Marck+Script&display=swap');

:root {
    --bg-deep: #0f1217;
    --bg-mid: #1a1f27;
    --bg-soft: #252c35;
    --surface: #171c23;
    --surface-2: #1d242c;
    --line: rgba(255, 183, 66, 0.25);
    --accent: #ff8d1f;
    --accent-strong: #ff6b00;
    --accent-soft: #ffc14d;
    --text: #f6efe4;
    --text-soft: #cebfa8;
    --card-radius: 16px;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    min-height: 100vh;
    background: linear-gradient(160deg, var(--bg-mid) 0%, var(--bg-deep) 42%, #0b0f14 100%);
    background-attachment: fixed;
}

.page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    box-shadow: 0 0 10px rgba(255, 141, 31, 0.7);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: width .25s ease, opacity .2s ease;
}

.page-progress-bar.is-loading {
    opacity: 1;
    width: 75%;
    transition: width 1.2s cubic-bezier(0.1, 0.5, 0.1, 1), opacity .2s ease;
}

.page-progress-bar.is-finished {
    opacity: 1;
    width: 100%;
    transition: width .15s ease, opacity .3s ease;
}

.site-header {
    position: relative;
    z-index: 20;
}

.header-top {
    display: flex;
    justify-content: center;
    padding: 8px 18px 10px;
    min-height: 132px;
    background: rgba(16, 20, 26, 0.92);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--accent-soft);
}

.brand-logo {
    width: min(95px, 22vw);
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.header-nav-row {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(16, 20, 26, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: min(1120px, 94vw);
    margin: 0 auto;
    padding: 10px 2px 13px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-soft);
    white-space: nowrap;
    padding: 8px 11px 11px;
    border-radius: 8px;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease;
}

.nav-link img {
    width: 18px;
    height: 18px;
    opacity: .95;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 141, 31, 0.08);
}

.nav-indicator {
    position: absolute;
    left: 0;
    bottom: 6px;
    width: var(--nav-indicator-width, 0px);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transform: translateX(var(--nav-indicator-left, 0px));
    opacity: 0;
    transition: transform .28s ease, width .28s ease, opacity .2s ease;
    pointer-events: none;
}

.site-nav.has-indicator .nav-indicator {
    opacity: 1;
}

.page-main {
    width: min(1120px, 94vw);
    margin: 0 auto;
    padding: 26px 0 40px;
    transition: opacity .15s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.page-main.page-transition-out {
    opacity: 0;
}

.hero {
    text-align: center;
    padding-top: 8px;
}

.slogan {
    margin: 10px 0 8px;
    font-family: 'Marck Script', cursive;
    font-size: clamp(2.35rem, 4.6vw, 4.1rem);
    color: var(--accent-soft);
    text-shadow: 0 6px 20px rgba(255, 107, 0, 0.2);
}

.subtitle {
    margin: 0;
    color: var(--text-soft);
}

.slider-section {
    margin-top: 24px;
}

.hero-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #10151b;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.slides {
    position: relative;
    height: min(68vh, 620px);
    min-height: 280px;
}

.slide {
    margin: 0;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .7s ease;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 99px;
    background: rgba(15, 18, 23, 0.75);
    border: 1px solid rgba(255, 183, 66, 0.25);
}

.dot {
    position: relative;
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 193, 77, 0.3);
    overflow: hidden;
    cursor: pointer;
}

.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    transform: scaleX(0);
    transform-origin: left center;
}

.dot.is-active.is-animating::after {
    animation: dotProgress var(--dot-duration, 4200ms) linear forwards;
}

.content-head {
    margin-bottom: 20px;
}

.content-head h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.45rem);
    margin: 8px 0;
    color: var(--accent-soft);
}

.content-head p {
    margin: 0;
    color: var(--text-soft);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 18px;
}

.product-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border-radius: var(--card-radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.image-placeholder {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #171c23 0%, #252c35 50%, #171c23 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.8s ease-in-out infinite;
}

.fade-in {
    opacity: 0;
    transition: opacity .35s ease;
}

.fade-in.is-loaded {
    opacity: 1;
}

.product-trigger {
    width: 100%;
    cursor: default;
}

.product-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img,
.product-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fillings-card {
    overflow: hidden;
}

.fillings-trigger {
    padding-top: 0;
}

.product-title {
    display: block;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--accent-soft);
}

.product-details {
    border-top: 1px solid var(--line);
    background: rgba(8, 11, 15, 0.25);
    padding: 12px 14px 14px;
}

.product-details p {
    margin: 0 0 8px;
    color: var(--text-soft);
}

.product-details .price {
    margin: 0;
    font-weight: 700;
    color: var(--accent);
}

.editor-item-form,
.editor-add-form {
    display: grid;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px dashed var(--line);
    background: rgba(10, 12, 16, 0.5);
}

.editor-item-form label,
.editor-add-form label {
    display: grid;
    gap: 6px;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.editor-item-form input,
.editor-item-form textarea,
.editor-add-form input,
.editor-add-form textarea {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-item-form button,
.editor-add-form button {
    border: 1px solid var(--line);
    background: rgba(255, 141, 31, 0.12);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

.editor-item-form button:hover,
.editor-add-form button:hover {
    background: rgba(255, 141, 31, 0.2);
}

.editor-item-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.editor-item-form button.danger {
    background: rgba(255, 70, 70, 0.12);
    border-color: rgba(255, 110, 110, 0.4);
}

.editor-panel {
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--card-radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}

.editor-panel h2 {
    margin: 0 0 12px;
    color: var(--accent-soft);
    font-size: 1.2rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.contact-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 141, 31, 0.2), rgba(255, 193, 77, 0.14));
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.contact-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 193, 77, 0.56);
    background: linear-gradient(135deg, rgba(255, 141, 31, 0.26), rgba(255, 193, 77, 0.2));
}

.contacts-info-card {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: var(--card-radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}

.contacts-info-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: var(--accent-soft);
}

.delivery-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 183, 66, 0.12);
}

.delivery-city {
    font-weight: 600;
    color: var(--text);
}

.delivery-price {
    font-weight: 700;
    color: var(--accent);
}

.delivery-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.site-footer {
    padding: 12px 0 24px;
    text-align: center;
    color: rgba(206, 191, 168, 0.78);
}

.site-footer p {
    margin: 0;
}

.admin-trigger {
    border: 0;
    padding: 0 2px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.admin-trigger:hover,
.admin-trigger:focus,
.admin-trigger:active,
.admin-trigger:visited {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.admin-state {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--accent-soft);
}

.flash-message {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--accent-soft);
}

.admin-form-hidden {
    display: none;
}

@keyframes dotProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
    }

    .header-top {
        padding: 8px 12px 8px;
        min-height: 118px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 10px 2px 12px;
        row-gap: 6px;
        column-gap: 6px;
    }

    .nav-indicator {
        display: none !important;
    }

    .nav-link {
        flex: 0 0 calc(50% - 8px);
        max-width: 190px;
        justify-content: center;
        padding: 8px 10px 10px;
        border: 1px solid transparent;
    }

    .nav-link.is-active {
        background: rgba(255, 141, 31, 0.14);
        border-color: rgba(255, 183, 66, 0.35);
        color: var(--accent-soft);
    }

    .slides {
        height: 54vh;
    }

    .product-img-wrapper {
        height: 200px;
    }

    .product-trigger img {
        height: 200px;
    }
}
