@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700;900&family=Assistant:wght@400;600;700&display=swap');

:root {
  --red: #E62E2E;
  --red-dark: #C41E1E;
  --red-light: #FF4444;
  --orange: #FF6600;
  --yellow: #FFB800;
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --text: #111;
  --text-muted: #888;
  --border: #E8E8E8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(230,46,46,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Assistant', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(230,46,46,0.4);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-text {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-text .deal { color: #FFB800; }

.logo-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

/* Search */
.search-wrap {
  flex: 1;
  position: relative;
  max-width: 500px;
}

.search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border-radius: 24px;
  border: none;
  background: white;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  outline: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-wrap input::placeholder { color: #aaa; }

.search-btn {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--red);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--red-dark); }

/* Filter chips */
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover,
.filter-chip.active {
  background: white;
  color: var(--red);
  border-color: white;
}

/* ===== NAV TABS ===== */
.nav-tabs {
  background: white;
  display: flex;
  gap: 0;
  padding: 0 8px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  padding: 12px 16px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-tab:hover { color: var(--red); }
.nav-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ===== MAIN ===== */
main { max-width: 1200px; margin: 0 auto; padding: 0; }

/* ===== PAGES ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== AFFILIATE BAR ===== */
.affiliate-bar {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  
  padding: 8px 14px;
  font-size: 14px;
  color: #664D03;
  
  text-align: center;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #C41E1E 0%, #E62E2E 50%, #FF4444 100%);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 20px;
  width: 100px; height: 100px;
  background: rgba(255,184,0,0.15);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }
.hero-banner h2 { font-family: 'Rubik', sans-serif; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.hero-banner p { font-size: 14px; opacity: 0.85; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: #333;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===== SORT BAR ===== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}
.sort-bar h2 { font-size: 15px; font-weight: 800; }
.sort-bar .count { font-size: 14px; color: var(--text-muted); background: var(--border); padding: 2px 10px; border-radius: 20px; }

.sort-select {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  color: var(--text);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.card-img-wrap {
  position: relative;
  background: #F8F8F8;
  aspect-ratio: 1;
  overflow: hidden;
}

.card-img-wrap a { display: block; width: 100%; height: 100%; }

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.card-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--yellow);
  color: #333;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
}

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

.card-title {
  font-size: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stars { color: var(--yellow); font-size: 14px; }

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

.price-now {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

.price-old {
  font-size: 14px;
  color: #bbb;
  text-decoration: line-through;
}

.card-shipping {
  font-size: 12px;
  color: #2E7D32;
  font-weight: 600;
  margin-bottom: 8px;
}

.btn-ali {
  display: block;
  background: var(--red);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Assistant', sans-serif;
  transition: background 0.15s;
  margin-top: auto;
}
.btn-ali:hover { background: var(--red-dark); }

/* ===== NO RESULTS ===== */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}
.no-results .emoji { font-size: 40px; margin-bottom: 10px; }

/* ===== ROOMS PAGE ===== */
.rooms-intro {
  text-align: center;
  margin-bottom: 20px;
}
.rooms-intro h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}
.rooms-intro p { font-size: 14px; color: var(--text-muted); }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.room-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.room-card.active { ring: 3px solid var(--red); outline: 3px solid var(--red); }

.room-header {
  padding: 20px 16px;
  color: white;
  text-align: center;
}
.room-emoji { font-size: 32px; margin-bottom: 8px; }
.room-name { font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.room-desc { font-size: 14px; opacity: 0.8; }

.room-products {
  display: none;
  padding: 16px;
  background: white;
}
.room-products.open { display: block; }

.room-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.room-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== SHIPPING PAGE ===== */
.info-page {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.page-title {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 4px;
}
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.info-box {
  background: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.info-box h4 { font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.info-box p { font-size: 14px; color: #555; line-height: 1.6; }

.tip-box {
  background: #F0F7F0;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 14px;
  color: #2E7D32;
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  direction: rtl;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 100px; resize: vertical; }

.btn-submit {
  background: var(--red);
  color: white;
  border: none;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 3px 12px rgba(230,46,46,0.3);
}
.btn-submit:hover { background: var(--red-dark); }

.success-msg {
  display: none;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  color: #2E7D32;
  font-weight: 700;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--red-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 32px;
}
.footer-logo {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}
.footer-logo .deal { color: var(--yellow); }
footer a { color: var(--yellow); text-decoration: none; font-weight: 600; cursor: pointer; }
.footer-links { margin: 6px 0 10px; }
.footer-links a { margin: 0 8px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 6px; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: var(--red);
  color: white;
  border-radius: 50px;
  padding: 12px 18px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(230,46,46,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 99;
  border: none;
  transition: transform 0.15s, background 0.15s;
}
.fab:hover { background: var(--red-dark); transform: scale(1.04); }

/* ===== ADMIN ===== */
.admin-page {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.admin-login { text-align: center; }
.admin-login h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: var(--red); }
.admin-login input {
  width: 100%; max-width: 260px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  direction: rtl;
  outline: none;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-login {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-panel { display: none; }
.admin-panel h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: var(--red); }
.admin-panel .form-group input,
.admin-panel .form-group select,
.admin-panel .form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  direction: rtl; outline: none;
}
.btn-add {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.admin-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
  font-size: 14px;
  gap: 8px;
}
.btn-delete {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
  border-radius: 16px;
  padding: 4px 10px;
  font-family: 'Assistant', sans-serif;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .price-now { font-size: 15px; }
}

/* ===== COUPONS PAGE ===== */
.coupon-hero {
  background: linear-gradient(135deg, #C41E1E 0%, #E62E2E 60%, #FF6600 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.coupon-hero-decoration {
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  font-family: 'Rubik', sans-serif;
  line-height: 1;
  pointer-events: none;
}

.coupon-hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: #333;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.coupon-hero h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
}

.coupon-hero p { font-size: 14px; opacity: 0.85; }

.coupons-section { margin-bottom: 24px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.coupon-count {
  font-size: 14px;
  color: var(--text-muted);
  background: var(--border);
  padding: 2px 10px;
  border-radius: 20px;
}

/* Guide grid */
.coupon-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.guide-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.guide-num {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-icon { font-size: 24px; margin-bottom: 6px; }

.guide-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.guide-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.guide-link {
  display: inline-block;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.guide-link:hover { text-decoration: underline; }

/* Coupon cards */
.coupons-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
}

.coupon-left {
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.coupon-left::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 16px;
  background: radial-gradient(circle at right, white 6px, transparent 6px);
  background-size: 16px 20px;
  background-repeat: repeat-y;
}

.coupon-discount {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  line-height: 1.2;
}

.coupon-right {
  flex: 1;
  padding: 12px 14px 12px 20px;
}

.coupon-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.coupon-title {
  font-size: 14px;
  font-weight: 700;
}

.coupon-hot {
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.coupon-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.coupon-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.coupon-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-code {
  background: #FFF5F5;
  border: 1.5px dashed var(--red);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.coupon-code:hover { background: #FFE8E8; }

.btn-copy {
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
  transition: background 0.15s;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--red-dark); }
.btn-copy.copied { background: #2E7D32; }

.btn-coupon-link {
  display: inline-block;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
}

.no-coupons {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

/* ===== ADMIN STEPS ===== */
.admin-step {
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.step-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
}

.step-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.admin-step textarea {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 12px;
  direction: ltr;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.admin-step textarea:focus { border-color: var(--red); }

.preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #C8E6C9;
  border-radius: var(--radius-sm);
  padding: 10px;
}

/* ===== MAIN CATEGORY CHIPS BAR ===== */
.main-cats-bar {
  background: white;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #eee;
}
.main-cats-bar::-webkit-scrollbar { display: none; }

.main-cat-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 24px;
  border: 1.5px solid #eee;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  background: white;
  font-family: 'Assistant', sans-serif;
}
.main-cat-chip:hover { border-color: var(--red); color: var(--red); }
.main-cat-chip.active {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* ===== SUBCAT BAR ===== */
.subcat-bar {
  background: #FFF5F5;
  display: flex;
  gap: 6px;
  padding: 7px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #FFE0E0;
}
.subcat-bar::-webkit-scrollbar { display: none; }

.subcat-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  background: white;
  font-family: 'Assistant', sans-serif;
}
.subcat-chip:hover { border-color: var(--red); color: var(--red); }

/* ===== LAYOUT — full width ===== */
.home-layout { display: block; }
.main-content { flex: 1; min-width: 0; padding: 10px 12px; }

/* ===== SIDEBAR SUBCATS ===== */
.home-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.sidebar {
  width: 150px;
  flex-shrink: 0;
  background: white;
  border-left: 1px solid #eee;
  min-height: calc(100vh - 200px);
  position: sticky;
  top: 140px;
}

.sidebar-title {
  background: #E62E2E;
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 10px 12px;
  text-align: center;
}

.subcat-menu { padding: 6px 0; }

.subcat-empty {
  padding: 16px 12px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.5;
}

.subcat-menu-item {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-right: 3px solid transparent;
  transition: all 0.15s;
  line-height: 1.3;
}
.subcat-menu-item:hover { background: #FFF5F5; color: #E62E2E; }
.subcat-menu-item.active {
  background: #FFF5F5;
  color: #E62E2E;
  border-right-color: #E62E2E;
}



/* ===== PRODUCT CARD — no price ===== */
.card-prices { display: none; }
.card-shipping { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .home-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    min-height: auto;
    position: static;
    border-left: none;
    border-bottom: 1px solid #eee;
  }
  .subcat-menu {
    display: flex;
    overflow-x: auto;
    padding: 6px;
    gap: 4px;
  }
  .subcat-menu-item {
    border-radius: 20px;
    border-right: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    padding: 6px 12px;
  }
  .subcat-menu-item.active {
    border-right: none;
    border-bottom-color: #E62E2E;
  }
}

/* ===== COUPONS PAGE v2 ===== */
.cp-wrap { max-width: 820px; margin: 0 auto; padding: 16px 14px 32px; }

.cp-hero {
  background: linear-gradient(135deg, #C41E1E 0%, #E62E2E 100%);
  border-radius: 14px;
  padding: 24px 22px;
  margin-bottom: 22px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.cp-hero-badge { background: #FFB800; color: #333; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 8px; }
.cp-hero h2 { font-family: 'Rubik', sans-serif; font-size: 21px; font-weight: 800; margin-bottom: 5px; }
.cp-hero p { font-size: 14px; opacity: 0.85; line-height: 1.5; }
.cp-hero-dec { font-size: 100px; font-weight: 900; color: rgba(255,255,255,0.07); line-height: 1; flex-shrink: 0; font-family: 'Rubik', sans-serif; }

.cp-section-title { font-size: 16px; font-weight: 800; color: var(--text); margin: 20px 0 12px; display: flex; align-items: center; gap: 8px; }
.cp-badge { background: #E62E2E; color: white; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.cp-quicklinks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 4px; }
@media (min-width: 500px) { .cp-quicklinks { grid-template-columns: repeat(4, 1fr); } }

.cp-ql { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-decoration: none; display: flex; align-items: center; gap: 10px; transition: border-color 0.15s, transform 0.15s; }
.cp-ql:hover { border-color: var(--red); transform: translateY(-1px); }
.cp-ql-icon { font-size: 22px; flex-shrink: 0; }
.cp-ql strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.cp-ql small { font-size: 11px; color: var(--text-muted); }

.cp-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }

.cp-step { display: flex; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #F5F5F5; align-items: flex-start; }
.cp-step.last { border-bottom: none; }
.cp-step-num { width: 28px; height: 28px; background: var(--red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.cp-step-body strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; color: var(--text); }
.cp-step-body span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.cp-tip-box { background: #FFF8E1; border: 1px solid #FFE082; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 12px; }
.cp-tip-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.cp-tip-box strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 4px; color: #5D4037; }
.cp-tip-box p { font-size: 13px; color: #795548; line-height: 1.6; }

.cp-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (max-width: 500px) { .cp-methods { grid-template-columns: 1fr; } }

.cp-method { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.cp-method-num { width: 26px; height: 26px; background: var(--red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.cp-method h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.cp-method p { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 8px; }
.cp-method-link { font-size: 12px; color: var(--red); font-weight: 600; text-decoration: none; }
.cp-method-link:hover { text-decoration: underline; }

.cp-cal-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #F5F5F5; }
.cp-cal-row:last-child { border-bottom: none; }
.cp-cal-month { width: 54px; font-size: 12px; font-weight: 700; color: var(--red); text-align: center; flex-shrink: 0; background: #FFF5F5; padding: 4px 6px; border-radius: 6px; }
.cp-cal-body { flex: 1; }
.cp-cal-body strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; color: var(--text); }
.cp-cal-body span { font-size: 12px; color: var(--text-muted); }
.cp-cal-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; background: #F5F5F5; color: #666; }
.cp-cal-tag.hot { background: #FFF3E0; color: #E65100; }
.cp-cal-tag.biggest { background: #E62E2E; color: white; }

/* ===== COUPON SALE BLOCK ===== */
.coupon-sale-block {
  background: white;
  border: 2px solid #E62E2E;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.csb-header {
  background: #E62E2E;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.csb-name { color: white; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.csb-note { color: rgba(255,255,255,0.75); font-size: 11px; }

.csb-btn {
  background: white;
  color: #E62E2E;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.csb-btn:hover { background: #FFE8E8; }

.csb-table { padding: 4px 0; }

.csb-thead {
  display: grid;
  grid-template-columns: 80px 100px 1fr 80px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f5f5f5;
}

.csb-row {
  display: grid;
  grid-template-columns: 80px 100px 1fr 80px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f9f9f9;
  transition: background 0.1s;
}
.csb-row:last-child { border-bottom: none; }
.csb-row:hover { background: #FFF5F5; }
.csb-row.hot { background: #FFF8F0; }

.csb-min { font-size: 14px; font-weight: 700; color: #333; }
.csb-disc { font-size: 14px; font-weight: 800; color: #E62E2E; }

.csb-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #C41E1E;
  background: #FFF0F0;
  border: 1px dashed #E62E2E;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.5px;
}
.csb-code:hover { background: #FFE0E0; }

.csb-copy {
  background: #E62E2E;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
  justify-self: end;
}
.csb-copy:hover { background: #C41E1E; }

.csb-tip {
  background: #FFF8E1;
  border-top: 1px solid #FFE082;
  padding: 8px 14px;
  font-size: 11px;
  color: #795548;
}

.coupons-grid-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== ADMITAD STATUS ===== */
.admitad-status {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ads-title { font-size: 14px; font-weight: 700; color: #1B5E20; flex: 1; min-width: 150px; }
.ads-info  { font-size: 12px; color: #388E3C; }
.ads-refresh {
  background: #2E7D32;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
}
.ads-refresh:hover { background: #1B5E20; }

/* ===== PRODUCT CARD IMPROVEMENTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 500px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  border: 1px solid #F0F0F0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(230,46,46,0.12);
  border-color: #FFD0D0;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #F8F8F8;
}
.card-img-wrap a { display: block; width: 100%; height: 100%; }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .card-img { transform: scale(1.07); }

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(230,46,46,0.3);
}

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

.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}
.stars { color: #FFB800; font-size: 11px; }

.btn-ali {
  display: block;
  background: var(--red);
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Assistant', sans-serif;
  transition: background 0.15s, transform 0.1s;
  margin-top: auto;
}
.btn-ali:hover { background: var(--red-dark); transform: scale(1.02); }

/* source badge for admitad products */
.card-source {
  font-size: 10px;
  color: #bbb;
  text-align: left;
  margin-bottom: 4px;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  text-align: center;
  padding: 24px 16px;
  margin-bottom: 16px;
}
.about-hero-icon { font-size: 52px; margin-bottom: 12px; }
.about-hero h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 6px;
}
.about-hero p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== FOOTER LINKS ===== */
.footer-links a { cursor: pointer; }

/* ===== NEW LOGO ===== */
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.logo-text-new {
  font-family: 'Rubik', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-ali   { color: white; }
.logo-x     { color: #FFD600; font-size: 34px; line-height: 0.9; }
.logo-deals { color: white; }

.logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

.footer-logo {
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.footer-logo .logo-ali   { color: white; }
.footer-logo .logo-deals { color: white; }
