/*
 * CasaSAVI | Hoja de estilos principal
 *
 * ORGANIZACION
 * 01. Variables y estilos generales
 * 02. Encabezado, navegacion y portada
 * 03. Catalogo, productos y blog
 * 04. Carrito, formularios y modales
 * 05. Mejoras visuales y ajustes de compatibilidad
 * 06. Encabezado fijo y ajustes responsivos
 *
 * IMPORTANTE: el orden de las reglas originales se conserva para mantener
 * la precedencia CSS y evitar cambios inesperados en la tienda publicada.
 * Las reglas de ajustes posteriores prevalecen sobre las iniciales.
 */

/* ============================================================
   01. VARIABLES Y ESTILOS GENERALES
   ============================================================ */

:root {
    --green: #304b35;
    --cream: #faf8f2;
    --muted: #76796d;
    --line: #dedfd4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--cream);
    color: #2e3b2e;
    font: 15px "DM Sans",sans-serif;
}

button,input,select,textarea {
    font: inherit;
}

button,a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,a:focus-visible {
    outline: 3px solid #c89747;
    outline-offset: 4px;
}


/* ============================================================
   02. ENCABEZADO, NAVEGACION Y PORTADA
   ============================================================ */

.top {
    background: var(--green);
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 11px;
}

.top span {
    margin: 0 20px;
    color: #dcce9e;
}

header {
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
}

.brand {
    font: 34px "Playfair Display",serif;
    letter-spacing: -1.5px;
}

.brand span {
    font-weight: 600;
}

.brand small {
    display: block;
    font: 9px "DM Sans",sans-serif;
    letter-spacing: 3px;
    margin-top: 3px;
    text-align: center;
}

nav {
    display: flex;
    gap: 36px;
    font-size: 14px;
}

.cartbtn {
    border: 1px solid #bbc3b7;
    border-radius: 5px;
    background: transparent;
    padding: 12px 17px;
    color: var(--green);
}

.cartbtn span {
    display: inline-grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    margin-left: 12px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
}

.heroText {
    padding: 65px 9% 45px 12%;
}

.eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #687b54;
}

h1,h2,h3 {
    font-family: "Playfair Display",serif;
    font-weight: 400;
}

h1 {
    font-size: 68px;
    line-height: 1.09;
    letter-spacing: -2px;
    margin: 24px 0;
}

h1 em {
    color: #738251;
    font-weight: 400;
}

.hero p {
    line-height: 1.85;
    color: #73796c;
    font-size: 14px;
}

.button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    border: 0;
    background: var(--green);
    color: white;
    padding: 17px 24px;
    border-radius: 4px;
    font-size: 13px;
}

.hero .button {
    margin-top: 18px;
}

.heroNote {
    font-size: 11px;
    color: #77806f;
    margin-top: 28px;
}

.heroImage {
    position: relative;
    margin: 28px 28px 28px 0;
    min-height: 550px;
    border-radius: 120px 4px 4px 4px;
    overflow: hidden;
}

.heroImage>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    filter: brightness(.85);
}

.stamp {
    position: absolute;
    right: 27px;
    top: 28px;
    border-radius: 50%;
    background: #f1ead7;
    color: #536747;
    width: 115px;
    height: 115px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 8px;
    letter-spacing: 1.5px;
    transform: rotate(12deg);
    outline: 1px dashed #9b9f82;
    outline-offset: -8px;
}

.stamp strong {
    font: 21px "Playfair Display";
    letter-spacing: -.5px;
    margin: 6px;
}

.imageLabel {
    position: absolute;
    bottom: 25px;
    left: 30px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    letter-spacing: 2px;
}


/* ============================================================
   03. CATALOGO, PRODUCTOS, BLOG Y CONTENIDO
   ============================================================ */

.benefits {
    display: flex;
    justify-content: space-evenly;
    padding: 24px;
    background: #eeefe5;
    border-block: 1px solid var(--line);
    font-size: 12px;
}

.shop,.blog {
    padding: 80px 6%;
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}

h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 15px 0;
}

.sectionhead p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 0 22px;
}

#filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#filters button {
    background: none;
    border: 1px solid #dddcd0;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 12px;
    color: #65705c;
}

#filters button.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.search {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search input {
    width: 185px;
    border: 0;
    background: transparent;
    font-size: 12px;
    outline-offset: 4px;
}

