/* ============================================================
   NeoTech GT — Shop Styles (Catalogo Publico)
   ============================================================ */

/* ---- HEADER / NAVBAR ---- */
.public-header,
.shop-header {
    background: transparent;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: none;
}
.public-header-shell {
    max-width: 1480px;
    margin: 0 auto;
    min-height: 92px;
    padding: var(--space-4) var(--space-6);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    position: relative;
}
.public-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
}
.public-compact-brand {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.94);
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.public-compact-brand img,
.public-compact-brand .public-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    object-fit: fill;
}
.public-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: inherit;
    text-decoration: none;
}
.public-brand-logo,
.public-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.95);
    object-fit: fill;
    padding: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.public-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 0;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}
.public-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.public-brand-copy strong {
    font-size: 1rem;
    line-height: 1.1;
    color: var(--color-gray-900);
    white-space: nowrap;
}
.public-brand-copy span {
    font-size: 11px;
    color: var(--color-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.public-nav-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    justify-self: center;
    padding: 14px 22px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 28px;
    box-shadow: 0 18px 48px rgba(15,23,42,0.08);
    transition: width var(--transition-base), max-width var(--transition-base), padding var(--transition-base), transform var(--transition-base);
}
.public-nav-desktop {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.public-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: var(--color-gray-700);
    font-weight: var(--font-semibold);
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.92);
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
}
.public-nav-pill-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.public-nav-pill-icon svg {
    width: 100%;
    height: 100%;
}
.public-nav-pill-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0;
    transition: max-width var(--transition-base), opacity var(--transition-fast), margin-left var(--transition-fast);
}
.public-nav-pill:hover {
    color: var(--color-primary);
    border-color: rgba(37,99,235,0.24);
    transform: translateY(-1px);
}
.public-nav-pill.is-active {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(37,99,235,0.24);
}
.public-nav-pill:not(.is-active) {
    max-width: 44px;
    min-width: 44px;
    padding-left: 14px;
    padding-right: 14px;
}
.public-nav-pill:hover {
    max-width: 160px;
}
.public-nav-pill:not(.is-active) .public-nav-pill-icon {
    color: var(--color-gray-500);
}
.public-nav-pill.is-active .public-nav-pill-label {
    max-width: 140px;
    opacity: 1;
    margin-left: 10px;
}
.public-nav-pill:hover .public-nav-pill-label {
    max-width: 140px;
    opacity: 1;
    margin-left: 10px;
}
.public-searchbar {
    position: relative;
    width: min(320px, 28vw);
    min-width: 220px;
}
.public-searchbar input {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(248,250,252,.9);
    padding: 0 16px 0 42px;
}
.public-searchbar input:focus {
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-ring);
}
.public-searchbar-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    color: var(--color-gray-500);
}
.public-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.public-toolbar-btn,
.public-cart-trigger,
.public-mobile-menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.94);
    color: var(--color-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15,23,42,0.05);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}
.public-toolbar-btn:hover,
.public-cart-trigger:hover,
.public-mobile-menu-btn:hover {
    color: var(--color-primary);
    border-color: rgba(37,99,235,0.24);
    transform: translateY(-1px);
}
.public-toolbar-btn svg,
.public-cart-trigger svg,
.public-mobile-menu-btn svg {
    width: 18px;
    height: 18px;
}
.public-mobile-menu-btn {
    display: none;
}
.public-cart-trigger .cart-badge,
.public-toolbar-cart-link .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 8px 16px rgba(239,68,68,.24);
}
.public-header.is-compact .public-header-shell {
    min-height: 78px;
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
}
.public-header.is-compact .public-branding {
    display: none;
}
.public-header.is-compact .public-compact-brand {
    display: inline-flex;
}
.public-header.is-compact .public-nav-shell {
    width: calc(100% - 176px);
    max-width: calc(100% - 176px);
    justify-self: center;
}
.public-header.is-compact .public-nav-pill {
    max-width: 160px;
}
.public-header.is-compact .public-nav-pill .public-nav-pill-label {
    max-width: 140px;
    opacity: 1;
    margin-left: 10px;
}
.public-header.is-compact .public-nav-pill .public-nav-pill-icon {
    color: currentColor;
}
.public-header.is-compact .public-toolbar {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}
.public-header.is-compact .public-toolbar .public-toolbar-btn:not(.public-toolbar-cart-link) {
    display: none;
}

