/* ===== CSS Custom Properties — Scandinavian Stone & Forest ===== */
:root {
    --forest: #1B4332;
    --forest-dark: #0D2818;
    --teal: #2D6A4F;
    --teal-light: #40916C;
    --indigo: #354F6E;
    --indigo-dark: #1B3A5C;
    --light-blue: #7FB3D3;
    --sky: #D6E8F0;
    --steel: #4A7C9B;
    --steel-dark: #2C5F7A;
    --white: #FAFAFA;
    --off-white: #F0F0EC;
    --wood: #7A6252;
    --wood-light: #9B8474;
    --wood-dark: #5C4636;
    --stone: #7E8B92;
    --stone-light: #C8CDD0;
    --stone-dark: #4A5660;
    --bark: #2E3B42;
    --text: #1A2530;
    --text-light: #4A5C6A;
    --danger: #C62828;
    --success: #2E7D32;
    --shadow: 0 2px 12px rgba(0,0,0,.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: .25s ease;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.page-clinic {
    background: #1a252f;
}

/* ===== Scroll Animations ===== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease, transform .6s ease;
}
.anim-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .6s ease, transform .6s ease;
}
.anim-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .6s ease, transform .6s ease;
}
.anim-scale-in {
    opacity: 0;
    transform: scale(.85);
    transition: opacity .6s ease, transform .6s ease;
}
.anim-visible {
    opacity: 1 !important;
    transform: none !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.bg-white { background: var(--white); }
.bg-off-white { background: var(--off-white); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(27, 58, 92, .85);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}
body.page-clinic .site-header {
    background: rgba(27, 58, 92, .75);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.burger-btn {
    color: var(--white);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    flex-shrink: 0;
}
.burger-btn:hover { background: rgba(255,255,255,.15); }

/* Header logo */
.header-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header-logo-img {
    height: 38px;
    width: auto;
}

/* Header search (global) */
.header-search-global {
    flex: 1;
    max-width: 480px;
    margin: 0 16px;
}
.header-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,.15);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.6);
    pointer-events: none;
}
.header-search-input {
    flex: 1;
    padding: 10px 14px 10px 40px;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: .9rem;
    outline: none;
    width: 100%;
}
.header-search-input::placeholder { color: rgba(255,255,255,.6); }
.header-search-input:focus {
    background: rgba(255,255,255,.25);
}

.header-center-text {
    display: none;
}

/* Header right block — phone, icons, cart */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}
.header-phone:hover { opacity: .85; }

.header-schedule {
    font-size: .7rem;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}

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

.header-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: var(--white);
    transition: background var(--transition);
    position: relative;
}
.header-icon-btn:hover { background: rgba(255,255,255,.3); }

.header-cart-btn {
    position: relative;
}

.compare-badge, .wishlist-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background: var(--teal-light);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    pointer-events: none;
}
.compare-badge.visible, .wishlist-badge.visible { display: flex; }


/* ===== Side Navigation ===== */
.side-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 200; pointer-events: none; }
.side-nav.open { pointer-events: all; }

.side-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    transition: opacity .3s ease;
}
.side-nav.open .side-nav-overlay { opacity: 1; }

.side-nav-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    transform: translateX(-100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.side-nav.open .side-nav-panel { transform: translateX(0); }

.side-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text);
    padding: 4px;
}

.side-nav-logo {
    padding: 15px 12px 10px;
    text-align: center;
}
.side-nav-logo img {
    height: 110px;
    margin: 0 auto;
    border-radius: 10px;
}

.side-nav-links {
    padding: 0 24px;
    flex: 1;
}
.side-nav-links li { border-bottom: 1px solid var(--stone-light); }
.side-nav-links a {
    display: block;
    padding: 14px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    transition: color var(--transition);
}
.side-nav-links a:hover { color: var(--teal); }

.side-nav-contacts {
    padding: 20px 24px;
    border-top: 2px solid var(--forest);
}
.side-nav-phone {
    display: block;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 12px;
}
.side-nav-social { display: flex; gap: 16px; }
.side-nav-social a { color: var(--text-light); transition: color var(--transition); }
.side-nav-social a:hover { color: var(--teal); }

/* ===== Search Bar ===== */
.search-bar-wrap {
    background: linear-gradient(135deg, var(--steel-dark) 0%, var(--indigo-dark) 100%);
    padding: 14px 0;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.search-input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
}

.search-btn {
    padding: 12px 20px;
    color: var(--forest);
    transition: background var(--transition);
}
.search-btn:hover { background: var(--sky); }

