
/* 1. Force the wrapper to align tightly to the navigation */
.content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: block !important; /* Overrides any parent flexbox alignment layout grid */
padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box; /* Crucial step to prevent horizontal scrolling */
		}

/* 2. Strip the default top boundary constraints from the H1 */
.hero-banner h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.1 !important; /* Compresses text height slightly to bring it up */
padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
		}

/* 3. Shift the entire banner upward relative to its track */
.hero-banner {
    position: relative !important;
    top: 0px !important; /* Physically slides the whole element up by 25 pixels */
    padding-top: 0 !important;
    padding-bottom: 5px !important;
	padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box; /* Crucial step to prevent horizontal scrolling */
}

/* 1. GLOBAL RESET & BASE STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  padding-bottom: 40px;
  overflow-x: hidden;
}

/* 2. NAVIGATION BAR (Mobile-First Setup) */
.navbar {
  background: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 90;
  /* Crucial: Ensure overflow is NOT hidden here, or dropdowns disappear */
}
nav {
    margin-bottom: 0;
    padding-bottom: 0;
}
.nav-container {
    display: flex;
    flex-direction: column;
    gap: 8px;          /* Shrunk from 15px to tighten internal spacing */
    align-items: center;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  margin-bottom: 2px !important;
}

/* Unified Navigation Links Container */
.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Anchor positioning on the list item */
.nav-links > li {
  position: relative;
}

/* Cleaned Link Styling */
.nav-links a {
  display: block; 
  text-decoration: none;
  color: #666; /* Keeps your original color */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
   padding: 2px 4px !important;   /* Flattens the vertical link boxes */
}

.nav-links a:hover {
  color: #111;
}

/* --- Dropdown Menu Settings --- */

/* Updated Dropdown Menu Settings with Animation */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -10px); /* Starts slightly lifted up */
  background-color: #fff;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;

  /* Animation Core: Hides the menu but allows transitions */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Stacking dropdown links vertically */
.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 20px;
  white-space: nowrap;
}

/* JavaScript Toggle Trigger Class - Fades in and slides down to standard positioning */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0); /* Slides down into its correct place */
}


/* JavaScript Toggle Trigger Class */
.dropdown-menu.show {
  display: block;
}
/* Show the menu when the active class is toggled by our new JS snippet */
.dropdown.active .dropdown-menu {
  display: block;
}
/* 3. BASKET BUTTON & FLOATING BADGE */
.basket-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
}
.basket-btn:active {
  transform: scale(0.95);
}
.basket-count {
  background: #ff4757;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bump {
  transform: scale(1.3);
}

/* 4. SLIDE-OUT DRAWER PANEL */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 100;
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
}
.cart-panel.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}
.close-btn:hover {
  color: #111;
}
.cart-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #777;
}

/* 5. BACKGROUND DIMMER OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 95;
  display: none;
}
.overlay.open {
  display: block;
}

/* 6. CONTENT CARDS & STRUCTURE */
.content-wrapper {
  padding: 0px;
}
.hero-banner h1 {
    margin-top: -40 !important;
    padding-top: 0;
}
.hero-banner {
    margin-top: 0 !important; /* Forces the browser to drop its default spacing */
    padding-top: 0;
	padding-bottom: 10px; /* Larger distance from the bottom pushes text up */
}


.container {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card h2 {
  margin-bottom: 10px;
}
.card p {
  margin-bottom: 20px;
  color: #555;
}
.add-to-basket-btn {
  background: #007aff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.add-to-basket-btn:hover {
  background: #0056b3;
}

/* 7. MEDIA QUERY (Snaps desktop layouts into place dynamically) */
@media (min-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }
  .content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px;
  }
  .container {
    flex-direction: row;
  }
  .card {
    flex: 1;
  }
}
/* Align the arrow nicely next to the text */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px; /* Spacing between "Shop" text and arrow */
}

/* Create a small CSS down-arrow */
.arrow-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor; /* Uses the link's current text color */
  transition: transform 0.3s ease; /* Makes the spin smooth */
}

/* Rotate the arrow 180 degrees when the parent has the active class */
.dropdown-toggle.active .arrow-icon {
  transform: rotate(180deg);
}
/* ==========================================================================
   PRODUCT DISPLAY GRID
   ========================================================================== */
.fert-showcase {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      padding: 20px 0;
      width: 100%;
    }
    .fert-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .fert-card img {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      margin: 12px auto;
      display: block;
    }
    .fert-info h3 {
      font-size: 18px;
      margin-bottom: 10px;
      color: #1a202c;
      border-bottom: 2px solid #edf2f7;
      padding-bottom: 8px;
    }
    .fert-info p {
      font-size: 13px;
      color: #4a5568;
      line-height: 1.5;
      margin-bottom: 12px;
    }
    .fert-instructions {
      background: #f7fafc;
      padding: 12px;
      border-radius: 6px;
      font-size: 12px;
      margin-bottom: 14px;
      border-left: 3px solid #4a5568;
    }
    .fert-variants {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: auto;
      background: #fff;
      padding-top: 10px;
    }
    .variant-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      font-size: 13px;
    }
    .variant-label {
      font-weight: 500;
      color: #2d3748;
      text-align: left;
    }
    .variant-label strong {
      color: #2f855a;
    }