.results {
    display: flex;
    justify-content: space-between;
    color: #8b8f82;
    font-size: 10px;
    padding: 20px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 30px 23px;
}

.product {
    min-width: 0;
}

.productPic {
    height: 210px;
    background: #eeeee4;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.productPic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.product:hover img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #faf8f2e8;
    padding: 6px 9px;
    font-size: 9px;
    border-radius: 3px;
}

.product h3 {
    font: 500 15px "DM Sans";
    margin: 16px 0 6px;
}

.unit {
    font-size: 11px;
    color: #8a8e81;
}

.productBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.price {
    font-size: 17px;
    font-weight: 600;
}

.add {
    border: 1px solid #c8cebf;
    background: none;
    color: var(--green);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px;
}

.add:hover {
    background: var(--green);
    color: white;
}

.story {
    background: #e9eddf;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    padding: 65px 9%;
    align-items: center;
}

.story img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border-radius: 5px 100px 5px 5px;
}

.story p {
    font-size: 13px;
    line-height: 1.9;
    color: #67745e;
    max-width: 410px;
}

.signature {
    font: italic 27px "Playfair Display";
    margin: 23px 0 10px;
}

.story div>span {
    font-size: 8px;
    letter-spacing: 2px;
}

.how {
    padding: 55px 8%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
    border-bottom: 1px solid var(--line);
}

.how span {
    font: italic 30px "Playfair Display";
    color: #9aab7e;
}

.how h3 {
    font-size: 22px;
    margin: 12px 0;
}

.how p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.bloggrid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.post {
    border: 0;
    background: none;
    text-align: left;
    padding: 0;
    color: inherit;
}

.post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.post small {
    display: block;
    color: #798466;
    letter-spacing: 1px;
    font-size: 9px;
    margin-top: 20px;
}

.post h3 {
    font-size: 24px;
    margin: 10px 0;
}

.post p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.7;
}

.post strong {
    display: block;
    font-size: 11px;
    margin-top: 20px;
    font-weight: 500;
}

.editorNote {
    font-size: 10px;
    color: #8b8f82;
    margin-top: 25px;
}

.delivery {
    background: var(--green);
    color: #f6f2e6;
    padding: 50px 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.delivery .eyebrow {
    color: #c4d0ad;
}

.delivery p {
    font-size: 12px;
    line-height: 1.9;
    color: #d2d8c8;
}

.light {
    background: #f3eedc;
    color: var(--green);
}

footer {
    padding: 45px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

footer p,footer>a:not(.brand) {
    font-size: 12px;
}

footer>small {
    font-size: 10px;
    color: var(--muted);
}


/* ============================================================
   04. CARRITO, FORMULARIOS Y VENTANAS MODALES
   ============================================================ */

dialog {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 25px;
    width: min(580px,94vw);
    max-height: 90vh;
    color: var(--green);
    background: var(--cream);
}

dialog::backdrop {
    background: #15231888;
    backdrop-filter: blur(3px);
}

.dialoghead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.dialoghead h2 {
    font-size: 30px;
}

.dialoghead button {
    background: none;
    border: 0;
    padding: 10px;
}

.cartRow {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.cartRow small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

.quantity {
    white-space: nowrap;
}

.quantity button {
    padding: 5px 9px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 3px;
}

.quantity span {
    padding: 0 8px;
}

form {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

label {
    font-size: 12px;
}

form input,select,textarea {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd0c2;
    border-radius: 4px;
    background: #fffef9;
    margin-top: 6px;
    color: var(--green);
}

.total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    font-size: 18px;
}

.fine,.notice {
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.notice {
    background: #f0e8d0;
    padding: 10px;
    border-radius: 4px;
}

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    font-size: 13px;
    transition: opacity .2s;
}

#articleContent p {
    line-height: 1.9;
    font-size: 14px;
}

#articleContent h2 {
    font-size: 34px;
}

#summary .button {
    margin-top: 15px;
}


/* ============================================================
   05. RESPONSIVIDAD ORIGINAL
   ============================================================ */

@media (min-width:1500px) {
    main,header,footer {
        max-width: 1600px;
        margin: auto;
    }
}