/* Search autocomplete dropdown */
.search-autocomplete-wrap { position: relative; max-width: 600px; margin: 0 auto; }
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    max-height: 360px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-dropdown.visible { display: block; }
.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--off-white); }
.search-dropdown-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}
.search-dropdown-item .search-item-placeholder {
    width: 44px; height: 44px;
    background: var(--off-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-dropdown-item .search-item-placeholder svg {
    width: 20px; height: 20px;
    opacity: .4;
}
.search-dropdown-item .search-item-info { flex: 1; min-width: 0; }
.search-dropdown-item .search-item-name {
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-dropdown-item .search-item-price {
    font-size: .85rem;
    color: var(--forest);
    font-weight: 600;
}
.search-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}

/* ===== Hero Section (Clinic Landing) ===== */
.hero {
    background: linear-gradient(160deg, var(--indigo-dark) 0%, var(--steel-dark) 35%, var(--forest) 100%);
    color: var(--white);
    text-align: center;
    padding: 70px 20px 50px;
    position: relative;
    overflow: hidden;
}

.hero-forest {
    background: url('../backgrounds/forest.png') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-forest::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27,58,92,.55) 0%, rgba(27,67,50,.45) 100%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(74,124,155,.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(53,79,110,.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-logo-decor {
    position: absolute;
    top: 50%;
    height: 420px;
    width: auto;
    opacity: .15;
    pointer-events: none;
    z-index: 0;
    filter: brightness(1.8) saturate(.6);
}
.hero-logo-left {
    left: -60px;
    transform: translateY(-50%) rotate(15deg);
}
.hero-logo-right {
    right: -60px;
    transform: translateY(-50%) rotate(-15deg);
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero p {
    font-size: 1.15rem;
    opacity: .9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-primary {
    background: var(--white);
    color: var(--forest);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-primary:hover {
    background: var(--light-blue);
    color: var(--indigo-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--forest);
    transform: translateY(-2px);
}

/* Hero buttons — напівпрозорі, темніші за фон */
.btn-hero {
    background: rgba(15, 35, 50, .65) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 16px 36px;
    backdrop-filter: blur(4px);
    position: relative;
    top: -0.5cm;
}
.btn-hero:hover {
    background: rgba(15, 35, 50, .8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

/* Wooden buttons (service cards only) */
.btn-wooden {
    background: url('../backgrounds/wooden_button.png') center/cover no-repeat;
    color: var(--white) !important;
    border: 1px solid rgba(255,255,255,.3);
    padding: 16px 36px;
}
.btn-wooden:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.btn-forest {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(45,95,45,.3);
}
.btn-forest:hover {
    background: var(--forest-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45,95,45,.4);
}

/* Як кнопка «Зберегти»: пігулка, білий жирний верхній регістр, тінь */
.btn-pill-forest {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    font-family: var(--font-heading);
    font-weight: 800 !important;
    font-size: .9rem !important;
    letter-spacing: .08em;
    text-transform: uppercase !important;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%) !important;
    border: none !important;
    box-shadow:
        0 4px 14px rgba(27, 67, 50, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    cursor: pointer;
}
.btn-pill-forest:hover {
    color: #fff !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(27, 67, 50, 0.5),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.cart-auth-banner a.btn-pill-forest,
.profile-telegram-status a.btn-pill-forest {
    color: #fff !important;
}

.btn-outline-forest {
    background: transparent;
    color: var(--forest);
    border: 2px solid var(--forest);
    box-shadow: none;
}
.btn-outline-forest:hover {
    background: var(--forest);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}
.btn-teal:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 24px; font-size: .9rem; }

/* ===== Section Styling ===== */
.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--forest-dark);
    margin-bottom: 40px;
    position: relative;
}
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-view-all {
    font-size: .9rem;
    font-weight: 600;
    color: var(--teal);
}
.section-view-all:hover { text-decoration: underline; }

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--steel), var(--indigo));
    border-radius: 2px;
    margin: 12px auto 0;
}

.section-title-light {
    color: var(--white) !important;
}
.section-title-light::after {
    background: rgba(255,255,255,.6);
}

.section-services-wooden {
    background: url('../backgrounds/forest.png') center/cover no-repeat;
    position: relative;
}
.section-services-wooden::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27,58,92,.5);
    pointer-events: none;
}
.section-services-wooden .container { position: relative; z-index: 1; }

/* ===== Services Grid (Wooden Boards) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(145deg, #8FAAB8 0%, #6B8FA0 30%, #4A7C9B 70%, #354F6E 100%);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 3px 12px rgba(53,79,110,.25);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 18px,
            rgba(0,0,0,.03) 18px,
            rgba(0,0,0,.03) 19px
        );
    pointer-events: none;
    border-radius: var(--radius);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: calc(var(--radius) - 3px);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 12px 32px rgba(53,79,110,.3);
}

.service-card .service-icon {
    width: 48px;
    height: 48px;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}

.service-card .service-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
    line-height: 1.3;
}

.service-card.clickable { cursor: pointer; }
.service-card.clickable .service-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Wooden service cards (forest design) */
.services-grid-wooden {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}
.service-card-wooden {
    background: url('../backgrounds/wooden_button.png') center/cover no-repeat !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.25) !important;
    min-height: calc(220px + 0.5cm);
    padding: calc(32px + 0.25cm) 24px;
}
.service-card-wooden::before {
    background: none;
}
.service-card-wooden::after {
    display: none;
}
.service-card-wooden .service-icon {
    color: var(--white);
    width: 96px;
    height: 96px;
    margin-top: -0.5cm;
}
.service-card-wooden .service-icon svg {
    stroke: currentColor;
    width: 96px;
    height: 96px;
}
.service-card-wooden .service-icon-img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: brightness(1.1);
}
.service-card-wooden .service-icon-new {
    width: 185px;
    height: 185px;
    margin-top: -1.5cm;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.service-card-wooden .service-icon-new.service-icon-img {
    width: 185px;
    height: 185px;
}
.service-card-wooden .service-icon-new + .service-name {
    margin-top: -1.8cm;
}
.service-card-wooden .service-name {
    color: var(--white) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    font-size: 1.05rem;
    margin-top: -0.5cm;
}
.service-card-wooden.clickable .service-name { text-decoration: none; }
.service-card-wooden:hover .service-name { text-decoration: underline; }

/* ===== Price Section ===== */
.price-section {
    background: linear-gradient(135deg, var(--sky) 0%, var(--off-white) 100%);
}
.price-section-forest {
    background: url('../backgrounds/forest.png') center/cover no-repeat;
    position: relative;
}
.price-section-forest::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27,58,92,.5);
    pointer-events: none;
}
.price-section-forest .container { position: relative; z-index: 1; }

.price-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.price-section-forest .price-card {
    background: rgba(255,255,255,.95);
}

.price-card h3 {
    font-size: 1.4rem;
    color: var(--forest);
    margin-bottom: 12px;
}

