/* === module: header === */

.sb-v2-header {
    position: relative;
    z-index: 100;
}

.sb-v2-header__top {
    background: var(--sb-green);
    color: var(--sb-white);
    font-size: 0.85rem;
}

.sb-v2-header__top-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 2rem;
    margin: 0;
    padding: 0.55rem 0;
    list-style: none;
}

.sb-v2-header__top-list a {
    color: var(--sb-white);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.sb-v2-header__top-list a:hover {
    color: var(--sb-green-light);
}

.sb-v2-header__top-list img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sb-v2-header__main {
    background: var(--sb-white);
    border-bottom: 1px solid var(--sb-border);
    padding: 0.85rem 0;
}

.sb-v2-header__main-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sb-v2-header__logo img {
    height: 48px;
    width: auto;
}

.sb-v2-header__categories {
    flex-shrink: 0;
}

.sb-v2-header__categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sb-black);
    color: var(--sb-white);
    border: none;
    border-radius: var(--sb-radius-pill);
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.sb-v2-header__categories-btn:hover {
    background: #333;
    color: var(--sb-white);
}

.sb-v2-header__categories-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.sb-v2-header__search {
    flex: 1;
    position: relative;
    min-width: 0;
}

.sb-v2-header__search form {
    position: relative;
}

.sb-v2-header__search input[type="text"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: var(--sb-radius-pill);
    padding: 0.7rem 3.25rem 0.7rem 1.25rem;
    font-size: 0.95rem;
}

.sb-v2-header__search button.search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--sb-green);
    color: var(--sb-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.sb-v2-header__search #search_container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--sb-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: var(--sb-radius);
}

.sb-v2-header__actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.sb-v2-header__icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sb-green);
    font-weight: 600;
    white-space: nowrap;
}

.sb-v2-header__icon-link i {
    font-size: 1.25rem;
}

.sb-v2-header__auth {
    position: relative;
}

.sb-v2-header__auth-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.sb-v2-header__auth:hover .sb-v2-header__auth-list {
    display: block;
}

.sb-v2-header__auth-list ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.sb-v2-header__auth-list li a {
    display: block;
    padding: 0.45rem 1rem;
}

.sb-v2-header__cart .cart {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--sb-black);
    color: var(--sb-white);
    border-radius: var(--sb-radius-pill);
    padding: 0.45rem 1rem 0.45rem 0.55rem;
    font-weight: 600;
}

.sb-v2-header__cart .cart:hover {
    color: var(--sb-white);
    background: #333;
}

.sb-v2-header__cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.sb-v2-header__cart-icon-wrap img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.sb-v2-header__cart .notif {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--sb-green);
    color: var(--sb-white);
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.sb-v2-header__cart .cart-total-label {
    font-size: 0.95rem;
}

.sb-v2-header__cart .cart-total-label .qty,
.sb-v2-header__cart .cart-total-label .total-price {
    display: none;
}

.sb-v2-header__langs {
    position: relative;
}

.sb-v2-header__langs-toggle {
    border: 1px solid var(--sb-border);
    background: var(--sb-white);
    border-radius: var(--sb-radius-pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.sb-v2-header__langs-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0.35rem 0;
    min-width: 80px;
    z-index: 50;
}

.sb-v2-header__langs:hover .sb-v2-header__langs-menu {
    display: block;
}

.sb-v2-header__langs-menu li a {
    display: block;
    padding: 0.35rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.sb-v2-header__quicknav {
    background: var(--sb-green-light);
    border-bottom: 1px solid var(--sb-border);
}

.sb-v2-header__quicknav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin: 0;
    padding: 0.75rem 0;
    list-style: none;
}

.sb-v2-header__quicknav-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-text);
}

.sb-v2-header__quicknav-list img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* categories overlay (shared with v1 JS) */
#banner-slider-cats {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--sb-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 90;
    max-height: 70vh;
    overflow: auto;
}

#banner-slider-cats.active {
    display: block;
}

#banner-slider-cats .wrapper {
    padding: 1.5rem 0;
}

#banner-slider-cats-browse {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

#banner-slider-cats-browse .item {
    text-align: center;
}

#banner-slider-cats-browse .icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

#banner-slider-cats-browse h2 {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

#banner-slider-cats-responsive {
    display: none;
}

@media (max-width: 1024px) {
    .sb-v2-header__main-inner {
        flex-wrap: wrap;
    }

    .sb-v2-header__search {
        order: 3;
        flex: 1 1 100%;
    }

    .sb-v2-header__top-list {
        gap: 0.75rem 1rem;
        font-size: 0.78rem;
    }

    #banner-slider-cats-responsive.active {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--sb-white);
        z-index: 1000;
        overflow: auto;
        padding: 1rem;
    }
}

