/**
 * LushaStoreTheme — Main Styles
 * Extracted from mockup-01-classic.html
 *
 * @package LushaStoreTheme
 */

/* === CSS VARIABLES === */
:root {
    --orange: #f17e00;
    --red: #d81d33;
    --dark: #32373c;
    --white: #fff;
    --border: #e3e4e6;
    --light: #f5f5f5;
    --success: #27ae60;
    --info: #2980b9;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,.12);
    --transition: all .25s ease;
}

/* === RESET / BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    font-size: 14px;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: 14px;
}

/* === TOP BAR === */
.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.top-bar a {
    color: #ccc;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--orange);
}

.top-bar-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-left i {
    margin-right: 4px;
    font-size: 11px;
}

.top-bar-right {
    display: flex;
    gap: 14px;
    align-items: center;
}

/* === TOP SOCIAL === */
.top-social {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.15);
}

.top-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .7;
    transition: var(--transition);
}

.top-social a:hover {
    opacity: 1;
}

.top-social a img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    filter: grayscale(100%) brightness(1.3);
}

.top-social a:hover img {
    filter: none;
}

/* === HEADER === */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
    cursor: pointer;
}

.logo a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.logo a:hover {
    color: var(--orange);
}

.logo a:hover b {
    color: var(--dark);
}

.logo span {
    color: var(--orange);
}

.search-box {
    flex: 1;
    position: relative;
    max-width: 560px;
}

.search-box input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--orange);
    outline: none;
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 15px;
}

.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-icon,
a.header-icon,
a.header-icon:visited {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #666;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
}

.header-icon:hover,
.header-icon:hover i,
.header-icon:hover span:not(.badge),
.header-icon:focus,
.header-icon:focus-visible,
a.header-icon:hover {
    color: var(--orange);
    background: transparent;
    text-decoration: none;
    outline: none;
}

.header-icon i {
    font-size: 20px;
    color: inherit;
    transition: color .2s ease;
}

.header-icon .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* === NAV === */
.main-nav {
    background: var(--dark);
    padding: 0;
    position: sticky;
    top: 58px;
    z-index: 999;
}

.main-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: #ddd;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.main-nav .catalog-btn {
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.main-nav .catalog-btn:hover {
    background: #e07200;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
}

.nav-links .nav-item > a,
.nav-links > a {
    padding: 12px 14px;
    font-size: 13px;
}

.burger {
    display: none;
    background: none;
    border: none;
    color: #ddd;
    font-size: 22px;
    padding: 10px 14px;
    cursor: pointer;
}

/* === MEGA MENU === */
.main-nav > .container {
    position: relative;
}

.nav-item {
    position: static;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item > a .fa-chevron-down {
    font-size: 9px;
    transition: transform .25s ease;
    opacity: .6;
}

.nav-item:hover > a .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-top: 3px solid var(--orange);
    padding: 16px 20px;
    display: none;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mega-menu::-webkit-scrollbar {
    width: 6px;
}
.mega-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}
.mega-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.nav-item:hover .mega-menu,
.nav-item.mega-open .mega-menu {
    display: flex;
    flex-wrap: wrap;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu.mega-menu-grid {
    flex-wrap: wrap;
}

.mega-col {
    flex: 1;
    padding: 0 14px;
    border-right: 1px solid var(--border);
    min-width: 160px;
}

.mega-col:last-child {
    border-right: none;
}

.mega-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--orange);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.mega-col a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
    transition: all .2s;
    cursor: pointer;
}