.price-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===== Contacts Section ===== */
.contacts-section {
    background: linear-gradient(160deg, var(--indigo-dark) 0%, var(--steel-dark) 50%, var(--forest) 100%);
    color: var(--white);
}
.contacts-section-forest {
    background: url('../backgrounds/forest.png') center/cover no-repeat;
    position: relative;
}
.contacts-section-forest::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27,58,92,.5);
    pointer-events: none;
}
.contacts-section-forest .container { position: relative; z-index: 1; }

.contacts-section .section-title {
    color: var(--white);
}
.contacts-section .section-title::after {
    background: linear-gradient(to right, var(--light-blue), var(--steel));
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

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

.contact-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
}

.contact-item-text h4 {
    font-size: .9rem;
    font-weight: 600;
    opacity: .8;
    margin-bottom: 2px;
}

.contact-item-text p,
.contact-item-text a {
    font-size: 1.05rem;
    color: var(--white);
}
.contact-item-text a:hover { text-decoration: underline; }

.contacts-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.contacts-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background var(--transition);
}
.contacts-social a:hover { background: rgba(255,255,255,.3); }

.contacts-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 320px;
}
.contacts-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* ===== Shop Page ===== */
.shop-hero {
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--steel-dark) 50%, var(--forest) 100%);
    color: var(--white);
    padding: 32px 0;
    text-align: center;
}

.shop-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 6px;
}
.shop-hero p {
    opacity: .85;
    font-size: .95rem;
}

.animal-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.animal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid rgba(255,255,255,.4);
    color: var(--white);
    transition: all var(--transition);
}
.animal-tab:hover,
.animal-tab.active {
    background: var(--white);
    color: var(--forest);
    border-color: var(--white);
}

.animal-tab svg { width: 22px; height: 22px; }

/* Shop catalog menu */
.catalog-menu-bar {
    background: var(--white);
    border-bottom: 2px solid var(--stone-light);
    padding: 10px 0;
    position: sticky;
    top: 56px;
    z-index: 50;
}

.catalog-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.catalog-menu a {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
    border: 1px solid var(--stone-light);
}
.catalog-menu a:hover,
.catalog-menu a.active {
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

/* Category sidebar + products layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0;
}

.sidebar {
    position: sticky;
    top: 130px;
    align-self: start;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--forest);
    padding: 10px 14px;
    background: var(--sky);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.sidebar-links a {
    display: block;
    padding: 8px 14px;
    font-size: .92rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.sidebar-links a:hover { background: var(--sky); color: var(--teal); }
.sidebar-links a.active { background: var(--forest); color: var(--white); }

.sidebar-sub { padding-left: 16px; }
.sidebar-sub a { font-size: .88rem; color: var(--text-light); }

/* ===== Product Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    padding-top: 100%;
    background: var(--stone-light);
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.product-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--white);
    background: var(--danger);
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
}

.product-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-brand {
    font-size: .8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 4px;
}

.product-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
    flex: 1;
}

.product-card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-current {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--forest);
}

.price-old {
    font-size: .9rem;
    color: var(--stone);
    text-decoration: line-through;
}

.product-card-footer {
    display: flex;
    gap: 8px;
}

.btn-cart {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--forest);
    color: var(--white);
    font-weight: 600;
    font-size: .88rem;
    transition: background var(--transition);
    text-align: center;
}
.btn-cart:hover { background: var(--forest-dark); }

.stock-out {
    background: var(--stone-light);
    color: var(--text-light);
    cursor: default;
}

/* ===== Product Detail ===== */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-detail-img img { width: 100%; }

.product-detail-info h1 {
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 8px;
}

.product-detail-brand {
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-detail-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.product-detail-prices .price-current { font-size: 2rem; }
.product-detail-prices .price-old { font-size: 1.2rem; }

.product-detail-desc {
    margin: 24px 0;
    line-height: 1.8;
    color: var(--text-light);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 0;
    font-size: .88rem;
    color: var(--text-light);
}
.breadcrumbs a { color: var(--teal); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--stone); }

/* ===== Cart Page ===== */
.cart-page {
    padding: 40px 0 80px;
    min-height: 60vh;
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 30px 24px 60px;
}

.cart-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 30px;
}

.cart-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty svg { margin-bottom: 16px; }
.cart-empty h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 8px; }
.cart-empty p { color: var(--text-light); }

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--stone-light);
}
.cart-item:first-child { border-top: 1px solid var(--stone-light); }

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--stone-light);
    flex-shrink: 0;
    display: block;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-brand {
    font-size: .78rem;
    color: var(--text-light);
    margin-bottom: 2px;
}
.cart-item-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
    word-break: normal;
    overflow-wrap: anywhere;
}
.cart-item-name:hover { color: var(--teal); }
.cart-item-price {
    font-size: .88rem;
    color: var(--text-light);
}

.cart-item-qty {
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--forest);
    height: 36px;
    flex-shrink: 0;
}
.cart-item-qty .qty-btn { width: 34px; font-size: 1rem; }
.cart-item-qty .qty-value { min-width: 30px; font-size: .9rem; }

.cart-item-total {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--forest);
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}

.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--stone);
    background: none;
    border: none;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--danger); background: rgba(198,40,40,.08); }

.cart-summary {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1rem;
    color: var(--text);
}

.cart-total-value {
    font-size: 1.5rem;
    color: var(--forest);
}

