/* ============================================
   GOLDEN M - SHARED CSS (All Pages)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* CSS VARIABLES */
:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --gold: #d6c8ae;
  --gold-light: #f4efe6;
  --brand-color: #d6c8ae;
  --font-serif: 'Bodoni Moda', serif;
  --font-brand: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding-top: 120px;
}

a { text-decoration: none; color: inherit; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: #000;
  color: #fff;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 1px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

.top-bar-social {
  display: none;
}

.top-bar-social-desktop {
  display: flex;
  gap: 15px;
}

.top-bar-social-desktop a {
  color: #fff;
  transition: opacity 0.3s;
}

.top-bar-social-desktop a:hover { opacity: 0.7; }

.top-bar-text {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid rgba(212,200,174,0.5);
  border-radius: 3px;
  transition: all 0.3s;
  font-size: 13px;
  white-space: nowrap;
}

.lang-switcher:hover {
  border-color: var(--gold, #d4c8ae);
  background: rgba(212,200,174,0.1);
}

#lang-flag {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.3);
}

#lang-code {
  font-size: 12px;
  letter-spacing: 1px;
  font-family: var(--font-sans);
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  height: 95px;
  padding: 0 50px;
  overflow: visible;
}

.header-logo-block {
  position: absolute;
  left: 50%;
  top: -40px;
  bottom: -1px;
  transform: translateX(-50%);
  z-index: 10;
  width: 500px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
}

.header-logo-block img {
  height: 105px;
  width: auto;
  object-fit: contain;
  margin-top: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  padding: 30px 0;
  transition: color 0.3s;
  color: #111;
  display: flex;
  align-items: center;
  height: 80px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #111;
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a.active { font-weight: 500; }
.nav-links a.active::after { width: 100%; }
.nav-links a.nav-news { color: var(--gold); font-weight: 600; }
.nav-links a.nav-news::after { width: 100%; background: var(--gold); }
.nav-links a.nav-news:hover { color: #c5a059; }

.header-news-link {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  transition: color 0.3s;
  white-space: nowrap;
}

.header-news-link:hover {
  color: #a8863c;
}

.header-news-link.active {
  color: var(--gold);
  font-weight: 700;
}


.logo {
  display: none;
}

.logo span { color: var(--gold); }

/* ============================================
   HEADER ICONS
   ============================================ */
.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* ============================================
   DESKTOP / LAPTOP HEADER SCALING (901px and up)
   The centre logo block used to be a fixed 500px wide, so on 13-14" laptops
   (1280-1440px wide, or a bigger browser zoom) it covered "Купи на едро"
   and, below ~1150px, more of the menu and the language switcher.
   Everything now scales with the viewport so nothing overlaps.
   ============================================ */
@media (min-width: 901px) {
  .top-bar { padding-left: clamp(20px, 3.4vw, 50px); padding-right: clamp(20px, 3.4vw, 50px); }
  header { padding-left: clamp(20px, 3.4vw, 50px); padding-right: clamp(20px, 3.4vw, 50px); }
  .header-logo-block { width: clamp(280px, 29vw, 500px); }
  .header-logo-block img { height: clamp(62px, 7.2vw, 105px); margin-top: clamp(8px, 1.1vw, 16px); }
  .nav-links { gap: clamp(12px, 2vw, 30px); }
  .nav-links a { font-size: clamp(10.5px, 0.92vw, 13px); letter-spacing: clamp(0.8px, 0.14vw, 2px); }
  .header-news-link { font-size: clamp(10.5px, 0.92vw, 13px); letter-spacing: clamp(0.8px, 0.14vw, 2px); }
  .header-icons { gap: clamp(6px, 1.3vw, 20px); }
  .header-icon { width: clamp(34px, 2.8vw, 40px); height: clamp(34px, 2.8vw, 40px); }
  .top-bar-right { gap: clamp(8px, 1.1vw, 15px); }
  .lang-switcher { padding: 6px clamp(8px, 1vw, 14px); }
}
/* touch screens: keep small controls comfortably tappable */
@media (max-width: 900px) {
  .pw-toggle { min-width: 40px; min-height: 40px; }
  .breadcrumb .back-btn { display: inline-block; padding: 12px 10px; margin: -12px -10px; }
}
/* small laptop windows / tablets in landscape (901-1060px): squeeze the menu a bit more */
@media (min-width: 901px) and (max-width: 1060px) {
  .header-logo-block { width: 250px; }
  .header-logo-block img { height: 58px; }
  .nav-links { gap: 10px; }
  .nav-links a, .header-news-link { font-size: 10px; letter-spacing: 0.5px; }
  .header-icons { gap: 4px; }
}

.header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  position: relative;
}

.header-icon:hover { opacity: 0.6; }

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke: #111;
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: #111;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ACCOUNT DROPDOWN
   ============================================ */
.account-wrapper {
  position: relative;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 2000;
}

.account-wrapper:hover .account-dropdown,
.account-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.account-dropdown-header .account-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.account-dropdown-header .account-points {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}

.account-dropdown-header .account-points span {
  font-weight: 600;
}

.account-dropdown-links {
  padding: 8px 0;
}

.account-dropdown-links a,
.account-dropdown-links button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-sans);
  color: inherit;
}

