/* ============================================================
   VENDARA — Frontend CSS
   Стиль: Warm Orange Marketplace
   Шрифты: Unbounded (заголовки) + Nunito (тело)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
    --vd-brand:         #FF6B2B;
    --vd-brand-dark:    #E05520;
    --vd-brand-hover:   #D44A18;
    --vd-brand-light:   #FFF4EE;
    --vd-brand-mid:     #FFD9C4;

    --vd-ink:           #1A1A2E;
    --vd-ink-2:         #2D2D44;
    --vd-text:          #333347;
    --vd-muted:         #6B7280;
    --vd-placeholder:   #9CA3AF;

    --vd-bg:            #F7F7FA;
    --vd-white:         #FFFFFF;
    --vd-surface:       #F3F4F6;
    --vd-border:        #E5E7EB;
    --vd-border-dark:   #D1D5DB;

    --vd-green:         #16A34A;
    --vd-green-light:   #DCFCE7;
    --vd-red:           #DC2626;
    --vd-red-light:     #FEE2E2;
    --vd-yellow:        #F59E0B;

    --vd-shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
    --vd-shadow:        0 4px 16px rgba(0,0,0,0.08);
    --vd-shadow-md:     0 8px 28px rgba(0,0,0,0.10);
    --vd-shadow-brand:  0 6px 20px rgba(255,107,43,0.30);

    --vd-radius-sm:     6px;
    --vd-radius:        10px;
    --vd-radius-md:     14px;
    --vd-radius-lg:     20px;
    --vd-radius-xl:     28px;

    --vd-font-display:  'Unbounded', sans-serif;
    --vd-font-body:     'Nunito', sans-serif;

    --vd-transition:    0.2s ease;
    --vd-transition-slow: 0.35s ease;
}

/* ── Base Reset & Typography ──────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--vd-font-body);
    background: var(--vd-bg);
    color: var(--vd-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ── Breadcrumbs ──────────────────────────────────────────── */
.vd-breadcrumb {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--vd-muted);
}
.vd-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.vd-breadcrumb__link {
    color: var(--vd-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--vd-transition);
}
.vd-breadcrumb__link:hover { color: var(--vd-brand); }
.vd-breadcrumb__sep {
    color: var(--vd-border-dark);
    font-size: 14px;
    line-height: 1;
}
.vd-breadcrumb__current {
    color: var(--vd-text);
    font-weight: 600;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.vd-topbar {
    background: var(--vd-brand);
    color: rgba(255,255,255,0.9);
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 0;
}

.vd-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vd-topbar__city {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--vd-transition);
}
.vd-topbar__city:hover { opacity: 0.85; }

.vd-topbar__promo {
    font-size: 12.5px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    flex: 1;
}

.vd-topbar__right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.vd-topbar__link {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    transition: color var(--vd-transition);
}
.vd-topbar__link:hover { color: #fff; }

.vd-topbar__phone {
    color: #fff;
    font-weight: 700;
}

/* Language Switcher */
.vd-lang {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.18);
    border-radius: 20px;
    padding: 2px;
}

.vd-lang__btn {
    padding: 2px 10px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    border: none;
    background: transparent;
    transition: all var(--vd-transition);
}

.vd-lang__btn--active,
.vd-lang__btn:hover {
    background: #fff;
    color: var(--vd-brand);
}

/* Currency Switcher Dropdown */
.vd-currency-dropdown {
    position: relative;
    margin-left: 8px;
}

.vd-currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.18);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--vd-transition);
}

.vd-currency-btn:hover {
    background: rgba(0,0,0,0.25);
}

.vd-currency-btn svg:last-child {
    transition: transform 0.2s ease;
}

.vd-currency-btn[aria-expanded="true"] svg:last-child {
    transform: rotate(180deg);
}

.vd-currency-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vd-text);
    transition: all var(--vd-transition);
}

.vd-currency-dropdown .dropdown-item:hover {
    background: rgba(74, 108, 247, 0.08);
    color: var(--vd-brand);
}

.vd-currency-dropdown .dropdown-item.active {
    background: var(--vd-brand);
    color: #fff;
}

.vd-currency-dropdown .dropdown-item.active:hover {
    background: var(--vd-brand-hover, #4a6cf7);
    color: #fff;
}

/* ── Main Header ──────────────────────────────────────────── */
.vd-header {
    background: var(--vd-white);
    border-bottom: 1.5px solid var(--vd-border);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--vd-shadow-sm);
}

.vd-header__inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 20px;
    height: 70px;
}

/* Logo */
.vd-logo {
    font-family: var(--vd-font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--vd-ink);
    letter-spacing: -0.5px;
    white-space: nowrap;
    line-height: 1;
}
.vd-logo span { color: var(--vd-brand); }
.vd-logo:hover { color: var(--vd-ink); }

/* Catalog Button */
.vd-catalog-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 18px;
    background: var(--vd-brand);
    color: #fff;
    border: none;
    border-radius: var(--vd-radius);
    font-family: var(--vd-font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--vd-transition), transform var(--vd-transition), box-shadow var(--vd-transition);
}
.vd-catalog-btn:hover {
    background: var(--vd-brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--vd-shadow-brand);
}
.vd-catalog-btn:active { transform: translateY(0); }

.vd-catalog-btn__burger {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
}
.vd-catalog-btn__burger span {
    display: block;
    width: 15px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* Search */
.vd-search {
    display: flex;
    height: 44px;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius);
    overflow: hidden;
    background: var(--vd-surface);
    transition: border-color var(--vd-transition), box-shadow var(--vd-transition);
}
.vd-search:focus-within {
    border-color: var(--vd-brand);
    background: var(--vd-white);
    box-shadow: 0 0 0 3px rgba(255,107,43,0.12);
}