.mega-col a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.mega-col a i {
    margin-right: 6px;
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.mega-col a:hover i {
    color: var(--orange);
}

/* Mega-menu child groups with grandchildren */
.mega-child-group {
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.mega-child-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mega-col a.mega-child-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    padding: 4px 0;
    display: block;
}

.mega-col a.mega-child-title:hover {
    color: var(--orange);
}

.mega-grandchildren {
    padding-left: 12px;
    margin-top: 2px;
}

.mega-grandchildren a.mega-gc-link {
    display: block;
    padding: 2px 0;
    font-size: 12px;
    color: #777;
}

.mega-grandchildren a.mega-gc-link:hover {
    color: var(--orange);
    padding-left: 5px;
}

.mega-grandchildren a.mega-gc-link::before {
    content: '\2192';
    margin-right: 5px;
    font-size: 10px;
    color: #bbb;
}

.mega-grandchildren a.mega-gc-link:hover::before {
    color: var(--orange);
}

.mega-grandchildren a.mega-gc-all {
    display: block;
    padding: 2px 0;
    font-size: 11px;
    color: var(--orange);
    font-weight: 600;
    margin-top: 2px;
}

.mega-grandchildren a.mega-gc-all:hover {
    color: #e07200;
}

.mega-footer {
    width: 100%;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-start;
}

.mega-footer a {
    color: var(--orange);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
}

.mega-footer a:hover {
    color: #e07200;
}

.mega-footer a i {
    margin-left: 4px;
    font-size: 11px;
}

.mega-promo {
    flex: 0 0 180px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #fff8f0, #fff3e0);
    border-radius: var(--radius);
    margin-left: 8px;
}

.mega-promo i {
    font-size: 32px;
    color: var(--orange);
    margin-bottom: 10px;
}

.mega-promo h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.mega-promo p {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.mega-promo .btn {
    font-size: 11px;
    padding: 6px 14px;
}

.mega-promo .btn-orange {
    color: #fff;
}

.mega-promo .btn-orange:hover {
    color: #fff;
    background: #e07200;
}

/* Catalog mega: grid of all categories */
.mega-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.mega-catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}

.mega-catalog-item:hover {
    border-color: var(--orange);
    background: #fff8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.mega-catalog-item i {
    font-size: 24px;
    color: var(--orange);
    width: 32px;
    text-align: center;
}

.mega-catalog-item div h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1px;
}

.mega-catalog-item div span {
    font-size: 11px;
    color: #999;
}

/* Mobile mega-menu overlay */
.mobile-mega-overlay {
    display: none;
}

/* === BREADCRUMB === */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: var(--info);
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