/* legacy aliases kept for existing blocks */
.shop-nav { display: contents; }
.shop-brand { display: contents; }
.shop-main-nav { display: contents; }
.shop-search { display: contents; }
.shop-actions { display: contents; }
.shop-mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.24);
    background: rgba(255,255,255,0.94);
    color: var(--color-gray-700);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.shop-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--color-white);
    z-index: 1101;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow-2xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.shop-mobile-menu.open {
    transform: translateX(0);
}
.shop-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
    z-index: 1100;
}
.shop-mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.shop-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.shop-mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.shop-mobile-menu-search {
    position: relative;
}
.shop-mobile-menu-search input {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    padding: 0 16px 0 42px;
}
.shop-mobile-menu-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    color: var(--color-gray-500);
}
.shop-mobile-menu-nav a {
    text-decoration: none;
    color: var(--color-gray-800);
    font-weight: var(--font-semibold);
    padding: 12px 14px;
    border-radius: var(--radius-lg);
}
.shop-mobile-menu-nav a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.cart-trigger {
    position: relative; padding: var(--space-2); border-radius: var(--radius-full);
    color: var(--color-gray-700); cursor: pointer; transition: background var(--transition-fast);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
}
.cart-trigger:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.cart-trigger .cart-badge {
    position: absolute; top: -4px; right: -4px; background: var(--color-danger); color: var(--color-white);
    font-size: 10px; font-weight: var(--font-bold); height: 18px; min-width: 18px;
    border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---- LAYOUT PRINCIPAL ---- */
.shop-layout {
    display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8);
    max-width: var(--container-wide); margin: var(--space-8) auto; padding: 0 var(--space-6);
    min-height: calc(100vh - 200px);
}

/* ---- SIDEBAR FILTROS ---- */
.shop-sidebar { position: sticky; top: 100px; height: fit-content; }
.filter-section { margin-bottom: var(--space-6); padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-gray-200); }
.filter-section h4 { font-size: var(--text-sm); font-weight: var(--font-bold); text-transform: uppercase; color: var(--color-gray-900); margin-bottom: var(--space-4); }
.filter-accordion {
    overflow: hidden;
}
.filter-accordion-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
    margin-bottom: var(--space-4);
}
.filter-accordion-summary::-webkit-details-marker {
    display: none;
}
.filter-accordion-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.filter-accordion-summary h4 {
    margin-bottom: 0;
}
.filter-accordion-current {
    font-size: 12px;
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.filter-accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.filter-accordion[open] .filter-accordion-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
    border-color: rgba(37,99,235,0.24);
}
.filter-accordion-body {
    padding-right: 2px;
}
.category-list { display: flex; flex-direction: column; gap: var(--space-2); }
.category-list-scroll {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 6px;
}
.category-list-scroll::-webkit-scrollbar {
    width: 6px;
}
.category-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.45);
    border-radius: 999px;
}
.category-list a { color: var(--color-gray-600); font-size: var(--text-sm); transition: color var(--transition-fast); }
.category-list a:hover { color: var(--color-primary); }
.category-list a.active { color: var(--color-primary); font-weight: var(--font-medium); }

/* ---- PRODUCT GRID ---- */
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-6); margin-bottom: var(--space-8);
}
.catalog-empty-state {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    text-align: center;
    padding: var(--space-10);
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.catalog-empty-icon {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(37,99,235,0.04));
    color: var(--color-primary);
    animation: catalogEmptyFloat 2.8s ease-in-out infinite;
}
.catalog-empty-state h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.catalog-empty-state p {
    margin: 0;
    max-width: 420px;
    color: var(--color-gray-500);
    line-height: 1.7;
}
.catalog-empty-state .btn {
    margin-top: var(--space-2);
}
@keyframes catalogEmptyFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 12px 30px rgba(37,99,235,0.10);
    }
    50% {
        transform: translateY(-6px);
        box-shadow: 0 20px 38px rgba(37,99,235,0.16);
    }
}