.cart-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cart-actions--blocked {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.cart-auth-banner {
    background: #fff8e6;
    border: 1px solid rgba(180, 140, 60, .35);
    border-radius: 10px;
    padding: 16px 18px;
    text-align: left;
}
.cart-auth-banner p {
    margin: 0 0 12px;
    font-size: .95rem;
    color: var(--text);
    line-height: 1.45;
}
.cart-auth-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cart-actions-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.telegram-page-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--forest-dark);
}
.telegram-short-lead {
    text-align: left;
    line-height: 1.5;
    margin: 0 0 20px;
    color: var(--text);
    font-size: 1rem;
}
.telegram-code-hero-wrap {
    display: flex;
    justify-content: center;
    margin: 4px 0 28px;
}
.telegram-code-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 16px 36px;
    font-size: clamp(2.5rem, 9vw, 3.5rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: none;
    color: #fff !important;
    background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%) !important;
    border-radius: 50px;
    box-shadow:
        0 4px 14px rgba(27, 67, 50, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.telegram-instruction {
    text-align: left;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 1.05rem;
}
.telegram-code-inline {
    display: inline-block;
    margin: 0 4px;
    padding: 2px 12px;
    font-weight: 800;
    font-size: 1.35em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: linear-gradient(135deg, var(--forest) 0%, #1b4332 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(27, 67, 50, .25);
    vertical-align: middle;
}
.telegram-start-hint {
    background: #f0f7f4;
    border-left: 4px solid var(--forest);
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}
.telegram-start-hint code {
    font-size: .78rem;
    word-break: break-all;
}
.telegram-link-row {
    margin-top: 20px;
    text-align: left;
}
.telegram-link-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}
.telegram-link-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
    width: 100%;
}
.telegram-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.telegram-url-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 4.5rem;
    padding: 10px 14px;
    border: 1px solid var(--stone-light);
    border-radius: 8px;
    font-size: .82rem;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    line-height: 1.4;
    word-break: break-all;
    resize: none;
    color: var(--text);
    background: var(--white);
}
.telegram-open-btn {
    margin-top: 4px;
}

.profile-telegram-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .95rem;
}
.profile-telegram-status--ok {
    background: #e8f5e9;
    color: var(--success);
}
.profile-telegram-status--warn {
    background: #fff8e6;
    color: var(--text);
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.profile-telegram-status--warn .btn-pill-forest {
    margin-top: 4px;
}
.profile-telegram-status a:not(.btn-pill-forest) {
    font-weight: 700;
    color: var(--forest);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid var(--stone-light);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-outline-dark:hover {
    border-color: var(--forest);
    color: var(--forest);
}

.cart-order-form {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}
.cart-order-form h2 {
    font-size: 1.3rem;
    color: var(--forest-dark);
    margin-bottom: 20px;
}
.order-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.order-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.order-field input,
.order-field select,
.order-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--stone-light);
    border-radius: 8px;
    font-size: .95rem;
    font-family: var(--font-body);
    background: var(--white);
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus {
    outline: none;
    border-color: var(--teal);
}
.order-field select {
    appearance: auto;
    cursor: pointer;
}
.order-field--invalid label {
    color: #b91c1c;
}
.order-field--invalid input,
.order-field--invalid select,
.order-field--invalid textarea {
    border-color: #dc2626;
    background-color: #fff5f5;
}
.order-field--invalid input:focus,
.order-field--invalid select:focus,
.order-field--invalid textarea:focus {
    border-color: #b91c1c;
}
.order-field--full {
    grid-column: 1 / -1;
}
@media (max-width: 600px) {
    .order-form-grid { grid-template-columns: 1fr; }
}

.cart-order-total {
    font-size: 1.15rem;
    color: var(--text);
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--stone-light);
}
.cart-order-total strong {
    font-size: 1.4rem;
    color: var(--forest);
}

.order-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.order-success-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-width: 440px;
    width: 100%;
}
.order-success-card h2 {
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin: 20px 0 10px;
}
.order-success-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cart-page { padding: 20px 14px 40px; margin-top: 10px; }
    .cart-item {
        display: grid;
        grid-template-columns: 72px 1fr auto auto;
        grid-template-rows: auto auto;
        gap: 6px 10px;
        padding: 16px 0;
    }
    .cart-item-img {
        grid-row: 1 / 3;
        grid-column: 1;
        width: 72px;
        height: 72px;
        align-self: start;
    }
    .cart-item-info {
        grid-column: 2 / 4;
        grid-row: 1;
        min-width: 0;
        width: auto;
    }
    .cart-item-name {
        font-size: .9rem;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
    }
    .cart-item-remove {
        grid-column: 4;
        grid-row: 1;
        align-self: start;
    }
    .cart-item-qty {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
    .cart-item-total {
        grid-column: 3;
        grid-row: 2;
        min-width: auto;
        font-size: .95rem;
        align-self: center;
        text-align: right;
    }
    .cart-actions { flex-direction: column; }
    .cart-actions .btn,
    .cart-actions .btn-outline-dark { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .cart-page { padding: 16px 10px 30px; border-radius: var(--radius); }
    .cart-item {
        grid-template-columns: 60px 1fr auto auto;
        gap: 4px 8px;
    }
    .cart-item-img { width: 60px; height: 60px; }
    .cart-item-name { font-size: .85rem; }
    .cart-title { font-size: 1.4rem; }
}

/* ===== Info Pages ===== */
.info-page {
    padding: 60px 0;
    min-height: 50vh;
}

.info-page h1 {
    font-size: 2rem;
    color: var(--forest-dark);
    margin-bottom: 20px;
}

.info-page .page-content {
    max-width: 700px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-3px); }

.blog-card-img {
    aspect-ratio: 16/9;
    background: var(--stone-light);
    overflow: hidden;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.blog-card-body .blog-date { font-size: .85rem; color: var(--text-light); }

/* ===== Service Detail Page ===== */
/* ===== Service Detail — Diagonal Split Layout ===== */
.service-detail-split {
    display: flex;
    min-height: calc(100vh - 140px);
    position: relative;
    overflow: hidden;
}

.service-detail-left {
    width: 60%;
    flex-shrink: 0;
    background: var(--off-white);
    padding: 20px 30px 60px 20px;
    position: relative;
    z-index: 2;
}

.service-detail-left-inner {
    max-width: 780px;
    width: 100%;
}

.service-detail-left h1 {
    font-size: 2.2rem;
    color: var(--forest-dark);
    margin-bottom: 24px;
}

.service-detail-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(160deg, var(--indigo-dark) 0%, var(--steel-dark) 40%, var(--forest) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 3;
}

.service-detail-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 30%, rgba(74,124,155,.3) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 80%, rgba(27,74,50,.25) 0%, transparent 55%);
    pointer-events: none;
}

