/* ============================================
   GETLOW.CO.UK - MAIN STYLESHEET
   ============================================ */

/* ---- THEME VARIABLES ---- */
:root {
  --primary-yellow: #FFC107;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* LIGHT THEME (default) */
[data-theme="light"] {
  --text-main: #333333;
  --text-muted: #666666;
  --heading: #1A1A1A;
  --price: #1A1A1A;
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-hero: linear-gradient(180deg, #ffffff 0%, #F8F9FA 100%);
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-search: #FFFFFF;
  --bg-deal-img: #F4F5F7;
  --bg-footer: #FFFFFF;
  --border-color: #EAEAEA;
  --nav-link: #333333;
  --nav-cta-bg: #1A1A1A;
  --nav-cta-text: #FFFFFF;
  --footer-link: #1A1A1A;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

/* DARK THEME */
[data-theme="dark"] {
  --text-main: #F0F0F0;
  --text-muted: #999999;
  --heading: #FFFFFF;
  --price: #FFC107;
  --bg-page: #111111;
  --bg-card: #1E1E1E;
  --bg-hero: linear-gradient(180deg, #000000 0%, #111111 100%);
  --bg-nav: rgba(0, 0, 0, 0.95);
  --bg-search: #1E1E1E;
  --bg-deal-img: #2A2A2A;
  --bg-footer: #000000;
  --border-color: #2A2A2A;
  --nav-link: #FFFFFF;
  --nav-cta-bg: #FFC107;
  --nav-cta-text: #111111;
  --footer-link: #FFC107;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip; /* safety net: never horizontal-scroll. clip (not hidden) keeps the sticky nav working */
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---- NAVIGATION ---- */
nav {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  padding: 0 clamp(0.9rem, 2.5vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-logo { line-height: 0; flex: 0 0 auto; }
.nav-logo img { height: 46px; width: auto; max-width: 150px; object-fit: contain; display: block; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--nav-link);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary-yellow); }
.nav-links a.active { color: var(--primary-yellow); font-weight: 700; }

.nav-cta {
  background: var(--nav-cta-bg);
  color: var(--nav-cta-text);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { transform: translateY(-2px); }

/* ---- Unified navbar search (compact, on every page) ---- */
.nav-search {
  display: flex; align-items: center;
  flex: 1 1 180px; min-width: 0; max-width: 460px; margin: 0;
  background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: 50px; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within { border-color: var(--primary-yellow); box-shadow: 0 0 0 3px rgba(255,193,7,0.18); }
.nav-search input {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none;
  -webkit-appearance: none; appearance: none;
  padding: 8px 14px; font-size: 0.88rem; color: var(--text-main); font-family: inherit;
}
.nav-search input::placeholder { color: var(--text-muted); opacity: 1; }
.nav-search button {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; padding: 0 13px 0 2px; font-size: 0.92rem; line-height: 1; color: var(--text-muted);
}

/* ---- Categories dropdown ---- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  margin: 0; padding: 6px; list-style: none;
  min-width: 190px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.14); z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li a {
  display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-main); white-space: nowrap;
}
.nav-dropdown-menu li a:hover { background: var(--bg-page); color: var(--primary-yellow); }
.nav-dropdown-close-li { list-style: none; padding: 0; margin: 0 0 2px; text-align: right; }
.nav-dropdown-close { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.15rem; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.nav-dropdown-close:hover { color: var(--primary-yellow); background: var(--bg-page); }

@media (max-width: 1024px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.88rem; }
  .nav-cta { padding: 9px 16px; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-search { max-width: none; }
}

/* ---- THEME TOGGLE ---- */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  width: 64px;
  height: 32px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover { border-color: var(--primary-yellow); }

.theme-toggle .tt-ico { position: absolute; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--nav-link); opacity: .5; pointer-events: none; }
.theme-toggle .tt-sun { left: 8px; }
.theme-toggle .tt-moon { right: 8px; }

.theme-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-yellow, #FFC107);
  color: #141414;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(.4,1.4,.6,1);
}
.theme-toggle .knob svg { width: 15px; height: 15px; }
.theme-toggle .k-moon { display: none; }

[data-theme="dark"] .theme-toggle .knob { transform: translateX(32px); }
[data-theme="dark"] .theme-toggle .k-sun { display: none; }
[data-theme="dark"] .theme-toggle .k-moon { display: block; }

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 0 20px 40px;
  background: var(--bg-hero);
  transition: background 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.hero-logo { margin-bottom: 30px; line-height: 0; }
.hero-logo img { width: 100%; max-width: 500px; height: auto; }

/* ---- SEARCH BAR ---- */
.search-wrap {
  display: flex;
  max-width: 650px;
  margin: 0 auto 30px;
  border-radius: 50px;
  background: var(--bg-search);
  border: 3px solid var(--primary-yellow);
  box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

.search-wrap:focus-within {
  box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.3);
}

.search-wrap input {
  flex: 1;
  padding: 18px 25px;
  font-size: 1.1rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--heading);
  border-radius: 50px 0 0 50px;
  font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif;
}

.search-wrap input::placeholder { color: var(--text-muted); }

.search-wrap button {
  background: var(--primary-yellow);
  color: #1A1A1A;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 35px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
  border-radius: 0 45px 45px 0;
  font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif;
}

.search-wrap button:hover { background: #e5ad06; }

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 99;
  overflow: hidden;
  display: none;
}

.search-suggestions.active { display: block; }

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-deal-img); }
.suggestion-item span { color: var(--text-muted); font-size: 0.85rem; }

/* ---- CATEGORIES ---- */
.cats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat {
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.cat:hover {
  border-color: var(--primary-yellow);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-num { font-size: 2rem; font-weight: 800; color: var(--price); }
.stat-label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- SECTIONS ---- */
.section { max-width: 1200px; margin: 0 auto; padding: 2rem 5% 3rem; }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- DEAL CARDS ---- */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--primary-yellow);
}

.deal-img {
  width: 100%;
  height: 160px;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: background 0.3s ease;
  overflow: hidden;
}

.deal-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; padding: 4px; }

.deal-name { font-size: 1rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; line-height: 1.3; }
.deal-retailer { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }

.deal-prices { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.deal-price { font-size: 1.5rem; font-weight: 800; color: var(--price); }
.deal-was { font-size: 0.95rem; color: var(--text-muted); text-decoration: line-through; }

.deal-save {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.8rem;
  background: var(--primary-yellow);
  color: #1A1A1A;
  padding: 6px 12px;
  border-radius: 50px;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 5%;
}

.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--heading); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- CONTENT (inner pages) ---- */
.content { max-width: 860px; margin: 0 auto; padding: 3rem 5%; }
.content h2 { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin: 2rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-yellow); display: inline-block; }
.content p { color: var(--text-main); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content ul li { color: var(--text-main); line-height: 1.8; font-size: 0.95rem; margin-bottom: 0.25rem; }
.content a { color: var(--primary-yellow); text-decoration: none; font-weight: 600; }

.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-yellow);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p { margin: 0; }