.product-card {
    background: var(--color-white); border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-base);
    display: flex; flex-direction: column; position: relative;
}
.product-card:hover { border-color: var(--color-gray-300); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-img {
    aspect-ratio: 1; background: var(--color-gray-50); position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-img img { object-fit: fill; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }

.product-info { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: var(--text-xs); color: var(--color-gray-500); margin-bottom: var(--space-1); text-transform: uppercase; }
.product-name { font-size: var(--text-base); font-weight: var(--font-medium); color: var(--color-gray-900); margin-bottom: var(--space-2); line-height: 1.3; }
.product-price { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; margin-bottom: var(--space-4); }
.price-current { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--color-gray-900); }
.price-old { font-size: var(--text-sm); color: var(--color-gray-400); text-decoration: line-through; }

.btn-add-cart { width: 100%; justify-content: center; }

/* ---- PRODUCT DETAIL ---- */
.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(420px, 1fr);
    gap: var(--space-10);
    align-items: start;
    max-width: min(1240px, calc(100vw - 48px));
    margin: var(--space-8) auto;
    padding: 0 var(--space-6);
}
.product-detail-layout.has-related-products {
    max-width: min(1480px, calc(100vw - 48px));
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.1fr) 300px;
    align-items: start;
}
.pd-gallery,
.pd-info,
.pd-related {
    min-width: 0;
}
.pd-gallery {
    width: 100%;
    max-width: 520px;
}
.gallery-main {
    aspect-ratio: 1; background: var(--color-gray-50); border-radius: var(--radius-xl);
    overflow: hidden; margin-bottom: var(--space-4); border: 1px solid var(--color-gray-200);
    max-height: 460px;
    position: relative;
    outline: none;
}
.gallery-main img { width: 100%; height: 100%; object-fit: fill; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.75);
    background: rgba(15, 23, 42, .62);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    z-index: 2;
    backdrop-filter: blur(8px);
}
.gallery-nav svg {
    width: 18px;
    height: 18px;
}
.gallery-nav:hover {
    background: rgba(15, 23, 42, .82);
}
.gallery-main:hover .gallery-nav,
.gallery-main:focus .gallery-nav,
.gallery-main:focus-within .gallery-nav {
    opacity: 1;
    pointer-events: auto;
}
.gallery-nav-prev {
    left: 16px;
}
.gallery-nav-next {
    right: 16px;
}
.gallery-thumbs { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2); }
.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,.45);
    border-radius: 999px;
}
.thumb-item {
    width: 80px; height: 80px; border-radius: var(--radius-md); border: 2px solid transparent;
    overflow: hidden; cursor: pointer; transition: border-color var(--transition-fast);
    flex: 0 0 auto;
}
.thumb-item.active { border-color: var(--color-primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: fill; }

.pd-info h1 { font-size: var(--text-3xl); line-height: 1.2; margin-bottom: var(--space-4); }
.pd-meta { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); color: var(--color-gray-500); font-size: var(--text-sm); }
.pd-price { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-6); }
.pd-price .current { font-size: 2.5rem; font-weight: var(--font-extrabold); color: var(--color-gray-900); }
.pd-price .old { font-size: var(--text-lg); color: var(--color-gray-400); text-decoration: line-through; }

.pd-action-bar {
    display: flex; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-200);
}
.pd-related {
    position: sticky;
    top: 96px;
}
.pd-related-card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}
.pd-related-card h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}
.pd-related-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.pd-related-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-2);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
}
.pd-related-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.pd-related-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-gray-100);
}
.pd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-related-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-gray-900);
    line-height: 1.35;
    margin-bottom: 4px;
}
.pd-related-price {
    color: var(--color-primary);
    font-weight: var(--font-bold);
}
.qty-selector { display: flex; align-items: center; border: 1px solid var(--color-gray-300); border-radius: var(--radius-md); overflow: hidden; }
.qty-btn { width: 40px; height: 44px; background: var(--color-gray-50); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-btn:hover { background: var(--color-gray-200); }
.qty-input { width: 50px; height: 44px; text-align: center; border: none; border-left: 1px solid var(--color-gray-300); border-right: 1px solid var(--color-gray-300); font-weight: var(--font-bold); }

/* ---- SIDE CART (DRAWER) ---- */
.cart-drawer-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5);
    z-index: 1000; opacity: 0; visibility: hidden; transition: all var(--transition-base);
}
.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw;
    background: var(--color-white); z-index: 1001; transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column; box-shadow: var(--shadow-2xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-backdrop.active { opacity: 1; visibility: visible; }

.cart-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-gray-200); }
.cart-header h3 { font-size: var(--text-lg); margin: 0; }
.cart-body { flex: 1; overflow-y: auto; padding: var(--space-4); }
.cart-footer { padding: var(--space-6); border-top: 1px solid var(--color-gray-200); background: var(--color-gray-50); }