/* === module: footer === */

.sb-v2-footer {
    background: var(--sb-green-light);
    margin-top: 3rem;
}

.sb-v2-footer__main {
    padding: 2.5rem 0 2rem;
}

.sb-v2-footer__brand-logo img {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
}

.sb-v2-footer__brand-text {
    color: var(--sb-text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.sb-v2-footer__contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}

.sb-v2-footer__social {
    display: flex;
    gap: 0.5rem;
}

.sb-v2-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--sb-green);
    color: var(--sb-white);
    border-radius: 6px;
    font-size: 1rem;
}

.sb-v2-footer__social a:hover {
    background: var(--sb-green-dark);
    color: var(--sb-white);
}

.sb-v2-footer__col h3 {
    color: var(--sb-green);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.sb-v2-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sb-v2-footer__col li {
    margin-bottom: 0.45rem;
}

.sb-v2-footer__col li a {
    color: var(--sb-text);
    font-size: 0.92rem;
}

.sb-v2-footer__payment {
    background: var(--sb-green-light);
    border: 1px solid var(--sb-green);
    border-radius: var(--sb-radius);
    padding: 1.25rem;
    height: 100%;
}

.sb-v2-footer__payment h3 {
    color: var(--sb-green);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-align: center;
}

.sb-v2-footer__payment-methods {
    display: flex;
    justify-content: space-around;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sb-v2-footer__payment-method {
    text-align: center;
    flex: 1;
}

.sb-v2-footer__payment-method img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

.sb-v2-footer__payment-method span {
    display: block;
    font-size: 0.72rem;
    color: var(--sb-text-muted);
}

.sb-v2-footer__payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.sb-v2-footer__payment-logos img {
    height: 28px;
    width: auto;
}

.sb-v2-footer__payment-secure {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sb-green);
}

.sb-v2-footer__bottom {
    background: var(--sb-green);
    color: var(--sb-white);
    padding: 0.85rem 0;
    font-size: 0.88rem;
}

.sb-v2-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sb-v2-footer__bottom-payments {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-v2-footer__bottom-payments i {
    font-size: 1.1rem;
}

@media (max-width: 991px) {
    .sb-v2-footer__payment {
        margin-top: 1.5rem;
    }
}

/* === module: product-card === */

.sb-v2-product-card {
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.sb-v2-product-card:hover {
    box-shadow: 0 8px 24px rgba(46, 158, 91, 0.12);
}

.sb-v2-product-card__image {
    position: relative;
    padding: 1rem;
    text-align: center;
    background: #fafafa;
    min-height: 180px;
}

.sb-v2-product-card__image img {
    max-height: 160px;
    width: auto;
    margin: 0 auto;
}

.sb-v2-product-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sb-v2-product-card__badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sb-white);
    background: var(--sb-green);
}

.sb-v2-product-card__badge--discount {
    background: #e74c3c;
}

.sb-v2-product-card__favorites {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--sb-border);
    background: var(--sb-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sb-green);
}

.sb-v2-product-card__body {
    padding: 0.85rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sb-v2-product-card__brand {
    font-size: 0.72rem;
    color: var(--sb-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.sb-v2-product-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    flex: 1;
}

.sb-v2-product-card__title a {
    color: var(--sb-text);
}

.sb-v2-product-card__prices {
    margin-bottom: 0.75rem;
}

.sb-v2-product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sb-green);
}

.sb-v2-product-card__old-price {
    font-size: 0.85rem;
    color: var(--sb-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.sb-v2-product-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-v2-product-card__add {
    flex: 1;
    background: var(--sb-green);
    color: var(--sb-white);
    border: none;
    border-radius: var(--sb-radius-pill);
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.sb-v2-product-card__add:hover {
    background: var(--sb-green-dark);
}

.sb-v2-product-card__actions {
    display: flex;
    gap: 0.35rem;
}

.sb-v2-product-card__action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--sb-border);
    background: var(--sb-white);
    color: var(--sb-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sb-v2-product-card__avail {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #c0392b;
}

/* === module: minicart === */

.sb-v2-header__cart .minicart {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    z-index: 200;
}

.sb-v2-header__cart {
    position: relative;
}

.cart-section .minicart .minicart-data {
    background: var(--sb-white);
    border: 1px solid var(--sb-border);
    border-radius: var(--sb-radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 1rem;
}

.cart-section .minicart .minicart-data .item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--sb-border);
}