.account-dropdown-links a:hover,
.account-dropdown-links button:hover {
  background: #f5f5f5;
}

.account-dropdown-links .logout-link {
  color: #e74c3c;
  border-top: 1px solid #eee;
}

.account-dropdown-links .admin-link {
  color: var(--gold);
  font-weight: 500;
  border-top: 1px solid #eee;
}

.account-dropdown-login {
  padding: 20px;
  text-align: center;
}

.account-dropdown-login a {
  display: block;
  padding: 12px;
  background: #000;
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.3s;
}

.account-dropdown-login a:hover {
  background: #222;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 600px;
  max-width: 90%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: opacity 0.3s;
  background: none;
  border: none;
}

.search-close:hover { opacity: 0.5; }

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 20px 60px 20px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: #666;
}

.search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.3s;
}

.search-submit:hover { opacity: 0.5; }

.search-submit svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
}

.search-suggestions {
  margin-top: 30px;
  color: #666;
  font-size: 13px;
  letter-spacing: 1px;
}

.search-suggestions span {
  color: #fff;
  cursor: pointer;
  margin-right: 20px;
  transition: color 0.3s;
}

.search-suggestions span:hover { color: var(--gold); }

.search-results {
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s;
}

.search-result-item:hover { opacity: 0.7; }

.search-result-img {
  width: 60px;
  height: 75px;
  background: #222;
  flex-shrink: 0;
  overflow: hidden;
}

.search-result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.search-result-price {
  font-size: 14px;
  color: var(--gold);
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
}

/* ============================================
   QUICK ADD (SIZE PICKER) MODAL
   ============================================ */
.qa-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qa-overlay.active {
  opacity: 1;
  visibility: visible;
}

.qa-modal {
  background: #fff;
  width: 380px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: 30px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.qa-overlay.active .qa-modal {
  transform: translateY(0);
}

.qa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.qa-close:hover { color: #333; }

.qa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-right: 20px;
}

.qa-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.qa-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #111;
  line-height: 1.3;
}

.qa-size-section label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 10px;
}

