:root {
    --bg-body: #f7f5f1;
    --bg-header: #ffffff;
    --bg-footer: #1e2621;
    --bg-footer-alt: #171d19;
    --accent: #6b8c42;
    --accent-soft: #d5e2c3;
    --text-main: #22241e;
    --text-muted: #6c7067;
    --border-soft: transparent;
    --radius-base: 10px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
    --transition-fast: 0.18s ease-out;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER glassmorphism */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    backdrop-filter: blur(14px) saturate(160%) contrast(90%);
    -webkit-backdrop-filter: blur(14px) saturate(160%) contrast(90%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 15px;
    gap: 1.5rem;
}

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1f1f;
}

.brand-sub {
    font-size: 0.85rem;
    color: #555;
}

/* NAV con toque glass */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--text-main);
    border: 1px solid transparent;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
}

.nav-cta {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.nav-cta:hover {
    background-color: #587334;
}

/* MAIN – compensar header + breadcrumb fijo */
/* .site-main {
    padding: calc(var(--header-height) + 10px) 0 3rem;
} */

/* Breadcrumb fijo estilo Glassmorphism */
.breadcrumb-fixed {
    position: fixed;
    top: calc(var(--header-height) - 14px);
    left: 0;
    width: 100%;
    z-index: 1;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px) saturate(150%) contrast(85%);
    -webkit-backdrop-filter: blur(12px) saturate(150%) contrast(85%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.65rem 0;
}

/* Contenedor alineado al layout */
.breadcrumb-fixed .container {
    max-width: 1120px;
    margin: 0 auto;
}

/* Estilos del breadcrumb */
.breadcrumb {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2f2f2f;
}

/* Lista */
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Separadores */
.breadcrumb ol li::after {
    content: "›";
    margin-left: 0.35rem;
    margin-right: 0.35rem;
    color: rgba(0, 0, 0, 0.35);
}

.breadcrumb ol li:last-child::after {
    content: "";
}

/* Enlaces */
.breadcrumb a {
    text-decoration: none;
    color: #1f4d31;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.breadcrumb a:hover {
    color: #153822;
    opacity: 0.8;
}

/* Último elemento (página actual) */
.breadcrumb ol li:last-child a {
    color: rgba(50, 50, 50, 0.75);
    pointer-events: none;
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
}

.hero-text h1 {
    font-size: 2.1rem;
    margin: 0 0 0.75rem;
}

.hero-text p {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(107, 140, 66, 0.25);
}

.btn-primary:hover {
    background-color: #587334;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(107, 140, 66, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border-soft);
}

.btn-ghost:hover {
    background-color: var(--accent-soft);
}

.hero-badge {
    align-self: center;
    justify-self: end;
    display: inline-flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: radial-gradient(circle at top left, #edf3e4, #ffffff);
    border: 1px solid var(--border-soft);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-badge span {
    position: relative;
    padding-left: 1.1rem;
}

.hero-badge span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background-color: var(--accent);
}

.highlights {
    margin-top: 1.5rem;
}

.highlights>h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.highlight-card {
    background-color: #ffffff;
    border-radius: var(--radius-base);
    padding: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

.highlight-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.highlight-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-footer);
    color: #f4f3ef;
    margin-top: 2.5rem;
    padding-top: 2.2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 1.75rem;
    padding-bottom: 1.6rem;
}

.footer-col h4 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col p,
.footer-col li,
.footer-col a {
    font-size: 0.86rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    color: #f4f3ef;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    background-color: var(--bg-footer-alt);
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #c5c3bd;
}

.footer-note {
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    :root {
        --header-height: 90px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.6rem 15px;
    }

    .brand-text {
        /* display: none; */
        /* simplificar header en móvil, opcional */
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .main-nav {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.4rem;
        padding: 0.35rem 0.6rem;
    }

    .nav-link {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .breadcrumb-fixed {
        top: calc(var(--header-height) - 30px);
        padding: 0.5rem 0.25rem;
    }

    .breadcrumb {
        font-size: 0.78rem;
    }

    .breadcrumb ol {
        gap: 0.25rem;
    }

    .site-main {
        padding-top: calc(var(--header-height));
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.2rem;
        border-radius: 14px;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-actions {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .hero-badge {
        justify-self: flex-start;
        padding: 0.8rem 1rem;
        font-size: 0.75rem;
    }

    .highlights-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   HAMBURGER BUTTON (solo móvil)
============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: 0px;
    top: 15px;
}
.hamburger.active {
    display: none
}

.hamburger span {
    display: block;
    width: 6px;
    height: 6px;
    background: #6b8c42;
    border-radius: 6px;
    transition: 0.25s ease;
}
/* Estados al abrir */
.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mostrar hamburguesa en móvil */
@media (max-width: 800px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        /* Menú desktop oculto en móvil */
    }
}

/* ============================================
   OFFCANVAS MENU (Glassmorphism)
============================================ */
.offcanvas {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(16px) saturate(180%) contrast(90%);
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    padding: 1.8rem 1.3rem;
    transition: left 0.35s ease;
    z-index: 1000;
}

.offcanvas {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    padding: 1.8rem 1.3rem;
    transition: left 0.35s ease;
    z-index: 1000;

    /* Fondo glass base (se suma al SVG) */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(180%) contrast(90%);
    -webkit-backdrop-filter: blur(16px) saturate(180%) contrast(90%);
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.35);

    overflow: hidden;
    /* para que el SVG no se salga */
}

/* Estado abierto */
.offcanvas.open {
    left: 0;
}

/* SVG de fondo "cristal" */
.offcanvas-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* detrás de todo */
    pointer-events: none;
}

/* Aseguramos que el contenido esté por encima del SVG */
.offcanvas-close,
.offcanvas-menu {
    position: relative;
    z-index: 1;
}

/* Estado abierto */
.offcanvas.open {
    left: 0;
    width: 100%;
}

/* Botón cerrar */
.offcanvas-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    margin-bottom: 1.5rem;
    color: #333;
    position: absolute;
    right: 10px;
    top: 14px;
}

/* Lista del menú */
.offcanvas-menu {
    list-style: none;
    padding: 40px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offcanvas-menu a {
    text-decoration: none;
    font-size: 1.05rem;
    color: var(--text-main);
    padding: 0.5rem 0.3rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.offcanvas-menu a:hover {
    background: rgba(0, 0, 0, 0.08);
}

.offcanvas-menu .cta {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 999px;
}

.offcanvas-menu .cta:hover {
    background: #587334;
}

/* CONTENEDOR PRINCIPAL */
.shop-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

/* SIDEBAR */
.shop-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filters-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.filter-box {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
}

.filter-box label {
    font-size: .9rem;
    margin-bottom: .3rem;
    font-weight: 600;
}

.filter-box select,
.filter-box input {
    padding: .55rem .75rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}

.filter-btn {
    width: 100%;
    padding: .8rem;
    margin-top: .5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.filter-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* CONTENIDO DERECHA */
.shop-content {}

/* HEADER */
.shop-header {
    margin-bottom: 2rem;
}

.shop-title {
    font-size: 2rem;
    font-weight: 700;
}

.shop-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* GRID PRODUCTOS */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-info {
    padding: 1rem 1.2rem;
}

.product-name a {
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--text-main);
}

.product-excerpt {
    font-size: .9rem;
    color: var(--text-muted);
    margin: .5rem 0 .9rem;
    min-height: 55px;
}

.badge {
    background: var(--accent-soft);
    padding: .3rem .6rem;
    color: var(--accent);
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 600;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.product-btn {
    padding: .45rem .9rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.product-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .shop-container {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: relative;
        top: 0;
    }
}

/* RANGO DE PRECIOS */
.range-wrapper {
    padding: .6rem 0 1rem;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .9rem;
}

.range-slider {
    position: relative;
    height: 32px;
}

.range-slider input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    background: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--border-soft);
}

.price-range {
    margin: .8rem 0 1rem;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.slider {
    position: relative;
    height: 32px;
}

.slider input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: none;
    height: 8px;
    margin: 0;
}

.slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    appearance: none;
}

.slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.slider .progress {
    position: absolute;
    height: 6px;
    background: var(--accent);
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .3rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    font-size: .95rem;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}


.sort-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    gap: .5rem;
    align-items: center;
}

