.inner-body { background: var(--cream); }

.inner-header {
    height: 126px;
    padding: 14px 6.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(105deg, #d3a7bd, #a93f56 74%, #8d263b);
}

/* Cart and product administration */
.cart-nav { display: inline-flex; align-items: center; gap: 7px; }
.cart-count { display: inline-grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; color: #fff; background: #9b3c53; border-radius: 99px; font-size: 11px; }
.add-to-cart.is-added { background: #9b3c53; }
.cart-page, .admin-page { min-height: 700px; padding: 45px max(24px, 5vw) 100px; background: var(--cream); }
.cart-page { max-width: 1440px; margin: 0 auto; }
.cart-heading { margin-bottom: 35px; }
.cart-heading h1, .admin-heading h1, .admin-panel h1 { margin: 0 0 10px; font: 400 clamp(42px, 5vw, 66px)/.95 var(--display); }
.cart-heading > p:last-child, .admin-heading p { color: #665f59; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); gap: 48px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 110px minmax(150px, 1fr) auto auto auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(36,31,28,.18); }
.cart-item > img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; }
.cart-item-info h2 { margin: 0 0 6px; font-size: 16px; }
.cart-item-info p { margin: 0; color: #665f59; font-size: 13px; }
.cart-quantity { display: flex; align-items: center; border: 1px solid rgba(36,31,28,.25); border-radius: 8px; }
.cart-quantity button { width: 34px; height: 36px; background: transparent; border: 0; cursor: pointer; font-size: 18px; }
.cart-quantity span { min-width: 27px; text-align: center; font-size: 13px; }
.cart-remove { color: #8b2f43; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }
.cart-summary, .admin-panel, .admin-create, .admin-product, .admin-products { background: #fff; border: 1px solid rgba(36,31,28,.15); border-radius: 14px; box-shadow: 0 5px 20px rgba(36,31,28,.06); }
.cart-summary { position: sticky; top: 24px; padding: 28px; }
.cart-summary h2 { margin: 0 0 24px; font: 400 28px/1 var(--display); }
.cart-summary[hidden], .cart-empty[hidden] { display: none; }
.cart-total { display: flex; padding: 18px 0; justify-content: space-between; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.customer-fields { display: grid; gap: 14px; margin: 22px 0; }
.customer-fields label, .admin-form > label, .admin-login label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.customer-fields input, .customer-fields textarea, .admin-form input[type="text"], .admin-form input[type="number"], .admin-form textarea, .admin-login input { width: 100%; padding: 10px 11px; background: #fff; border: 1px solid rgba(36,31,28,.3); border-radius: 7px; font: 14px var(--body); }
.cart-whatsapp, .admin-primary { width: 100%; min-height: 46px; padding: 10px 16px; color: #fff; background: #168b55; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.cart-note { margin: 13px 0 0; color: #665f59; font-size: 11px; line-height: 1.5; }
.cart-empty { padding: 70px 20px; text-align: center; }
.cart-empty h2 { font: 400 34px/1 var(--display); }
.cart-empty a { display: inline-block; padding: 12px 18px; color: #fff; background: #9b3c53; border-radius: 8px; text-decoration: none; }
.admin-login { display: grid; place-items: center; }
.admin-panel { width: min(440px, 100%); padding: 35px; }
.admin-login form { display: grid; gap: 18px; margin-top: 25px; }
.admin-heading { display: flex; max-width: 1200px; margin: 0 auto 30px; justify-content: space-between; align-items: start; }
.admin-heading h1 { font-size: 56px; }
.admin-secondary { padding: 9px 14px; background: transparent; border: 1px solid #777; border-radius: 7px; cursor: pointer; }
.admin-alert { max-width: 1200px; margin: 0 auto 20px; padding: 13px 16px; background: #dff4e8; border-radius: 8px; }
.admin-alert--error, .admin-warning { color: #751f32; background: #fbe4e8; }
.admin-warning { margin-top: 20px; padding: 12px; border-radius: 7px; font-size: 12px; }
.admin-create, .admin-products { max-width: 1200px; margin: 0 auto 26px; padding: 24px; }
.admin-create > summary { cursor: pointer; font: 400 28px/1 var(--display); }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.admin-wide { grid-column: 1 / -1; }
.admin-form fieldset { display: flex; padding: 13px; flex-wrap: wrap; gap: 10px 18px; border: 1px solid #ccc; border-radius: 8px; }
.admin-form fieldset label { font-size: 12px; }
.admin-form .admin-primary { width: auto; justify-self: start; background: #9b3c53; }
.admin-products > h2 { margin-top: 0; font: 400 28px/1 var(--display); }
.admin-product { margin-bottom: 10px; padding: 12px 16px; box-shadow: none; }
.admin-product > summary { display: grid; grid-template-columns: 64px 1fr auto; gap: 15px; align-items: center; cursor: pointer; list-style: none; }
.admin-product > summary img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; }
.admin-product > summary span { display: grid; gap: 5px; }
.admin-product > summary small { color: #665f59; }
.admin-edit-label { color: #9b3c53; font-size: 13px; }
.admin-delete { margin-top: 18px; padding-top: 15px; border-top: 1px solid #ddd; }
.admin-delete button { color: #8b2f43; background: transparent; border: 0; text-decoration: underline; cursor: pointer; }

@media (max-width: 800px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 80px 1fr auto; gap: 12px; }
    .cart-item > img { width: 80px; height: 80px; }
    .cart-quantity { grid-column: 2; justify-self: start; }
    .cart-item > strong { grid-column: 3; grid-row: 2; }
    .cart-remove { grid-column: 2; justify-self: start; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-wide { grid-column: auto; }
}

.inner-logo { width: 235px; }
.inner-logo img { width: 100%; }

.inner-nav {
    display: flex;
    gap: 52px;
    align-items: center;
    font-size: 17px;
}

.inner-nav a { text-decoration: none; }
.inner-menu-button { display: none; }
.inner-menu-close { display: none; }

.inner-category-menu { position: relative; }
.inner-category-menu summary { cursor: pointer; list-style: none; }
.inner-category-menu summary::-webkit-details-marker { display: none; }
.inner-category-menu summary::after { content: "⌄"; margin-left: 8px; font-size: 13px; }
.inner-category-menu[open] summary::after { display: inline-block; transform: rotate(180deg); }

.inner-category-links {
    position: absolute;
    z-index: 20;
    top: calc(100% + 16px);
    left: 50%;
    display: flex;
    width: 220px;
    padding: 18px;
    flex-direction: column;
    gap: 10px;
    background: var(--mint);
    border: 1px solid var(--ink);
    border-radius: 7px;
    box-shadow: 5px 7px 0 #000;
    transform: translateX(-50%);
}

.whatsapp-nav {
    padding: 9px 16px;
    color: #fff;
    background: #168b55;
    border-radius: 7px;
    text-decoration: none;
}

.catalog-page {
    max-width: 1260px;
    margin: 0 auto;
    padding: 30px 28px 100px;
}

.breadcrumbs {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumbs a { text-decoration: none; }

.catalog-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 45px;
}

.catalog-sidebar h2,
.catalog-content h1 {
    font: 400 25px/1 var(--display);
}

.catalog-sidebar h2 {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #c9c7bb;
}

.catalog-sidebar nav { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.catalog-sidebar nav a { text-decoration: none; }
.catalog-sidebar nav a.active { color: #9b78ff; text-decoration: underline; }
.filters { margin-top: 52px; }

.filters details {
    padding: 13px 0;
    border-bottom: 1px solid #c9c7bb;
    font-size: 13px;
}

.filters summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; }
.filters summary::after { content: "+"; }
.filters details[open] summary::after { content: "−"; }
.range-line { position: relative; height: 3px; margin: 25px 3px 12px; background: var(--ink); }
.range-line::before, .range-line::after { content: ""; position: absolute; top: -4px; width: 11px; height: 11px; background: var(--ink); border-radius: 50%; }
.range-line::before { left: -3px; }.range-line::after { right: -3px; }
.price-range { display: flex; justify-content: space-between; font-size: 11px; }

.catalog-banner { width: 100%; height: 285px; object-fit: cover; margin-bottom: 34px; }
.catalog-content h1 { margin: 0 0 48px; }

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.catalog-toolbar select { background: transparent; border: 0; color: var(--ink); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 20px;
}

.product-card { position: relative; min-width: 0; }
.product-image { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }

.product-card h2 {
    min-height: 38px;
    margin: 13px 0 3px;
    font: 400 14px/1.35 var(--body);
}

.product-card h2 a { text-decoration: none; }
.product-card p { margin: 0; font-size: 12px; }

.whatsapp-order {
    position: static;
    display: flex;
    width: 100%;
    height: 42px;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #168b55;
    border: 0;
    opacity: 1;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transform: none;
    transition: opacity .2s, transform .2s;
}

.whatsapp-order:hover, .whatsapp-order:focus { background: #117346; }

.inner-footer { margin-top: 0; }
.inner-footer .footer-panel { min-height: 430px; }

.contact-page { background: var(--cream); }
.contact-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1320px; margin: 0 auto; padding: 80px 60px 130px; }

.contact-card {
    min-height: 565px;
    padding: 45px;
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 25px;
    box-shadow: 15px 16px 0 var(--ink);
}

.contact-card h1, .contact-card h2 { margin: 0 0 35px; font: 400 44px/1 var(--display); }
.contact-details { display: flex; flex-direction: column; align-items: flex-start; }
.contact-details a { font-size: 15px; text-decoration: none; }
.contact-details img { width: 100%; height: 235px; margin-top: 65px; object-fit: cover; border-radius: 8px; }
.contact-form-card form { display: flex; flex-direction: column; gap: 25px; }
.contact-form-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-form-card input { height: 37px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
.contact-form-card button { height: 44px; margin-top: 5px; background: #fff; border: 1px solid var(--ink); border-radius: 12px; font-weight: 700; cursor: pointer; }
.contact-message { margin: 0; font-size: 13px; }
.contact-hero { width: 100%; height: 450px; object-fit: cover; object-position: 50% 54%; }

.product-page { min-height: 760px; padding: 75px 6%; background: var(--cream); }
.product-detail { display: grid; grid-template-columns: minmax(0, 600px) 1fr; gap: 80px; max-width: 1250px; margin: 0 auto; }
.product-detail > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail h1 { margin: 45px 0 15px; font: 400 58px/.95 var(--display); }
.detail-price { font-size: 22px; }
.detail-cart { position: static; width: 240px; margin-top: 25px; opacity: 1; transform: none; }

.back-products {
    display: inline-block;
    margin-top: 24px;
    color: var(--ink);
    text-underline-offset: 4px;
}

@media (max-width: 700px) {
    .inner-header { height: 94px; padding: 12px 20px; }
    .inner-logo { width: 155px; }
    .inner-menu-button {
        display: flex;
        width: 34px;
        height: 34px;
        padding: 4px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .inner-menu-button span:not(.sr-only) {
        width: 100%;
        height: 2px;
        background: #fff;
    }
    .inner-nav {
        position: fixed;
        z-index: 9999;
        inset: 0;
        display: none;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-width: 0;
        padding: 78px 24px 30px;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        background: var(--mint);
        border: 0;
        box-shadow: none;
        font-size: 20px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .inner-nav.is-open { display: flex; }
    .inner-menu-is-open { overflow: hidden; }
    .inner-menu-close { position: absolute; top: 23px; right: 31px; display: block; width: 30px; height: 30px; padding: 0; background: transparent; border: 0; font: 300 34px/1 Arial,sans-serif; cursor: pointer; }
    .inner-category-menu { width: min(250px, 85vw); text-align: center; }
    .inner-category-menu summary::after { position: absolute; right: 8px; top: -3px; }
    .inner-category-links { position: static; width: 100%; padding: 20px 0 0; gap: 13px; background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 15px; transform: none; }
    .whatsapp-nav { padding: 10px 18px; }
    .catalog-page { padding: 22px 16px 70px; }
    .catalog-layout { display: block; }
    .catalog-sidebar { margin-bottom: 35px; }
    .catalog-sidebar nav { display: grid; grid-template-columns: repeat(2, 1fr); }
    .filters { display: none; }
    .catalog-banner { height: 155px; }
    .catalog-content h1 { margin-bottom: 25px; font-size: 34px; }
    .catalog-toolbar { align-items: flex-start; gap: 10px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 10px; }
    .product-card h2 { font-size: 12px; }
    .whatsapp-order { position: static; width: 100%; margin-top: 10px; opacity: 1; transform: none; }
    .contact-panels { grid-template-columns: 1fr; padding: 35px 18px 70px; }
    .contact-card { min-height: 0; padding: 26px 22px; border-radius: 12px; box-shadow: 8px 9px 0 var(--ink); }
    .contact-card h1, .contact-card h2 { font-size: 34px; }
    .contact-details img { height: 190px; margin-top: 35px; }
    .contact-hero { height: 280px; }
    .product-page { padding: 35px 18px; }
    .product-detail { grid-template-columns: 1fr; gap: 25px; }
    .product-detail h1 { margin-top: 10px; font-size: 44px; }
}

/* Professional candy catalog */
.catalog-page { max-width: 1360px; padding: 32px 38px 110px; }
.breadcrumbs { margin-bottom: 38px; color: #665f59; font-size: 12px; letter-spacing: .02em; }
.catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; }
.catalog-sidebar { position: sticky; top: 26px; align-self: start; }
.catalog-sidebar-label, .catalog-eyebrow { margin: 0 0 8px; color: #9b3c53; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.catalog-sidebar h2 { margin: 0 0 22px; padding: 0; border: 0; font: 400 28px/1 var(--display); }
.catalog-sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.catalog-sidebar nav a { display: flex; min-height: 44px; padding: 10px 12px; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 9px; font-size: 14px; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.catalog-sidebar nav a:hover { background: rgba(255, 255, 255, .55); transform: translateX(2px); }
.catalog-sidebar nav a.active { color: var(--ink); background: #fff; border-color: rgba(36, 31, 28, .18); box-shadow: 0 3px 12px rgba(36, 31, 28, .07); font-weight: 700; text-decoration: none; }
.category-count { display: grid; min-width: 28px; height: 28px; padding: 0 7px; place-items: center; color: #665f59; background: rgba(36, 31, 28, .07); border-radius: 99px; font-size: 11px; font-weight: 400; }
.catalog-sidebar nav a.active .category-count { color: #fff; background: #9b3c53; }
.catalog-heading { max-width: 720px; margin: 3px 0 30px; }
.catalog-heading h1 { margin: 0 0 14px; font: 400 clamp(42px, 5vw, 68px)/.95 var(--display); letter-spacing: -.025em; }
.catalog-heading > p:last-child { max-width: 610px; margin: 0; color: #665f59; font-size: 15px; line-height: 1.65; }
.product-search { position: relative; display: flex; height: 58px; margin-bottom: 22px; align-items: center; background: #fff; border: 1px solid rgba(36, 31, 28, .22); border-radius: 12px; box-shadow: 0 5px 20px rgba(36, 31, 28, .06); }
.product-search:focus-within { border-color: #9b3c53; box-shadow: 0 0 0 3px rgba(155, 60, 83, .12); }
.product-search input { width: 100%; height: 100%; padding: 0 82px 0 52px; color: var(--ink); background: transparent; border: 0; outline: 0; font: 15px var(--body); }
.product-search input::placeholder { color: #817a74; }
.product-search input::-webkit-search-cancel-button { display: none; }
.product-search button { position: absolute; right: 16px; padding: 6px; color: #9b3c53; background: transparent; border: 0; font: 700 12px var(--body); cursor: pointer; }
.search-icon { position: absolute; left: 20px; width: 17px; height: 17px; border: 2px solid #665f59; border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; background: #665f59; transform: rotate(45deg); }
.catalog-toolbar { margin-bottom: 24px; align-items: center; }
.catalog-toolbar p { margin: 0; color: #665f59; }
.catalog-toolbar p strong { color: var(--ink); font-weight: 700; }
.catalog-toolbar label { display: flex; align-items: center; gap: 10px; color: #665f59; }
.catalog-toolbar select { min-width: 176px; height: 38px; padding: 0 30px 0 11px; color: var(--ink); background-color: transparent; border: 1px solid rgba(36, 31, 28, .2); border-radius: 8px; font: 13px var(--body); }
.product-grid { gap: 40px 22px; }
.product-card[hidden] { display: none; }
.product-image { background: #e9e5dd; border-radius: 12px; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-card h2 { margin: 14px 0 5px; font-weight: 600; }
.product-card p { color: #665f59; }
.whatsapp-order { border-radius: 8px; }
.product-empty { padding: 75px 20px; text-align: center; }
.product-empty[hidden] { display: none; }
.product-empty h2 { margin: 0 0 10px; font: 400 34px/1 var(--display); }
.product-empty p { margin: 0 0 20px; color: #665f59; }
.product-empty button { padding: 11px 18px; color: #fff; background: #9b3c53; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }

@media (max-width: 700px) {
    .catalog-page { padding: 22px 16px 70px; }
    .catalog-sidebar { position: static; margin-bottom: 38px; }
    .catalog-sidebar-label, .catalog-sidebar h2 { display: none; }
    .catalog-sidebar nav { display: flex; margin: 0 -16px; padding: 0 16px 5px; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
    .catalog-sidebar nav::-webkit-scrollbar { display: none; }
    .catalog-sidebar nav a { min-width: max-content; min-height: 40px; padding: 7px 9px 7px 13px; gap: 10px; background: rgba(255, 255, 255, .5); border-color: rgba(36, 31, 28, .13); }
    .catalog-sidebar nav a:hover { transform: none; }
    .catalog-heading { margin-bottom: 24px; }
    .catalog-heading h1 { margin-bottom: 12px; font-size: 44px; }
    .catalog-heading > p:last-child { font-size: 14px; }
    .product-search { height: 52px; }
    .catalog-toolbar { align-items: center; gap: 10px; }
    .catalog-toolbar label > span { display: none; }
    .catalog-toolbar select { min-width: 145px; max-width: 47vw; }
}