@media (max-width:1000px) {
    h1 {
        font-size: 53px;
    }

    .heroText {
        padding: 55px 8%;
    }

    .grid {
        grid-template-columns: repeat(3,1fr);
    }

    .toolbar {
        align-items: start;
        flex-direction: column;
    }

    nav {
        gap: 20px;
    }

    footer {
        flex-wrap: wrap;
    }

    .heroImage {
        min-height: 510px;
    }

    .sectionhead p {
        max-width: 230px;
    }
}

@media (max-width:650px) {
    .top {
        font-size: 10px;
        padding: 9px 20px;
        line-height: 1.7;
    }

    .top span {
        margin: 0 5px;
    }

    header {
        height: 85px;
        padding: 0 5%;
        flex-wrap: wrap;
    }

    .brand {
        font-size: 28px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-bottom: 8px;
        gap: 30px;
        font-size: 11px;
    }

    .cartbtn {
        padding: 7px 10px;
        font-size: 11px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .heroText {
        padding: 38px 7% 30px;
    }

    h1 {
        font-size: 53px;
    }

    .hero p {
        font-size: 13px;
    }

    .heroImage {
        min-height: 310px;
        margin: 0 5% 25px;
        border-radius: 80px 4px 4px 4px;
    }

    .heroNote {
        margin-top: 20px;
    }

    .benefits {
        gap: 15px;
        padding: 18px;
        font-size: 9px;
        text-align: center;
    }

    .shop,.blog {
        padding: 45px 5%;
    }

    .sectionhead {
        display: block;
    }

    h2 {
        font-size: 33px;
    }

    .sectionhead p {
        max-width: none;
    }

    .grid {
        grid-template-columns: repeat(2,1fr);
        gap: 25px 14px;
    }

    .productPic {
        height: 170px;
    }

    .product h3 {
        font-size: 13px;
    }

    .productBottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .price {
        font-size: 16px;
    }

    .add {
        font-size: 10px;
    }

    .results {
        font-size: 9px;
    }

    #filters button {
        padding: 8px 12px;
        font-size: 11px;
    }

    .story {
        grid-template-columns: 1fr;
        padding: 35px 7%;
        gap: 25px;
    }

    .story img {
        height: 260px;
    }

    .how {
        padding: 35px 7%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how>div {
        padding-left: 45px;
        position: relative;
    }

    .how span {
        position: absolute;
        left: 0;
    }

    .bloggrid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .post img {
        height: 230px;
    }

    .delivery {
        display: block;
        padding: 35px 7%;
    }

    .delivery .button {
        margin-top: 15px;
    }

    footer {
        padding: 30px 6%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    footer p {
        font-size: 10px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.6px;
    }
}


/* ============================================================
   06. AJUSTES VISUALES Y MEJORAS POSTERIORES
   ============================================================ */

[hidden] {
    display: none !important;
}


/* Show the supplied logo intact; frame out the large margins of the original. */
.logo-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    line-height: 1;
    letter-spacing: normal;
}

.logo-window {
    position: relative;
    display: block;
    width: 178px;
    aspect-ratio: 780 / 365;
    overflow: hidden;
    border-radius: 3px;
}

.logo-window img {
    position: absolute;
    display: block;
    width: 160.7693%;
    height: auto;
    max-width: none;
    left: -30.7693%;
    top: -116.4384%;
}

.stamp .stamp-logo {
    width: 88px;
    flex-shrink: 0;
    align-self: center;
    margin: 6px 0;
    transform: none;
}

.admin-logo .logo-window {
    width: 210px;
}

@media (max-width:650px) {
    header .logo-window {
        width: 124px;
    }

    footer .logo-window {
        width: 145px;
    }

    .admin-logo .logo-window {
        width: 180px;
    }
}


/* Product photos retain the full artwork and package labels. */
.grid {
    align-items: stretch;
}

.product {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.productPic {
    height: auto;
    aspect-ratio: 1 / 1.12;
    flex-shrink: 0;
    width: 100%;
    background: #f0eee6;
}

.photo-button {
    display: block;
    padding: 0;
    border: 1px solid #e6e4db;
    position: relative;
    cursor: zoom-in;
    color: var(--green);
}

.productPic img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
}

.product:hover img {
    transform: none;
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #fffdf3e8;
    border-radius: 50%;
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.product-category {
    font-size: 10px;
    letter-spacing: .8px;
    color: #788568;
    margin-top: 15px;
}

.product h3 {
    margin-top: 7px;
    line-height: 1.45;
}

.product .productBottom {
    margin-top: auto;
    padding-top: 15px;
    gap: 8px;
}

.unit {
    line-height: 1.6;
}

.pack-note {
    font-size: 10px;
    line-height: 1.5;
    color: #858979;
    margin-top: 5px;
}

.no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #879278;
    border: 1px dashed #ccd2bf;
    font-size: 11px;
}

.no-photo>span:first-child {
    font-size: 40px;
}

.large-product-photo {
    display: block;
    max-width: 100%;
    width: auto;
    max-height: 65vh;
    margin: 15px auto;
    object-fit: contain;
}

#product-photo {
    width: min(700px,94vw);
}