.sort-box select {
    padding: .5rem .8rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
}



.category-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.breadcrumb {
    font-size: .9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

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

.category-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.2rem;
}

.category-title {
    font-size: 2.4rem;
    font-weight: 700;
}

.category-description {
    margin-top: .6rem;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.category-header-image img {
    max-width: 260px;
    border-radius: 16px;
}

.category-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.category-sidebar {
    background: #fff;
    padding: 1.2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li {
    margin-bottom: .35rem;
}

.category-filter-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem .6rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
}

.category-filter-list li.active a {
    background: var(--accent-soft);
    font-weight: 600;
}

.category-filter-list .count {
    font-size: .85rem;
    color: var(--text-muted);
}

.category-content {
    min-width: 0;
}

.category-toolbar {
    margin-bottom: 1rem;
}

.results-count {
    font-size: .95rem;
    color: var(--text-muted);
}

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

    .category-sidebar {
        order: 2;
    }

    .category-header {
        grid-template-columns: 1fr;
    }
}

.product-page {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: .9rem;
    margin-bottom: .8rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

/* Header */
.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.badge-cbd-big {
    background: var(--accent);
    color: #fff;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-weight: 700;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .4rem;
}

.stars {
    display: flex;
    gap: .05rem;
}

.star {
    font-size: 1rem;
    color: #ccc;
}

.star.filled {
    color: #f4b400;
}

.rating-value {
    font-weight: 600;
}

.rating-count {
    font-size: .9rem;
    color: var(--text-muted);
}

/* Grid principal */
.product-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 1.8rem;
}