.vd-search__input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-family: var(--vd-font-body);
    font-size: 14px;
    color: var(--vd-text);
    outline: none;
}
.vd-search__input::placeholder { color: var(--vd-placeholder); }

.vd-search__btn {
    height: 100%;
    width: 50px;
    border: none;
    background: var(--vd-brand);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vd-transition);
    flex-shrink: 0;
}
.vd-search__btn:hover { background: var(--vd-brand-dark); }

/* Search Dropdown */
.vd-search__wrap {
    position: relative;
    flex: 1;
}

.vd-search__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius);
    box-shadow: var(--vd-shadow-md);
    z-index: 200;
    overflow: hidden;
    display: none;
}
.vd-search__wrap:focus-within .vd-search__dropdown { display: block; }

.vd-search__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--vd-transition);
    font-size: 13px;
}
.vd-search__item:hover { background: var(--vd-brand-light); }
.vd-search__item-img {
    width: 38px;
    height: 38px;
    background: var(--vd-surface);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.vd-search__item-name { font-weight: 600; color: var(--vd-text); }
.vd-search__item-cat  { font-size: 11px; color: var(--vd-muted); margin-top: 1px; }
.vd-search__item-price { margin-left: auto; font-weight: 700; color: var(--vd-ink); font-family: var(--vd-font-display); font-size: 13px; }
.vd-search__all {
    display: block;
    padding: 11px 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--vd-brand);
    border-top: 1px solid var(--vd-border);
    transition: background var(--vd-transition);
}
.vd-search__all:hover { background: var(--vd-brand-light); color: var(--vd-brand-dark); }

/* Header Actions */
.vd-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vd-hbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--vd-radius-sm);
    color: var(--vd-text);
    transition: background var(--vd-transition);
    position: relative;
    white-space: nowrap;
}
.vd-hbtn:hover { background: var(--vd-surface); }

.vd-hbtn__label {
    font-family: var(--vd-font-body);
    font-size: 11px;
    color: var(--vd-muted);
    font-weight: 600;
}

.vd-hbtn__badge {
    position: absolute;
    top: 4px;
    right: 5px;
    background: var(--vd-brand);
    color: #fff;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vd-hbtn--cart {
    flex-direction: row;
    gap: 10px;
    background: var(--vd-brand-light);
    border: 1.5px solid var(--vd-brand-mid);
    border-radius: var(--vd-radius);
    padding: 0 14px;
    height: 44px;
}
.vd-hbtn--cart:hover { background: var(--vd-brand-mid); }
.vd-hbtn--cart .vd-hbtn__icon { color: var(--vd-brand); }

.vd-cart-info__count { font-size: 11px; color: var(--vd-brand); font-weight: 700; line-height: 1.2; }
.vd-cart-info__sum   { font-family: var(--vd-font-display); font-size: 13px; font-weight: 700; color: var(--vd-ink); line-height: 1.2; }

/* ── Category Nav (horizontal pills) ─────────────────────── */
.vd-catnav {
    background: var(--vd-white);
    border-bottom: 1.5px solid var(--vd-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.vd-catnav::-webkit-scrollbar { display: none; }

.vd-catnav__inner {
    display: flex;
    gap: 2px;
}

.vd-catnav__pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    border: none;
    background: transparent;
    font-family: var(--vd-font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--vd-muted);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color var(--vd-transition), border-color var(--vd-transition);
    text-decoration: none;
}
.vd-catnav__pill:hover,
.vd-catnav__pill--active {
    color: var(--vd-brand);
    border-bottom-color: var(--vd-brand);
}

/* ── Hero Section ─────────────────────────────────────────── */
.vd-hero {
    padding: 20px 0 28px;
}

.vd-hero__grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 16px;
    align-items: stretch;
}

/* Main Banner */
.vd-hero__main {
    border-radius: var(--vd-radius-xl);
    overflow: hidden;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    padding: 44px 48px;
    cursor: pointer;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}

.vd-hero__bg-emoji {
    position: absolute;
    right: 36px;
    bottom: 0;
    font-size: 180px;
    opacity: 0.09;
    line-height: 1;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

/* Hero background media (video / image) */
.vd-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

.vd-hero__bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
}

.vd-hero__content { position: relative; z-index: 2; max-width: 440px; }

/* When slide has a real background (image/video), pin button to bottom-left */
.vd-hero__bg-video ~ .vd-hero__content,
.vd-hero__bg-image ~ .vd-hero__content {
    position: absolute;
    bottom: 44px;
    left: 48px;
    max-width: none;
}

.vd-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vd-brand);
    color: #fff;
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 18px;
}

.vd-hero__title {
    font-family: var(--vd-font-display);
    font-size: clamp(24px, 3vw, 40px);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 900;
}
.vd-hero__title em {
    color: var(--vd-brand);
    font-style: normal;
}

.vd-hero__sub {
    color: rgba(255,255,255,0.62);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.vd-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--vd-brand);
    color: #fff;
    border: none;
    border-radius: var(--vd-radius);
    padding: 13px 26px;
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--vd-transition), transform var(--vd-transition);
    text-decoration: none;
}
.vd-hero__btn:hover {
    background: var(--vd-brand-dark);
    transform: translateX(2px);
    color: #fff;
}

/* Slider dots */
.vd-hero__dots {
    position: absolute;
    bottom: 18px;
    left: 48px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.vd-hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all var(--vd-transition-slow);
}
.vd-hero__dot--active { width: 26px; background: var(--vd-brand); }