.service-detail-logo {
    width: 90%;
    max-width: 700px;
    height: auto;
    opacity: .18;
    transform: rotate(15deg);
    filter: brightness(1.8) saturate(.5);
    position: relative;
    z-index: 1;
    margin-left: 10%;
}

.service-detail-content {
    line-height: 1.8;
    color: var(--text);
}

.service-detail-content h2 {
    color: var(--steel-dark);
    font-size: 1.4rem;
    margin: 30px 0 12px;
}

.service-detail-content ul {
    padding-left: 24px;
    list-style: disc;
    margin: 12px 0;
}

.service-detail-content li {
    margin-bottom: 6px;
}

/* Entry animations for service detail */
.service-detail-left h1 {
    animation: sdFadeSlide .6s ease both;
}
.service-detail-content {
    animation: sdFadeSlide .7s .15s ease both;
}
.service-detail-left .btn {
    animation: sdFadeSlide .7s .35s ease both;
}
.service-detail-right {
    animation: sdSlideRight .8s .1s ease both;
}

@keyframes sdFadeSlide {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sdSlideRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1024px) {
    .service-detail-left { width: 65%; padding: 20px 16px 50px; }
    .service-detail-right { width: 50%; }
    .service-detail-logo { max-width: 500px; }
}

@media (max-width: 768px) {
    .service-detail-split { flex-direction: column; }
    .service-detail-right {
        position: relative;
        width: 100%;
        height: 220px;
        order: -1;
        clip-path: none;
    }
    .service-detail-left { width: 100%; padding: 24px 16px 40px; clip-path: none; }
    .service-detail-logo { margin-left: 0; max-width: 300px; }
}

@media (max-width: 480px) {
    .service-detail-right { height: 170px; }
    .service-detail-left h1 { font-size: 1.5rem; }
    .service-detail-logo { max-width: 200px; }
}

/* ===== Featured Products Carousel ===== */
.featured-section {
    background: var(--white);
}

.featured-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.featured-scroll .product-card {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; color: var(--stone); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }

/* ===== Footer ===== */
.site-footer {
    background: var(--bark);
    color: rgba(255,255,255,.85);
    padding: 50px 0 0;
}

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

.footer-brand { }

.footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 12px;
    border-radius: 8px;
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    font-size: .92rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--light-blue); }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.footer-social a {
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}
.footer-social a:hover { color: var(--white); }

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
    font-size: .85rem;
    opacity: .7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
    .contacts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .header-phone-block { display: none; }
}

@media (max-width: 768px) {
    .header-center-text { font-size: .75rem; letter-spacing: .5px; }
    .cart-label { display: none; }
    .header-cart-btn { width: 40px; padding: 0; border-radius: 50%; }
    .header-right { gap: 8px; }
    .hero { padding: 50px 16px 40px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-logo-decor { height: 280px; }
    .hero-logo-left { left: -40px; }
    .hero-logo-right { right: -40px; }
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .service-card { padding: 20px 14px; min-height: 150px; }
    .services-grid-wooden { grid-template-columns: 1fr 1fr; gap: 16px; }
    .service-card-wooden {
        min-height: 200px;
        padding: 28px 14px;
    }
    .service-card-wooden .service-icon { width: 72px; height: 72px; margin-top: -4px; }
    .service-card-wooden .service-icon svg { width: 72px; height: 72px; }
    .service-card-wooden .service-icon-img { width: 80px; height: 80px; }
    .service-card-wooden .service-icon-new { width: 119px; height: 119px; margin-top: -0.7cm; }
    .service-card-wooden .service-icon-new.service-icon-img { width: 132px; height: 132px; }
    .service-card-wooden .service-icon-new + .service-name { margin-top: -1.2cm; }
    .service-card-wooden .service-name { font-size: .85rem; margin-top: -4px; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        max-height: none;
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
    }
    .sidebar-section {
        min-width: 200px;
        margin-bottom: 0;
    }
    .product-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .catalog-menu-bar { top: 56px; }
}

@media (max-width: 480px) {
    .header-center-text { font-size: .6rem; }
    .header-icon-btn { width: 34px; height: 34px; }
    .header-cart-btn { width: 34px; }
    .hero-logo-decor { height: 200px; }
    .hero-logo-left { left: -30px; }
    .hero-logo-right { right: -30px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { padding: 12px 24px; font-size: .9rem; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .services-grid-wooden { grid-template-columns: 1fr 1fr; gap: 10px; }
    .service-card-wooden {
        min-height: 180px;
        padding: 22px 10px;
    }
    .service-card-wooden .service-icon { width: 60px; height: 60px; }
    .service-card-wooden .service-icon svg { width: 60px; height: 60px; }
    .service-card-wooden .service-icon-img { width: 68px; height: 68px; }
    .service-card-wooden .service-icon-new { width: 99px; height: 99px; margin-top: -0.5cm; }
    .service-card-wooden .service-icon-new.service-icon-img { width: 112px; height: 112px; }
    .service-card-wooden .service-icon-new + .service-name { margin-top: -0.9cm; }
    .service-card-wooden .service-name { font-size: .78rem; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ===== Cart Badge & Qty Control ===== */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
    pointer-events: none;
}
.cart-badge.visible { display: flex; }

.cart-qty-control {
    flex: 1;
    display: flex;
    align-items: stretch;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--forest);
    height: 38px;
}

.qty-btn {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background .15s;
    flex-shrink: 0;
    padding: 0;
    font-family: var(--font-heading);
}
.qty-btn:hover { background: var(--forest-dark); }

.qty-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--forest);
    background: var(--white);
    min-width: 32px;
}

/* ===== Admin Panel ===== */
body.admin-mode { padding-bottom: 56px; }

.admin-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -3px 16px rgba(0,0,0,.25);
    font-size: .88rem;
    flex-wrap: wrap;
}