.add,.quantity button,.dialoghead button {
    min-height: 44px;
    min-width: 44px;
}

header {
    gap: 18px;
}

.search {
    max-width: 100%;
}

.search input {
    max-width: 100%;
}

.heroText {
    min-width: 0;
}

.heroImage {
    min-width: 0;
}

.sectionhead>div,.sectionhead p {
    min-width: 0;
}

dialog {
    max-width: calc(100vw - 24px);
}

@media (min-width:1400px) {
    .productPic {
        aspect-ratio: 1 / 1.05;
    }
}

@media (min-width:651px) and (max-width:1000px) {
    header {
        padding-inline: 4%;
        gap: 16px;
    }

    nav {
        gap: 18px;
    }

    .shop,.blog {
        padding-inline: 5%;
    }

    .heroText {
        padding: 45px 7%;
    }

    .heroText h1 {
        font-size: clamp(40px,5.3vw,53px);
    }

    .heroImage {
        margin-right: 20px;
    }

    .grid {
        gap: 26px 18px;
    }

    .story {
        padding-inline: 6%;
        gap: 6%;
    }

    .how {
        gap: 30px;
    }

    .bloggrid {
        gap: 18px;
    }

    .post h3 {
        font-size: 21px;
    }

    .delivery {
        padding-inline: 6%;
    }
}

@media (max-width:650px) {
    header {
        height: auto;
        min-height: 112px;
        padding: 8px 5%;
        row-gap: 4px;
    }

    nav {
        flex: 0 0 100%;
        padding: 4px 0;
        gap: 26px;
    }

    nav a {
        padding: 8px 0;
    }

    .heroText h1 {
        font-size: clamp(42px,10vw,56px);
    }

    .hero p br {
        display: none;
    }

    .sectionhead p br {
        display: none;
    }

    .productPic {
        aspect-ratio: 1 / 1.25;
    }

    .grid {
        gap: 26px 14px;
    }

    .productBottom .add {
        width: 100%;
        font-size: 12px;
    }

    .productBottom .price {
        width: 100%;
        font-size: 18px;
    }

    .product .productBottom {
        margin-top: auto;
        padding-top: 12px;
        gap: 9px;
    }

    .product h3 {
        font-size: 14px;
    }

    .unit {
        font-size: 11px;
    }

    .results {
        gap: 15px;
        line-height: 1.6;
    }

    .results span:last-child {
        text-align: right;
    }

    .search {
        width: 100%;
        padding: 10px 12px;
        background: #f1f0e7;
        border: 1px solid #dedfd4;
        border-radius: 4px;
    }

    .search input {
        width: 100%;
    }

    #filters {
        gap: 8px;
    }

    #filters button {
        min-height: 40px;
    }

    .benefits {
        line-height: 1.7;
    }

    .benefits span {
        flex: 1;
    }

    .story img {
        height: auto;
        aspect-ratio: 1.3;
        object-fit: cover;
    }

    .bloggrid .post img {
        height: auto;
        aspect-ratio: 1.5;
    }

    .delivery p br {
        display: none;
    }

    footer {
        grid-template-columns: 1fr 1fr;
    }

    footer p {
        line-height: 1.8;
    }

    footer a,footer>small {
        overflow-wrap: anywhere;
    }

    dialog {
        padding: 18px;
    }

    .dialoghead h2 {
        font-size: 25px;
    }

    .cartRow {
        gap: 10px;
    }

    .cartRow>div:first-child {
        min-width: 0;
    }

    .quantity {
        display: flex;
        align-items: center;
    }

    .quantity span {
        padding: 0 6px;
    }

    .how>div p {
        margin-top: 8px;
    }
}