/* Slide navigation arrows */
.vd-hero__arrows {
    position: absolute;
    bottom: 12px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.vd-hero__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--vd-transition);
}
.vd-hero__arrow:hover { background: rgba(255,255,255,0.22); }

/* Sub banners */
.vd-hero__aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vd-hero__card {
    flex: 1;
    border-radius: var(--vd-radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: transform var(--vd-transition), box-shadow var(--vd-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vd-hero__card:hover {
    transform: scale(1.025);
    box-shadow: var(--vd-shadow-md);
}
.vd-hero__card--orange {
    background: linear-gradient(135deg, var(--vd-brand-light), #FFE4D0);
    border: 1.5px solid var(--vd-brand-mid);
}
.vd-hero__card--blue {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border: 1.5px solid #BFDBFE;
}

.vd-hero__card-emoji { font-size: 40px; margin-bottom: 8px; }

.vd-hero__card-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}
.vd-hero__card--orange .vd-hero__card-tag { color: var(--vd-brand); }
.vd-hero__card--blue   .vd-hero__card-tag { color: #2563EB; }

.vd-hero__card-title {
    font-family: var(--vd-font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--vd-ink);
    margin-bottom: 4px;
}
.vd-hero__card-desc { font-size: 12px; color: var(--vd-muted); }

/* ── Section Shared ───────────────────────────────────────── */
.vd-section { padding: 44px 0; }
.vd-section--white { background: var(--vd-white); }
.vd-section--bg    { background: var(--vd-bg); }

.vd-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.vd-section__title {
    font-family: var(--vd-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--vd-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.vd-section__title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--vd-brand);
    border-radius: 3px;
}

.vd-section__more {
    font-size: 13px;
    font-weight: 700;
    color: var(--vd-brand);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--vd-transition), color var(--vd-transition);
}
.vd-section__more:hover { color: var(--vd-brand-dark); gap: 8px; }

/* ── Category Cards ───────────────────────────────────────── */
.vd-cats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}

.vd-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-md);
    cursor: pointer;
    transition: all var(--vd-transition);
    text-decoration: none;
    color: var(--vd-text);
}
.vd-cat:hover {
    border-color: var(--vd-brand);
    background: var(--vd-brand-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,107,43,0.12);
    color: var(--vd-ink);
}

.vd-cat__icon { font-size: 26px; }
.vd-cat__name { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.3; }

/* ── Product Card ─────────────────────────────────────────── */
.vd-products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.vd-product {
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-md);
    overflow: hidden;
    transition: all var(--vd-transition-slow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.vd-product:hover {
    box-shadow: var(--vd-shadow-md);
    transform: translateY(-3px);
    border-color: var(--vd-brand-mid);
}

.vd-product__img {
    height: 160px;
    background: var(--vd-surface);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}
.vd-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.vd-product__badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vd-product__badge--bottom {
    top: auto;
    bottom: 9px;
}
.vd-product__badge--sale { background: var(--vd-brand);  color: #fff; }
.vd-product__badge--new  { background: var(--vd-green);  color: #fff; }
.vd-product__badge--hot  { background: var(--vd-red);    color: #fff; }

.vd-product__fav {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--vd-transition);
    font-size: 14px;
    color: var(--vd-muted);
}
.vd-product__fav:hover,
.vd-product__fav--active {
    border-color: var(--vd-brand);
    color: var(--vd-brand);
    background: var(--vd-brand-light);
}

.vd-product__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vd-product__brand {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--vd-brand);
    margin-bottom: 4px;
}

.vd-product__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--vd-text);
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vd-product__price {
    font-family: var(--vd-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--vd-ink);
    line-height: 1.2;
}

.vd-product__old {
    font-size: 12px;
    color: var(--vd-muted);
    text-decoration: line-through;
    margin-top: 2px;
    margin-bottom: 10px;
    min-height: 16px;
}

.vd-btn-cart {
    width: 100%;
    height: 38px;
    background: var(--vd-brand);
    color: #fff;
    border: none;
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--vd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
}
.vd-btn-cart:hover { background: var(--vd-brand-dark); }
.vd-btn-cart:active { background: var(--vd-brand-hover); }

/* ── Promo Banners ────────────────────────────────────────── */
.vd-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vd-promo {
    border-radius: var(--vd-radius-lg);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--vd-transition);
}
.vd-promo:hover { transform: scale(1.01); }

.vd-promo--orange { background: linear-gradient(135deg, #FF6B2B, #FF8C00); }
.vd-promo--dark   { background: linear-gradient(135deg, #1A1A2E, #0F3460); }

.vd-promo__bg {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    opacity: 0.12;
    pointer-events: none;
}

.vd-promo h3 {
    font-family: var(--vd-font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}
.vd-promo p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.vd-promo__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: var(--vd-radius-sm);
    padding: 9px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--vd-transition);
    position: relative;
    z-index: 1;
    font-family: var(--vd-font-body);
}
.vd-promo__btn:hover { background: rgba(255,255,255,0.28); }

/* ── Brands Strip ─────────────────────────────────────────── */
.vd-brands {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    padding-top: 4px;
}
.vd-brands::-webkit-scrollbar { display: none; }

.vd-brand {
    flex: 0 0 auto;
    height: 62px;
    padding: 0 24px;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--vd-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--vd-muted);
    cursor: pointer;
    transition: all var(--vd-transition);
    white-space: nowrap;
    text-decoration: none;
}
.vd-brand:hover {
    border-color: var(--vd-brand);
    color: var(--vd-brand);
    transform: translateY(-2px);
    box-shadow: var(--vd-shadow);
}

/* ── Advantages ───────────────────────────────────────────── */
.vd-adv {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.vd-adv__item {
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-md);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform var(--vd-transition), box-shadow var(--vd-transition);
}
.vd-adv__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--vd-brand);
    border-radius: 0;
}
.vd-adv__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--vd-shadow);
}