.admin-toolbar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-right: 8px;
    color: #f1c40f;
}

.admin-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.admin-toolbar-btn:hover { background: rgba(255,255,255,.25); }

.admin-toolbar-logout { margin-left: auto; border-color: #e74c3c; color: #e74c3c; }
.admin-toolbar-logout:hover { background: #e74c3c; color: #fff; }

.admin-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--forest);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(27,67,50,.3);
}
.admin-page-btn:hover {
    background: var(--forest-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(27,67,50,.4);
}
.admin-page-btn svg { flex-shrink: 0; }

/* Admin card buttons */
.admin-product-card { position: relative; }

.admin-edit-product,
.admin-toggle-featured {
    position: absolute;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(4px);
}

.admin-edit-product { top: 8px; right: 8px; }
.admin-edit-product:hover { background: var(--forest); border-color: var(--forest); }

.admin-toggle-featured { top: 8px; right: 48px; }
.admin-toggle-featured.active { color: #f1c40f; background: rgba(0,0,0,.7); border-color: #f1c40f; }
.admin-toggle-featured:hover { background: rgba(0,0,0,.7); }

/* Admin Modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .2s;
}
.admin-modal-overlay.visible { opacity: 1; }

.admin-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transform: translateY(20px);
    transition: transform .25s;
}
.admin-modal-overlay.visible .admin-modal { transform: translateY(0); }

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}
.admin-modal-header h2 {
    font-size: 1.25rem;
    color: var(--forest-dark);
    margin: 0;
}
.admin-modal-close {
    font-size: 1.6rem;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.admin-modal-close:hover { color: #333; }

.admin-modal-body { padding: 24px; }

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

.admin-form-grid { display: flex; flex-direction: column; gap: 16px; }

.admin-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: .88rem;
    color: var(--text);
}
.admin-form-group input[type="text"],
.admin-form-group input[type="number"],
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: .95rem;
    font-family: var(--font-body);
    transition: border-color .2s;
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.admin-form-group textarea { resize: vertical; }

.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.admin-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 0;
}
.admin-checkbox-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); }

.admin-image-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: border-color .2s;
}
.admin-image-upload:hover { border-color: var(--teal); }

.admin-preview-img {
    max-width: 200px;
    max-height: 200px;
    margin: 10px auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

.admin-upload-hint {
    font-size: .78rem;
    color: #999;
    margin-top: 8px;
}
.admin-paste-zone {
    margin-top: 10px;
    padding: 14px 16px;
    border: 2px dashed var(--teal);
    border-radius: 8px;
    background: rgba(0, 128, 128, .05);
    color: var(--teal);
    font-size: .85rem;
    text-align: center;
    cursor: pointer;
    outline: none;
    transition: all .2s;
}
.admin-paste-zone:focus,
.admin-paste-zone:hover {
    background: rgba(0, 128, 128, .12);
    border-color: var(--forest-dark);
}
.admin-image-upload.dragover {
    border-color: var(--teal);
    background: rgba(0, 128, 128, .08);
}

.btn-admin-save {
    padding: 10px 28px;
    border-radius: 8px;
    background: var(--forest);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    font-size: .9rem;
    transition: background .2s;
}
.btn-admin-save:hover { background: var(--forest-dark); }

.btn-admin-cancel {
    padding: 10px 24px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    font-size: .9rem;
}
.btn-admin-cancel:hover { background: #e0e0e0; }

.btn-admin-delete {
    padding: 10px 24px;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    font-size: .9rem;
    margin-right: auto;
}
.btn-admin-delete:hover { background: #a31b1b; }

@media (max-width: 600px) {
    .admin-form-row { grid-template-columns: 1fr; }
    .admin-modal { max-height: 95vh; }
    .admin-toolbar { font-size: .8rem; gap: 6px; padding: 8px 12px; }
    .admin-toolbar-btn { padding: 5px 10px; font-size: .75rem; }
}

/* ===== Category Navigation Bar ===== */
.category-nav {
    background: var(--white);
    border-bottom: 2px solid var(--stone-light);
    position: sticky;
    top: 56px;
    z-index: 90;
}
body.page-clinic .category-nav { display: none; }

.category-nav-items {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    position: relative;
}

.category-nav-item {
    position: relative;
}

.category-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    border-bottom: 3px solid transparent;
}
.category-nav-link:hover,
.category-nav-item:hover > .category-nav-link {
    background: var(--sky);
    color: var(--teal);
    border-bottom-color: var(--teal);
}
.nav-chevron {
    transition: transform var(--transition);
}
.category-nav-item:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Mega dropdown */
.mega-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: -20px;
    width: 780px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.05);
    z-index: 100;
    padding: 20px 24px;
}
.category-nav-item:hover > .mega-dropdown {
    display: block;
}
.mega-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 28px;
}
.mega-col {
    padding: 4px 0;
}
.mega-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .92rem;
    color: var(--forest);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--teal-light);
    text-decoration: none;
    transition: color var(--transition);
}
.mega-col-title:hover { color: var(--teal); }
.mega-col-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--teal);
}
.mega-col-link {
    display: block;
    padding: 3px 0 3px 28px;
    font-size: .85rem;
    color: var(--text-light);
    transition: color var(--transition);
    text-decoration: none;
}
.mega-col-link:hover { color: var(--teal); }
.mega-col-more {
    display: inline-block;
    padding: 4px 0 2px 28px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    transition: color var(--transition);
}
.mega-col-more:hover { color: var(--forest-dark); }

