/* ============================================
   MAKE YOUR SMILE — Design System
   Crest blue & purple, modern playful style
   ============================================ */

:root {
    /* Brand palette */
    --blue: #2563EB;
    --sky: #38BDF8;
    --purple: #7C3AED;
    --violet: #A78BFA;
    --pink: #F472B6;
    --navy: #0F0B2D;
    --navy-2: #231756;

    /* Legacy aliases (used by other pages) */
    --primary-purple: #7C3AED;
    --primary-purple-dark: #5B21B6;
    --primary-purple-light: #A78BFA;
    --secondary-purple: #A855F7;
    --accent-blue: #2563EB;

    --gradient-main: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    --gradient-candy: linear-gradient(90deg, #38BDF8 0%, #7C3AED 40%, #F472B6 70%, #38BDF8 100%);

    --text-dark: #171332;
    --text-light: #6b7280;
    --bg-light: #F7F7FE;
    --bg-purple-light: #f3f0ff;
    --white: #ffffff;

    --shadow-sm: 0 1px 3px rgba(107, 70, 193, 0.1);
    --shadow-md: 0 4px 12px rgba(107, 70, 193, 0.15);
    --shadow-lg: 0 10px 25px rgba(107, 70, 193, 0.2);
    --shadow-glow: 0 10px 40px rgba(124, 58, 237, 0.35);

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

    --font-display: 'Unbounded', 'Manrope', -apple-system, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 55%, #341C6E 100%);
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
}

.blob-1 {
    width: 560px;
    height: 560px;
    top: -180px;
    left: -140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.75) 0%, rgba(37, 99, 235, 0.25) 40%, transparent 68%);
    animation: blobDrift 19s ease-in-out infinite alternate;
}

.blob-2 {
    width: 620px;
    height: 620px;
    bottom: -260px;
    right: -120px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.8) 0%, rgba(124, 58, 237, 0.3) 40%, transparent 68%);
    animation: blobDrift 23s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 420px;
    height: 420px;
    top: 28%;
    left: 50%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.5) 0%, rgba(244, 114, 182, 0.15) 40%, transparent 68%);
    animation: blobDrift 17s ease-in-out infinite alternate;
    animation-delay: -6s;
}

@keyframes blobDrift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -40px) scale(1.15); }
    100% { transform: translate(-40px, 50px) scale(0.95); }
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.8s ease-out both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.gradient-word {
    background: var(--gradient-candy);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 300% 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 34rem;
    margin-bottom: 2.2rem;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.8rem;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.btn-hero {
    padding: 1rem 2.2rem;
    border: none;
    border-radius: 999px;
    background: var(--gradient-main);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 60% { left: -80%; }
    100%    { left: 180%; }
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 50px rgba(124, 58, 237, 0.5);
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.2rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #38BDF8, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 11rem;
}

/* --- Tooth mascot scene --- */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tooth-scene {
    position: relative;
    width: min(400px, 80vw);
    aspect-ratio: 1;
}

.tooth-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, rgba(56, 189, 248, 0.15) 45%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%      { transform: scale(1.12); opacity: 1; }
}

.tooth-float {
    position: absolute;
    inset: 15%;
    animation: toothFloat 6s ease-in-out infinite;
}

@keyframes toothFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-18px) rotate(2deg); }
}

.logo-medallion {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #38BDF8 0%, #7C3AED 55%, #F472B6 100%);
    box-shadow: 0 24px 60px rgba(15, 11, 45, 0.55), 0 0 90px rgba(124, 58, 237, 0.35);
}

.medallion-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #0F0B2D;
}

.medallion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    transform-origin: 50% 55%;
}

/* Тонування: перефарбовує сірий фон картинки в синьо-фіолетовий відтінок сторінки,
   центр майже прозорий — зуб лишається неторканим */