.vd-adv__icon { font-size: 34px; }
.vd-adv__title {
    font-family: var(--vd-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--vd-ink);
    line-height: 1.4;
}
.vd-adv__desc { font-size: 13px; color: var(--vd-muted); line-height: 1.6; }

/* ── Footer ───────────────────────────────────────────────── */
.vd-footer {
    background: var(--vd-ink);
    color: rgba(255,255,255,0.55);
    padding: 52px 0 0;
}

.vd-footer__grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vd-footer__logo {
    font-family: var(--vd-font-display);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
}
.vd-footer__logo span { color: var(--vd-brand); }

.vd-footer__desc {
    font-size: 13.5px;
    line-height: 1.75;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.5);
}

.vd-footer__social {
    display: flex;
    gap: 8px;
}
.vd-footer__social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--vd-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--vd-transition);
    border: none;
    text-decoration: none;
}
.vd-footer__social-btn:hover { background: rgba(255,255,255,0.14); }

.vd-footer__col h4 {
    font-family: var(--vd-font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.vd-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.vd-footer__col ul li a {
    color: rgba(255,255,255,0.52);
    font-size: 14px;
    transition: color var(--vd-transition);
    text-decoration: none;
}
.vd-footer__col ul li a:hover { color: var(--vd-brand); }

.vd-footer__bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    gap: 16px;
}
.vd-footer__bottom-links {
    display: flex;
    gap: 20px;
}
.vd-footer__bottom a {
    color: rgba(255,255,255,0.32);
    text-decoration: none;
    transition: color var(--vd-transition);
}
.vd-footer__bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── Auth Modal ───────────────────────────────────────────── */
.vd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--vd-transition-slow), visibility var(--vd-transition-slow);
}
.vd-modal-backdrop--open {
    opacity: 1;
    visibility: visible;
}

.vd-modal {
    background: var(--vd-white);
    border-radius: var(--vd-radius-xl);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.20);
    transform: translateY(28px) scale(0.97);
    transition: transform var(--vd-transition-slow);
    margin: 16px;
}
.vd-modal-backdrop--open .vd-modal {
    transform: translateY(0) scale(1);
}

.vd-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--vd-border);
    background: var(--vd-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vd-muted);
    transition: all var(--vd-transition);
    font-size: 18px;
    line-height: 1;
}
.vd-modal__close:hover {
    background: var(--vd-brand-light);
    border-color: var(--vd-brand);
    color: var(--vd-brand);
}

.vd-modal__logo {
    font-family: var(--vd-font-display);
    font-size: 18px;
    font-weight: 900;
    color: var(--vd-ink);
    margin-bottom: 20px;
    display: block;
}
.vd-modal__logo span { color: var(--vd-brand); }

.vd-modal__title {
    font-family: var(--vd-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--vd-ink);
    margin-bottom: 6px;
    line-height: 1.3;
}

.vd-modal__desc {
    font-size: 14px;
    color: var(--vd-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Steps */
.vd-modal__step { display: none; }
.vd-modal__step--active { display: block; }

/* Phone input */
.vd-phone-wrap {
    display: flex;
    border: 2px solid var(--vd-border);
    border-radius: var(--vd-radius);
    overflow: hidden;
    transition: border-color var(--vd-transition), box-shadow var(--vd-transition);
    height: 52px;
    margin-bottom: 16px;
}
.vd-phone-wrap:focus-within {
    border-color: var(--vd-brand);
    box-shadow: 0 0 0 3px rgba(255,107,43,0.12);
}

.vd-phone-flag {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: var(--vd-surface);
    border-right: 2px solid var(--vd-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--vd-text);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    transition: background var(--vd-transition);
}
.vd-phone-flag:hover { background: var(--vd-brand-light); }
.vd-phone-flag img { border-radius: 2px; }

.vd-phone-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 16px;
    font-family: var(--vd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--vd-ink);
    outline: none;
    letter-spacing: 0.02em;
}
.vd-phone-input::placeholder { color: var(--vd-placeholder); font-weight: 400; }

/* OTP input */
.vd-otp-wrap {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.vd-otp-input {
    width: 52px;
    height: 58px;
    border: 2px solid var(--vd-border);
    border-radius: var(--vd-radius);
    text-align: center;
    font-family: var(--vd-font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--vd-ink);
    outline: none;
    transition: border-color var(--vd-transition), box-shadow var(--vd-transition);
}
.vd-otp-input:focus {
    border-color: var(--vd-brand);
    box-shadow: 0 0 0 3px rgba(255,107,43,0.12);
}
.vd-otp-input.filled {
    border-color: var(--vd-green);
    background: var(--vd-green-light);
    color: var(--vd-green);
}

.vd-modal__phone-show {
    font-size: 14px;
    font-weight: 700;
    color: var(--vd-ink);
    text-align: center;
    margin-bottom: 6px;
}
.vd-modal__change {
    font-size: 13px;
    color: var(--vd-brand);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-bottom: 24px;
    display: block;
    background: none;
    border: none;
}
.vd-modal__change:hover { color: var(--vd-brand-dark); }

/* Resend timer */
.vd-modal__resend {
    text-align: center;
    font-size: 13px;
    color: var(--vd-muted);
    margin-top: 12px;
}
.vd-modal__resend-btn {
    background: none;
    border: none;
    color: var(--vd-brand);
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}
.vd-modal__resend-btn:hover { color: var(--vd-brand-dark); }
.vd-modal__resend-btn:disabled { color: var(--vd-muted); cursor: not-allowed; }

/* Country Selector Dropdown */
.vd-country-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius);
    box-shadow: var(--vd-shadow-md);
    z-index: 10;
    overflow: hidden;
    display: none;
}
.vd-country-drop--open { display: block; }
.vd-country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--vd-transition);
}
.vd-country-item:hover { background: var(--vd-brand-light); }
.vd-country-item span { color: var(--vd-muted); font-size: 13px; }