/* ===== Auth Pages ===== */
.auth-page {
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.auth-card-wide { max-width: 560px; }
.auth-icon { margin-bottom: 16px; }
.auth-card h1 {
    font-size: 1.5rem;
    color: var(--forest-dark);
    margin-bottom: 24px;
}
.auth-error {
    background: #fdecea;
    color: var(--danger);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
    text-align: left;
}
.auth-success {
    background: #e8f5e9;
    color: var(--success);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
}
.auth-lead {
    text-align: left;
    margin-bottom: 12px;
    line-height: 1.5;
    color: var(--text);
}
.auth-hint {
    font-size: .9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
}
.auth-form-inline {
    margin-top: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--stone-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--teal);
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.btn-full { width: 100%; justify-content: center; }
.auth-switch {
    margin-top: 16px;
    font-size: .9rem;
    color: var(--text-light);
}
.auth-switch a {
    color: var(--teal);
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* Кнопки в блоці auth-switch (наприклад «Перейти до кошика») — не перефарбовувати у колір посилання */
.auth-page .auth-switch a.btn-forest,
.auth-page .auth-switch a.btn-primary {
    color: var(--white);
    text-decoration: none;
}
.auth-page .auth-switch a.btn-forest:hover,
.auth-page .auth-switch a.btn-primary:hover {
    color: var(--white);
    text-decoration: none;
}

.auth-telegram-block {
    margin-bottom: 4px;
    text-align: center;
}
.auth-telegram-label {
    font-weight: 700;
    color: var(--forest-dark);
    margin-bottom: 10px;
    font-size: .95rem;
}
.auth-telegram-widget-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}
.auth-telegram-hint {
    font-size: .78rem !important;
    margin-top: 12px !important;
    text-align: left;
    line-height: 1.45;
}
.auth-telegram-hint code {
    font-size: .72rem;
    word-break: break-all;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-light);
    font-size: .9rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--stone-light);
}
.auth-divider span {
    flex-shrink: 0;
}
.telegram-widget-userpill {
    display: inline-block;
    padding: 8px 14px;
    background: #e8f5e9;
    color: var(--forest);
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 16px;
}
.profile-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--stone-light);
}
.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: var(--teal);
    font-weight: 600;
}
.profile-links a:hover { text-decoration: underline; }

/* ===== Product Card Actions (Compare/Like) ===== */
.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transition: opacity var(--transition);
}
.product-card:hover .product-card-actions {
    opacity: 1;
}
.product-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    cursor: pointer;
    border: none;
    padding: 0;
}
.product-action-btn:hover {
    background: var(--white);
    color: var(--teal);
    transform: scale(1.1);
}
.product-action-btn.active {
    color: var(--danger);
    background: #fff0f0;
}
.product-action-btn.active-compare {
    color: var(--teal);
    background: #e0f2f1;
}

/* ===== Filter Sidebar ===== */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.filter-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stone-light);
}
.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}
.filter-section-title .chevron-icon {
    transition: transform var(--transition);
}
.filter-section.collapsed .chevron-icon {
    transform: rotate(-90deg);
}
.filter-section.collapsed .filter-section-body {
    display: none;
}
.filter-section-body {
    margin-top: 10px;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: .9rem;
    cursor: pointer;
}
.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}
.filter-checkbox .count {
    color: var(--stone);
    font-size: .8rem;
    margin-left: auto;
}
.filter-price-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-price-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--stone-light);
    border-radius: 6px;
    font-size: .9rem;
    font-family: inherit;
    max-width: 100px;
}
.filter-price-input:focus {
    outline: none;
    border-color: var(--teal);
}
.filter-apply-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    background: var(--teal);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
}
.filter-apply-btn:hover { background: var(--forest); }
.filter-reset-btn {
    display: block;
    margin-top: 8px;
    width: 100%;
    padding: 8px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--stone-light);
    border-radius: 8px;
    font-size: .85rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-reset-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Sorting & Results Bar ===== */
.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.results-count {
    font-size: .9rem;
    color: var(--text-light);
}
.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--stone-light);
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--teal); }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--transition);
}
.pagination a {
    color: var(--text);
    border: 1px solid var(--stone-light);
    background: var(--white);
}
.pagination a:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--sky);
}
.pagination .current {
    background: var(--teal);
    color: var(--white);
    border: 1px solid var(--teal);
}
.pagination .dots {
    border: none;
    color: var(--stone);
}
.pagination .disabled {
    opacity: .4;
    pointer-events: none;
}

/* ===== Wishlist Page ===== */
.wishlist-page, .compare-page {
    padding: 40px 0 80px;
    min-height: 60vh;
}
.wishlist-page h1, .compare-page h1 {
    font-size: 1.8rem;
    color: var(--forest-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Compare Page ===== */
.compare-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.compare-table th,
.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--stone-light);
    text-align: left;
    vertical-align: top;
    font-size: .9rem;
}
.compare-table th {
    background: var(--sky);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--forest);
    white-space: nowrap;
    width: 120px;
}
.compare-table td {
    background: var(--white);
    min-width: 200px;
}
.compare-table td img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.compare-remove-btn {
    font-size: .8rem;
    color: var(--danger);
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 0;
    text-decoration: underline;
}

/* ===== Category Card (used in category page) ===== */
.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card-img {
    width: 100%;
    padding-top: 70%;
    position: relative;
    background: var(--off-white);
    overflow: hidden;
}
.category-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-card-name {
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
}

