/* AUTOSAB Clone - Woodmart-inspired styles */
:root {
    --wd-primary-color: #ff6900;
    --wd-primary-color-hover: #e55f00;
    --wd-alternative-color: #1e73be;
    --wd-text-color: #777777;
    --wd-title-color: #242424;
    --wd-entities-title-color: #333333;
    --wd-header-bg: #ffffff;
    --wd-header-color: #242424;
    --wd-footer-bg: #1a1a1a;
    --wd-footer-color: #999999;
    --wd-border-color: #eeeeee;
    --wd-form-brd-color: #dddddd;
    --wd-main-bg: #ffffff;
    --wd-container-w: 1300px;
    --wd-font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--wd-font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--wd-text-color);
    background: var(--wd-main-bg);
}

.container {
    max-width: var(--wd-container-w);
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.website-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

.main-page-wrapper {
    width: 100%;
    margin: 0 auto;
}

a { color: var(--wd-alternative-color); text-decoration: none; transition: color .2s; }
a:hover { color: var(--wd-primary-color); }

h1, h2, h3, h4, h5, h6 {
    color: var(--wd-title-color);
    font-weight: 600;
    line-height: 1.3;
}

img { max-width: 100%; height: auto; }

/* Header */
.whb-header {
    position: relative;
    z-index: 390;
    background: var(--wd-header-bg);
}

.whb-general-header {
    padding: 15px 0;
    border-bottom: 1px solid var(--wd-border-color);
}

.whb-flex-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.whb-col-left { flex: 0 0 auto; }
.whb-col-center { flex: 1 1 auto; padding: 0 20px; }
.whb-col-right { flex: 0 0 auto; display: flex; align-items: center; gap: 15px; }

.whb-with-shadow { box-shadow: 0 1px 8px rgba(0,0,0,.08); }

/* Search */
.searchform {
    display: flex;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.searchform .s {
    flex: 1;
    padding: 12px 50px 12px 20px;
    border: 1px solid var(--wd-form-brd-color);
    border-radius: 35px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #f7f7f7;
}

.searchform .s:focus { border-color: var(--wd-primary-color); background: #fff; }

.searchsubmit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--wd-primary-color);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchsubmit:hover { background: var(--wd-primary-color-hover); }

/* Header tools */
.wd-tools-element a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--wd-header-color);
    font-size: 11px;
    gap: 4px;
}

.wd-tools-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wd-header-my-account .wd-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E"); }
.wd-header-wishlist .wd-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"); }
.wd-header-cart .wd-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); }

.wd-cart-number {
    background: var(--wd-primary-color);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Header bottom nav */
.whb-header-bottom {
    background: #242424;
    padding: 0;
}

.whb-header-bottom .whb-flex-row { min-height: 50px; }

.wd-header-cats .menu-opener {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--wd-primary-color);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.menu-opener-icon::before { content: '☰'; font-size: 18px; }

.whb-header-bottom,
.whb-header-bottom .container,
.whb-header-bottom .whb-flex-row,
.wd-header-cats { overflow: visible; }

.wd-header-cats { position: relative; z-index: 410; }

.wd-dropdown-cats {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(0,0,0,.14);
    z-index: 420;
    padding: 0;
    border: 1px solid rgba(0,0,0,.07);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: visible;
}

.wd-header-cats:hover .wd-dropdown-cats,
.wd-header-cats.open .wd-dropdown-cats { display: block; }

.wd-dropdown-cats > .wd-sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    width: 100%;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.15) transparent;
}
.wd-dropdown-cats > .wd-sub-menu::-webkit-scrollbar { width: 4px; }
.wd-dropdown-cats > .wd-sub-menu::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.12);
    border-radius: 4px;
}

.wd-dropdown-cats ul { list-style: none; margin: 0; padding: 0; }
.wd-dropdown-cats > .wd-sub-menu li { position: relative; }
.wd-dropdown-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 16px;
    color: var(--wd-title-color);
    border-bottom: none;
    font-size: 14px;
    line-height: 1.3;
    transition: background .12s, color .12s;
}
.wd-dropdown-cats > .wd-sub-menu > li > a { margin: 0 6px; border-radius: 6px; }
.wd-dropdown-cats li a:hover,
.wd-dropdown-cats li.cat-parent.flyout-active > a,
.wd-dropdown-cats li.cat-parent.open > a {
    background: #fff5ef;
    color: var(--wd-primary-color);
}
.wd-dropdown-cats .cat-link-text { flex: 1; min-width: 0; }
.wd-dropdown-cats .cat-arrow {
    flex-shrink: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1;
    transition: color .12s, transform .12s;
}
.wd-dropdown-cats li.cat-parent.flyout-active > a .cat-arrow,
.wd-dropdown-cats li.cat-parent:hover > a .cat-arrow {
    color: var(--wd-primary-color);
    transform: translateX(2px);
}

