:root {
  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --ring: rgba(15, 23, 42, 0.08);
  --primary: #0ea5e9;
  --grad-1: #e0f2fe;
  --grad-2: #f1f5f9;

  --rg: #ff3b30;
  --samsung: #0b57d0;
  --canon: #c00024;
  --oneplus: #f50100;
  --oppo: #17a589;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --ring: rgba(148, 163, 184, 0.14);
  --grad-1: #0f172a;
  --grad-2: #0b1220;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
  color: var(--text);
  background: linear-gradient(180deg, var(--grad-1), var(--grad-2)) fixed;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--ring), 0 12px 30px -12px var(--ring);
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-logo {
  height: 100px;
  width: 100px;
  display: grid;
  place-items: center;
}

.header h1 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 2rem);
}

.header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.7rem, 1.75vw, 1rem);
}

.theme-container {
  margin-left: auto;
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.theme-switch input {
  display: none;
}

.slider {
  width: 44px;
  height: 25px;
  background: var(--muted);
  border-radius: 50px;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

input:checked + .slider {
  background: var(--primary);
}

input:checked + .slider::before {
  transform: translateX(24px);
}

.switch-text {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

/* =========================
   STORES GRID
   ========================= */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile default 2 columns */
  gap: 18px;
  justify-items: center;
}

@media (min-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.store-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  min-width: 155px;
  padding: 6px 6px;
  position: relative;
  transition: transform 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.store-logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  margin-right: 6px;
  flex-shrink: 0;
}

.store-logo img {
  /* max-width: 30px; */
  max-height: 45px;
}

.store-name {
  font-weight: 600;
  font-size: 12px;
  color: #000;
}

/* Brand Colors */
.rg {
  background: linear-gradient(135deg, #ffb347, #ff3b30);
}

.samsung {
  background: linear-gradient(135deg, #6aa2ff, #0b57d0);
}

.canon {
  background: linear-gradient(135deg, #ff6b88, #c00024);
}

.oneplus {
  background: linear-gradient(135deg, #ff8a80, #f50100);
}

.oppo {
  background: linear-gradient(135deg, #5de3c1, #17a589);
}

.exclusive {
  background: #f9f9f9;
  border: 2px solid #ddd;
}

.exclusive .store-name {
  font-size: 12px;
  font-weight: 600;
}

/* Section Styling */
.section {
  margin-top: 32px;
}

.section-title {
  font-size: 20px;
  margin-bottom: 15px;
}
@media (max-width: 480px) {
  .section-title {
    font-size: 14px;
    text-align: center;
  }
}
/* Footer */
.footer {
  margin: 32px 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