/* ---- SEARCH RESULTS PAGE ---- */
.results-header {
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.results-header h2 { font-size: 1.2rem; font-weight: 700; color: var(--heading); }
.results-header p { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

.results-search-wrap {
  display: flex;
  max-width: 500px;
  margin: 1rem 0 0;
  border-radius: 50px;
  background: var(--bg-search);
  border: 2px solid var(--primary-yellow);
  overflow: hidden;
}

.results-search-wrap input {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.95rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--heading);
  font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif;
}

.results-search-wrap button {
  background: var(--primary-yellow);
  color: #1A1A1A;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0 20px;
  border: none;
  cursor: pointer;
  font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif;
}

.results-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 2rem 5%; }

.filters { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; height: fit-content; }
.filters h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 1.25rem; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group input[type="range"] { width: 100%; accent-color: var(--primary-yellow); }
.filter-group select { width: 100%; padding: 8px 12px; background: var(--bg-page); color: var(--text-main); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif; font-size: 0.9rem; outline: none; }
.filter-price-display { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.results-count { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 860px; margin: 0 auto; padding: 3rem 5%; }
.contact-info h2, .contact-form h2 { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-yellow); display: inline-block; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--heading); margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.contact-item a { color: var(--primary-yellow); text-decoration: none; font-weight: 600; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--heading); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; font-size: 0.95rem; font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif; background: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-color); border-radius: var(--radius-md); outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary-yellow); }
.form-group textarea { height: 130px; resize: vertical; }
.submit-btn { width: 100%; padding: 14px; background: var(--primary-yellow); color: #1A1A1A; font-size: 1rem; font-weight: 800; border: none; border-radius: var(--radius-md); cursor: pointer; transition: transform 0.2s; font-family: 'Google Sans Text','Google Sans','Product Sans','DM Sans', sans-serif; }
.submit-btn:hover { transform: translateY(-2px); }

/* ---- ABOUT VALUES ---- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 2rem 0; }
.value-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; transition: border-color 0.2s; }
.value-card:hover { border-color: var(--primary-yellow); }
.value-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.mission-box { background: var(--primary-yellow); border-radius: var(--radius-lg); padding: 2.5rem; margin: 2rem 0; text-align: center; }
.mission-box h2 { font-size: 1.5rem; font-weight: 800; color: #1A1A1A; margin-bottom: 0.75rem; }
.mission-box p { color: #1A1A1A; font-size: 1.05rem; line-height: 1.7; margin: 0; }

/* ---- ALERTS / MESSAGES ---- */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: 0.95rem; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* ---- NO RESULTS ---- */
.no-results { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.no-results h3 { font-size: 1.5rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.no-results p { font-size: 0.95rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg-footer);
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  font-weight: 500;
  transition: background 0.3s ease;
}

footer a { color: var(--footer-link); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--primary-yellow); }

/* ---- LOADING SPINNER ---- */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid var(--border-color); border-top: 3px solid var(--primary-yellow); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats { grid-template-columns: 1fr; gap: 15px; padding: 20px 5%; }
  .search-wrap { flex-direction: column; border-radius: var(--radius-md); }
  .search-wrap input { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .search-wrap button { border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 15px; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .deals-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