/* === HERO === */
.hero {
    background: linear-gradient(135deg, #32373c, #1a1d20);
    padding: 50px 0;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hero p {
    font-size: 15px;
    color: #bbb;
    margin-bottom: 16px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-orange {
    background: var(--orange);
    color: #fff;
}

.btn-orange:hover {
    background: #e07200;
    color: #fff;
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background: #444;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: #c01a2e;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #219a52;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

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

/* === SECTION === */
.section {
    padding: 28px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title a {
    font-size: 13px;
    color: var(--info);
    font-weight: 500;
    cursor: pointer;
}

/* === ADVANTAGES === */
.advantages {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.adv-item {
    text-align: center;
    padding: 10px;
}

.adv-item i {
    font-size: 26px;
    color: var(--orange);
    margin-bottom: 8px;
}

.adv-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.adv-item p {
    font-size: 12px;
    color: #888;
}

/* === CATEGORY TILES === */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cat-tile {
    background: var(--light);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.cat-tile:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.cat-tile i {
    font-size: 36px;
    color: var(--orange);
    margin-bottom: 12px;
    display: block;
}

.cat-tile h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cat-tile span {
    font-size: 12px;
    color: #888;
}

/* === PRODUCT CARD === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.card-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.card-badge.hit {
    background: var(--red);
}

.card-badge.new {
    background: var(--success);
}

.card-badge.sale {
    background: var(--orange);
}

.card-img {
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
    position: relative;
    overflow: hidden;
    /* Top reserve (52px) keeps the image clear of the badge column and
       heart button; side and bottom padding give it breathing room. */
    padding: 52px 16px 16px;
}

.card-img img {
    /* Explicit pixel max-height is required — percentages combined with
       <img width=.. height=.. loading=lazy> resolve inconsistently in
       some browsers, letting tall images overflow the padding box and
       clip behind the badge/heart column. Pixel value matches the
       container height (200) minus the 52px top + 16px bottom padding. */
    max-width: 100%;
    max-height: 132px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: #ccc;
    font-size: 14px;
    z-index: 2;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.card-fav i {
    line-height: 1;
    display: block;
}

.card-fav:hover {
    color: var(--red);
    transform: scale(1.1);
}

.card-fav.active {
    color: var(--red);
    background: #fff0f3;
}

.card-fav.active i::before {
    content: "\f004";
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-cat {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.card-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    cursor: pointer;
}

.card-name:hover {
    color: var(--orange);
}

.card-rating {
    font-size: 11px;
    color: #f5a623;
    margin-bottom: 8px;
}

.card-rating span {
    color: #999;
    margin-left: 4px;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.card-price b {
    font-size: 18px;
    font-weight: 700;
}

.card-price s {
    font-size: 13px;
    color: #999;
}

.card-stock {
    font-size: 11px;
    margin-bottom: 10px;
}

.card-stock.in {
    color: var(--success);
}

.card-stock.out {
    color: var(--red);
}

.card-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.card-actions .btn {
    flex: 1;
    padding: 7px 6px;
    font-size: 11px;
    justify-content: center;
    white-space: nowrap;
}

.card-actions .add-to-cart-btn.added {
    background: var(--success);
    border-color: var(--success);
    pointer-events: none;
}

/* Stock + Qty row */
.card-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    margin-bottom: 6px;
}

/* Inline qty selector (appears after add-to-cart) */
.card-qty-inline {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--orange);
    border-radius: 6px;
    overflow: hidden;
    height: 26px;
}

.card-qty-inline button {
    width: 26px;
    height: 100%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.card-qty-inline button:hover {
    background: var(--orange);
    color: #fff;
}

.card-qty-inline .cqi-val {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    border-left: 1px solid var(--orange);
    border-right: 1px solid var(--orange);
    line-height: 26px;
    user-select: none;
}

/* "1 шт" / last piece badge */
.card-badge.last {
    background: #fff3e0;
    color: #e65100;
}

/* === STATS === */
.stats {
    background: var(--dark);
    padding: 40px 0;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stats-grid h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--orange);
}

.stats-grid p {
    font-size: 13px;
    color: #aaa;
    margin-top: 4px;
}

/* === SUBSCRIBE === */
.subscribe {
    background: var(--light);
    padding: 40px 0;
    text-align: center;
}

.subscribe h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subscribe p {
    color: #888;
    margin-bottom: 20px;
    font-size: 13px;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.subscribe-form input:focus {
    border-color: var(--orange);
    outline: none;
}

/* === FOOTER === */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer a {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

/* Footer & Bottom social icons */
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, opacity .2s ease;
    background: none;
    border: none;
}

.social-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: .8;
}

/* === PRODUCT PAGE === */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* === PRODUCT GALLERY === */
.product-gallery {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}

/* Main image area */
.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-main-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
}
.gallery-main-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    user-select: none;
}
.gallery-placeholder {
    font-size: 80px;
    color: #ccc;
}

/* Navigation arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--dark);
    transition: background .2s, transform .2s;
    opacity: 0;
}
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-arrow:hover {
    background: var(--orange);
    color: #fff;
}

/* Thumbnails strip */
.gallery-thumbs-wrap {
    margin-top: 12px;
    overflow: hidden;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-thumb:hover {
    border-color: #bbb;
}
.gallery-thumb.active {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange);
}

/* === LIGHTBOX === */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
}
.gallery-lightbox.open { display: flex; }

.lightbox-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.85);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 500;
}

.product-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}

.product-meta .stars {
    color: #f5a623;
}

.product-meta span {
    color: #888;
}

.product-price-block {
    background: var(--light);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.product-price-block .price {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.product-price-block .old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-tags span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-tags .tag-stock {
    background: #e8f5e9;
    color: var(--success);
}

.product-tags .tag-orig {
    background: #e3f2fd;
    color: var(--info);
}

.product-tags .tag-art {
    background: var(--light);
    color: #666;
}

.product-tags .tag-last {
    background: #fff3e0;
    color: #e65100;
}

.qty-stock-hint {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.product-specs-mini {
    margin-bottom: 16px;
}

.product-specs-mini table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.product-specs-mini td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}

.product-specs-mini td:first-child {
    color: #888;
    width: 40%;
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.qty-ctrl {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-ctrl button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light);
    font-size: 16px;
    cursor: pointer;
}

.qty-ctrl button:hover {
    background: var(--border);
}

.qty-ctrl input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 600;
    font-size: 15px;
    line-height: 36px;
    padding: 0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.qty-ctrl input::-webkit-inner-spin-button,
.qty-ctrl input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === COMPATIBILITY BLOCK === */
.compat-block {
    background: var(--light);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.compat-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compat-block h4 i {
    color: var(--success);
}

.compat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.compat-chip {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--dark);
}

.compat-note {
    font-size: 12px;
    color: #888;
}

.compat-note a {
    color: var(--info);
    cursor: pointer;
}

/* === TABS === */
.tabs {
    margin-top: 32px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 0;
}

.tab-nav button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    color: #888;
    transition: var(--transition);
}

.tab-nav button.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.tab-content {
    display: none;
    padding: 20px 0;
}

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

/* === PRODUCT SPECS (Характеристики) === */
.lusha-specs__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

.lusha-specs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.lusha-specs__item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.lusha-specs__item:hover {
    background: #fafafa;
}

/* Alternate row tinting for 3-column grid */
.lusha-specs__grid .lusha-specs__item:nth-child(6n+1),
.lusha-specs__grid .lusha-specs__item:nth-child(6n+2),
.lusha-specs__grid .lusha-specs__item:nth-child(6n+3) {
    background: #fafbfc;
}

.lusha-specs__grid .lusha-specs__item:nth-child(6n+1):hover,
.lusha-specs__grid .lusha-specs__item:nth-child(6n+2):hover,
.lusha-specs__grid .lusha-specs__item:nth-child(6n+3):hover {
    background: #f5f5f5;
}

.lusha-specs__label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    font-weight: 500;
}

.lusha-specs__value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.lusha-specs__value p {
    margin: 0;
}

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

@media (max-width: 600px) {
    .lusha-specs__grid {
        grid-template-columns: 1fr;
    }
}

/* === REVIEWS === */
.review {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--orange);
}