.medallion-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 80px 28px rgba(30, 20, 80, 0.6);
    background:
        radial-gradient(circle at 50% 44%,
            rgba(124, 58, 237, 0.08) 0%,
            rgba(96, 74, 228, 0.22) 48%,
            rgba(67, 56, 202, 0.42) 72%,
            rgba(49, 32, 130, 0.62) 100%);
}

.sparkle {
    position: absolute;
    color: #E9D5FF;
    animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sparkle-1 { width: 34px; top: 8%;  left: 14%; color: #7DD3FC; animation-delay: 0s; }
.sparkle-2 { width: 22px; top: 18%; right: 10%; color: #F0ABFC; animation-delay: 0.7s; }
.sparkle-3 { width: 28px; bottom: 16%; left: 6%; color: #C4B5FD; animation-delay: 1.3s; }
.sparkle-4 { width: 18px; bottom: 8%;  right: 18%; color: #7DD3FC; animation-delay: 1.9s; }

@keyframes twinkle {
    0%, 100% { transform: scale(0.4) rotate(0deg);   opacity: 0.25; }
    50%      { transform: scale(1.15) rotate(25deg); opacity: 1; }
}

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(15, 11, 45, 0.35);
    animation: chipFloat 5s ease-in-out infinite;
}

.chip-1 { top: 6%;  right: 2%;  animation-delay: -1s; }
.chip-2 { bottom: 20%; right: -4%; animation-delay: -2.5s; }
.chip-3 { bottom: 4%; left: 4%;  animation-delay: -4s; }

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================
   PAGE HERO (компактний банер внутрішніх сторінок)
   ============================================ */

.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 55%, #341C6E 100%);
    color: var(--white);
    text-align: center;
}

.page-hero-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    z-index: 1;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.page-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 36rem;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

/* ============================================
   MARQUEE RIBBON
   ============================================ */

.marquee-ribbon {
    background: var(--gradient-main);
    transform: rotate(-1.2deg) scale(1.02);
    margin: -1rem 0 1.5rem;
    padding: 0.85rem 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-item {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 1.4rem;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* ============================================
   CATALOG / PRODUCTS
   ============================================ */

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.products-section {
    padding: 3rem 1rem 5rem;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--bg-purple-light);
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    font-family: var(--font-display);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.section-sub {
    color: var(--text-light);
    max-width: 36rem;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.75rem;
    margin: 0 auto;
}

/* ============================================
   GIFT BANNER (подарунок до замовлення)
   ============================================ */

.gift-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.75rem;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 243, 255, 0.92) 55%, rgba(237, 233, 254, 0.92) 100%);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
    animation: fadeUp 0.7s ease-out both;
}

/* Розмите світіння в кутку — щоб блок не був "плоским" */
.gift-glow {
    position: absolute;
    top: -140px;
    right: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, rgba(56, 189, 248, 0.12) 45%, transparent 72%);
    pointer-events: none;
}

/* --- Ромб з фото --- */

/* Повернутий ромб візуально виступає за свій layout-бокс на ~28px з кожного боку —
   padding і gap це компенсують, щоб він не налазив на текст і на плашку */
.gift-visual {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.6rem;
    padding: 1.9rem 1.9rem 0;
}

.gift-diamond {
    width: 132px;
    height: 132px;
    border-radius: 30px;
    padding: 4px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #38BDF8 0%, #7C3AED 55%, #F472B6 100%);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.32);
    animation: giftTilt 7s ease-in-out infinite;
}

@keyframes giftTilt {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%      { transform: rotate(41deg) translateY(-8px); }
}

.gift-diamond-inner {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контр-обертання, щоб фото стояло рівно всередині ромба */
.gift-diamond-img {
    width: 142%;
    height: 142%;
    object-fit: cover;
    transform: rotate(-45deg);
}

.gift-diamond-placeholder {
    font-size: 2.6rem;
    transform: rotate(-45deg);
}

.gift-ribbon {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: var(--gradient-main);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.3);
}

/* --- Текст --- */

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

.gift-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--purple);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.gift-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 0.7rem;
}

.gift-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 44rem;
    /* переноси й абзаци з адмінки показуємо як є */
    white-space: pre-line;
}

