/* ============================================================
   SIMENOR THEME — main.css
   @package SimenorTheme
   @version 1.0.0
============================================================ */

/* ============================================================
   VARIABLES GLOBALES
============================================================ */
:root {
    --sm-primary:       #e94560;
    --sm-primary-dark:  #c73652;
    --sm-secondary:     #1a1a2e;
    --sm-accent:        #16213e;
    --sm-bg:            #f5f5f5;
    --sm-bg-dark:       #0f3460;
    --sm-white:         #ffffff;
    --sm-text:          #333333;
    --sm-text-light:    #666666;
    --sm-border:        #e0e0e0;
    --sm-success:       #27ae60;
    --sm-warning:       #f39c12;
    --sm-font:          'Segoe UI', Roboto, Arial, sans-serif;
    --sm-max-w:         1280px;
    --sm-px:            24px;
    --sm-radius:        8px;
    --sm-shadow:        0 2px 8px rgba(0,0,0,0.08);
    --sm-shadow-lg:     0 8px 24px rgba(0,0,0,0.12);
}

/* ============================================================
   RESET Y BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--sm-font);
    color: var(--sm-text);
    background: var(--sm-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sm-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sm-primary-dark); }

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    color: var(--sm-secondary);
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1rem 0; }
button { cursor: pointer; font-family: var(--sm-font); }

/* ============================================================
   UTILIDADES
============================================================ */
.sm-container {
    max-width: var(--sm-max-w);
    margin: 0 auto;
    padding: 0 var(--sm-px);
}

.sm-section { padding: 60px 0; }

.sm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--sm-radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.sm-btn-primary {
    background: var(--sm-primary);
    color: var(--sm-white);
}
.sm-btn-primary:hover {
    background: var(--sm-primary-dark);
    color: var(--sm-white);
    transform: translateY(-1px);
}

.sm-btn-outline {
    background: transparent;
    color: var(--sm-primary);
    border: 2px solid var(--sm-primary);
}
.sm-btn-outline:hover {
    background: var(--sm-primary);
    color: var(--sm-white);
}

.sm-section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--sm-secondary);
    margin-bottom: 2rem;
}

.sm-section-title span { color: var(--sm-primary); }

/* ============================================================
   TOP BAR
============================================================ */
.sm-topbar {
    background: var(--sm-secondary);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    padding: 8px 0;
}

.sm-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sm-topbar__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sm-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
}

.sm-topbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sm-topbar__right a {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
}
.sm-topbar__right a:hover { color: var(--sm-primary); }

/* ============================================================
   HEADER
============================================================ */
.sm-header {
    background: var(--sm-white);
    box-shadow: var(--sm-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sm-header__main {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 16px 0;
}

.sm-header__logo { flex-shrink: 0; }

.sm-header__logo img { height: 50px; width: auto; }

.sm-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sm-secondary);
    letter-spacing: -1px;
    text-decoration: none;
}
.sm-logo-text span { color: var(--sm-primary); }

.sm-header__search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.sm-search-form {
    display: flex;
    border: 2px solid var(--sm-border);
    border-radius: var(--sm-radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.sm-search-form:focus-within { border-color: var(--sm-primary); }

.sm-search-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--sm-font);
}

.sm-search-form button {
    padding: 10px 16px;
    background: var(--sm-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    cursor: pointer;
}

.sm-search-form button:hover { background: var(--sm-primary-dark); }

.sm-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow-lg);
    border: 1px solid var(--sm-border);
    z-index: 500;
    max-height: 400px;
    overflow-y: auto;
}

.sm-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--sm-text);
    transition: background 0.15s;
}
.sm-search-result-item:last-child { border-bottom: none; }
.sm-search-result-item:hover { background: #f9f9f9; }
.sm-search-result-item img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    flex-shrink: 0;
}
.sm-search-result-item__name  { font-size: 0.88rem; font-weight: 600; }
.sm-search-result-item__price { font-size: 0.82rem; color: var(--sm-primary); }