.cart-item { display: flex; gap: var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--color-gray-100); }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; background: transparent; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: fill; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: var(--font-medium); font-size: var(--text-sm); line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { font-weight: var(--font-bold); color: var(--color-primary); font-size: var(--text-sm); }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ---- HOME REDESIGN ---- */
.shop-home {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.95), rgba(255,255,255,0.92) 25%, rgba(248,250,252,0.95) 75%),
        linear-gradient(180deg, var(--color-primary-soft) 0%, rgba(255,255,255,0) 18%);
    padding: var(--space-8) 0 var(--space-16);
}
.shop-home-shell {
    max-width: 1160px;
    padding: 0 var(--space-6);
}
.home-section {
    margin-top: var(--space-12);
    width: 100%;
}
.home-section-bleed {
    margin-left: 0;
    margin-right: 0;
    border-left: 1px solid var(--color-gray-200);
    border-right: 1px solid var(--color-gray-200);
    border-radius: 28px;
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}
.home-section-soft {
    background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(255,255,255,1));
    border: 1px solid var(--color-gray-200);
    border-radius: 28px;
    padding: var(--space-8);
}
.home-section-tinted {
    background: linear-gradient(180deg, var(--color-primary-soft), rgba(255,255,255,1));
}
.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.home-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.home-kicker-light {
    background: rgba(255,255,255,0.18);
    color: var(--color-white);
}
.home-section-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-semibold);
}
.home-scroll-row {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}
.home-scroll-row::-webkit-scrollbar {
    display: none;
}
.home-scroll-row.dragging {
    cursor: grabbing;
    user-select: none;
}
.home-slider-shell {
    position: relative;
}
.home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--color-gray-200);
    background: rgba(255,255,255,.96);
    color: var(--color-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.home-slider-arrow.prev { left: -6px; }
.home-slider-arrow.next { right: -6px; }
.home-slider-shell:hover .home-slider-arrow,
.home-slider-shell:focus-within .home-slider-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.home-slider-arrow:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.home-scroll-row > * {
    flex: 0 0 auto;
}
.home-chip-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}
.home-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: var(--text-sm);
}
.home-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
    gap: var(--space-5);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}
.home-hero-slider,
.home-side-promo-card,
.home-coupon-strip,
.home-category-card,
.home-product-card,
.home-spotlight-card,
.home-mini-product-card,
.home-brand-card,
.home-benefit-stat,
.home-faq-item,
.home-promo-tile {
    border: 1px solid var(--color-gray-200);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.home-hero-slider {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}
.home-hero-slide,
.home-hero-slide-link {
    display: block;
    height: 100%;
}
.home-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.home-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}
.home-hero-dot.active {
    width: 24px;
    background: var(--color-white);
}
.home-side-promo-card {
    height: 100%;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.home-side-promo-card.has-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--side-promo-bg);
    background-size: cover;
    background-position: center;
    filter: blur(24px);
    transform: scale(1.1);
    opacity: .92;
    z-index: -2;
}
.home-side-promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.88));
    z-index: -1;
}
.home-side-promo-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
}
.home-side-promo-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 2.6;
    background: transparent;
}
.home-side-promo-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.home-side-promo-card h3 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0;
}
.home-side-promo-card p {
    color: var(--color-gray-600);
    margin: 0;
    line-height: 1.6;
}
.home-side-promo-cta {
    margin-top: auto;
    width: 100%;
}
.home-side-promo-fallback {
    justify-content: center;
}

.home-category-grid {
    display: contents;
}
.home-category-card {
    padding: var(--space-4);
    display: grid;
    grid-template-columns: 1fr 96px;
    gap: var(--space-3);
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 290px;
    min-height: 132px;
}
.home-category-copy h3 {
    margin: 0 0 6px;
    font-size: var(--text-lg);
}
.home-category-copy p {
    margin: 0 0 var(--space-3);
    color: var(--color-gray-500);
}
.home-category-cta {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}
.home-category-media {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
}
.home-category-media img,
.home-benefits-media img,
.home-promo-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.home-category-media-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.home-products-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
    gap: var(--space-4);
    align-items: stretch;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}