.qa-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.qa-size-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-size-btn:hover:not(:disabled) { border-color: #999; }

.qa-size-btn.active {
  border-color: var(--gold);
  background: var(--gold-light);
  color: #9a7f2f;
}

.qa-size-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.qa-qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qa-qty-selector button {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.qa-qty-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  height: 34px;
  font-family: var(--font-sans);
}

.qa-confirm-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qa-confirm-btn:hover { background: var(--gold); color: #111; }

.qa-soldout {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 10px 0 4px;
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.cart-close:hover { opacity: 0.5; }

.cart-close svg {
  width: 20px;
  height: 20px;
  stroke: #111;
  fill: none;
  stroke-width: 2;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

.cart-empty {
  text-align: center;
  color: #999;
  padding: 60px 0;
}

.cart-empty svg {
  width: 60px;
  height: 60px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-img {
  width: 100px;
  height: 130px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 14px;
  color: #111;
  margin-bottom: 15px;
}

.cart-item-size {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.qty-btn:hover { border-color: #111; }

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.cart-item-remove:hover { color: #111; }

.cart-guest-promo {
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border: 1px solid #f0d060;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guest-promo-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guest-promo-text {
  font-size: 12px;
  line-height: 1.6;
  color: #5a4e1e;
}

.guest-promo-text strong {
  color: #3a3010;
}

.cart-footer {
  padding: 25px 30px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
}

.cart-total span:last-child {
  font-weight: 500;
}

.cart-checkout {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-checkout:hover { background: #333; }

.cart-continue {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: #111;
  border: 1px solid #111;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.cart-continue:hover {
  background: #111;
  color: #fff;
}

/* ============================================
   BUTTON LUXURY
   ============================================ */
.btn-luxury {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--gold);
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-luxury:hover { color: #ffffff; border-color: var(--gold); }
.btn-luxury:hover::before { width: 100%; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0a0a0a;
  color: #fff;
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
  line-height: 1;
}

.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-text { color: #ccc; font-size: 14px; max-width: 300px; line-height: 1.8; }

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: #fff;
  font-weight: 600;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #ccc; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }

.footer-newsletter input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  margin-bottom: 10px;
}

.footer-newsletter input::placeholder { color: #888; }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 13px;
}

/* ============================================
   BRAND TEXT — Cormorant Garamond in #d6c8ae
   ============================================ */
.top-bar-text {
  font-family: var(--font-brand);
  color: var(--brand-color);
}

.footer-bottom span {
  font-family: var(--font-brand);
  color: var(--brand-color);
  font-size: 15px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   HAMBURGER & MOBILE NAV
   ============================================ */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  /* 7 links + social row: on short phones scroll instead of cutting off the first/last entry */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 70px 0 30px;
  box-sizing: border-box;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

@media (max-height: 760px) {
  .mobile-nav { gap: 20px; }
  .mobile-nav a { font-size: 24px; }
  .mobile-nav-social { margin-top: 12px; }
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  /* Thin black line at top (like desktop top-bar but empty) */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    z-index: 1002;
  }

  /* NAV — hamburger for menu, nav-links hidden on mobile */
  .hamburger { display: flex; }
  .nav-links, .nav { display: none !important; }

  header { height: 70px; }
  header.scrolled { padding: 0 12px; }
  .top-bar {
    display: none;
  }
  .header-logo-block { height: 90px; width: 180px; top: -20px; }
  .header-logo-block img { height: 40px; margin-top: 6px; }
  .header-right { justify-content: flex-end; min-width: 0; flex: 1; }
  body {
    padding-top: 70px;
  }
  body > #main-header {
    top: 0 !important;
    height: 70px;
  }

  /* CART SIDEBAR */
  .cart-sidebar { width: 85%; max-width: 340px; height: 60vh; top: 0; bottom: auto; right: 0; left: auto; border-radius: 0 0 0 12px; transform: translateX(100%); }
  .cart-header { padding: 16px; }
  .cart-item { padding: 12px 16px; gap: 12px; }
  .cart-item-img { width: 60px; height: 75px; }
  .cart-footer { padding: 16px; }
  .cart-checkout { padding: 14px; font-size: 12px; }

  /* SEARCH */
  .search-overlay .search-container { padding: 60px 16px 16px; }
  .search-input-wrapper input { font-size: 18px; }

  /* FOOTER */
  .footer-content { grid-template-columns: 1fr; gap: 30px; padding: 40px 5%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }
  .footer-logo img { height: 40px; }

  /* BUTTONS — touch targets minimum 44px */
  header .header-icon,
  .cart-close,
  .qty-btn,
  .filter-btn,
  .admin-tab,
  .btn-sm,
  .btn-luxury,
  .lang-switcher,
  .cart-checkout,
  .cart-continue,
  .search-close,
  .place-order-btn,
  .add-to-cart,
  .detail-add-to-cart { min-height: 44px; }
}

/* Small phones */
@media (max-width: 400px) {
  header { padding: 0 8px; }
  .hamburger { margin-right: 4px; }
  .header-logo-block { height: 85px; width: 150px; top: -15px; }
  .header-logo-block img { height: 34px; margin-top: 4px; }
  .mobile-social-icons { gap: 4px; }
  .mobile-social-icons a { width: 28px; height: 28px; }
  .mobile-social-icons img { width: 16px; height: 16px; }
  .mobile-lang-btn { width: 28px; height: 28px; }
  .mobile-lang-btn img { width: 20px; height: 14px; }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-img { width: 100%; height: 120px; }
  .cart-sidebar { width: 90%; }
  .footer-content { padding: 30px 4%; gap: 24px; }
}

/* ============================================
   LIKE SYSTEM
   ============================================ */
.product-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  padding: 0;
}
.product-like-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #333;
  stroke-width: 2;
  transition: fill 0.2s, stroke 0.2s;
}
.product-like-btn:hover {
  transform: scale(1.15);
  background: rgba(255,255,255,1);
}
.product-like-btn.liked svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}
.like-btn-detail {
  position: static;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 10px;
}
.like-btn-detail svg {
  width: 20px;
  height: 20px;
}
.like-btn-detail:hover {
  background: #f5f5f5;
}
.product-detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.liked-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding: 20px 0;
}
.liked-empty {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 1.1rem;
}

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

/* Page load fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Apply page load animation */
body > .top-bar { animation: fadeIn 0.4s ease; }
body > #main-header {
    animation: fadeIn 0.5s ease 0.1s both;
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
}

/* Scroll reveal - elements with these classes */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Staggered reveal for children (e.g. product grids) */
.stagger-reveal > * { opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }
.stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-reveal.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-reveal.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-reveal.revealed > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-reveal.revealed > * { opacity: 1; transform: translateY(0); }

/* Product card hover enhancements */
.product-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Button press effect */
.btn, .btn-sm, .btn-sm.accent, button[class*="btn"] {
  transition: all 0.25s ease;
}
.btn:active, .btn-sm:active, .btn-sm.accent:active {
  transform: scale(0.96);
}

/* Gold underline link animation */
.nav-links a, .footer-col a {
  position: relative;
}
.nav-links a::after, .footer-col a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .footer-col a:hover::after {
  width: 100%;
}

/* Header icon hover glow */
.header-icon {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* Cart count pulse on update */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-count.pulse {
  animation: cartPulse 0.3s ease;
}

/* Image hover zoom */
.product-card img, .admin-table img {
  transition: transform 0.5s ease;
}
.product-card:hover img {
  transform: scale(1.05);
}

/* Sidebar hover slide effect */
.admin-nav-item {
  position: relative;
  overflow: hidden;
}
.admin-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(197,160,89,0.15);
  transition: width 0.25s ease;
  z-index: -1;
}
.admin-nav-item:hover::before, .admin-nav-item.active::before {
  width: 100%;
}

/* Stat card number count-up feel */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(197,160,89,0.1);
}

/* Filter button active transition */
.filter-btn {
  transition: all 0.25s ease;
}

/* Status badge transition */
.status-badge {
  transition: all 0.25s ease;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Toast/notification slide-in */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Form input focus animation */
input, select, textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(197,160,89,0.12);
}

/* Mobile menu slide animation */
@keyframes slideDownMenu {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 400px; }
}
.mobile-nav.open {
  animation: slideDownMenu 0.3s ease forwards;
}

/* Mobile header: lang switcher — hidden on desktop */
.mobile-lang-btn {
  display: none;
}

/* MOBILE NAV SOCIAL */
.mobile-nav-social {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
}
.mobile-nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.mobile-nav-social a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  /* Header layout: hamburger | [logo centered] | lang btn */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
  }

  .mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: #111;
    border-radius: 4px;
  }
  .mobile-lang-btn img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
  }

  /* Hide header-icons on mobile — bottom bar replaces them */
  .header-icons { display: none !important; }
}