.sm-header__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.sm-header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--sm-text);
    font-size: 0.7rem;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.sm-header__action:hover { color: var(--sm-primary); }
.sm-header__action svg { color: var(--sm-secondary); transition: color 0.2s; }
.sm-header__action:hover svg { color: var(--sm-primary); }

.sm-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--sm-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   NAVBAR DE CATEGORÍAS
============================================================ */
.sm-navbar { background: var(--sm-accent); }

.sm-navbar__inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.sm-navbar__inner::-webkit-scrollbar { display: none; }

.sm-navbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}

.sm-navbar__link:hover,
.sm-navbar__link.active {
    color: var(--sm-white);
    border-bottom-color: var(--sm-primary);
    background: rgba(255,255,255,0.05);
}

.sm-navbar__special {
    color: var(--sm-primary) !important;
    font-weight: 700;
}

/* ============================================================
   HERO SLIDER
============================================================ */
.sm-hero {
    position: relative;
    overflow: hidden;
    background: var(--sm-secondary);
}

.sm-hero__slides {
    display: flex;
    transition: transform 0.5s ease;
}

.sm-hero__slide {
    min-width: 100%;
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
}

.sm-hero__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-hero__slide-content {
    position: relative;
    z-index: 2;
}

.sm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,10,30,0.75) 0%, rgba(10,10,30,0.2) 100%);
    z-index: 1;
}

.sm-hero__tag {
    display: inline-block;
    background: var(--sm-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.sm-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 500px;
}

.sm-hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.sm-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.sm-hero__nav:hover   { background: rgba(255,255,255,0.35); }
.sm-hero__nav--prev   { left: 16px; }
.sm-hero__nav--next   { right: 16px; }

.sm-hero__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sm-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.sm-hero__dot.active {
    background: var(--sm-primary);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   BADGES DE CONFIANZA
============================================================ */
.sm-trust {
    background: var(--sm-white);
    border-bottom: 1px solid var(--sm-border);
    padding: 20px 0;
}

.sm-trust__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sm-trust__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sm-trust__icon {
    width: 48px;
    height: 48px;
    background: rgba(233,69,96,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-primary);
    flex-shrink: 0;
}

.sm-trust__text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sm-secondary);
}

.sm-trust__text span {
    font-size: 0.8rem;
    color: var(--sm-text-light);
}

/* ============================================================
   GRID DE CATEGORÍAS
============================================================ */
.sm-categories { background: var(--sm-white); }

.sm-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.sm-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: var(--sm-radius);
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sm-category-card:hover {
    background: #fff5f7;
    border-color: var(--sm-primary);
    transform: translateY(-2px);
}

.sm-category-card__img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--sm-bg);
    padding: 8px;
}

.sm-category-card__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sm-text);
    line-height: 1.3;
}

.sm-category-card:hover .sm-category-card__name { color: var(--sm-primary); }

/* ============================================================
   PRODUCTOS — GRID Y TARJETA
============================================================ */
.sm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.sm-product-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow);
    transition: all 0.3s;
    position: relative;
    border: 1px solid var(--sm-border);
}

.sm-product-card:hover {
    box-shadow: var(--sm-shadow-lg);
    transform: translateY(-4px);
}

.sm-product-card__img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
}

.sm-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s;
}

.sm-product-card:hover .sm-product-card__img { transform: scale(1.05); }

.sm-product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--sm-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sm-product-card__badge--sale { background: var(--sm-success); }
.sm-product-card__badge--new  { background: var(--sm-bg-dark); }

.sm-product-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sm-product-card:hover .sm-product-card__actions { opacity: 1; }

.sm-product-card__action-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--sm-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sm-text-light);
    transition: all 0.2s;
    cursor: pointer;
}

.sm-product-card__action-btn:hover {
    background: var(--sm-primary);
    color: white;
    border-color: var(--sm-primary);
}

