/* ============================================================
   ShopMarket — Modern Electronics/Home Theme
   Clean UI: Deep Green primary, white backgrounds, rounded borders,
   Inter sans-serif typography, bordered cards.
   ============================================================ */

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

:root {
  /* Core brand colors mapped to tenant variables */
  --orange: #008254 !important;       /* Emerald Green */
  --orange-hover: #046c4e !important;
  --orange-dark: #064e3b !important;
  --orange-soft: #e6f6f0 !important;

  /* Neutrals */
  --ink: #1e293b !important;          /* Slate 800 - dark text */
  --grey: #64748b !important;         /* Slate 500 - subtext */
  --grey-light: #94a3b8 !important;   /* Slate 400 */
  --bg: #ffffff !important;           /* Pure white */
  --band: #f8fafc !important;         /* Slate 50 */
  --line: #e2e8f0 !important;         /* Slate 200 - subtle borders */

  /* Structural mappings */
  --radius: 8px !important;
  --radius-lg: 12px !important;
  
  /* Minimal shadowing */
  --shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03) !important;
  --shadow-hover: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06) !important;
}

body {
  font-family: 'Inter', -apple-system, sans-serif !important;
  background-color: #f1f5f9 !important; /* Slight off-white background to make white cards pop */
}

/* -------------------------------------
   Typography Overrides 
   ------------------------------------- */
h1, h2, h3, h4, .logo, .logo b {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-style: normal !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
}

.logo {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
}
.logo b {
  color: var(--orange) !important;
}

/* -------------------------------------
   Buttons 
   ------------------------------------- */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: none !important; /* Sentence case, not all caps */
  letter-spacing: 0 !important;
  border-radius: var(--radius) !important;
  padding: 10px 24px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.btn-primary {
  background-color: var(--orange) !important;
  color: #fff !important;
  border: 1px solid var(--orange) !important;
}
.btn-primary:hover {
  background-color: var(--orange-hover) !important;
  transform: translateY(-1px) !important;
}

/* Outlined ghost button used in hero */
.btn-ghost {
  background-color: transparent !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
}
.btn-ghost:hover {
  background-color: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}

/* -------------------------------------
   Header
   ------------------------------------- */
header {
  background-color: var(--bg) !important;
  border-bottom: 1px solid var(--line) !important;
}
.nav-links a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
}
.nav-links a:hover {
  color: var(--orange) !important;
}

/* -------------------------------------
   Hero Banner Layout
   ------------------------------------- */
.hero-slider {
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  margin-top: 16px !important;
}
.hero-slide {
  /* Using pseudo background to clear default heavy gradients */
  background-position: center !important;
  background-size: cover !important;
}
.hero-overlay {
  /* Gentle left-to-right fade so text is readable but image remains bright */
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%) !important;
}
.hero-content {
  text-align: left !important;
  padding-left: 60px !important;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 12px !important;
}
.hero-content p {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #f8fafc !important;
  max-width: 500px !important;
  line-height: 1.5 !important;
}
.hero-content .eyebrow {
  display: none !important; /* Hiding eyebrow for cleaner look */
}

/* -------------------------------------
   Product Cards & Grids
   ------------------------------------- */
.prod {
  background-color: var(--bg) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 12px !important; /* Internal padding around whole card */
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  position: relative !important;
}
.prod:hover {
  border-color: #cbd5e1 !important;
  box-shadow: var(--shadow) !important;
  transform: none !important; /* No floating animation for modern flat look */
}

.prod .ph {
  background-color: transparent !important;
  border-radius: 6px !important;
  aspect-ratio: 1 / 1 !important;
  margin-bottom: 12px !important;
}
.prod .ph img.main {
  object-fit: contain !important;
}

.prod .info {
  padding: 0 !important;
  text-align: left !important;
}

.prod .cat {
  font-size: 0.75rem !important;
  color: var(--grey) !important;
  letter-spacing: 0 !important;
  margin-bottom: 4px !important;
}
.prod h3 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
}

.prod .prc .now {
  color: var(--orange) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}

/* Quick Add/View Buttons: Full width black bar at bottom of image */
.prod .quick {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  background-color: transparent !important;
  opacity: 0 !important; /* Hide until hover */
  display: flex !important;
  flex-direction: row !important;
  transition: opacity 0.2s ease !important;
}
.prod:hover .quick {
  opacity: 1 !important;
}
.prod .quick .btn {
  flex: 1 !important;
  background-color: #0f172a !important; /* Slate 900 (almost black) */
  color: #ffffff !important; 
  border-radius: 0 !important; /* Flat bottom edges */
  width: auto !important;
  height: auto !important;
  padding: 10px 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.prod .quick .btn:hover {
  background-color: #000000 !important;
}
/* Ensure the text is visible */
.prod .quick .btn span {
  display: inline-block !important;
}
/* Add a subtle separator if there are two buttons */
.prod .quick .btn + .btn {
  border-left: 1px solid rgba(255,255,255,0.2) !important;
}
.prod .quick .btn::before {
  display: none !important; /* Remove the + icon */
}

/* -------------------------------------
   Category / Promo Badges
   ------------------------------------- */
.cat-badges {
  justify-content: space-between !important;
  gap: 20px !important; /* Fallback in case there are too many items to fit */
}
.cb-img {
  background-color: #f8fafc !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
}
.cb-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  color: var(--ink) !important;
}

