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

:root {
  --primary: #FF3B30;
  --primary-dark: #CC2E25;
  --accent: #FF9500;
  --accent2: #34C759;
  --dark: #1C1C1E;
  --dark2: #2C2C2E;
  --gray: #636366;
  --light-gray: #F2F2F7;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 16px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light-gray);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== HEADER ===== */
header {
  background: var(--dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 58px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: white;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.lang-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-toggle:hover { background: rgba(255,255,255,0.2); }

/* ===== MAIN CONTAINER ===== */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

/* ===== HERO (homepage) ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #FF6B35 50%, var(--accent) 100%);
  border-radius: var(--radius);
  padding: 32px 40px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -40px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 15px;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .badge {
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-pill {
  background: var(--white);
  border: 2px solid transparent;
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255,59,48,0.04);
}

.category-link {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.category-link:hover { text-decoration: underline; }

/* ===== FAVICON AVATAR ===== */
.avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.favicon-img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* fallback letter */
.avatar-wrap::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  font-size: 45%;
}

.avatar-wrap.show-letter .favicon-img { display: none; }
.avatar-wrap.show-letter::after { display: flex; }

/* ===== STORE GRID (homepage) ===== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.store-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  border: 2px solid transparent;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.store-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.store-avatar.color-0 { background: linear-gradient(135deg, #FF3B30, #FF6B35); }
.store-avatar.color-1 { background: linear-gradient(135deg, #007AFF, #5AC8FA); }
.store-avatar.color-2 { background: linear-gradient(135deg, #34C759, #30D158); }
.store-avatar.color-3 { background: linear-gradient(135deg, #FF9500, #FFCC02); }
.store-avatar.color-4 { background: linear-gradient(135deg, #AF52DE, #FF2D55); }
.store-avatar.color-5 { background: linear-gradient(135deg, #32ADE6, #5856D6); }

.store-card-name {
  font-size: 16px;
  font-weight: 800;
}

.store-card-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.store-card-category:hover { text-decoration: underline; }

.store-card-left {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  background: rgba(255,59,48,0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.store-card-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 20px;
  transition: background 0.2s;
}

.store-card:hover .store-card-cta { background: var(--primary-dark); }

/* ===== STORE PAGE: HERO SPLIT ===== */
.store-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.store-hero-info {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border-top: 4px solid var(--primary);
}

.store-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.store-page-avatar {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.store-page-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.store-page-category {
  font-size: 11px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.store-page-url {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}

.store-page-url a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.store-page-desc {
  font-size: 14px;
  color: var(--dark2);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Meta tags (scadenza, min, rimasti) */
.store-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-tag {
  font-size: 12px;
  background: var(--light-gray);
  border-radius: 6px;
  padding: 5px 10px;
  color: var(--dark2);
}

.meta-tag.urgent {
  background: rgba(255,59,48,0.08);
  color: var(--primary);
  font-weight: 700;
}

/* Screenshot panel */
.store-hero-screenshot {
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.screenshot-chrome {
  background: #3a3a3c;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.screenshot-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-img-wrap {
  background: var(--light-gray);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img-wrap img {
  width: 100%;
  display: block;
}

.screenshot-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gray);
  font-size: 13px;
  padding: 40px 0;
}

/* ===== COUPON BOX ===== */
.coupon-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
  border-top: 4px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(90deg, var(--primary), var(--accent), var(--accent2)) border-box;
}

.coupon-box-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.coupon-left-col {
  padding: 24px;
  border-right: 1px dashed #e5e5ea;
  background: linear-gradient(160deg, #fff9f9 0%, #fffaf5 100%);
}

.coupon-right-col {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coupon-box-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 4px;
}

.coupon-discount {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 2px;
}

.coupon-subtitle {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 16px;
}

.coupon-conditions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.coupon-conditions li {
  font-size: 13px;
  color: var(--dark2);
}

.coupon-intro {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.5;
}

.coupon-note {
  font-size: 11px;
  color: var(--gray);
  margin-top: 10px;
  line-height: 1.4;
}

.coupon-success-badge {
  background: var(--accent2);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.coupon-code-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 8px;
}

.coupon-code-display {
  background: var(--light-gray);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: background 0.2s;
  user-select: all;
  width: 100%;
}

.coupon-code-display:hover { background: #e8e8ed; }

.copy-hint {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 16px;
}

.copy-hint.copied { color: var(--accent2); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), #FF6B35);
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,59,48,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,59,48,0.45);
}

.btn-generate:active { transform: translateY(0); }

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-visit:hover { background: var(--dark2); }

/* ===== SEE ALL BUTTON ===== */
.btn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--primary);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-see-all:hover { background: var(--primary); color: white; }

/* ===== OTHER STORES ===== */
/* ===== SHARE BAR ===== */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.share-btn:hover { opacity: .85; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }

.share-whatsapp  { background: #25D366; color: #fff; }
.share-x         { background: #000;    color: #fff; }
.share-facebook  { background: #1877F2; color: #fff; }
.share-email     { background: var(--light-gray); color: var(--dark); }
.share-copy      { background: var(--light-gray); color: var(--dark); }

@media (max-width: 600px) {
  .share-bar { flex-direction: column; align-items: flex-start; }
  .share-btn { padding: 6px 12px; font-size: 12px; }
}

.other-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.mini-store-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}

.mini-store-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.mini-store-text {
  flex: 1;
  min-width: 0; /* allow text to truncate inside flex */
}

.mini-store-name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-store-cat {
  font-size: 10px;
  color: var(--gray);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-store-discount {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 20px 24px;
  font-size: 12px;
  margin-top: 40px;
}

footer a { color: rgba(255,255,255,0.65); }

/* ===== SPINNER ===== */
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-dark {
  width: 18px;
  height: 18px;
  border: 3px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ===== 404 ===== */
.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found h2 {
  font-size: 64px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -2px;
}

.not-found p {
  font-size: 18px;
  color: var(--gray);
  margin: 12px 0 28px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 16px 16px;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.cookie-banner-show { transform: translateY(0); }
.cookie-banner-hide { transform: translateY(110%); }

.cookie-banner-inner {
  max-width: 860px;
  margin: 0 auto;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 200px; }

.cookie-text strong {
  display: block;
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}

.cookie-text p {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--primary), #FF6B35);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,59,48,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,59,48,0.45);
}

.cookie-link {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-link:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 600px) {
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept { flex: 1; text-align: center; }
}

/* ===== SEARCH BUTTON IN NAV ===== */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-left: 4px;
  flex-shrink: 0;
}
.nav-search-btn:hover { background: rgba(255,255,255,0.2); color: white; }

/* ===== SEARCH OVERLAY ===== */
#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  transition: opacity 0.18s;
}
#search-overlay.open { opacity: 1; }

.search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.search-modal {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.18s;
}
#search-overlay.open .search-modal { transform: translateY(0); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--light-gray);
}

.search-icon-input {
  color: var(--gray);
  flex-shrink: 0;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  background: transparent;
  font-family: inherit;
}
#search-input::placeholder { color: #b0b0b8; }
#search-input::-webkit-search-cancel-button { display: none; }

.search-close-btn {
  background: var(--light-gray);
  border: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.search-close-btn:hover { background: #e0e0e8; }

.search-results {
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.search-hint, .search-no-results {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  padding: 24px 0;
}

.search-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s;
  border: 2px solid transparent;
}
.search-result-card:hover {
  background: var(--light-gray);
  border-color: var(--primary);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-name mark {
  background: rgba(255,149,0,0.25);
  color: var(--dark);
  border-radius: 2px;
  padding: 0 1px;
}

.search-result-cat {
  font-size: 11px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

@media (max-width: 640px) {
  #search-overlay { padding-top: 60px; align-items: flex-start; }
  .search-modal { border-radius: 0 0 var(--radius) var(--radius); max-height: 85vh; }
}

/* ===== STATIC PAGES (About / Contact) ===== */
.static-page {}

.static-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  color: white;
  margin-bottom: 20px;
}

.static-hero h1 {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.static-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.static-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.info-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.info-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.info-card p {
  font-size: 14px;
  color: var(--dark2);
  line-height: 1.7;
  margin-bottom: 10px;
}

.info-card p:last-child { margin-bottom: 0; }

.steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.steps-list li {
  font-size: 14px;
  color: var(--dark2);
  line-height: 1.5;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: start;
}

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

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid #e5e5ea;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark);
  background: white;
  transition: border-color 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-success {
  text-align: center;
  padding: 32px 16px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 12px 0 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .store-hero-split {
    grid-template-columns: 1fr;
  }
  .coupon-box-inner {
    grid-template-columns: 1fr;
  }
  .coupon-left-col {
    border-right: none;
    border-bottom: 1px dashed #e5e5ea;
  }
  .coupon-right-col { text-align: center; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-link { font-size: 12px; padding: 6px 8px; }
  .nav-link .nav-text { display: none; }
  .lang-toggle { font-size: 11px; padding: 5px 8px; }
}

@media (max-width: 480px) {
  main { padding: 14px 14px 40px; }
  .hero { padding: 22px 18px; }
  .static-hero { padding: 22px 18px; }
  .coupon-discount { font-size: 44px; }
  .coupon-code-display { font-size: 15px; letter-spacing: 2px; }
  .btn-generate { font-size: 14px; padding: 13px 20px; }
  /* Stack store hero on very small screens */
  .store-hero-split { grid-template-columns: 1fr; }
  .coupon-box-inner { grid-template-columns: 1fr; }
  .coupon-left-col { border-right: none; border-bottom: 1px dashed #e5e5ea; }
}