.sm-product-card__info { padding: 12px; }

.sm-product-card__brand {
    font-size: 0.72rem;
    color: var(--sm-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sm-product-card__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sm-text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
   
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.sm-product-card__name:hover { color: var(--sm-primary); }

.sm-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.sm-product-card__stars { color: #fbbf24; font-size: 0.75rem; }
.sm-product-card__count { font-size: 0.72rem; color: var(--sm-text-light); }

.sm-product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.sm-product-card__price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sm-primary);
}

.sm-product-card__price-old {
    font-size: 0.85rem;
    color: var(--sm-text-light);
    text-decoration: line-through;
}

.sm-product-card__price-discount {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sm-success);
    background: rgba(39,174,96,0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.sm-product-card__add {
    width: 100%;
    padding: 8px;
    background: var(--sm-primary);
    color: white;
    border: none;
    border-radius: var(--sm-radius);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

.sm-product-card__add:hover    { background: var(--sm-primary-dark); }
.sm-product-card__add:disabled { background: var(--sm-success); cursor: default; }

/* ============================================================
   TABS
============================================================ */
.sm-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--sm-border);
    margin-bottom: 2rem;
}

.sm-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sm-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sm-tab:hover  { color: var(--sm-primary); }
.sm-tab.active {
    color: var(--sm-primary);
    border-bottom-color: var(--sm-primary);
}

/* ============================================================
   MARCAS
============================================================ */
.sm-brands { background: var(--sm-white); }

.sm-brands__slider {
    overflow: hidden;
    position: relative;
}

.sm-brands__track {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    animation: sm-scroll 30s linear infinite;
    width: max-content;
}

.sm-brands__track:hover { animation-play-state: paused; }

@keyframes sm-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sm-brand-item {
    flex-shrink: 0;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--sm-radius);
    border: 1px solid var(--sm-border);
    transition: all 0.2s;
    text-decoration: none;
    background: white;
}

.sm-brand-item:hover {
    border-color: var(--sm-primary);
    box-shadow: var(--sm-shadow);
}

.sm-brand-item img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s;
}

.sm-brand-item:hover img { filter: none; opacity: 1; }

/* ============================================================
   RESEÑAS
============================================================ */
.sm-reviews { background: var(--sm-bg); }

.sm-reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sm-review-card {
    background: var(--sm-white);
    border-radius: var(--sm-radius);
    padding: 1.5rem;
    box-shadow: var(--sm-shadow);
}

.sm-review-card__stars { color: #fbbf24; font-size: 1rem; margin-bottom: 0.75rem; }
.sm-review-card__text  { font-size: 0.92rem; color: var(--sm-text); font-style: italic; margin-bottom: 1rem; line-height: 1.6; }
.sm-review-card__author { font-size: 0.82rem; font-weight: 600; color: var(--sm-text-light); }

/* ============================================================
   NEWSLETTER
============================================================ */
.sm-newsletter {
    background: linear-gradient(135deg, var(--sm-secondary) 0%, var(--sm-bg-dark) 100%);
    color: white;
    padding: 60px 0;
}

.sm-newsletter__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.sm-newsletter__text { flex: 1; }
.sm-newsletter__text h2 { color: white; font-size: 1.75rem; }
.sm-newsletter__text p  { color: rgba(255,255,255,0.75); margin: 0; }

.sm-newsletter__form { flex: 1; }

.sm-newsletter__input-wrap {
    display: flex;
    border-radius: var(--sm-radius);
    overflow: hidden;
    box-shadow: var(--sm-shadow-lg);
}

.sm-newsletter__input-wrap input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: var(--sm-font);
}

.sm-newsletter__input-wrap button {
    padding: 14px 24px;
    background: var(--sm-primary);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
    cursor: pointer;
}

.sm-newsletter__input-wrap button:hover    { background: var(--sm-primary-dark); }
.sm-newsletter__input-wrap button:disabled { background: var(--sm-success); }