/* ===== Petslike-style Popular Section ===== */
/* Admin edit button on category cards */
.admin-edit-category-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: all var(--transition);
}
.admin-edit-category-btn:hover { background: var(--teal); color: #fff; }
body:not(.admin-mode) .admin-edit-category-btn { display: none; }

/* ===== Shop Homepage: Hero Slider ===== */
.shop-slider-section {
    padding: 20px 0 0;
}
.shop-splide {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
}
.shop-splide .splide__slide a {
    display: block;
    line-height: 0;
}
.shop-splide .splide__slide img {
    width: 100%;
    height: auto;
    display: block;
}
.shop-splide .splide__arrow {
    background: rgba(27,67,50,.75);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s, background .3s;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-splide .splide__arrow--prev {
    left: 12px;
}
.shop-splide .splide__arrow--next {
    right: 12px;
}
.shop-splide:hover .splide__arrow {
    opacity: 1;
}
.shop-splide .splide__arrow svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}
.shop-splide .splide__arrow--prev svg {
    transform: scaleX(-1);
}
.shop-splide .splide__arrow:hover {
    background: var(--forest-dark);
}
.shop-splide .splide__pagination__page {
    background: var(--stone-light);
    width: 10px;
    height: 10px;
    margin: 0 4px;
    transition: background .3s, transform .3s;
}
.shop-splide .splide__pagination__page.is-active {
    background: var(--teal);
    transform: scale(1.25);
}

/* ===== Shop Homepage: Categories ===== */
.shop-categories-section {
    padding: 48px 0 32px;
}
.shop-categories-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.shop-categories-title-block {}
.shop-categories-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--forest-dark);
    margin-bottom: 6px;
}
.shop-categories-title span {
    color: var(--teal);
}
.shop-categories-subtitle {
    font-size: .92rem;
    color: var(--text-light);
}
.shop-categories-tabs {
    display: flex;
    gap: 10px;
}
.shop-cat-tab {
    padding: 10px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    border: 2px solid var(--teal);
    background: transparent;
    color: var(--teal);
    cursor: pointer;
    transition: all var(--transition);
}
.shop-cat-tab.active {
    background: var(--teal);
    color: #fff;
    pointer-events: none;
}
.shop-cat-tab:hover:not(.active) {
    background: rgba(45,106,79,.1);
}

.shop-categories-grid {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 170px;
    gap: 14px;
}
.shop-categories-grid.active {
    display: grid;
}

.shop-cat-card {
    text-decoration: none;
    color: var(--text);
    border-radius: 14px;
    overflow: hidden;
    background: var(--off-white);
    transition: box-shadow .3s, transform .3s;
    position: relative;
    border: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.shop-cat-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
    transform: translateY(-3px);
}
.shop-cat-card--big {
    grid-column: span 2;
    grid-row: span 2;
}
.shop-cat-card__inner {
    height: 100%;
    position: relative;
    overflow: hidden;
}
.shop-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.shop-cat-card:hover .shop-cat-card__img {
    transform: scale(1.07);
}
.shop-cat-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: none;
    z-index: 2;
    text-shadow: 0 1px 6px rgba(0,0,0,.7), 0 0 14px rgba(0,0,0,.4);
}
.shop-cat-card--big .shop-cat-card__name {
    font-size: 1.3rem;
    padding: 12px 20px;
}
.shop-cat-card--noimg .shop-cat-card__name {
    color: var(--forest-dark);
    background: none;
    text-shadow: none;
    position: static;
    padding: 20px 16px;
    font-size: .95rem;
}
.shop-cat-card--noimg {
    background: var(--sky);
    display: flex;
    align-items: flex-end;
}

/* ===== Shop Homepage: Brands ===== */
.shop-brands-section {
    padding: 40px 0;
    background: var(--white);
}
.shop-brands-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--forest-dark);
    margin-bottom: 24px;
}
.shop-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.shop-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 20px 12px;
    border-radius: 14px;
    background: var(--off-white);
    transition: box-shadow .3s, transform .3s;
}
.shop-brand-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.shop-brand-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.shop-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.shop-brand-initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--forest) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-brand-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .85rem;
    color: var(--text);
    text-align: center;
}

/* ===== Shop Homepage: Featured Products ===== */
.shop-featured-section {
    padding: 40px 0 56px;
}
.shop-featured-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--forest-dark);
    margin-bottom: 24px;
}
.shop-featured-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    flex-wrap: nowrap;
}
.shop-featured-scroll .product-card {
    min-width: 240px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

@media (max-width: 1024px) {
    .shop-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 150px;
    }
    .shop-cat-card--big { grid-column: span 2; grid-row: span 2; }
    .shop-categories-title { font-size: 1.6rem; }
    .shop-brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .category-nav { display: none; }
    .mega-dropdown { display: none !important; }
    .header-phone-block { display: none; }
    .header-search-global { max-width: 240px; margin: 0 8px; }
    .header-logo-img { height: 30px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: static;
        max-height: none;
    }
    .product-card-actions { opacity: 1; }
    .compare-table { min-width: 500px; }
    .category-card-grid { grid-template-columns: 1fr 1fr; }
    .shop-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 130px;
    }
    .shop-cat-card--big { grid-column: span 2; grid-row: span 1; }
    .shop-categories-title { font-size: 1.4rem; }
    .shop-categories-head { flex-direction: column; align-items: flex-start; }
    .shop-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .shop-brand-card { padding: 14px 8px; }
    .shop-brand-logo { width: 60px; height: 60px; }
    .shop-brand-initial { width: 46px; height: 46px; font-size: 1.3rem; }
    .shop-slider-section { padding: 12px 0 0; }
    .shop-splide { border-radius: 10px; }
}

@media (max-width: 480px) {
    .header-search-global { max-width: 160px; }
    .header-icons { gap: 4px; }
    .header-icon-btn { width: 36px; height: 36px; }
    .auth-card { padding: 24px 16px; }
    .category-card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .shop-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 110px;
        gap: 10px;
    }
    .shop-cat-card__name { font-size: .85rem; padding: 24px 10px 10px; }
    .shop-cat-card--big .shop-cat-card__name { font-size: 1rem; }
    .shop-cat-tab { padding: 8px 16px; font-size: .82rem; }
    .shop-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .shop-brand-name { font-size: .78rem; }
    .shop-featured-scroll .product-card { min-width: 200px; }
}
