/* ===========================
   GLOBAL COLORS & BASE
=========================== */

:root {
  --primary: #1F2A44;        /* Deep Navy Blue */
  --accent: #E4B94F;         /* Golden Yellow */
  --bg-light: #F6F4F0;       /* Soft Off-White */
  --text-dark: #2B2B2B;      /* Charcoal */
  --white: #FFFFFF;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0 0 10px;
  color: var(--primary);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  transition: 0.3s ease;
}

/* Desktop Sidebar */
    .adsense-sidebar {
        width: 300px;
        min-height: 600px;
    }

    @media (max-width: 900px) {
        /* Tablet/Mobile: Move ad below content and make it horizontal */
        .product-page-wrapper { 
            grid-template-columns: 1fr; 
            gap: 40px; 
        }
        
        .adsense-sidebar { 
            width: 100%; /* Take full width of phone screen */
            min-height: 100px; /* Shrink height for a horizontal "banner" look */
            display: flex; 
            justify-content: center; 
        }

        .ad-slot-wrapper {
            width: 100% !important;
            max-width: 728px; /* Standard leaderboard width */
            min-height: 90px !important;
        }
    }
    
/* ===========================
   HEADER & BRANDING
=========================== */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand Layout (Image + Text) */
.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center; /* Centers items vertically */
  gap: 10px; /* Space between logo and text */
}

.header-logo-img {
  height: 40px; /* Adjust based on your logo's proportions */
  width: auto;
  display: block;
}

.text-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  white-space: nowrap; /* Prevents text from wrapping */
}

.logo-vi {
  color: var(--accent); /* Golden Yellow */
}

.logo-market {
  color: var(--primary); /* Deep Navy */
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.nav-add-product {
  color: #27ae60 !important; /* Professional Green */
  font-weight: 700 !important;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  gap: 10px;
}

.btn-header {
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-account, .btn-register {
  background: var(--primary);
  color: var(--white) !important;
}

.btn-account:hover, .btn-register:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-logout {
  border: 1.5px solid #ddd;
  color: var(--text-dark) !important;
}

.btn-logout:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: var(--bg-light);
}

/* ===========================
   RESPONSIVE HEADER
=========================== */

@media (max-width: 1050px) {
  .site-header {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }
  
  /* On very small screens, we might hide the text to keep the logo clear */
  @media (max-width: 480px) {
    .text-logo { font-size: 18px; }
  }
}
/* ===========================
   HERO SECTION
=========================== */

.hero {
  display: flex;
  padding: 60px 40px;
  background: var(--white);
  gap: 40px;
  align-items: center;
}

.hero-text {
  flex: 1.2;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-search {
  display: flex;
  margin-bottom: 20px;
  max-width: 500px;
}

.hero-search input {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
  outline: none;
}

.hero-search button {
  background: var(--primary);
  color: var(--white);
  border-radius: 0 6px 6px 0;
  padding: 0 25px;
}

.hero-search button:hover {
  background: var(--accent);
}

.hero-categories button {
  background: var(--bg-light);
  margin: 5px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.hero-categories button:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.hero-image {
  flex: 1;
  min-height: 400px; /* Slightly increased for better visual impact */
  border-radius: 12px;
  background-image: url('images/vi-marketplace-vancouver-islands-very-own-marketplace.webp');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02); /* Subtle zoom effect on hover */
}

/* ===========================
   REGIONS
=========================== */

.regions {
  padding: 60px 40px;
  text-align: center;
}

.region-filters button {
  margin: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
}

.region-filters button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===========================
   PRODUCT & MAKER GRIDS
=========================== */

.featured-products, .featured-makers {
  padding: 40px;
}

.product-grid, .maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.product-card, .maker-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover, .maker-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-img, .maker-img {
  height: 180px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.product-card .price {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0;
  color: var(--primary);
}

.add-to-cart {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  margin-top: 10px;
}

.add-to-cart:hover {
  background: var(--accent);
}

/* ===========================
   SEASONAL & ABOUT
=========================== */

.seasonal {
  padding: 60px 40px;
  display: flex;
  gap: 40px;
  background: var(--white);
}

.seasonal-text {
  flex: 1;
}

.seasonal-items {
  flex: 1.5;
  background: var(--bg-light);
  border-radius: 12px;
  min-height: 250px;
}

.about-teaser {
  padding: 80px 40px;
  text-align: center;
}

.about-teaser ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.about-teaser li {
  font-weight: 500;
  color: var(--primary);
}

.primary-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.primary-btn:hover {
  background: var(--accent);
}

/* ===========================
   FOOTER
=========================== */

.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-newsletter input {
  padding: 12px;
  border-radius: 6px;
  border: none;
  width: 100%;
  margin-bottom: 10px;
}

.footer-newsletter button {
  background: var(--accent);
  color: var(--white);
  width: 100%;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-search {
    margin: 0 auto 20px;
  }

  .site-header {
    padding: 10px 20px;
  }

  .logo img {
    height: 32px; /* Smaller for mobile */
  }

  .main-nav {
    display: none; /* Consider a hamburger menu later */
  }

  .seasonal {
    flex-direction: column;
  }

  .about-teaser ul {
    flex-direction: column;
    gap: 10px;
  }
}