/* ============================================================
   FOOTER
============================================================ */
.sm-footer {
    background: var(--sm-secondary);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.sm-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.sm-footer__brand .sm-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.sm-footer__brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sm-footer__socials { display: flex; gap: 10px; }

.sm-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
    text-decoration: none;
}

.sm-social-btn:hover { background: var(--sm-primary); color: white; }

.sm-footer__col h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sm-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }

.sm-footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.sm-footer__links a:hover { color: var(--sm-primary); }

.sm-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

.sm-footer__bottom a { color: rgba(255,255,255,0.5); }
.sm-footer__bottom a:hover { color: var(--sm-primary); }
.sm-footer__bottom-links { display: flex; gap: 1.5rem; }

/* ============================================================
   MENÚ MÓVIL
============================================================ */
.sm-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--sm-text);
    padding: 8px;
    cursor: pointer;
    align-items: center;
}

.sm-mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 300px;
    height: 100vh;
    background: var(--sm-secondary);
    z-index: 9999;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sm-mobile-menu.open { transform: translateX(0); }

.sm-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sm-mobile-menu-close {
    background: none;
    border: none;
    color: white;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.sm-mobile-nav { display: flex; flex-direction: column; gap: 4px; }

.sm-mobile-nav li a {
    display: block;
    color: rgba(255,255,255,0.8);
    padding: 10px 8px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
}

.sm-mobile-nav li a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sm-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sm-mobile-overlay.active { opacity: 1; visibility: visible; }

/* ============================================================
   WOOCOMMERCE OVERRIDES
============================================================ */
.sm-wc-wrapper { padding-top: 2rem; padding-bottom: 2rem; }

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--sm-primary) !important;
    color: white !important;
    border-radius: var(--sm-radius) !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.2s !important;
    padding: 10px 20px !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--sm-primary-dark) !important;
    color: white !important;
}

.woocommerce a.added_to_cart {
    color: var(--sm-success);
    font-weight: 600;
    font-size: 0.85rem;
}

.woocommerce .price { color: var(--sm-primary) !important; font-weight: 700; }

.woocommerce .star-rating span::before { color: #fbbf24; }

.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--sm-text-light);
    margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb a { color: var(--sm-text-light); }
.woocommerce-breadcrumb a:hover { color: var(--sm-primary); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1023px) {
    .sm-footer__grid { grid-template-columns: 1fr 1fr; }
    .sm-newsletter__inner { gap: 2rem; }
}

@media (max-width: 767px) {
    :root { --sm-px: 16px; }

    .sm-topbar__left  { flex-wrap: wrap; gap: 0.75rem; }
    .sm-topbar__right { display: none; }

    .sm-header__main  { gap: 1rem; flex-wrap: wrap; }
    .sm-header__search { order: 3; max-width: 100%; flex: 0 0 100%; }
    .sm-header__actions .sm-header__action span { display: none; }

    .sm-hero__slide   { height: 280px; }
    .sm-hero__title   { font-size: 1.4rem; }
    .sm-hero__subtitle { display: none; }

    .sm-trust__grid { gap: 1rem; }
    .sm-trust__item { flex: 1; min-width: 140px; }

    .sm-categories__grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; }

    .sm-products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .sm-newsletter__inner { flex-direction: column; gap: 2rem; }

    .sm-footer__grid  { grid-template-columns: 1fr; gap: 2rem; }
    .sm-footer__bottom { flex-direction: column; text-align: center; }
    .sm-footer__bottom-links { flex-wrap: wrap; justify-content: center; }

    .sm-mobile-menu-btn { display: flex; }
    .sm-navbar { display: none; }

    .sm-section { padding: 40px 0; }
}

@media (max-width: 480px) {
    .sm-hero__slide { height: 220px; }
    .sm-products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .sm-product-card__info { padding: 8px; }
    .sm-product-card__name { font-size: 0.82rem; }
    .sm-product-card__price-current { font-size: 0.95rem; }
}