/* ===== CSS Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #1a1a1a; background: #f8f9fa; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0054a6; text-decoration: none; }
a:hover { text-decoration: underline; color: #003d7a; }
ul, ol { list-style: none; }

/* ===== Variables ===== */
:root {
  --primary: #C8102E;
  --primary-dark: #9B0B22;
  --primary-light: #fef2f4;
  --accent: #C8102E;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --border: #e0e0e0;
  --bg: #f5f5f5;
  --white: #ffffff;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.16);
  --max-width: 1280px;
  --gap: 1.5rem;
}

/* ===== Layout ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.site-main { min-height: calc(100vh - 200px); padding: 1.5rem 0 3rem; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.10); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem 0; }
.header-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 50px; width: auto; display: block; }
.header-logo__fallback { color: var(--text); font-size: 1.05rem; font-weight: 700; }
.header-logo:hover { opacity: 0.82; text-decoration: none; }
.header-tagline { flex: 1; display: flex; align-items: center; }
.header-tagline__main { color: var(--text); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.header-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-phone { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.header-phone:hover { color: var(--primary); text-decoration: none; }
.header-phone svg { flex-shrink: 0; opacity: 0.55; }
.cart-btn { background: var(--primary); color: var(--white); padding: 0.45rem 1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.cart-btn:hover { background: var(--primary-dark); color: var(--white); text-decoration: none; }
.cart-count { background: var(--white); color: var(--primary); border-radius: 50%; width: 19px; height: 19px; font-size: 0.68rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.product-files { margin-bottom: 2rem; }
.product-files__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.product-files__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.product-files__item {  }
.product-files__link { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.85rem; background: #f5f5f5; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.88rem; color: var(--text); transition: background 0.15s; text-decoration: none; }
.product-files__link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.product-files__icon { font-size: 1rem; flex-shrink: 0; }
.product-files__name { font-weight: 500; }
.product-files__size { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.25rem; }

/* ===== Site intro strip ===== */
.site-intro { background: #fff; border-bottom: 1px solid var(--border); padding: 0.8rem 0; }
.site-intro__text { margin: 0; color: #555; font-size: 0.88rem; line-height: 1.65; }

/* ===== Footer ===== */
.site-footer { background: #f5f5f5; color: #555; margin-top: 3rem; padding: 2.5rem 0 0; border-top: 3px solid var(--primary); }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; padding-bottom: 2rem; }
.footer-col strong { color: var(--text); display: block; margin-bottom: 0.75rem; font-size: 1rem; }
.footer-col p { font-size: 0.875rem; line-height: 1.7; }
.footer-col a { color: var(--primary); }
.footer-col a:hover { color: var(--primary-dark); }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.875rem; }
.footer-bottom { border-top: 1px solid #ddd; padding: 1rem 0; font-size: 0.8rem; color: #999; text-align: center; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text-muted); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.55rem 1.25rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all 0.18s; line-height: 1.4; text-align: center; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary-light); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-light); }
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--danger:hover { background: #b02a37; border-color: #b02a37; }
.btn--sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn--lg { padding: 0.75rem 1.75rem; font-size: 1.05rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Toast notifications ===== */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: #1a2a3a; color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--radius); font-size: 0.9rem; box-shadow: var(--shadow-hover); min-width: 200px; max-width: 320px; animation: toast-in 0.3s ease; }
.toast--success { border-left: 4px solid var(--success); }
.toast--error { border-left: 4px solid var(--danger); }
@keyframes toast-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ===== Hero ===== */
.hero { background: linear-gradient(135deg, #1a1a1a 0%, #2d0008 50%, var(--primary) 100%); color: var(--white); padding: 3rem 2rem; border-radius: var(--radius); margin-bottom: 2.5rem; text-align: center; border: none; }
.hero__title { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.25; }
.hero__sub { font-size: 1rem; opacity: 0.9; max-width: 620px; margin: 0 auto 1.5rem; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn--outline { color: var(--white); border-color: rgba(255,255,255,0.7); }
.hero .btn--outline:hover { background: rgba(255,255,255,0.15); }

/* ===== Sections ===== */
.section { margin-bottom: 2.5rem; }
.section__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h1, .section-head h2 { margin-bottom: 0; }

/* ===== Sort form ===== */
.sort-form { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.sort-form select { border: 1px solid var(--border); border-radius: 6px; padding: 0.35rem 0.6rem; font-size: 0.875rem; background: var(--white); cursor: pointer; }

/* ===== Category tags ===== */
.category-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.category-tag { background: #f5f5f5; color: #333; border: 1px solid #ddd; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; transition: all 0.15s; }
.category-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); text-decoration: none; }

/* ===== Categories grid (home) ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.category-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1rem; transition: all 0.18s; cursor: pointer; }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-2px); border-left: 3px solid var(--primary); }
.category-card__name { font-weight: 700; font-size: 0.95rem; color: #1a1a1a; }
.category-card__desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ===== Products grid ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

/* ===== Product card ===== */
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all 0.18s; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-top: 3px solid var(--primary); }
.product-card__img-link { display: block; overflow: hidden; aspect-ratio: 4/3; background: #f0f2f5; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__img--placeholder { object-fit: contain; padding: 1rem; }
.product-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.product-card__title { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.product-card__title a { color: var(--text); }
.product-card__title a:hover { color: var(--primary); text-decoration: none; }
.product-card__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.product-card__price { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.product-card__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.product-card__actions .btn { flex: 1; font-size: 0.8rem; padding: 0.45rem 0.6rem; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.product-detail__gallery { }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #f0f2f5; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.15s; }
.gallery-main::after { content: '\1F50D'; position: absolute; bottom: 8px; right: 10px; font-size: 1.1rem; opacity: 0.4; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumb { width: 70px; height: 52px; object-fit: cover; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.15s; }
.gallery-thumb--active, .gallery-thumb:hover { border-color: var(--primary); }
.product-detail__title { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; margin-bottom: 1rem; }
.product-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: 0.9rem; margin-bottom: 1.25rem; align-items: start; }
.product-meta dt { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.product-meta dd { color: var(--text); }
.in-stock { color: var(--success); font-weight: 600; }
.out-of-stock { color: var(--danger); }
.product-detail__price { font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 1.25rem; }
.product-detail__qty-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.qty-input { width: 80px; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; text-align: center; }
.product-detail__short-desc { background: var(--primary-light); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; margin-top: 1rem; line-height: 1.6; }
.product-detail__full-desc { margin-bottom: 2rem; }
.product-detail__full-desc h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.prose { font-size: 0.95rem; line-height: 1.8; color: #2a2a2a; }
.prose b, .prose strong { font-weight: 700; }
.prose i, .prose em { font-style: italic; }
.prose u { text-decoration: underline; }
.prose s { text-decoration: line-through; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin: 0.5rem 0; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin: 0.5rem 0; }
.prose li { margin-bottom: 0.25rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9000; display: flex; align-items: center; justify-content: center; }
.lightbox__close { position: fixed; top: 1rem; right: 1.25rem; background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; z-index: 9001; opacity: 0.8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__inner { max-width: 94vw; max-height: 92vh; overflow: visible; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.lightbox__inner img { max-width: 90vw; max-height: 88vh; object-fit: contain; cursor: zoom-in; transition: transform 0.15s ease; transform-origin: center center; user-select: none; will-change: transform; }
.product-video { margin-bottom: 2rem; }
.product-video h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.out-of-stock-msg { color: var(--danger); font-weight: 600; font-size: 1rem; padding: 0.5rem 0; }

/* ===== Pagination ===== */
.pagination { display: flex; gap: 0.35rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1rem; }
.pagination__item { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.5rem; border-radius: 6px; border: 1px solid var(--border); font-size: 0.9rem; font-weight: 500; color: var(--primary); background: var(--white); transition: all 0.15s; }
.pagination__item:hover { background: var(--primary-light); text-decoration: none; }
.pagination__item--active { background: var(--primary); color: var(--white); border-color: var(--primary); pointer-events: none; }

/* ===== Info block ===== */
.info-block { background: #f9f9f9; border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.info-block h2 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.info-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.info-step { display: flex; align-items: flex-start; gap: 0.75rem; }
.info-step__num { background: var(--primary); color: #fff; border-radius: 50%; width: 32px; height: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.info-step p { font-size: 0.9rem; line-height: 1.5; }
.info-block__note { font-size: 0.85rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1rem; }

/* ===== Cart ===== */
.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.5rem; }
.cart-table th { background: var(--primary-light); padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; white-space: nowrap; }
.cart-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-img-cell img { border-radius: 4px; object-fit: cover; }
.cart-table--compact th, .cart-table--compact td { padding: 0.45rem 0.6rem; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.cart-total { font-size: 1.15rem; font-weight: 700; }
.cart-total strong { color: var(--accent); font-size: 1.3rem; }
.cart-checkout-wrap { text-align: right; }
.empty-cart { text-align: center; padding: 3rem 1rem; }
.empty-cart p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== Checkout form ===== */
.checkout-summary { background: var(--primary-light); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.75rem; }
.checkout-summary h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.checkout-form { max-width: 580px; margin-top: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; transition: border-color 0.15s; background: var(--white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,84,166,0.12); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-info { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; }
.alert--error { background: #fff5f5; border: 1px solid #fcc; color: #721c24; }
.alert p { margin: 0 0 0.25rem; }

/* ===== Success / Error pages ===== */
.success-page, .error-page { text-align: center; padding: 4rem 1rem; max-width: 500px; margin: 0 auto; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-page h1 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--success); }
.success-order-num { font-size: 1.1rem; margin-bottom: 1rem; }
.success-page p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--border); line-height: 1; }
.error-msg { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 1.5rem; }
.error-page .btn { margin: 0 0.25rem; }

/* ===== Terms page ===== */
.terms-page h2 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.6rem; }
.terms-page p, .terms-page li { font-size: 0.95rem; line-height: 1.75; color: #2a2a2a; margin-bottom: 0.5rem; }
.terms-page ol { list-style: decimal; padding-left: 1.5rem; }

/* ===== Category description ===== */
.category-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* ===== Empty state ===== */
.empty-state { text-align: center; color: var(--text-muted); font-size: 1rem; padding: 3rem 1rem; }

/* ===== Admin ===== */
.admin-body { background: #f1f3f5; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1a1a1a; color: #ccc; flex-shrink: 0; display: flex; flex-direction: column; }
.admin-sidebar__logo { padding: 1.25rem 1rem; font-weight: 700; font-size: 0.9rem; color: #fff; border-bottom: 3px solid var(--primary); line-height: 1.3; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; color: #aaa; font-size: 0.9rem; font-weight: 500; border-left: 3px solid transparent; transition: all 0.15s; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(200,16,46,0.12); border-left-color: var(--primary); text-decoration: none; }
.admin-sidebar__foot { margin-top: auto; padding: 1rem; border-top: 1px solid #333; }
.admin-sidebar__foot a { color: #aaa; font-size: 0.85rem; }
.admin-content { flex: 1; padding: 1.5rem; overflow-x: auto; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.admin-topbar h1 { font-size: 1.4rem; font-weight: 700; }
.admin-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.5rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th { background: #f1f3f5; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--primary-light); }
.admin-table td a { color: var(--primary); }
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-published { background: #d1f5d8; color: #0d5f1a; }
.status-hidden { background: #ffe5e5; color: #8b1a1a; }
.status-new { background: #fff3cd; color: #856404; }
.status-processed { background: #d1f5d8; color: #0d5f1a; }
.status-cancelled { background: #f1f3f5; color: var(--text-muted); }
.admin-form { max-width: 760px; }
.admin-form .form-group label { font-size: 0.875rem; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.admin-stat { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); text-align: center; }
.admin-stat__num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.admin-stat__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.admin-login__box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 2.5rem 2rem; width: 100%; max-width: 380px; }
.admin-login__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone input[type=file] { display: none; }
.image-gallery-admin { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.image-thumb-admin { position: relative; width: 110px; user-select: none; -webkit-user-select: none; cursor: grab; }
.image-thumb-admin img { width: 110px; height: 82px; object-fit: cover; border-radius: 4px; border: 2px solid var(--border); pointer-events: none; }
.image-thumb-admin.is-main img { border-color: var(--primary); }
.image-thumb-admin.dragging { opacity: 0.4; }
.image-thumb-admin.drag-over img { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,0.3); }
.image-thumb-admin .img-del { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.55); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.image-thumb-admin .img-main-btn { display: block; text-align: center; font-size: 0.7rem; margin-top: 2px; cursor: pointer; color: var(--primary); pointer-events: auto; }
.image-thumb-admin .img-alt-input { width: 100%; font-size: 0.7rem; border: 1px solid var(--border); border-radius: 3px; padding: 2px 4px; margin-top: 3px; pointer-events: auto; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-hover); max-width: 600px; width: 95%; max-height: 90vh; overflow-y: auto; padding: 1.5rem; }
.modal__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.modal__actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.modal-field { margin-bottom: 0.75rem; }
.modal-field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-muted); }
.modal-field textarea, .modal-field input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.6rem; font-size: 0.875rem; font-family: inherit; }
.modal-field textarea { min-height: 80px; resize: vertical; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .header-phone span { display: none; }
  .header-inner { gap: 0.75rem; padding: 0.5rem 0; }
  .product-detail { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .admin-sidebar nav { display: flex; flex-wrap: wrap; gap: 0; }
  .admin-sidebar nav a { padding: 0.5rem 0.75rem; }
  .admin-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-card__price { font-size: 1rem; }
  .hero { padding: 2rem 1rem; }
  .hero__title { font-size: 1.3rem; }
}