/* Подкаталоги — компактная панель справа от пункта */
.wd-dropdown-cats > .wd-sub-menu .children { display: none !important; }

.wd-dropdown-flyout {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 210px;
    max-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
    padding: 6px;
    max-height: min(60vh, 360px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 430;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
}
.wd-dropdown-flyout::-webkit-scrollbar { width: 4px; }
.wd-dropdown-flyout::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.1);
    border-radius: 4px;
}
.wd-dropdown-flyout.is-active { display: block; }
.wd-dropdown-flyout .children {
    display: block !important;
    position: static;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow: visible;
}
.wd-dropdown-flyout .children li a {
    font-size: 13px;
    padding: 7px 12px;
    margin: 0;
    border-bottom: none;
    border-radius: 6px;
    background: transparent;
    line-height: 1.35;
}
.wd-dropdown-flyout .children li a:hover {
    background: #fff5ef;
    color: var(--wd-primary-color);
}

/* Вложенные подкаталоги (3-й уровень) */
.wd-dropdown-flyout .cat-parent { position: relative; }
.wd-dropdown-flyout .cat-parent > .children {
    display: none !important;
    position: absolute;
    left: calc(100% + 4px);
    top: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.05);
    border: none;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    z-index: 440;
}
.wd-dropdown-flyout .cat-parent:hover > .children { display: block !important; }
.wd-dropdown-flyout .cat-parent > .children li a { padding: 7px 12px; font-size: 13px; }

.wd-nav-main { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.wd-nav-main li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}
.wd-nav-main li a:hover { color: var(--wd-primary-color); }