.home-products-spotlight-grid.single-spotlight {
    grid-template-columns: 1fr;
}
.home-products-spotlight-grid.single-spotlight .home-spotlight-card {
    max-width: 440px;
}
.home-products-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    align-content: start;
    min-width: 0;
}
.home-products-list-stack .home-product-card {
    width: 100%;
    min-width: 0;
}
.home-product-card,
.home-mini-product-card {
    overflow: hidden;
}
.home-product-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: var(--space-3);
    padding: var(--space-3);
    min-height: 112px;
}
.home-product-thumb,
.home-mini-product-media,
.home-spotlight-media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: transparent;
}
.home-product-thumb {
    height: 86px;
}
.home-product-thumb img,
.home-mini-product-media img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.home-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 16px;
}
.home-product-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
}
.home-product-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.home-product-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}
.home-product-name,
.home-mini-product-name,
.home-spotlight-copy h3 a {
    text-decoration: none;
    color: var(--color-gray-900);
    font-weight: var(--font-semibold);
    line-height: 1.4;
}
.home-product-name {
    font-size: .98rem;
}
.home-product-price-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.home-product-price-row strong {
    color: var(--color-primary);
}
.home-product-price-row span {
    color: var(--color-gray-400);
    text-decoration: line-through;
    font-size: var(--text-sm);
}
.home-spotlight-card {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-width: 0;
}
.home-spotlight-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}
.home-spotlight-media {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: 240px;
    margin-bottom: var(--space-3);
}
.home-spotlight-copy h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-spotlight-brand {
    color: var(--color-gray-500);
    margin-bottom: 6px;
    font-size: var(--text-sm);
}
.home-spotlight-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}
.home-spotlight-price strong {
    color: var(--color-primary);
    font-size: 1.55rem;
}
.home-spotlight-price span {
    color: var(--color-gray-400);
    text-decoration: line-through;
    font-size: var(--text-sm);
}
.home-spotlight-description {
    color: var(--color-gray-600);
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-mini-product-grid {
    display: contents;
}
.home-mini-product-card {
    padding: var(--space-3);
    width: 220px;
}
.home-mini-product-media {
    aspect-ratio: 1 / 1;
    margin-bottom: var(--space-3);
}
.home-mini-product-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-mini-product-copy strong {
    color: var(--color-primary);
}

.home-coupon-strip {
    margin-top: var(--space-12);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 32px 34px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(220px, auto);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.home-coupon-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.10), transparent 28%);
    pointer-events: none;
    z-index: -1;
}
.home-coupon-strip::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}
.home-coupon-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    min-width: 0;
}
.home-coupon-code {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-1);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    font-weight: var(--font-semibold);
    width: fit-content;
    flex-wrap: wrap;
}
.home-coupon-code strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: var(--color-white);
    letter-spacing: .02em;
}
.home-coupon-code span {
    color: rgba(255,255,255,.92);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}
.home-coupon-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    min-width: 220px;
}
.home-coupon-meta {
    margin: 0;
    font-size: var(--text-sm);
    opacity: .96;
    font-weight: var(--font-semibold);
    text-align: right;
}
.home-coupon-strip h2 {
    margin: 0;
    line-height: 1.08;
    max-width: 14ch;
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--color-white);
    text-wrap: balance;
}
.home-coupon-strip p {
    margin: 0;
    max-width: 54ch;
    opacity: .9;
    line-height: 1.7;
    color: rgba(255,255,255,.88);
}
.home-coupon-button {
    border-color: var(--color-white);
    color: var(--color-white);
    background: rgba(255,255,255,.08);
    min-width: 152px;
    justify-content: center;
    border-radius: 14px;
    min-height: 48px;
    font-weight: var(--font-semibold);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
}
.home-coupon-button:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.home-brands-grid {
    display: contents;
}
.home-brand-card {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    text-decoration: none;
    color: var(--color-gray-700);
    width: 180px;
    background: var(--color-white);
}
.home-brand-card img {
    width: 100%;
    max-width: 130px;
    height: 54px;
    object-fit: fill;
    transition: transform .18s ease, filter .18s ease;
}
.home-brand-card span {
    font-weight: var(--font-semibold);
    text-align: center;
}
.home-brand-card:hover img {
    transform: translateY(-2px) scale(1.03);
    filter: saturate(1.08);
}

.home-shipping-grid {
    margin-top: var(--space-12);
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: var(--space-4);
}
.home-shipping-image-card {
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--color-gray-200);
    display: block;
}
.home-shipping-image-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
.home-shipping-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.home-shipping-card {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    background: var(--color-white);
}
.home-shipping-card h3 {
    margin-bottom: var(--space-2);
}
.home-shipping-card p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-600);
    line-height: 1.6;
}
.home-shipping-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.home-shipping-meta strong {
    color: var(--color-primary);
}

.home-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: 0 var(--space-6);
}

.home-faq-list {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.home-best-sellers-section .home-section-head,
.home-best-sellers-section .home-chip-row,
.home-faq-section .home-section-head,
.home-faq-section .home-faq-list {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.blog-index-shell,
.blog-post-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6) var(--space-10);
}