/* Modals submit btn */
.vd-btn-primary {
    width: 100%;
    height: 50px;
    background: var(--vd-brand);
    color: #fff;
    border: none;
    border-radius: var(--vd-radius);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--vd-transition), transform var(--vd-transition), box-shadow var(--vd-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.vd-btn-primary:hover:not(:disabled) {
    background: var(--vd-brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--vd-shadow-brand);
}
.vd-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vd-modal__terms {
    font-size: 11.5px;
    color: var(--vd-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}
.vd-modal__terms a { color: var(--vd-brand); font-weight: 700; }

/* ── Phone mask widget (pm-*) — frontend context ─────────────── */
.pm-wrap {
    display: flex;
    align-items: stretch;
}
.pm-select {
    flex-shrink: 0;
    height: 44px;
    border: 1.5px solid var(--vd-border);
    border-right: none;
    border-radius: var(--vd-radius-sm) 0 0 var(--vd-radius-sm);
    background: var(--vd-surface);
    padding: 0 10px;
    font-family: var(--vd-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-ink);
    cursor: pointer;
    outline: none;
    transition: border-color var(--vd-transition);
    appearance: auto;
}
.pm-select:focus { border-color: var(--vd-brand); }

/* Password strength indicator (used in modal and profile) */
.vd-pw-strength { margin-top: 6px; }
.vd-pw-strength__bar {
    height: 4px;
    background: var(--vd-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.vd-pw-strength__fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0%;
}
.vd-pw-strength__fill--weak   { background: var(--vd-red);    width: 33%; }
.vd-pw-strength__fill--medium { background: var(--vd-yellow);  width: 66%; }
.vd-pw-strength__fill--strong { background: var(--vd-green);   width: 100%; }
.vd-pw-strength__label { font-size: 11px; font-weight: 700; }
.vd-pw-strength__label--weak   { color: var(--vd-red); }
.vd-pw-strength__label--medium { color: var(--vd-yellow); }
.vd-pw-strength__label--strong { color: var(--vd-green); }

/* Standalone password/text input inside modal */
.vd-modal__input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius);
    background: var(--vd-surface);
    padding: 0 16px;
    font-family: var(--vd-font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--vd-ink);
    outline: none;
    transition: border-color var(--vd-transition);
    box-sizing: border-box;
}
.vd-modal__input:focus { border-color: var(--vd-brand); background: var(--vd-white); }
.vd-modal__input::placeholder { color: var(--vd-muted); font-weight: 400; }

/* Error message in modal */
.vd-modal__error {
    font-size: 13px;
    color: #e53e3e;
    margin-top: 8px;
    font-weight: 500;
}

/* ── Mega Menu ────────────────────────────────────────────── */
.vd-megamenu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--vd-transition);
}
.vd-megamenu-backdrop--open { opacity: 1; visibility: visible; }

.vd-megamenu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--vd-white);
    border-bottom: 1.5px solid var(--vd-border);
    box-shadow: var(--vd-shadow-md);
    z-index: 850;
    display: none;
}
.vd-megamenu--open { display: block; }

.vd-megamenu__inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 420px;
}

.vd-megamenu__left {
    background: var(--vd-surface);
    border-right: 1.5px solid var(--vd-border);
    padding: 8px 0;
}
.vd-megamenu__cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-text);
    transition: all var(--vd-transition);
    border-right: 3px solid transparent;
    text-decoration: none;
}
.vd-megamenu__cat:hover,
.vd-megamenu__cat--active {
    background: var(--vd-brand-light);
    color: var(--vd-brand);
    border-right-color: var(--vd-brand);
}
.vd-megamenu__cat-arrow { margin-left: auto; color: var(--vd-muted); }

.vd-megamenu__right {
    padding: 24px 28px;
}
.vd-megamenu__sub-title {
    font-family: var(--vd-font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--vd-muted);
    margin-bottom: 14px;
}
.vd-megamenu__sub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 14px;
}
.vd-megamenu__sub-link {
    font-size: 13.5px;
    color: var(--vd-text);
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: all var(--vd-transition);
    text-decoration: none;
    display: block;
}
.vd-megamenu__sub-link:hover {
    color: var(--vd-brand);
    border-bottom-color: var(--vd-brand-mid);
}

/* ── Mobile Drawer ────────────────────────────────────────── */
.vd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.55);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--vd-transition-slow);
}
.vd-drawer-backdrop--open { opacity: 1; visibility: visible; }

.vd-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: var(--vd-white);
    z-index: 1041;
    transform: translateX(-100%);
    transition: transform var(--vd-transition-slow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.vd-drawer-backdrop--open .vd-drawer { transform: translateX(0); }

.vd-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--vd-border);
    flex-shrink: 0;
}
.vd-drawer__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--vd-border);
    background: var(--vd-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--vd-muted);
    transition: all var(--vd-transition);
}
.vd-drawer__close:hover { background: var(--vd-brand-light); color: var(--vd-brand); }

.vd-drawer__search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--vd-border);
}

.vd-drawer__nav { flex: 1; overflow-y: auto; }