/* The Magic Container */
.product-grid {
  display: grid;
  /* Automatically fits as many cards as possible, minimum 250px wide each */
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 30px; /* Perfect spacing between rows and columns */
  margin-top: 20px;
}
/* Inline helper classes to ensure smooth desktop-to-mobile item shifting */
    .netsuke-showcase {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 24px;
      padding: 20px 0;
      width: 100%;
    }
    .netsuke-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .netsuke-card img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 12px;
      transition: transform 0.2s ease;
    }
    .netsuke-card img:hover {
      transform: scale(1.02);
    }
    .netsuke-info h3 {
      font-size: 16px;
      margin: 4px 0;
      color: #1a202c;
    }
    .netsuke-info .code {
      font-size: 12px;
      color: #718096;
      display: block;
      margin-bottom: 6px;
    }
    .netsuke-info .price {
      font-weight: 600;
      color: #2f855a;
      font-size: 15px;
      margin-bottom: 12px;
    }
  .netsuke-card1 {      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
/* Inline helper classes to ensure smooth desktop-to-mobile item shifting */
    .bonsai-pot-showcase {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 24px;
      padding: 20px 0;
      width: 100%;
    }
    .bonsai-pot-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .bonsai-pot-card img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 12px;
      transition: transform 0.2s ease;
    }
    .bonsai-pot-card img:hover {
      transform: scale(1.02);
    }
    .bonsai-pot-info h3 {
      font-size: 16px;
      margin: 4px 0;
      color: #1a202c;
    }
    .bonsai-pot-info .code {
      font-size: 12px;
      color: #2f855a;
      display: block;
      margin-bottom: 6px;
    }
    .bonsai-pot-info .price {
      font-weight: 600;
      color: #2f855a;
      font-size: 15px;
      margin-bottom: 12px;
    }
  .bonsai-pot-card1 {      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      color: #2f855a;
	  flex-direction: column;
      justify-content: space-between;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
/* Individual Product Cards */
.product-card {
  background: #ffffff;
  border: 1px solid #ebeeef;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle lift effect when hovering over a card */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Temp Box for images until you add <img> tags */
.product-image-placeholder {
  background-color: #f0f2f3;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
}

/* Padding inside the text areas */
.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1; /* Pushes button to the bottom if text lengths differ */
}

.product-info h3 {
  font-size: 1.1rem;
  color: #111;
  font-weight: 600;
}

.product-price {
  font-size: 1.1rem;
  color: #222;
  font-weight: 700;
}

/* Simple Action Button */
.buy-btn {
  display: inline-block;
  text-decoration: none;
  background-color: #ffffff !important;   /* Solid white background */
  color: #000000 !important;              /* Solid black text */
  border: 1px solid #000000 !important;   /* Sharp black border */
  padding: 8px 16px;
  border-radius: 6px;                     /* Clean rounded corners */
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
}

/* Optional: Soft touch when hovering without losing your black/white contrast */
.buy-btn:hover {
  background-color: #f0f0f0 !important;   /* Light off-white on hover */
  color: #000000 !important;
}

/* REVISED ULTRA-COMPACT SHOWCASE */
.mame-showcase-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
}

.mame-banner-box {
  width: 100%;
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mame-banner-box img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 5-Column Compact Grid for Row Alignment */
.mame-action-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.mame-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single-Line Row Flex for Title and Price */
.mame-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.mame-meta-line h3 {
  font-size: 0.9rem;
  margin: 0;
  color: #1a202c;
  font-weight: 600;
}

.mame-meta-line .price {
  font-weight: bold;
  color: #2f855a;
  margin: 0;
  font-size: 0.9rem;
  white-space: nowrap;
}

.mame-action-card form {
  margin: 0;
}

.mame-action-card .btn-add {
  width: 100%;
  background-color: #2f855a;
  color: white;
  border: none;
  padding: 8px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.mame-action-card .btn-add:hover {
  background-color: #22543d;
}
.wire-showcase {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
      gap: 24px;
      padding: 20px 0;
      width: 100%;
    }
    .wire-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    }
    .wire-card img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin-bottom: 12px;
    }
    .wire-info h3 {
      font-size: 16px;
      margin: 4px 0;
      color: #1a202c;
    }
    .wire-info .price {
      font-weight: 600;
      color: #2f855a;
      font-size: 15px;
      margin-bottom: 12px;
    }
/* Responsive Breakpoints */
@media (max-width: 768px) {
  .mame-action-row {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row on tablets */
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .mame-action-row {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row on mobile to keep inline items comfortable */
    gap: 6px;
  }
  .mame-action-card {
    padding: 8px;
  }
  .mame-meta-line h3, 
  .mame-meta-line .price {
    font-size: 0.85rem;
  }
}
/* ========================================== */
/* FERTILISER COLUMN HEIGHT RESET             */
/* ========================================== */

//* 1. Group content together tightly at the top of the card */
.fert-card {
    display: flex !important;
    flex-direction: column !important; /* Stack info and variants vertically */
    justify-content: flex-start !important; /* Prevents gaps by pushing everything to the top */
    align-items: flex-start !important;
    height: auto !important;
}

/* Target desktop layouts specifically to force tight stacking */
@media screen and (min-width: 769px) {
    /* 1. Reset the card to act as a simple vertical stack block */
    .fert-card, [class*="card"] {
        display: block !important;
        height: 100% !important; /* Let the border stretch, but content won't separate */
    }

    /* 2. Enforce normal text flow with a tight bottom margin */
    .fert-info, [class*="-info"] {
        display: block !important;
        height: auto !important;
        margin-bottom: 15px !important; /* This creates the exact gap you want */
    }

    /* 3. Force RomanCart block to sit directly underneath the text */
    .fert-variants, [class*="-variants"] {
        display: block !important;
        margin-top: 0 !important;
        clear: both !important;
    }
}

.bonsai-pot-info {
      background: #f7fafc;
      padding: 12px;
      border-radius: 6px;
      font-size: 12px;
      margin-bottom: 14px;
      border-left: 3px solid #4a5568;
    }