.blog-index-hero {
    background: linear-gradient(135deg, #0f172a, #172033);
    color: var(--color-white);
    border-radius: 28px;
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
    margin-bottom: var(--space-8);
}

.blog-index-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.blog-index-hero p {
    color: rgba(255,255,255,0.72);
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-empty-state {
    text-align: center;
    padding: var(--space-12) 0;
    color: var(--color-gray-500);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.blog-posts-grid.single-post {
    grid-template-columns: minmax(320px, 560px);
    justify-content: center;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-post-card.compact .blog-post-card-media.compact {
    aspect-ratio: 16/10;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-post-card-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--color-gray-100);
}

.blog-post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-post-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    background: var(--color-gray-100);
}

.blog-post-card-body {
    display: grid;
    grid-template-rows: auto auto minmax(54px, auto) auto;
    gap: var(--space-3);
    padding: var(--space-4);
    flex: 1;
    min-height: 0;
}

.blog-post-card-category,
.blog-index-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37,99,235,0.1);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: var(--font-bold);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-post-card h2,
.blog-post-card h4,
.blog-post-header h1,
.blog-post-sidebar h3 {
    margin: 0;
}

.blog-post-card h2 {
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-card h2 a,
.blog-post-recent-copy h4 a {
    color: inherit;
    text-decoration: none;
}

.blog-post-card p {
    margin: 0;
    color: var(--color-gray-600);
    line-height: 1.6;
    min-height: 54px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-card-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-gray-100);
    color: var(--color-gray-500);
    font-size: var(--text-xs);
}

.blog-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
}

.blog-post-shell {
    display: grid;
    grid-template-columns: minmax(0, 760px) 280px;
    gap: var(--space-8);
    align-items: start;
    justify-content: center;
}

.blog-post-main {
    min-width: 0;
}

.blog-post-main.centered {
    max-width: 760px;
    width: 100%;
    margin: 0;
}

.blog-post-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.blog-post-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.blog-post-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.blog-post-header .blog-index-kicker {
    margin: 0 auto var(--space-4);
}

.blog-post-header h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.blog-post-excerpt {
    max-width: 760px;
    margin: 0 auto var(--space-6);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-gray-600);
}

.blog-post-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: var(--color-gray-500);
}

.blog-post-author strong {
    display: block;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.blog-post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--color-gray-200);
    color: var(--color-gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
}

.blog-post-featured-image {
    margin-bottom: var(--space-8);
    border-radius: 24px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 10;
}

.blog-post-featured-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    background: transparent;
}

.blog-post-featured-image.compact {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.blog-post-content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--color-gray-800);
}

.blog-post-footer {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

.blog-post-sidebar {
    position: sticky;
    top: 110px;
    width: 100%;
}

.blog-post-sidebar-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.blog-post-sidebar-head {
    margin-bottom: var(--space-4);
}

.blog-post-sidebar-head .blog-index-kicker {
    margin-bottom: var(--space-3);
}

.blog-post-recent-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.blog-post-recent-item-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
    padding: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    background: var(--color-white);
}

.blog-post-recent-item-card h4 {
    font-size: .98rem;
    line-height: 1.35;
}

.blog-post-recent-section {
    margin-top: var(--space-10);
}

.blog-post-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.blog-post-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.blog-post-recent-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--space-3);
    align-items: center;
}

.blog-post-recent-media {
    display: block;
    aspect-ratio: 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--color-gray-100);
}

.blog-post-recent-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-recent-copy {
    min-width: 0;
}

.blog-post-recent-copy span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: var(--font-bold);
    text-transform: uppercase;
}

.blog-post-recent-copy h4 {
    font-size: var(--text-base);
    line-height: 1.5;
}
.home-faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5);
    cursor: pointer;
    font-weight: var(--font-semibold);
}
.home-faq-item summary::-webkit-details-marker {
    display: none;
}
.home-faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--color-gray-600);
    line-height: 1.7;
}
.home-faq-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
}
.home-faq-item[open] .home-faq-icon {
    transform: rotate(45deg);
}

.home-placeholder-card {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-7);
    background: var(--color-white);
}