.vd-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--vd-text);
    border-bottom: 1px solid var(--vd-border);
    text-decoration: none;
    transition: background var(--vd-transition), color var(--vd-transition);
}
.vd-drawer__link:hover { background: var(--vd-brand-light); color: var(--vd-brand); }

.vd-drawer__footer {
    padding: 16px 20px;
    border-top: 1.5px solid var(--vd-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vd-drawer__footer-link {
    font-size: 13px;
    color: var(--vd-muted);
    font-weight: 600;
    text-decoration: none;
}

/* ── Utilities / Helpers ──────────────────────────────────── */
.vd-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.vd-divider {
    height: 1px;
    background: var(--vd-border);
    margin: 0;
}

/* ── Responsive — Tablet (≤ 1100px) ──────────────────────── */
@media (max-width: 1100px) {
    .vd-header__inner {
        grid-template-columns: auto auto 1fr auto;
        gap: 14px;
    }

    .vd-hero__grid {
        grid-template-columns: 1fr 260px;
    }

    .vd-cats {
        grid-template-columns: repeat(4, 1fr);
    }

    .vd-products {
        grid-template-columns: repeat(4, 1fr);
    }

    .vd-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .vd-megamenu__sub-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vd-topbar__promo { display: none; }
}

/* ── Responsive — Mobile (≤ 768px) ───────────────────────── */
@media (max-width: 768px) {
    /* Topbar */
    .vd-topbar__inner {
        justify-content: space-between;
    }
    .vd-topbar__right {
        gap: 12px;
    }
    .vd-topbar__link[href*="Доставка"],
    .vd-topbar__link[href*="Контакты"],
    .vd-topbar__phone { display: none; }

    /* Header */
    .vd-header__inner {
        grid-template-columns: auto 1fr auto auto;
        gap: 10px;
        height: 58px;
    }
    .vd-catalog-btn { display: none; }
    .vd-logo { font-size: 17px; }

    /* Search collapse to icon on mobile */
    .vd-search { display: none; }
    .vd-search--mobile { display: flex; }

    .vd-hbtn__label { display: none; }
    .vd-hbtn--cart .vd-cart-info { display: none; }
    .vd-hbtn--cart { padding: 0 10px; }
    .vd-hbtn--fav { display: none; }

    /* Catnav */
    .vd-catnav__pill { padding: 11px 12px; font-size: 12.5px; }

    /* Hero */
    .vd-hero { padding: 14px 0 20px; }
    .vd-hero__grid {
        grid-template-columns: 1fr;
    }
    .vd-hero__aside { flex-direction: row; }
    .vd-hero__main {
        min-height: 280px;
        padding: 28px 24px;
    }
    .vd-hero__title { font-size: 22px; }
    .vd-hero__bg-emoji { font-size: 110px; right: 16px; opacity: 0.07; }
    .vd-hero__dots { left: 24px; bottom: 14px; }

    /* Categories */
    .vd-cats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .vd-cat { padding: 14px 6px; }
    .vd-cat__icon { font-size: 22px; }
    .vd-cat__name { font-size: 11px; }

    /* Products */
    .vd-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .vd-product__img { height: 140px; font-size: 38px; }

    /* Promo */
    .vd-promo-grid { grid-template-columns: 1fr; }
    .vd-promo { padding: 28px 24px; }

    /* Advantages */
    .vd-adv {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Footer */
    .vd-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .vd-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .vd-footer__bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

    /* Modal */
    .vd-modal { padding: 28px 20px; }
    .vd-otp-wrap { gap: 7px; }
    .vd-otp-input { width: 44px; height: 52px; font-size: 20px; }

    /* Section */
    .vd-section { padding: 32px 0; }
    .vd-section__title { font-size: 17px; }
}

/* ── Responsive — Small Mobile (≤ 480px) ─────────────────── */
@media (max-width: 480px) {
    .vd-container { padding: 0 14px; }

    .vd-cats { grid-template-columns: repeat(4, 1fr); }

    .vd-hero__aside { flex-direction: column; }

    .vd-products { grid-template-columns: repeat(2, 1fr); }

    .vd-adv { grid-template-columns: 1fr 1fr; }

    .vd-footer__grid { grid-template-columns: 1fr; gap: 24px; }

    .vd-header__inner { height: 54px; }
    .vd-logo { font-size: 16px; }
}


/* ── Profile Layout ───────────────────────────────────────── */
.vd-profile-layout {
    padding: 32px 0 56px;
    background: var(--vd-bg);
    min-height: calc(100vh - 130px);
}

.vd-profile-layout__inner {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
}

.vd-profile-sidebar {
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-md);
    overflow: hidden;
    position: sticky;
    top: 88px;
}

.vd-profile-sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1.5px solid var(--vd-border);
    background: var(--vd-brand-light);
}

.vd-profile-sidebar__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--vd-brand);
    color: #fff;
    font-family: var(--vd-font-display);
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vd-profile-sidebar__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--vd-ink);
}
.vd-profile-sidebar__phone {
    font-size: 12px;
    color: var(--vd-muted);
    margin-top: 1px;
}

.vd-profile-sidebar__nav {
    padding: 8px 0;
}

.vd-profile-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-text);
    background: none;
    border: none;
    text-align: left;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    transition: background var(--vd-transition), color var(--vd-transition);
    border-left: 3px solid transparent;
}
.vd-profile-sidebar__link:hover {
    background: var(--vd-surface);
    color: var(--vd-brand);
}
.vd-profile-sidebar__link.active {
    background: var(--vd-brand-light);
    color: var(--vd-brand);
    border-left-color: var(--vd-brand);
}
.vd-profile-sidebar__link--danger {
    color: var(--vd-red);
}
.vd-profile-sidebar__link--danger:hover {
    background: var(--vd-red-light);
    color: var(--vd-red);
}