/* Notice banner */
.autosab-notice-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}
.autosab-notice-banner h4 { margin: 0; color: #856404; font-size: 16px; }

/* Hero slider */
.autosab-hero-slider { margin-bottom: 30px; }
.autosab-swiper { height: 420px; position: relative; overflow: hidden; }
.autosab-swiper[data-effect="fade"] .swiper-wrapper { display: block; }
.autosab-swiper[data-effect="fade"] .swiper-slide {
    position: absolute; inset: 0; flex: none; max-width: none; width: 100%;
    opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.autosab-swiper[data-effect="fade"] .swiper-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.swiper-wrapper { display: flex; height: 100%; transition: transform .5s ease; }
.swiper-slide {
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 100%);
}
.slide-content { position: relative; z-index: 1; color: #fff; max-width: 600px; }
.slide-content h2 { color: #fff; font-size: 36px; margin-bottom: 15px; }
.slide-content p { font-size: 18px; margin-bottom: 25px; opacity: .9; }

.swiper-pagination { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.swiper-pagination-bullet { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; border: none; }
.swiper-pagination-bullet-active { background: var(--wd-primary-color); }

.swiper-button-prev, .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    color: #fff;
    font-size: 20px;
}
.swiper-button-prev { left: 20px; }
.swiper-button-next { right: 20px; }
.swiper-button-prev::after { content: '‹'; }
.swiper-button-next::after { content: '›'; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all .2s;
    font-family: inherit;
}
.btn-color-primary { background: var(--wd-primary-color); color: #fff; }
.btn-color-primary:hover { background: var(--wd-primary-color-hover); color: #fff; }

/* Categories grid */
.autosab-categories-section { padding: 40px 0; }
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.category-grid-item {
    border: 1px solid var(--wd-border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}
.category-grid-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.category-link { display: block; color: inherit; }
.category-image-wrapp {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
}
.category-image-wrapp img { max-height: 120px; object-fit: contain; }
.category-title {
    padding: 12px 15px;
    margin: 0;
    font-size: 13px;
    text-align: center;
    color: var(--wd-entities-title-color);
}
.cat-count { color: var(--wd-text-color); font-weight: 400; }

/* Category grid — horizontal scroll */
.pb-cat-scroll-wrap { width: 100%; position: relative; }
.categories-grid--scroll {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.categories-grid--scroll::-webkit-scrollbar { height: 8px; }
.categories-grid--scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Category grid — slider/carousel */
.autosab-cat-carousel {
    position: relative;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    --cat-visible: 5;
    --cat-gap: 15px;
    --cat-min-width: 180px;
}
.autosab-cat-carousel .cat-carousel-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.autosab-cat-carousel .cat-carousel-viewport {
    overflow: hidden;
    flex: 0 1 auto;
    touch-action: pan-y pinch-zoom;
}
.autosab-cat-carousel .cat-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--cat-gap);
    transition: transform .4s ease;
    will-change: transform;
    cursor: grab;
    user-select: none;
}
.autosab-cat-carousel .cat-carousel-track.is-dragging {
    cursor: grabbing;
}
.autosab-cat-carousel .cat-carousel-item {
    box-sizing: border-box;
    flex-shrink: 0;
    min-width: 0;
}
.autosab-cat-carousel .category-image-wrapp {
    aspect-ratio: 1;
    max-height: 200px;
}
.autosab-cat-carousel .cat-carousel-arrow {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .2s, color .2s, box-shadow .2s;
}
.autosab-cat-carousel .cat-carousel-arrow:hover:not(:disabled) {
    background: var(--wd-primary-color);
    color: #fff;
    border-color: var(--wd-primary-color);
    box-shadow: 0 4px 16px rgba(255,105,0,.3);
}
.autosab-cat-carousel .cat-carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
}
.autosab-cat-carousel .cat-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
    flex-basis: 100%;
}
.autosab-cat-carousel .cat-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
}
.autosab-cat-carousel .cat-carousel-dot.active { background: var(--wd-primary-color); }

/* Product tabs */
.autosab-products-section { padding: 20px 0 60px; }
.wd-nav-tabs { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 0; border-bottom: 2px solid var(--wd-border-color); }
.wd-nav-tabs li a {
    display: block;
    padding: 12px 25px;
    color: var(--wd-text-color);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.wd-nav-tabs li.active a,
.wd-nav-tabs li a:hover { color: var(--wd-primary-color); border-bottom-color: var(--wd-primary-color); }
.wd-tab-content { display: none; }
.wd-tab-content.active { display: block; }

/* WooCommerce products */
.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-wrapper {
    border: 1px solid var(--wd-border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
    position: relative;
}
.product-wrapper:hover { box-shadow: 0 5px 25px rgba(0,0,0,.1); }

.product-element-top { position: relative; }
.product-element-top img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f9f9f9; padding: 15px; }

.wd-add-cart-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all .3s;
}
.product-wrapper:hover .wd-add-cart-btn { opacity: 1; transform: translateX(-50%) translateY(0); }

.wd-add-cart-btn .button {
    background: var(--wd-primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 35px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.wd-add-cart-btn .button:hover { background: var(--wd-primary-color-hover); }

.products .woocommerce-loop-product__title {
    padding: 12px 15px 5px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-entities-title-color);
}

.products .price {
    padding: 0 15px 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wd-primary-color);
}
.products .price del { color: var(--wd-text-color); font-weight: 400; font-size: 13px; margin-right: 8px; }
.product-sku { padding: 0 15px 12px; font-size: 12px; color: var(--wd-text-color); }
.section-subtitle { font-size: 22px; margin: 40px 0 20px; font-weight: 600; }

.product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 20px 0 60px;
}
.product-single-gallery img {
    width: 100%;
    border: 1px solid var(--wd-border-color);
    border-radius: 8px;
    background: #f9f9f9;
    padding: 20px;
}
.product-price-lg { font-size: 28px; font-weight: 700; color: var(--wd-primary-color); margin: 16px 0; }
.product-meta { color: var(--wd-text-color); font-size: 14px; }
.stock.in-stock { color: #2e7d32; font-weight: 600; }
.stock.out-of-stock { color: #c62828; font-weight: 600; }
.notice-inline { color: var(--wd-text-color); font-size: 14px; margin-top: 12px; }
.product-description { margin-top: 24px; line-height: 1.7; color: var(--wd-entities-title-color); }

@media (max-width: 768px) {
    .product-single { grid-template-columns: 1fr; }
}

.onsale, .wd-onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.stock { padding: 0 15px 10px; font-size: 12px; color: #27ae60; }

/* Footer */
.wd-footer {
    background: var(--wd-footer-bg);
    color: var(--wd-footer-color);
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.widget-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact-list, .wd-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-contact-list li, .wd-footer ul li { margin-bottom: 10px; }
.wd-footer a { color: var(--wd-footer-color); }
.wd-footer a:hover { color: var(--wd-primary-color); }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}
.footer-disclaimer { opacity: .7; margin-top: 10px; }

/* Bottom toolbar (mobile) */
.wd-toolbar-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.1);
    z-index: 500;
    justify-content: space-around;
    padding: 8px 0;
}

.wd-toolbar-bottom a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--wd-text-color);
    font-size: 10px;
    gap: 3px;
}

