:root {
    --color-primary: #dca3aa;
    --color-primary-light: #f8eeee;
    --color-background: #fdfaf6;
    --color-white: #ffffff;
    --color-text: #302c2a;
    --color-muted: #756e6a;
    --color-border: #ebe5e1;
}

/* ================================
   GENERAL
================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: var(--color-text);
    background: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
}


/* ================================
   TOP BAR
================================ */

.top-bar {
    background: var(--color-text);
    color: var(--color-white);

    padding: 8px 0;

    font-size: 0.76rem;
    letter-spacing: 0.03em;
}


/* ================================
   MAIN HEADER
================================ */

.main-header {
    background: var(--color-white);
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}


/* Logo */

.brand-logo {
    display: inline-block;

    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 600;

    color: var(--color-text);

    white-space: nowrap;
}

.brand-logo span {
    color: var(--color-primary);
}


/* ================================
   BUSCADOR
================================ */

.search-form {
    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    border: 1px solid var(--color-border);
    border-radius: 50px;

    background: #fafafa;

    overflow: hidden;

    transition: border-color .2s ease,
                background .2s ease;
}

.search-form:focus-within {
    border-color: var(--color-primary);
    background: var(--color-white);
}

.search-form input {
    flex: 1;
    height: 100%;

    border: 0;
    outline: 0;

    padding: 0 20px;

    background: transparent;

    font-size: .88rem;
    color: var(--color-text);
}

.search-form input::placeholder {
    color: #aaa29e;
}

.search-form button {
    width: 50px;
    height: 100%;

    border: 0;
    background: transparent;

    color: var(--color-text);

    font-size: 1rem;
}


/* ================================
   ACCIONES HEADER
================================ */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 27px;
}

.header-actions a {
    display: flex;
    align-items: center;

    gap: 8px;

    font-size: .86rem;
    font-weight: 500;

    transition: color .2s ease;
}

.header-actions a:hover {
    color: var(--color-primary);
}

.header-actions i {
    font-size: 1.25rem;
}


/* Carrito */

.cart-button {
    position: relative;
}

.cart-count {
    position: absolute;

    top: -11px;
    right: -12px;

    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--color-primary);
    color: white;

    font-size: .65rem;
    font-weight: 600;
}


/* ================================
   NAVEGACIÓN
================================ */

.desktop-nav {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.desktop-nav ul {
    margin: 0;
    padding: 0;

    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 42px;
}

.desktop-nav a {
    position: relative;

    display: block;

    padding: 17px 0;

    font-size: .84rem;
    font-weight: 500;

    color: var(--color-text);

    transition: color .2s ease;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 10px;

    width: 0;
    height: 1px;

    background: var(--color-primary);

    transform: translateX(-50%);

    transition: width .25s ease;
}

.desktop-nav a:hover {
    color: var(--color-primary);
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* ================================
   BOTÓN MENÚ MÓVIL
================================ */

.mobile-menu-button {
    border: 0;
    background: transparent;

    padding: 0;

    font-size: 1.7rem;

    color: var(--color-text);
}


/* ================================
   OFFCANVAS MÓVIL
================================ */

.offcanvas {
    max-width: 330px;
}

.offcanvas-header {
    padding: 25px;
    border-bottom: 1px solid var(--color-border);
}

.offcanvas-body {
    padding: 25px;
}


/* Buscador móvil */

.mobile-search {
    display: flex;

    border: 1px solid var(--color-border);
    border-radius: 50px;

    overflow: hidden;
}

.mobile-search input {
    flex: 1;

    border: 0;
    outline: 0;

    padding: 12px 17px;

    font-size: .85rem;
}

.mobile-search button {
    width: 48px;

    border: 0;
    background: transparent;

    color: var(--color-text);
}


/* Menú móvil */

.mobile-nav {
    margin: 0;
    padding: 0;

    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
    display: block;

    padding: 16px 3px;

    font-size: .95rem;
    font-weight: 500;
}


/* ================================
   FOOTER TEMPORAL
================================ */

.site-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 991.98px) {

    .main-header {
        padding: 18px 0;
    }

    .brand-logo {
        display: block;
        text-align: center;
        font-size: 1.4rem;
    }

    .header-actions {
        gap: 0;
    }

    .cart-count {
        right: -9px;
    }

}


@media (max-width: 575.98px) {

    .top-bar {
        font-size: .7rem;
    }

    .brand-logo {
        font-size: 1.25rem;
    }

}