.vd-profile-sidebar__divider {
    height: 1px;
    background: var(--vd-border);
    margin: 8px 0;
}

.vd-profile-content {
    min-width: 0;
}

@media (max-width: 768px) {
    .vd-profile-layout__inner {
        grid-template-columns: 1fr;
    }
    .vd-profile-sidebar {
        position: static;
    }
}

/* ═══════════════════════════════════════════════════════════
   CABINET — ORGANIZATIONS
   ═══════════════════════════════════════════════════════════ */

/* -- Cabinet card ----------------------------------------- */
.cab-card {
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.cab-card:last-child { margin-bottom: 0; }
.cab-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1.5px solid var(--vd-border);
}
.cab-card__title {
    font-family: var(--vd-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--vd-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cab-card__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--vd-brand);
    border-radius: 2px;
    flex-shrink: 0;
}
.cab-card__body { padding: 24px; }

/* -- Breadcrumb ------------------------------------------- */
.cab-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--vd-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.cab-breadcrumb a {
    color: var(--vd-muted);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--vd-transition);
}
.cab-breadcrumb a:hover { color: var(--vd-brand); }
.cab-breadcrumb__sep { color: var(--vd-border-dark); }
.cab-breadcrumb__current { color: var(--vd-text); font-weight: 600; }

/* -- Form fields ------------------------------------------ */
.vd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.vd-form-row--full { grid-template-columns: 1fr; }
.vd-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.vd-field { display: flex; flex-direction: column; gap: 6px; }
.vd-label { font-size: 13px; font-weight: 700; color: var(--vd-ink); }
.vd-label span { color: var(--vd-brand); margin-left: 2px; }
.vd-label__hint { font-size: 11px; font-weight: 400; color: var(--vd-muted); margin-left: 4px; }
.vd-input {
    height: 44px;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    padding: 0 14px;
    font-family: var(--vd-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--vd-ink);
    background: var(--vd-white);
    outline: none;
    transition: border-color var(--vd-transition), box-shadow var(--vd-transition);
    width: 100%;
    box-sizing: border-box;
}
.vd-input:focus {
    border-color: var(--vd-brand);
    box-shadow: 0 0 0 3px rgba(255,107,43,0.10);
}
.vd-input::placeholder { color: var(--vd-placeholder); font-weight: 400; }
.vd-input:disabled { background: var(--vd-surface); color: var(--vd-muted); cursor: not-allowed; }
.vd-input--error { border-color: var(--vd-red); }
.vd-input--error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.10); }
.vd-field__hint { font-size: 12px; color: var(--vd-muted); line-height: 1.4; }
.vd-field__error { font-size: 12px; color: var(--vd-red); font-weight: 600; }
textarea.vd-input { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; }