.review-name {
    font-weight: 600;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-stars {
    color: #f5a623;
    font-size: 12px;
    margin-bottom: 6px;
}

.review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

/* === INFO PAGES === */
.info-page {
    padding: 32px 0;
}

.info-page h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--dark);
}

.info-page h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
}

.info-page p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

.info-page ul,
.info-page ol {
    margin: 0 0 16px 20px;
    color: #555;
}

ul.woocommerce-error,
.woocommerce ul.woocommerce-error {
    margin: 0 0 20px !important;
    padding: 16px 20px 16px 48px !important;
    list-style: none !important;
    background-color: #fef2f2 !important;
    border-top: none !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.info-page li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.info-card {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.info-card i {
    font-size: 28px;
    color: var(--orange);
    margin-bottom: 10px;
}

.info-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.info-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.info-number {
    text-align: center;
    padding: 20px;
}

.info-number h3 {
    font-size: 30px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 4px;
}

.info-number p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.team-card {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.team-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #999;
}

.team-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.team-card p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 16px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.map-placeholder {
    background: var(--light);
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 15px;
    margin-top: 24px;
}

/* === DELIVERY / GUARANTEES / RETURNS === */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.delivery-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
}

.delivery-card i {
    font-size: 24px;
    color: var(--orange);
    width: 36px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.delivery-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* === ACCORDION === */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-header {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--border);
}

.accordion-body {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.accordion-item.open .accordion-body {
    max-height: 2000px;
    padding: 16px 18px;
}

.accordion-item.open .accordion-header {
    background: var(--white);
    color: var(--orange);
}

.accordion-item.open .accordion-header .fa-chevron-down {
    transform: rotate(180deg);
}

/* === CATEGORY BANNER === */
.category-banner {
    background: linear-gradient(135deg, var(--dark), #1a1d20);
    color: #fff;
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.category-banner h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-banner p {
    font-size: 14px;
    color: #aaa;
}

.subcategories-scroll {
    position: relative;
    margin-bottom: 16px;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subcategories a {
    padding: 6px 14px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.subcategories a:hover,
.subcategories a.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.seo-text {
    margin-top: 32px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius);
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.seo-text h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

/* === LIVE SEARCH DROPDOWN === */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    display: none;
    max-height: 480px;
    overflow-y: auto;
}

.search-dropdown.open {
    display: block;
}

.search-dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.search-dropdown-section:last-child {
    border-bottom: none;
}

.search-dropdown-section h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    padding: 4px 16px 6px;
    letter-spacing: .5px;
    font-weight: 600;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    text-decoration: none;
    color: var(--dark);
}

.search-dropdown-item:hover {
    background: var(--light);
}

.search-dropdown-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.search-dropdown-item i {
    width: 40px;
    text-align: center;
    color: var(--orange);
    font-size: 16px;
    flex-shrink: 0;
}

.search-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.search-item-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
}

.search-item-count {
    font-size: 12px;
    color: #999;
}

/* "Show all results" footer */
.search-dropdown-more {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.search-dropdown-more a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
}

.search-dropdown-more a:hover {
    color: var(--dark);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    animation: toastIn .35s cubic-bezier(.4,0,.2,1);
    min-width: 280px;
    max-width: 380px;
    backdrop-filter: blur(10px);
}

.toast.cart {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast.wishlist {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
}

.toast.error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.toast.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.hide {
    animation: toastOut .3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px) scale(.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(60px) scale(.95); }
}

/* === WooCommerce Notices (errors, messages, info) === */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    list-style: none;
    padding: 16px 20px 16px 48px;
    margin: 0 0 20px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    position: relative;
    border: 1px solid;
}

/* Hide duplicate WC notices (keep only the first of each type) */
.woocommerce-error ~ .woocommerce-error,
.woocommerce-message ~ .woocommerce-message,
.woocommerce-info ~ .woocommerce-info {
    display: none;
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.woocommerce-message {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.woocommerce-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    text-align: center;
}

.woocommerce-error::before {
    content: "\f06a";
    color: #dc2626;
}

.woocommerce-message::before {
    content: "\f058";
    color: #16a34a;
}

.woocommerce-info::before {
    content: "\f05a";
    color: #2563eb;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none;
}

.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Hide duplicate "Просмотр корзины" links in notices */
.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button {
    display: inline-block !important;
    float: none !important;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.woocommerce-error .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: currentColor;
    color: #fff;
}

/* Product page fav button (not absolute positioned in .product-btns) */
.product-btns .card-fav {
    position: static;
    width: 52px;
    height: 52px;
    font-size: 20px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: none;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.product-btns .card-fav:hover {
    border-color: var(--red);
    background: #fff0f3;
}

/* === MESSENGER WIDGET === */
.messenger-widget {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 8999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.messenger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.messenger-main {
    background: var(--orange);
    color: #fff;
    font-size: 26px;
}

.messenger-main:hover {
    transform: scale(1.1);
}

.messenger-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all .25s ease;
    pointer-events: none;
}

.messenger-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.messenger-links a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
}

.messenger-links a:hover {
    transform: scale(1.15);
}

.messenger-links a img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* === SCROLL TO TOP === */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 8998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #e07200;
}

/* === RECENTLY VIEWED (FOOTER) === */
.recently-viewed-footer {
    padding: 48px 0;
    margin-top: 48px;
    border-top: 2px solid var(--border);
    background: var(--light);
    clear: both;
}

.recently-viewed-footer h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.rv-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.rv-scroll::-webkit-scrollbar {
    height: 6px;
}

.rv-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.rv-scroll .card {
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* === MOBILE BOTTOM NAV === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 9000;
    height: 56px;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
}

.mobile-bottom-nav .mbn-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: #888;
    cursor: pointer;
    position: relative;
    padding: 6px 8px;
    transition: var(--transition);
}

.mobile-bottom-nav .mbn-tab.active,
.mobile-bottom-nav .mbn-tab:hover {
    color: var(--orange);
}

.mobile-bottom-nav .mbn-tab i {
    font-size: 18px;
}

.mobile-bottom-nav .mbn-badge {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* === COOKIE CONSENT === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: #ccc;
    padding: 14px 20px;
    z-index: 9001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    transform: translateY(100%);
    transition: transform .4s ease;
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner a {
    color: var(--orange);
    cursor: pointer;
}

.cookie-banner .btn {
    padding: 8px 20px;
    font-size: 13px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* === STICKY ADD-TO-CART BAR === */
.sticky-cart-bar {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 998;
    padding: 8px 0;
    display: none;
    animation: slideBarDown .25s ease;
}

.sticky-cart-bar.visible {
    display: block;
}

.sticky-cart-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-cart-bar .scb-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cart-bar .scb-price {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes slideBarDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}