.wd-toolbar-icon { width: 22px; height: 22px; background-size: contain; background-repeat: no-repeat; }
.wd-icon-home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.wd-icon-menu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z'/%3E%3C/svg%3E"); }
.wd-icon-shop { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.25 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1 1 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); }
.wd-icon-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M7 18c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM7.16 14l.84-2h8.45c.75 0 1.41-.41 1.75-1.03L21 4H5.21L4.27 2H1v2h2l3.6 7.59-1.35 2.44C5.09 14.37 5.46 15 6.16 15H19v-2H7.42l-.26-.04z'/%3E%3C/svg%3E"); }
.wd-icon-account { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E"); }

/* Cookies popup */
.wd-cookies-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,.15);
    border-radius: 8px;
    padding: 20px;
    z-index: 600;
    display: none;
}
.wd-cookies-popup.show { display: block; }
.cookies-inner { display: flex; flex-direction: column; gap: 15px; }
.cookies-inner p { margin: 0; font-size: 13px; }

/* Scroll to top */
.scrollToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--wd-primary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 400;
    box-shadow: 0 3px 15px rgba(0,0,0,.2);
}
.scrollToTop::after { content: '↑'; font-size: 20px; }
.scrollToTop.visible { display: flex; }

/* Mobile menu */
.autosab-mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 700;
    transition: left .3s;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0,0,0,.15);
}
.autosab-mobile-menu.open { left: 0; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #242424;
    color: #fff;
    font-weight: 600;
}
.autosab-mobile-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }
.mobile-nav-content ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-content li a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--wd-border-color); color: var(--wd-title-color); }

.autosab-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 650;
}
.autosab-overlay.show { display: block; }

/* Page title */
.page-title { font-size: 28px; margin: 30px 0 20px; }

/* Account login / register */
.account-page {
    background: #fff;
    width: 100%;
    display: block;
}
.account-page > .container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: var(--wd-container-w);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.account-page-inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 15px 64px;
    box-sizing: border-box;
}
.account-page .page-title.account-page-title {
    text-align: center;
    margin: 0 0 28px;
    font-size: 32px;
}
.account-card {
    background: #fff;
    border: 1px solid var(--wd-border-color);
    border-radius: 12px;
    padding: 28px 24px;
    box-sizing: border-box;
}
.account-card--logged { text-align: center; }
.account-greeting { font-size: 18px; margin: 0 0 8px; color: var(--wd-title-color); }
.account-email { color: var(--wd-text-color); margin: 0 0 20px; }
.account-page .account-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}
.account-page .account-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: #eee;
    color: var(--wd-title-color);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}
.account-page .account-tab.active {
    background: var(--wd-primary-color);
    color: #fff;
}
.account-page .form-group {
    display: block;
    margin-bottom: 18px;
    width: 100%;
}
.account-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--wd-title-color);
}
.account-page .form-group input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 1px solid var(--wd-form-brd-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    color: var(--wd-title-color);
    -webkit-appearance: none;
    appearance: none;
}
.account-page .form-group input:focus {
    outline: none;
    border-color: var(--wd-primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.15);
}
.account-page .account-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.account-page .autosab-form-error {
    background: #fdecea;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Responsive */
.whb-hidden-lg { display: none; }

@media (max-width: 1024px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .whb-visible-lg { display: none !important; }
    .whb-hidden-lg { display: flex !important; }
    .whb-col-center { display: none; }
    .wd-toolbar-bottom { display: flex; }
    body { padding-bottom: 60px; }
    .footer-widgets { grid-template-columns: 1fr; }
    .whb-header-bottom { display: none; }
}

@media (max-width: 768px) {
    .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .autosab-swiper { height: 280px; }
    .slide-content h2 { font-size: 24px; }
}

@media (max-width: 480px) {
    .products { grid-template-columns: repeat(2, 1fr); }
}