/* ============================================
   MOBILE BOTTOM TAB BAR
   ============================================ */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    z-index: 998;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }

  .mobile-bottom-bar .mbb-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-bar .mbb-icon:active {
    color: var(--gold);
  }

  .mobile-bottom-bar .mbb-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
  }

  .mobile-bottom-bar .mbb-icon span {
    font-size: 10px;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
    font-weight: 500;
  }

  .mobile-bottom-bar .mbb-icon.mbb-cart {
    position: relative;
  }

  .mobile-bottom-bar .mbb-icon.mbb-admin {
    color: var(--gold);
  }

  .mobile-bottom-bar .mbb-count {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Push page content up on mobile to account for bottom bar */
  body {
    padding-bottom: 60px;
  }

  /* Hide header icons on mobile — bottom bar replaces them */
  .header-icons {
    display: none !important;
  }
}

/* ============================================
    MOBILE ADMIN PANEL STYLES
    ============================================ */
@media (max-width: 900px) {

  /* Admin layout: full width, no sidebar */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .admin-sidebar-toggle:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  .admin-main {
    margin-left: 0;
    padding-top: 64px;
  }

  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0 16px;
    height: 64px;
  }

  .admin-content {
    padding: 20px 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Admin bottom navigation */
  .admin-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    z-index: 998;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  }

  .admin-bottom-nav .anb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: #111;
    transition: color 0.2s;
    gap: 2px;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    font-family: var(--font-sans);
    padding: 4px 8px;
    min-height: 44px;
  }

  .admin-bottom-nav .anb-item:active,
  .admin-bottom-nav .anb-item.active {
    color: var(--gold);
  }

  .admin-bottom-nav .anb-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
  }

  .admin-bottom-nav .anb-item span {
    font-size: 9px;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    font-weight: 500;
    line-height: 1;
  }

  /* Admin sidebar overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.5);
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* ===== MOBILE ADMIN STATS ===== */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .stat-card .stat-value {
    font-size: 28px;
  }

  .stat-card .stat-label {
    font-size: 9px;
  }

  /* ===== MOBILE ADMIN TABLES → CARDS ===== */
  .admin-table {
    display: none;
  }

  .mobile-cards {
    display: block;
    margin-bottom: 16px;
  }

  .mobile-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
    gap: 8px;
  }

  .mobile-card-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: #111;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .mobile-card-sub {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
  }

  .mobile-card-body {
    padding: 16px 20px;
  }

  .mobile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8f8f8;
  }

  .mobile-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .mobile-info-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
  }

  .mobile-info-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
  }

  .mobile-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }

  .mobile-action-btn {
    flex: 1;
    min-width: 44px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
    font-family: var(--font-sans);
    min-height: 44px;
    color: #333;
    text-decoration: none;
  }

  .mobile-action-btn.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
  }

  .mobile-action-btn.danger {
    border-color: #fee;
    background: #fff8f8;
    color: #c0392b;
  }

  /* ===== MOBILE ADMIN FORMS ===== */
  .admin-main input,
  .admin-main select,
  .admin-main textarea {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-family: var(--font-sans);
    box-sizing: border-box;
    min-height: 48px;
  }

  .admin-main input:focus,
  .admin-main select:focus,
  .admin-main textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.12);
  }

  .admin-main input::placeholder {
    color: #ccc;
  }

  .admin-main select {
    appearance: auto;
  }

  .admin-main textarea {
    min-height: 100px;
    resize: vertical;
  }

  /* ===== MOBILE ADMIN FILTERS ===== */
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .filter-btn {
    padding: 12px 8px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* ===== MOBILE ADMIN BUTTONS ===== */
  .btn-sm {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .carousel-btn {
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 4px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: nowrap;
  }

  .carousel-btn.danger {
    background: transparent;
    border: 1px solid #c0392b;
    color: #c0392b;
  }
  .carousel-btn.danger:hover {
    background: #c0392b;
    color: #fff;
  }

  .carousel-btn:not(.danger) {
    background: transparent;
    border: 1px solid #ddd;
    color: #888;
  }
  .carousel-btn:not(.danger):hover {
    background: #f5f5f5;
    border-color: #999;
  }

  /* ===== MOBILE ADMIN SECTION HEADER ===== */
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  /* ===== MOBILE ADMIN ORDER DETAILS ===== */
  .order-detail-card {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .order-detail-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 20px;
  }

  .order-detail-body {
    padding: 16px 20px;
  }

  .order-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .order-info-block {
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
  }

  .order-items-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #eee;
  }

  .order-items-table th,
  .order-items-table td {
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .order-detail-footer {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fafafa;
    margin: 16px 20px 0;
    border-radius: 8px;
  }

  /* ===== MOBILE ADMIN NAV ITEMS ===== */
  .admin-nav-item {
    padding: 16px 20px;
    font-size: 15px;
    min-height: 52px;
    border-radius: 8px;
  }

  .admin-nav-item svg {
    width: 22px;
    height: 22px;
  }

  /* ===== MOBILE ADMIN USER TABLE → CARDS ===== */
  #users-container .admin-table {
    display: none;
  }

  #users-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN PROMO TABLE → CARDS ===== */
  #promos-container .admin-table {
    display: none;
  }

  #promos-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN MESSAGES TABLE → CARDS ===== */
  #messages-container .admin-table {
    display: none;
  }

  #messages-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN PRODUCT TABLE → CARDS ===== */
  #products-container .admin-table {
    display: none;
  }

  #products-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN COMPANY TABLE → CARDS ===== */
  #companies-container .admin-table {
    display: none;
  }

  #companies-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN WHOLESALE TABLE → CARDS ===== */
  #wholesale-container .admin-table {
    display: none;
  }

  #wholesale-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN ONLINE USERS ===== */
  #online-container .admin-table {
    display: none;
  }

  #online-container .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN POINTS HISTORY ===== */
  #admin-points-history .admin-table {
    display: none;
  }

  #admin-points-history .mobile-cards {
    display: block;
  }

  /* ===== MOBILE ADMIN SIZE REQUESTS ===== */
  #size-requests-container .order-detail-card {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  /* ===== MOBILE ADMIN CAROUSEL ===== */
  #carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  /* ===== MOBILE ADMIN CREATE FORM ===== */
  .create-form {
    padding: 20px;
    border-radius: 12px;
  }

  .create-form label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .create-form input,
  .create-form select {
    margin-bottom: 16px;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    min-height: 48px;
  }

  .create-form button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    min-height: 52px;
    border-radius: 10px;
  }

  /* ===== MOBILE ADMIN TOPBAR ===== */
  .admin-topbar-title {
    font-size: 15px;
  }

  .admin-user-badge {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
  }

  /* ===== MOBILE ADMIN DASHBOARD ===== */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ===== MOBILE ADMIN POINTS SETTINGS ===== */
  #points-settings-form {
    grid-template-columns: 1fr;
  }

  #points-settings-form > div {
    max-width: 100%;
  }

  /* ===== MOBILE ADMIN DELIVERY SETTINGS ===== */
  .admin-main [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* ===== MOBILE ADMIN TIER CARDS ===== */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ===== MOBILE ADMIN ADJUSTMENT ===== */
  [style*="grid-template-columns:200px 120px 1fr auto"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ===== MOBILE ADMIN MESSAGE MODAL ===== */
  #message-modal > div {
    width: 95%;
    max-width: 95%;
    padding: 20px;
  }

  /* ===== MOBILE ADMIN DELETE MODAL ===== */
  #delete-user-modal > div {
    width: 90%;
    max-width: 90%;
    padding: 24px;
  }

  /* ===== MOBILE ADMIN SIDEBAR ===== */
  .admin-sidebar {
    width: 85%;
    max-width: 320px;
  }

  /* ===== MOBILE ADMIN CONTENT ===== */
  .admin-section {
    overflow-x: hidden;
  }

  /* ===== MOBILE ADMIN TRANSLATION ROWS ===== */
  .translate-row {
    flex-direction: column;
    gap: 8px;
  }

  .translate-row select {
    width: 100%;
  }

  .translate-row .btn-sm {
    width: 100%;
    justify-content: center;
  }

  /* ===== MOBILE ADMIN GALLERY ===== */
  #gallery-preview {
    gap: 6px;
  }

  /* ===== MOBILE ADMIN SIZES ===== */
  #admin-sizes-container {
    flex-wrap: wrap;
  }

  /* ===== MOBILE ADMIN ORDER ITEMS TABLE SCROLL ===== */
  .order-items-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ===== MOBILE ADMIN EMPTY STATE ===== */
  .empty-state {
    padding: 40px 20px;
  }

  /* ===== MOBILE ADMIN BOTTOM NAV ===== */
  body.admin-page {
    padding-bottom: 60px;
  }

  body.admin-page > .admin-layout {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
    border-radius: 10px;
  }

  .stat-card .stat-value {
    font-size: 24px;
  }

  .stat-card .stat-sub {
    font-size: 10px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .mobile-card-header {
    padding: 14px 16px;
  }

  .mobile-card-title {
    font-size: 16px;
  }

  .mobile-card-body {
    padding: 14px 16px;
  }

  .mobile-action-btn {
    padding: 14px;
    font-size: 14px;
  }

  .filter-btn {
    padding: 10px 8px;
    font-size: 12px;
    min-height: 40px;
  }

  .btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 42px;
  }

  .order-detail-header {
    padding: 14px 16px;
  }

  .order-detail-body {
    padding: 14px 16px;
  }

  .order-items-table th,
  .order-items-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .mobile-info-label {
    font-size: 10px;
  }

  .mobile-info-value {
    font-size: 13px;
  }

  .admin-content {
    padding: 12px 8px;
  }

  .admin-topbar {
    height: 60px;
  }

  .admin-main {
    padding-top: 60px;
  }

  .admin-sidebar-toggle {
    width: 44px;
    height: 44px;
  }

  .admin-nav-item {
    padding: 15px 20px;
    font-size: 14px;
    min-height: 44px;
  }

  .admin-user-badge {
    padding: 6px 12px;
    font-size: 11px;
  }

  .admin-topbar-title {
    font-size: 14px;
  }

  .order-detail-footer {
    padding: 16px;
  }

  .mobile-bottom-nav {
    height: 56px;
  }
}


/* iOS: html + body both overflow-x:hidden makes body a scroll container and fixed elements
   (header, admin menu button) can vanish on scroll. clip clips without creating a scroller. */
@media (max-width: 900px) {
  @supports (overflow: clip) {
    body { overflow-x: clip; }
  }
}