@media (max-width: 768px) {
    .gift-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.75rem 1.25rem;
        margin-bottom: 2rem;
    }

    .gift-visual {
        gap: 2.2rem;
        padding: 1.6rem 1.6rem 0;
    }

    .gift-diamond {
        width: 108px;
        height: 108px;
        border-radius: 24px;
    }

    .gift-diamond-inner {
        border-radius: 20px;
    }

    .gift-text {
        font-size: 0.95rem;
    }
}

/* --- Product Card --- */

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 19, 50, 0.06);
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.08);
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.6s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }
.product-card:nth-child(5) { animation-delay: 0.33s; }
.product-card:nth-child(6) { animation-delay: 0.4s; }
.product-card:nth-child(7) { animation-delay: 0.47s; }
.product-card:nth-child(8) { animation-delay: 0.54s; }

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.3);
}

/* Бейдж унизу фото — щоб не перекривати сам товар і його назву */
.product-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--gradient-main);
    color: var(--white);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.badge-new {
    background: linear-gradient(135deg, #38BDF8, #2563EB);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(160deg, #F5F3FF 0%, #EFF6FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.07) rotate(1deg);
}

.product-info {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin-bottom: 1.2rem;
    margin-top: auto;
}

.price-current {
    font-size: 1.45rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.free-delivery-note {
    display: block;
    margin-top: 0.35rem;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-primary {
    width: 100%;
    background: var(--gradient-main);
    color: var(--white);
    border: none;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.3);
    transition-duration: 0.06s;
}

/* Другорядна кнопка. Стиль глобальний — раніше він жив усередині сторінки
   кошика, тому на інших сторінках такі кнопки лишались без оформлення */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--white);
    color: var(--text-dark);
    border: 1.5px solid rgba(124, 58, 237, 0.2);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--bg-purple-light);
    border-color: var(--purple);
    color: var(--purple);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.99);
    transition-duration: 0.06s;
}

.btn-primary.added {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

/* --- Skeleton loaders --- */

.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.08);
}

.skeleton-img,
.skeleton-line {
    background: linear-gradient(90deg, #EDE9FE 25%, #F5F3FF 50%, #EDE9FE 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-img {
    height: 260px;
}

.skeleton-line {
    height: 16px;
    border-radius: 8px;
    margin: 1rem 1.4rem 0;
}

.skeleton-line.short {
    width: 40%;
    margin-bottom: 1.4rem;
}

@keyframes skeletonPulse {
    to { background-position: -200% 0; }
}

/* --- Empty state --- */

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   SHARED ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 3.5rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.75rem;
    }

    .hero-visual {
        order: -1;
    }

    .tooth-scene {
        width: min(280px, 70vw);
    }

    .float-chip {
        font-size: 0.72rem;
    }

    .chip-2 { right: -2%; }
}

@media (max-width: 768px) {
    .products-section {
        padding: 2rem 1rem 3.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .product-image-wrapper {
        height: 180px;
    }

    .product-info {
        padding: 1rem;
    }

    .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   ADMIN LOGIN
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 55%, #341C6E 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(15, 11, 45, 0.5);
    text-align: center;
    color: var(--white);
    animation: fadeUp 0.6s ease-out both;
}

.login-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #38BDF8, #7C3AED 60%, #F472B6);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
}

.login-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.15);
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, #7DD3FC, #A78BFA, #F9A8D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.login-sub {
    color: rgba(233, 213, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.login-field {
    text-align: left;
    margin-bottom: 1.1rem;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
}

.login-field input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--violet);
    background: rgba(255, 255, 255, 0.12);
}

.login-field .validation-message {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #FCA5A5;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--gradient-main);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.5);
}

.login-error {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #FECACA;
    font-size: 0.9rem;
    text-align: left;
}

.login-error code {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.82rem;
}

.login-hint {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(233, 213, 255, 0.5);
}

.login-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-back:hover {
    color: var(--violet);
}