@media (max-width:359px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .productPic {
        aspect-ratio: 1;
    }

    .productBottom .add {
        width: auto;
    }

    .productBottom .price {
        width: auto;
    }

    .heroText {
        padding-inline: 6%;
    }

    .heroText h1 {
        font-size: 40px;
    }

    .cartbtn {
        padding: 6px 8px;
    }

    .cartbtn span {
        margin-left: 6px;
    }

    header .logo-window {
        width: 115px;
    }

    .cartRow {
        flex-wrap: wrap;
    }

    .toolbar {
        width: 100%;
    }

    .sectionhead h2 {
        font-size: 30px;
    }

    footer {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

.bloggrid {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr));
}

#articleContent h3 {
    font-size: 25px;
    margin: 27px 0 12px;
}

#articleContent ul {
    padding-left: 23px;
    margin: 4px 0;
    line-height: 1.8;
    font-size: 14px;
}

#articleContent p {
    overflow-wrap: anywhere;
}

.confirmation-dialog {
    text-align: center;
    width: min(620px,94vw);
    padding: 32px;
}

.confirmation-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e4ecd8;
    color: #304b35;
    font-size: 30px;
    font-weight: 700;
}

.confirmation-dialog h2 {
    margin: 10px 0 8px;
}

.confirmation-dialog>p {
    color: #687166;
}

.confirmation-dialog pre {
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 310px;
    overflow: auto;
    padding: 16px;
    background: #f1efe7;
    border: 1px solid #dedfd4;
    border-radius: 6px;
    font: 12px/1.65 "DM Sans",sans-serif;
}

.confirmation-ok {
    min-width: 130px;
    justify-content: center;
    margin-top: 8px;
    text-transform: none;
}


/* ============================================================
   07. AJUSTES FINALES: IMAGENES, CABECERA FIJA Y MOVIL
   ============================================================ */

.productPic {
    aspect-ratio: 1200 / 1312 !important;
}

html {
    scroll-padding-top: 205px;
}

body.storefront {
    padding-top: 184px;
}

header {
    position: fixed !important;
    inset: 0 0 auto 0;
    z-index: 1000;
    width: 100%;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    display: block !important;
    background: var(--cream);
    box-shadow: 0 5px 18px #1f35151c;
}

.header-main {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 6%;
}

header>.top {
    width: 100%;
    min-height: 35px;
}

.header-main nav {
    display: flex;
}

.header-main .cartbtn {
    flex-shrink: 0;
}

.header-main+.toolbar {
    height: 65px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    padding: 9px 6%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f6f4ec;
}

.header-main+.toolbar #filters {
    display: flex;
    flex: 1;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    padding: 2px 1px 5px;
}

.header-main+.toolbar #filters button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-main+.toolbar .search {
    flex: 0 0 205px;
    padding: 8px 11px;
    border: 1px solid #dedfd4;
    border-radius: 4px;
    background: #fffef9;
}

.header-main+.toolbar .search input {
    width: 100%;
}

@media (max-width:1000px) {
    body.storefront {
        padding-top: 180px;
    }

    .header-main {
        height: 80px;
        padding-inline: 4%;
    }

    .header-main+.toolbar {
        height: 65px;
        padding-inline: 4%;
    }

    .header-main+.toolbar .search {
        flex-basis: 165px;
    }
}

@media (max-width:650px) {
    html {
        scroll-padding-top: 190px;
    }

    body.storefront {
        padding-top: 176px;
    }

    .header-main {
        height: 64px;
        padding: 4px 4%;
    }

    .header-main nav {
        display: none;
    }

    .header-main .logo-window {
        width: 112px;
    }

    .header-main .cartbtn {
        min-height: 42px;
    }

    .header-main+.toolbar {
        height: 58px;
        padding: 6px 4%;
    }

    .header-main+.toolbar .search {
        display: none;
    }

    .header-main+.toolbar #filters {
        padding-bottom: 3px;
    }

    .header-main+.toolbar #filters button {
        min-height: 38px;
        padding: 7px 12px;
    }

    header>.top {
        min-height: 48px;
        padding: 7px 10px;
    }
}