/* Galería */
.product-main-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.product-main-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .8rem;
}

.product-thumbnails .thumb {
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.product-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
}

/* Panel derecho */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-price-box {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.product-price.consultar {
    font-size: 1.4rem;
}

.product-stock {
    font-size: .95rem;
    font-weight: 600;
}

.in-stock {
    color: #2f7a31;
}

.out-stock {
    color: #b32020;
}

.product-sku {
    font-size: .85rem;
    color: var(--text-muted);
}

/* Excerpt */
.product-excerpt {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Acciones */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qty-selector label {
    font-size: .9rem;
    margin-bottom: .2rem;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #f2f2f2;
    padding: .4rem .8rem;
    cursor: pointer;
    font-size: 1.1rem;
}

.qty-controls input {
    width: 50px;
    border: none;
    text-align: center;
    font-size: 1rem;
    padding: .3rem 0;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.btn-add-cart {
    padding: .75rem 1.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-add-cart[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

.btn-add-cart:hover:not([disabled]) {
    background: var(--accent-soft);
    color: var(--accent);
}

.btn-wishlist {
    padding: .75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .95rem;
}

.btn-wishlist.active {
    background: #ffeec2;
    border-color: #f4b400;
}

.wishlist-icon {
    font-size: 1.1rem;
}

/* Meta */
.product-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .95rem;
}

.product-meta li {
    margin-bottom: .3rem;
}

.product-meta a {
    color: var(--accent);
    text-decoration: none;
}

/* Pills */
.product-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.pill {
    font-size: .8rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* Tabs */
.product-tabs {
    margin-top: 3rem;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    border-bottom: 1px solid var(--border-soft);
}

.tab-btn {
    border: none;
    background: transparent;
    padding: .6rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-color: var(--accent);
    color: var(--accent);
}

.tabs-content {
    padding-top: 1.2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-description {
    line-height: 1.7;
    font-size: 1.02rem;
}

.feature-list {
    list-style: disc;
    padding-left: 1.2rem;
}

/* Sticky bar móvil */
.product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    padding: .6rem .9rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.product-sticky-bar .sticky-info {
    display: flex;
    flex-direction: column;
}

.sticky-title {
    font-size: .9rem;
    font-weight: 600;
}

.sticky-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.sticky-add-cart {
    padding: .6rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Responsivo */
@media (max-width: 900px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .product-sticky-bar {
        display: flex;
    }

    .product-page {
        margin-bottom: 5rem;
    }
       
}


.cart-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .6rem;
    border-radius: 999px;
    background: var(--bg-header, #fff);
    color: var(--text-main, #222);
    text-decoration: none;
    font-weight: 600;
}

.cart-link:hover {
    background: var(--accent-soft, #e6efdb);
}

@media (max-width: 799px) {
    .cart-link {
            top: 10px;
            position: absolute;
            left: 0;
            right: 0;
            margin: auto;
            width: 0px;
        }
}
@media (max-width: 499px) {
    .brand-text {
           display: none;
        }
}

[data-cart-count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent, #6b8c42);
    border-radius: 999px;
    line-height: 1;
}

/* OVERLAY */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 90;
}

/* PANEL */
.mini-cart-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 90vw);
    height: 100%;
    background: #fff;
    box-shadow: -20px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

/* ESTADO ABIERTO */
.mini-cart-open .mini-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

.mini-cart-open .mini-cart-offcanvas {
    transform: translateX(0);
}

.mini-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mini-cart strong {
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-soft, #eee);
}

.mini-cart-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.mini-cart-list li {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .7rem;
    font-size: .9rem;
}

.mini-cart-total {
    padding: 1rem;
    font-weight: 700;
    border-top: 1px solid var(--border-soft, #eee);
}

.mini-cart .btn {
    margin: 1rem;
    padding: .7rem;
    text-align: center;
    background: var(--accent, #6b8c42);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

/* ESTADO VACÍO */
.mini-cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted, #6c7067);
}

.mini-cart-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .8;
}

.mini-cart-empty .empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #222);
    margin-bottom: .4rem;
}

.mini-cart-empty .empty-text {
    font-size: .9rem;
    margin-bottom: 1.2rem;
}

.mini-cart-empty .btn-outline {
    padding: .6rem 1.2rem;
    border-radius: 999px;
    border: 2px solid var(--accent, #6b8c42);
    color: var(--accent, #6b8c42);
    background: transparent;
    text-decoration: none;
    font-weight: 600;
}

.mini-cart-empty .btn-outline:hover {
    background: var(--accent-soft, #e6efdb);
}

/* ===============================
   SIDEBAR FILTROS – MOBILE FIRST
   =============================== */

.shop-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: .75rem;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(0,0,0,.06));
  font-size: .85rem;
}

/* Título */
.filters-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

/* Form */
.filters-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

/* Bloque */
.filter-box {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

/* Labels */
.filter-box label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted, #6c7067);
}

/* SELECT compacto */
.sort-box select {
  width: 100%;
  padding: .45rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft, #ddd);
  font-size: .85rem;
  background: #fff;
}

/* CHECKBOXES compactos */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
}

.checkbox-item input {
  accent-color: var(--accent, #6b8c42);
  transform: scale(.9);
}

/* PRECIO */
.price-range {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.price-values {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted, #6c7067);
}

/* SLIDER */
.slider {
  position: relative;
  height: 24px;
}

.slider input[type=range] {
    position: absolute;
    width: 100%;
    height: 26px;
    pointer-events: none;
    background: none;
    -webkit-appearance: none;
    margin-top: -5px;
}

.slider input[type=range]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--accent, #6b8c42);
  border-radius: 50%;
}

.slider .progress {
  position: absolute;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-soft, #d5e2c3);
  border-radius: 4px;
}


/* ===============================
   CONTACTO – NATURAL ORGANIC
   =============================== */

.contact-page {
    max-width: 1100px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.contact-header p {
    color: var(--text-muted, #6c7067);
    font-size: 1rem;
}

/* GRID */
.contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* INFO */
.contact-info {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0, 0, 0, .06));
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.info-card p {
    font-size: .9rem;
    color: var(--text-muted, #6c7067);
}

.info-card a {
    color: var(--accent, #6b8c42);
    text-decoration: none;
    font-weight: 600;
}

.info-card.subtle {
    background: var(--accent-soft, #d5e2c3);
    box-shadow: none;
}

/* FORM */
.contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(0, 0, 0, .06));
}

.contact-form {
    display: grid;
    gap: .9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.form-group label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted, #6c7067);
}

.form-group input,
.form-group textarea {
    border: 1px solid var(--border-soft, #e0ddd5);
    border-radius: 10px;
    padding: .6rem .7rem;
    font-size: .9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent, #6b8c42);
}

.form-group.checkbox label {
    font-size: .75rem;
    display: flex;
    gap: .4rem;
    align-items: flex-start;
}

.form-group.checkbox a {
    color: var(--accent, #6b8c42);
}

/* BOTÓN */
.btn-submit {
    margin-top: .6rem;
    padding: .75rem;
    border-radius: 999px;
    background: var(--accent, #6b8c42);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: #5c7c39;
}