/* -- Organization list ------------------------------------ */
.vd-org-list { display: flex; flex-direction: column; gap: 12px; }
.vd-org-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    background: var(--vd-white);
    transition: border-color var(--vd-transition), box-shadow var(--vd-transition);
    gap: 12px;
}
.vd-org-item:hover {
    border-color: var(--vd-border-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.vd-org-item__info { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.vd-org-item__name {
    font-family: var(--vd-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--vd-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vd-org-item__details { min-width: 0; flex: 1; }
.vd-org-item__meta { font-size: 12px; color: var(--vd-muted); margin-top: 2px; }
.vd-org-item__rejected {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 12px;
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
    line-height: 1.4;
}
.vd-org-item__rejected svg { flex-shrink: 0; margin-top: 1px; }
.vd-org-item__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* -- Pagination ------------------------------------------- */
.vd-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--vd-border);
}
.vd-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 4px;
    border-radius: var(--vd-radius);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--vd-font-body);
    color: var(--vd-text);
    border: 1.5px solid var(--vd-border);
    background: var(--vd-white);
    text-decoration: none;
    transition: border-color var(--vd-transition), color var(--vd-transition), background var(--vd-transition);
}
.vd-pagination__btn:hover:not(.vd-pagination__btn--active):not(.vd-pagination__btn--disabled) {
    border-color: var(--vd-brand);
    color: var(--vd-brand);
}
.vd-pagination__btn--active {
    background: var(--vd-brand);
    border-color: var(--vd-brand);
    color: #fff;
    cursor: default;
}
.vd-pagination__btn--disabled {
    opacity: 0.35;
    cursor: default;
}

/* -- Status badges ---------------------------------------- */
.vd-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.vd-status-badge--on_moderation { background: #FEF9C3; color: #A16207; }
.vd-status-badge--approved      { background: #DCFCE7; color: #15803D; }
.vd-status-badge--rejected      { background: #FEE2E2; color: #B91C1C; }

/* -- Buttons --------------------------------------------- */
.vd-btn-save {
    height: 42px;
    padding: 0 28px;
    background: var(--vd-brand);
    color: #fff;
    border: none;
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--vd-transition), transform var(--vd-transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.vd-btn-save:hover { background: var(--vd-brand-dark); transform: translateY(-1px); color: #fff; }
.vd-btn-save:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.vd-btn-cancel {
    height: 42px;
    padding: 0 20px;
    background: transparent;
    color: var(--vd-muted);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--vd-transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}
.vd-btn-cancel:hover { border-color: var(--vd-border-dark); color: var(--vd-text); }
.vd-btn-danger {
    height: 42px;
    padding: 0 20px;
    background: var(--vd-red-light, #FEF2F2);
    color: var(--vd-red, #DC2626);
    border: 1.5px solid var(--vd-red, #DC2626);
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--vd-transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.vd-btn-danger:hover { background: var(--vd-red, #DC2626); color: #fff; }
.vd-btn-add {
    height: 42px;
    padding: 0 24px;
    background: var(--vd-surface);
    color: var(--vd-brand);
    border: 1.5px solid var(--vd-brand);
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--vd-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.vd-btn-add:hover { background: var(--vd-brand); color: #fff; }
.vd-btn-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
    background: transparent;
    color: var(--vd-muted);
    cursor: pointer;
    transition: all var(--vd-transition);
    text-decoration: none;
    flex-shrink: 0;
}
.vd-btn-icon:hover { border-color: var(--vd-brand); color: var(--vd-brand); }
.vd-btn-icon--danger:hover { border-color: var(--vd-red, #DC2626); color: var(--vd-red, #DC2626); }
.vd-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* -- Alerts ---------------------------------------------- */
.vd-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 40px 12px 16px;
    border-radius: var(--vd-radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}
.vd-alert--success { background: #F0FDF4; border: 1.5px solid #BBF7D0; color: #15803D; }
.vd-alert--error   { background: #FEF2F2; border: 1.5px solid #FECACA; color: #B91C1C; }
.vd-alert__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.vd-alert__close:hover { opacity: 1; }

/* -- File upload ------------------------------------------ */
.vd-file-upload {
    border: 1.5px dashed var(--vd-border);
    border-radius: var(--vd-radius-sm);
    padding: 16px;
    background: var(--vd-surface);
    margin-top: 8px;
}
.vd-file-upload__label { font-size: 13px; font-weight: 700; color: var(--vd-ink); display: block; margin-bottom: 8px; }
.vd-file-upload__input { display: block; width: 100%; font-size: 13px; color: var(--vd-text); }
.vd-file-upload__hint { font-size: 11px; color: var(--vd-muted); margin-top: 6px; }
.vd-file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.vd-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--vd-white);
    border: 1.5px solid var(--vd-border);
    border-radius: var(--vd-radius-sm);
}
.vd-file-item__name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vd-ink);
    text-decoration: none;
    transition: color var(--vd-transition);
    min-width: 0;
}
.vd-file-item__name:hover { color: var(--vd-brand); }
.vd-file-item__name span { flex-shrink: 0; }
.vd-file-item__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -- Form actions ----------------------------------------- */
.vd-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1.5px solid var(--vd-border);
    flex-wrap: wrap;
}

/* -- Empty state ------------------------------------------ */
.vd-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--vd-muted);
}
.vd-empty__icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.vd-empty__text { font-size: 14px; margin-bottom: 20px; }

/* -- Mobile tabs (cabinet) -------------------------------- */
.cab-mobile-tabs {
    display: none;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    border-bottom: 1.5px solid var(--vd-border);
    background: var(--vd-white);
    margin-bottom: 20px;
    border-radius: var(--vd-radius-md) var(--vd-radius-md) 0 0;
}
.cab-mobile-tabs::-webkit-scrollbar { display: none; }
.cab-mobile-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vd-muted);
    text-decoration: none;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color var(--vd-transition), border-color var(--vd-transition);
}
.cab-mobile-tab.active,
.cab-mobile-tab:hover { color: var(--vd-brand); border-bottom-color: var(--vd-brand); }

@media (max-width: 768px) {
    .cab-mobile-tabs { display: flex; }
    .vd-form-row { grid-template-columns: 1fr; gap: 12px; }
    .vd-form-row--3 { grid-template-columns: 1fr; }
    .vd-form-actions { flex-direction: column; align-items: stretch; }
    .vd-btn-save,
    .vd-btn-cancel,
    .vd-btn-danger { width: 100%; justify-content: center; }
    .vd-org-item { flex-wrap: wrap; }
    .vd-org-item__actions { width: 100%; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   CONFIRM MODAL
   ═══════════════════════════════════════════════════════════ */
.vd-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.vd-confirm-modal--open {
    display: flex;
}
.vd-confirm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.vd-confirm-modal__dialog {
    position: relative;
    z-index: 1;
    background: var(--vd-white);
    border-radius: var(--vd-radius-md);
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: vd-confirm-in 0.2s ease;
}
@keyframes vd-confirm-in {
    from { opacity: 0; transform: scale(0.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.vd-confirm-modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.vd-confirm-modal__title {
    font-family: var(--vd-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--vd-ink);
    margin: 0 0 10px;
}
.vd-confirm-modal__message {
    font-size: 14px;
    color: var(--vd-muted);
    line-height: 1.55;
    margin: 0 0 28px;
}
.vd-confirm-modal__actions {
    display: flex;
    gap: 10px;
    width: 100%;
}
.vd-confirm-modal__actions .vd-btn-cancel {
    flex: 1;
    justify-content: center;
}
.vd-confirm-modal__confirm {
    flex: 1;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: var(--vd-radius-sm);
    font-family: var(--vd-font-body);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--vd-transition);
}
.vd-confirm-modal__confirm:hover { background: #B91C1C; }

@media (max-width: 480px) {
    .vd-confirm-modal__dialog { padding: 28px 20px 22px; margin: 16px; max-width: none; }
    .vd-confirm-modal__actions { flex-direction: column-reverse; }
    .vd-confirm-modal__confirm,
    .vd-confirm-modal__actions .vd-btn-cancel { width: 100%; }
}

/* ── Flash error banner (курс валюты недоступен и т.п.) ───── */
.vd-flash-error {
    background: #FEF2F2;
    border-bottom: 1px solid #FECACA;
    color: #991B1B;
    font-size: 13px;
    font-weight: 600;
}
.vd-flash-error .vd-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}