/* ---- SHOP FOOTER REFRESH ---- */
.shop-footer {
    background: #0f2730;
    color: rgba(255,255,255,.78);
    padding: calc(var(--space-14) + 28px) 0 calc(var(--space-8) + 8px);
    margin-top: var(--space-16);
    border-radius: 32px 32px 0 0;
}
.shop-footer-shell {
    max-width: 1280px;
    padding: calc(var(--space-6) + 10px) var(--space-4) var(--space-4);
}
.shop-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}
.shop-footer h3,
.shop-footer h4 {
    color: var(--color-white);
}
.shop-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.shop-footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: fill;
    border-radius: 12px;
    background: transparent;
    padding: 0;
}
.shop-footer a {
    color: inherit;
    text-decoration: none;
}
.shop-footer a:hover {
    color: var(--color-white);
}
.shop-footer-contact {
    margin-bottom: var(--space-2);
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55;
}
.shop-footer-contact svg {
    flex: 0 0 auto;
    margin-top: 3px;
}
.shop-footer-contact span {
    display: inline;
}
.shop-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.shop-footer-newsletter {
    margin-top: var(--space-5);
    display: flex;
    gap: var(--space-3);
}
.shop-footer-payments {
    margin-top: var(--space-5);
}
.shop-footer-payments span {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255,255,255,.65);
    margin-bottom: var(--space-2);
}
.shop-footer-payments img {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.shop-footer-newsletter input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,.14);
    padding: 14px 18px;
}
.shop-footer-newsletter input::placeholder {
    color: rgba(255,255,255,.45);
}
.shop-footer-legal {
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
}
.cart-summary-sticky {
    position: sticky;
    top: 104px;
}
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-8);
    align-items: start;
}
.cart-page-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-100);
}
.cart-page-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.page-btn.is-ellipsis {
    pointer-events: none;
    color: var(--color-gray-400);
    background: transparent;
    border-color: transparent;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 200px 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; gap: var(--space-8); }
    .product-detail-layout.has-related-products { grid-template-columns: 1fr; }
    .pd-related { position: static; }
    .blog-post-shell { grid-template-columns: 1fr; }
    .blog-post-sidebar { position: static; }
    .cart-summary-sticky { position: static; }
    .home-hero-grid,
    .home-products-spotlight-grid,
    .home-shipping-grid,
    .shop-footer-grid {
        grid-template-columns: 1fr;
    }
    .home-products-list-stack .home-product-card { width: 100%; }
    .home-spotlight-card {
        max-width: 100%;
        justify-self: stretch;
    }
    .home-section-bleed {
        margin-left: 0;
        margin-right: 0;
        border-left: 1px solid var(--color-gray-200);
        border-right: 1px solid var(--color-gray-200);
        border-radius: 28px;
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; } /* En movil iria en un modal/drawer */
    .shop-home {
        padding-top: 18px;
        padding-bottom: var(--space-9);
    }
    .shop-home-shell,
    .blog-index-shell,
    .blog-post-shell,
    .product-detail-layout,
    .shop-layout,
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .public-header-shell {
        position: relative;
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(15,23,42,0.08);
        border-radius: 22px;
        box-shadow: 0 14px 32px rgba(15,23,42,0.08);
    }
    .public-nav-shell { display: none; }
    .public-mobile-menu-btn { display: inline-flex; position: relative; z-index: 2; }
    .public-branding { min-width: 40px; gap: 0; }
    .public-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        gap: 0;
        z-index: 1;
    }
    .public-brand-logo,
    .public-brand-mark,
    .public-mobile-menu-btn,
    .public-toolbar-btn,
    .public-cart-trigger {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    .public-brand-copy { display: none; }
    .public-compact-brand { display: none !important; }
    .public-toolbar { gap: 10px; margin-left: auto; }
    .public-header.is-compact .public-branding { display: flex; }
    .public-header.is-compact .public-header-shell { justify-content: space-between; }
    .public-header.is-compact .public-nav-shell { display: none; }
    .public-header.is-compact .public-toolbar { position: static; transform: none; }
    .public-header.is-compact .public-toolbar .public-toolbar-btn { display: inline-flex; }
    .gallery-main { aspect-ratio: 4/3; }
    .home-section {
        margin-top: 18px;
    }
    .home-section-soft {
        padding: 16px 14px;
        border-radius: 22px;
    }
    .home-section-bleed {
        padding-left: 14px;
        padding-right: 14px;
    }
    .home-section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 14px;
    }
    .home-section-head h2 {
        font-size: 1.15rem;
        line-height: 1.15;
        margin-top: 8px;
    }
    .home-section-link {
        align-self: start;
        justify-self: end;
        text-align: right;
        font-size: .95rem;
        line-height: 1.15;
    }
    .home-hero-grid {
        gap: 14px;
    }
    .home-hero-slider {
        min-height: 0;
        aspect-ratio: 4 / 4.3;
        max-height: 420px;
        border-radius: 22px;
    }
    .home-hero-slide img {
        object-fit: cover;
        object-position: center;
        background: transparent;
    }
    .home-side-promo-card {
        padding: 14px;
    }
    .home-side-promo-media {
        aspect-ratio: 16 / 9;
    }
    .home-product-card,
    .home-category-card,
    .home-coupon-strip,
    .shop-footer-legal,
    .shop-footer-newsletter {
        grid-template-columns: 1fr;
        display: grid;
    }
    .home-best-sellers-section .home-chip-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 2px 6px;
        margin: 0 0 14px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .home-best-sellers-section .home-chip-row::-webkit-scrollbar {
        display: none;
    }
    .home-best-sellers-section .home-chip {
        flex: 0 0 auto;
    }
    .home-products-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .home-spotlight-card {
        padding: 14px;
    }
    .home-spotlight-media {
        aspect-ratio: 16 / 11;
        min-height: 180px;
        max-height: 200px;
    }
    .home-spotlight-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        padding: 10px;
    }
    .home-spotlight-copy h3 {
        font-size: 1rem;
        line-height: 1.22;
    }
    .home-spotlight-price strong {
        font-size: 1.5rem;
    }
    .home-spotlight-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .home-products-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-items: stretch;
    }
    .home-products-list::-webkit-scrollbar {
        display: none;
    }
    .home-product-card {
        flex: 0 0 228px;
        width: 228px !important;
        min-height: 0;
        grid-template-columns: 70px 1fr;
        padding: 12px;
        gap: 12px;
    }
    .home-product-thumb {
        height: 70px;
        width: 70px;
        align-self: center;
    }
    .home-product-name {
        font-size: .9rem;
        line-height: 1.28;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .home-product-price-row strong {
        font-size: .95rem;
    }
    .home-coupon-strip {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 14px;
        padding: 20px 16px;
        width: 100%;
        margin-top: var(--space-8);
        border-radius: 24px;
    }
    .home-coupon-copy {
        gap: 12px;
    }
    .home-coupon-strip h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
        max-width: none;
        line-height: 1.08;
    }
    .home-coupon-strip p {
        max-width: none;
        font-size: 12px;
        line-height: 1.42;
    }
    .home-coupon-code {
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding: 10px 10px;
    }
    .home-coupon-code strong,
    .home-coupon-code span {
        font-size: .88rem;
    }
    .home-coupon-actions {
        min-width: 0;
        align-items: stretch;
        gap: 10px;
    }
    .home-coupon-meta {
        text-align: center;
    }
    .home-coupon-button {
        width: 100%;
        min-height: 46px;
    }
    .home-slider-arrow {
        width: 34px;
        height: 34px;
    }
    .shop-footer-newsletter {
        gap: var(--space-2);
    }
    .home-category-card,
    .home-mini-product-card,
    .home-brand-card {
        width: 240px;
    }
    .home-category-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        text-align: center;
        min-height: 250px;
        padding: 18px 14px;
        gap: 12px;
        width: 240px;
    }
    .home-category-copy {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        order: 2;
    }
    .home-category-copy h3 {
        margin: 0;
        font-size: 1rem;
        line-height: 1.2;
    }
    .home-category-copy p {
        margin: 0;
        max-width: 18ch;
    }
    .home-category-cta {
        margin-top: 2px;
    }
    .home-category-media {
        width: 112px;
        height: 112px;
        margin: 0 auto;
        order: 1;
    }
    .home-brand-card {
        width: 240px;
        min-height: 132px;
        padding: 22px 16px;
        border-radius: 20px;
    }
    .home-brand-card img {
        max-width: 150px;
        height: 60px;
        margin: 0 auto;
    }
    .home-brand-card span {
        font-size: 1rem;
        line-height: 1.25;
        display: block;
        width: 100%;
        text-align: center;
    }
    .cart-page-layout {
        grid-template-columns: 1fr !important;
        gap: var(--space-4);
    }
    .cart-page-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .cart-page-row > a:first-child {
        width: 96px !important;
        height: 96px !important;
    }
    .cart-page-row > div:nth-child(2) {
        width: 100%;
    }
    .cart-page-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    .cart-page-actions .cart-item-subtotal {
        width: 100% !important;
        text-align: left !important;
        margin-left: 0;
    }
    .cart-summary-sticky {
        order: 2;
    }
    .blog-index-hero {
        border-radius: 22px;
        padding: var(--space-6);
    }
    .blog-post-header h1 {
        font-size: 2rem;
    }
}