/* -------------------------------------
   Section Headings
   ------------------------------------- */
.sec-head h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
}
.sec-head p {
  color: var(--grey) !important;
  text-align: left !important;
}
.sec-head {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  margin-bottom: 24px !important;
}

/* -------------------------------------
   Promo Blocks (Standard 3-column)
   ------------------------------------- */
.promo {
  border-radius: var(--radius-lg) !important;
  border: none !important;
  overflow: hidden !important; 
  position: relative !important;
  padding: 30px 24px !important; /* Increased padding slightly for more breathing room */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  box-shadow: var(--shadow) !important;
  aspect-ratio: 16 / 9 !important; /* Changed from 16/7 to 16/9 to add more vertical height */
}
.promo::before {
  /* Subtle inner gradient to ensure readability if inline style isn't enough */
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.1)) !important;
  z-index: 0 !important;
}
.promo > div {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
}
.promo h2 {
  font-weight: 800 !important;
  font-size: 1.6rem !important; /* Reduced by 10% */
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
.promo p {
  color: #e2e8f0 !important;
  font-size: 0.9rem !important; /* Reduced by 10% */
  margin-bottom: 16px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}
.promo .eyebrow {
  color: #5fda6a !important; /* Bright Emerald/Neon Green */
  font-size: 0.7rem !important; /* Reduced by 10% */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  display: block !important;
  margin-bottom: 8px !important;
}
.promo .btn {
  background-color: var(--orange) !important; /* Emerald Green */
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important; /* Added smaller font */
  padding: 8px 20px !important; /* Reduced padding */
}
.promo .btn:hover {
  background-color: var(--orange-hover) !important;
  transform: translateY(-2px) !important;
}

/* -------------------------------------
   Promo / Deal Cards (Image 2 Layout)
   ------------------------------------- */
.promo-deal-card {
  background-color: #fafafa !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 20px 20px 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  position: relative !important;
  transition: box-shadow 0.2s ease !important;
}
.promo-deal-card:hover {
  box-shadow: var(--shadow) !important;
}

.deal-badge {
  position: absolute !important;
  top: 15px !important;
  left: 15px !important;
  background-color: #5fda6a !important; /* Bright green */
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
}

.deal-img {
  width: 110px !important;
  height: 110px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.deal-img img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.deal-info {
  flex: 1 !important;
  text-align: left !important;
}

.deal-cat {
  color: #ef4444 !important; /* Red text */
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.deal-info h4 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
}

.deal-price {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}
/* Strike-through old price */
.deal-price del, .deal-price .old {
  color: var(--grey-light) !important;
  font-weight: 500 !important;
  font-size: 0.75rem !important;
  text-decoration: line-through !important;
  margin-left: 8px !important;
}

/* -------------------------------------
   Footer
   ------------------------------------- */
footer {
  background-color: #041c2c !important; /* Dark Navy Background */
  color: #ffffff !important;
  padding: 60px 0 30px !important;
  border-top: none !important;
}

@media (max-width: 768px) {
  .foot-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  footer .foot-news {
    flex-direction: column !important;
    width: 100% !important;
  }
  footer .foot-news .btn {
    width: 100% !important;
    padding: 12px 25px !important;
  }
}

footer h4 {
  color: #ffffff !important;
  font-size: 1rem !important;
  margin-bottom: 20px !important;
  text-transform: capitalize !important;
}
footer p, 
footer .foot-bottom span,
footer ul a {
  color: #94a3b8 !important; /* Slate gray text */
  font-size: 0.9rem !important;
}
footer ul a:hover {
  color: #ffffff !important;
}
footer .logo {
  color: #ffffff !important;
}

/* Footer Bottom Line */
footer .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 40px !important;
  padding-top: 20px !important;
}

/* Newsletter in Footer */
footer .foot-news {
  display: flex !important;
  gap: 8px !important;
  margin-top: 15px !important;
}

footer .foot-news input {
  background: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 15px !important;
  color: #333 !important;
  flex-grow: 1 !important;
}

footer .foot-news .btn {
  background-color: #0056b3 !important; /* Primary Blue from image */
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 0 25px !important;
  font-weight: 600 !important;
  border: none !important;
}

/* Features Band (The white section above) */
.foot-features {
  background-color: #f8fafc !important;
  padding: 40px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.features-grid {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: #0056b3;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text b {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
}

.feature-text span {
  font-size: 0.8rem;
  color: #64748b;
}

/* --- Footer Bottom Alignment Fix --- */
footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 40px !important;
  padding-top: 20px !important;
}

footer .pay .badge {
  background-color: #ffffff;
  color: #333;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  footer .foot-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* -------------------------------------
   10-Product Grid (5 columns x 2 rows)
   ------------------------------------- */
/* Override the default 4-column grid to display 5 items per row for Shop 3 */
.grid-4 {
  grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* --- Hide Original Feature Bar for Shop3 --- */
/* This targets the 'values' section and hides it */
section.band:has(.values) {
  display: none !important;
}

/* --- Chat Widget Glow Fix for Shop3 --- */
/* Changes the orange glow to a matching emerald green glow */
.chat-fab {
  box-shadow: 0 4px 20px rgba(0, 130, 84, 0.45) !important;
}

/* Ensure the hover state also matches */
.chat-fab:hover {
  box-shadow: 0 6px 24px rgba(0, 130, 84, 0.6) !important;
}
