/* Mobile-first responsive grid */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

.site-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.buffcart-product {
  background: #fff;
  border: 1px solid #eee;
  padding: 1rem;
  text-align: center;
}

/* Sticky Add-to-Cart (Mobile only) */
.buffcart-sticky-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.buffcart-sticky-cart button {
  background: #f04e23;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .buffcart-sticky-cart {
    display: block;
  }
}

/* Header Layout */
.site-header {
  background-color: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 15px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo img {
  height: 60px;
  width: auto;
}

.site-title {
  font-size: 24px;
  margin: 0;
  color: #222;
}

.site-description {
  font-size: 14px;
  color: #777;
  margin: 0;
}

/* ======================
   DESKTOP HORIZONTAL MENU
   ====================== */

/* === Desktop Horizontal Primary Menu === */
.primary-nav .buffcart-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.primary-nav .buffcart-menu li {
  position: relative;
}

.primary-nav .buffcart-menu li a {
  display: inline-block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.primary-nav .buffcart-menu li a:hover,
.primary-nav .buffcart-menu li.current-menu-item a {
  background-color: #ff6600;
  color: #fff;
}

/* Mobile menu toggle */
#buffcart-menu-toggle {
  background: none;
  font-size: 2rem;
  color: #333;
  border: none;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 0;
  }
  
  #buffcart-menu-toggle {
    display: block;
  }

  .primary-nav .buffcart-menu {
    display: none;
  }

  .buffcart-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: #111;
    color: #fff;
    z-index: 10000;
    transition: left 0.3s ease-in-out;
    padding: 2rem;
  }

  .buffcart-mobile-menu.active {
    left: 0;
  }

  .buffcart-mobile-menu ul {
    list-style: none;
    padding: 0;
  }

  .buffcart-mobile-menu a {
    color: #fff;
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    border-bottom: 1px solid #444;
  }
}

#age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-gate-box {
  background: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
}

.age-gate-box button {
  margin: 0 1rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  background: #111;
  color: #fff;
  border: none;
}

#paypal-button-container {
  margin-top: 1.5rem;
}

.hero {
  background: #f2f2f2;
  padding: 80px 20px;
  text-align: center;
}
.hero .btn-primary {
  background: #111;
  color: #fff;
  padding: 1em 2em;
  text-decoration: none;
  margin-top: 1em;
  display: inline-block;
}

.features {
  display: flex;
  justify-content: space-around;
  padding: 60px 20px;
  background: #fff;
}
.feature-box {
  max-width: 280px;
  text-align: center;
}

.homepage-products {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.hero {
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  color: #fff;
  text-align: center;
}
.hero .container {
  max-width: 960px;
  margin: auto;
}
.hero .btn-primary {
  background: #111;
  color: #fff;
  padding: 1em 2em;
  margin-top: 1em;
  text-decoration: none;
  display: inline-block;
}

.features {
  padding: 60px 20px;
  text-align: center;
}
.feature-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}
.feature-box {
  max-width: 300px;
}
.feature-box img {
  max-width: 100px;
  margin-bottom: 10px;
}

.homepage-products {
  padding: 60px 20px;
  background: #f9f9f9;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.features {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.features .section-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-box {
  flex: 0 1 300px;
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-box img {
  width: 80px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

.feature-box p {
  font-size: 15px;
  color: #666;
}

.homepage-products {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.homepage-products h2 {
  font-size: 30px;
  margin-bottom: 40px;
  font-weight: 700;
}

.hero {
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 20px;
  margin-bottom: 30px;
}

.hero .btn-primary {
  background-color: #ff6600;
  color: white;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
}

.section-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, #ccc, transparent);
  margin: 60px auto;
  width: 80%;
}

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.homepage-products {
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}

.homepage-products h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.homepage-products .product-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.homepage-products .woocommerce ul.products {
  justify-content: center;
}

.homepage-products .woocommerce ul.products li.product {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.homepage-products .woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
}

.no-products-message {
  color: #999;
  font-style: italic;
}

.featured-bg {
  background: linear-gradient(to bottom right, #f0f4f8, #ffffff);
  padding: 80px 20px;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

.featured-bg .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 50px;
  text-align: center;
}

.woocommerce ul.products li.product {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 12px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #555;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.footer-menu li a {
  text-decoration: none;
  color: #555;
}

.footer-menu li a:hover {
  text-decoration: underline;
  color: #ff6600;
}

@media (min-width: 768px) {
  #buffcart-menu-toggle,
  .buffcart-mobile-menu {
    display: none;
  }
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-form {
  flex: 1 1 60%;
}

.contact-info {
  flex: 1 1 35%;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.download-guide .steps {
  padding-left: 20px;
  line-height: 1.8;
  color: #444;
}

.page-sidebar-layout {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.page-sidebar-layout .content {
  flex: 1 1 70%;
}

.page-sidebar-layout .sidebar {
  flex: 1 1 30%;
}

.about-page .intro {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.about-section {
  margin-top: 40px;
}

.team-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.team-member {
  flex: 1 1 200px;
  text-align: center;
}

.team-member img {
  max-width: 100%;
  border-radius: 50%;
  margin-bottom: 10px;
}

#buffcart-sticky-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 16px;
  z-index: 999;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}

#buffcart-sticky-cart:hover {
  background: #ff6600;
}

#buffcart-sticky-cart .cart-count {
  background: #fff;
  color: #000;
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 4px;
  font-weight: bold;
}

.buffcart-wishlist-icon {
  float: right;
  cursor: pointer;
  font-size: 20px;
  color: #bbb;
  transition: color 0.3s;
}

.buffcart-wishlist-icon.active {
  color: #ff3366;
}

.landing-page .hero {
  background: linear-gradient(to bottom right, #fff4e6, #ffe3e3);
  text-align: center;
  padding: 100px 20px;
}

.landing-page .hero h1 {
  font-size: 3rem;
  color: #222;
}

.landing-page .hero .subtitle {
  font-size: 1.25rem;
  margin-top: 10px;
  color: #555;
}

.landing-page .countdown {
  background: #fff0f6;
  padding: 50px 20px;
  text-align: center;
}

.landing-page .landing-benefits {
  background: #f8f9fa;
  padding: 50px 20px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
  line-height: 2;
  text-align: center;
}

.landing-faq {
  background: #f1f3f5;
  padding: 50px 20px;
}

.landing-faq details {
  margin-bottom: 20px;
  cursor: pointer;
}

.site-cart {
  position: absolute;
  top: 20px;
  right: 20px;
}

.cart-icon {
  font-size: 18px;
  text-decoration: none;
  color: #333;
}

.cart-count {
  background: #f03e3e;
  color: #fff;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 14px;
  margin-left: 4px;
}

#buffcart-sticky-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 16px;
  z-index: 9999;
}

#buffcart-sticky-cart a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

#buffcart-sticky-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 16px;
  z-index: 9999;
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#buffcart-sticky-cart.hovered {
  opacity: 1;
  transform: scale(1.05);
}

#buffcart-sticky-cart.hidden {
  display: none;
}

#buffcart-sticky-cart a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1 1 45%;
}

.footer-widget {
  margin-bottom: 20px;
}

.footer-widget h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-size: 14px;
  color: #777;
}

.site-footer {
  background: #121b25;
  color: #f0f0f0;
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-column {
  flex: 1 1 30%;
  min-width: 200px;
}

.footer-widget {
  margin-bottom: 20px;
}

.footer-heading {
  background: #1e293b;
  color: #fff;
  padding: 8px 12px;
  font-size: 16px;
  border-left: 4px solid #00c6ff;
  margin-bottom: 10px;
}

.footer-widget ul {
  list-style: none;
  padding-left: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }
}

.content-sidebar-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-content {
  flex: 1 1 70%;
}

.sidebar {
  flex: 1 1 25%;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}

.sidebar .widget {
  margin-bottom: 1.5rem;
}

.sidebar .widget-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-box {
  text-align: center;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #555;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-box {
  text-align: left; /* 👈 Fix alignment */
  padding: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feature-box h3 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #222;
}

.feature-box p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* FINAL FIX FOR FEATURE SECTION */
.features {
  display: block; /* ✅ prevents unwanted flexbox override */
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.feature-grid {
  display: grid !important; /* ✅ force grid layout */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-box {
  text-align: left;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-box img {
  max-width: 80px;
  margin-bottom: 15px;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.feature-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 767px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.form-section {
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  background: #ffffff;
}
.form-section h2 {
  color: #222;
  margin-bottom: 10px;
}
.form-section p {
  font-size: 1.1em;
  color: #666;
}
.form-content form {
  max-width: 600px;
  margin: 20px auto;
}

.tabs-wrapper {
  margin-top: 20px;
}
.tab-buttons {
  text-align: center;
  margin-bottom: 20px;
}
.tab-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  background: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  font-weight: bold;
}
.tab-button.active {
  background: #0073aa;
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quick-links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.articles-page {
  margin-top: 40px;
}

.articles-header {
  text-align: center;
  margin-bottom: 40px;
}

.articles-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.articles-header .intro-text {
  font-size: 1.1rem;
  color: #555;
}

.articles-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.articles-main {
  flex: 1 1 65%;
}

.article-card {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.article-card h2 a {
  color: #222;
  text-decoration: none;
}

.article-card h2 a:hover {
  color: #ff6600;
}

.article-card .meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.article-card .excerpt {
  color: #444;
}

.article-card .read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #ff6600;
  text-decoration: none;
}

.articles-sidebar {
  flex: 1 1 30%;
}

.sidebar-box {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 6px;
}

.sidebar-box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.sidebar-products li {
  margin-bottom: 15px;
  list-style: none;
}

.sidebar-products img {
  max-width: 60px;
  margin-right: 10px;
  vertical-align: middle;
}

.sidebar-products a {
  color: #222;
  text-decoration: none;
}

.btn-shop {
  background: #ff6600;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: bold;
}

/* === Articles Page Enhancements === */
.articles-search-tags {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 20px;
}

.search-form input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 240px;
}

.search-form button {
  padding: 8px 16px;
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tag-filter a {
  margin-right: 10px;
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
}

.tag-filter a:hover {
  color: #ff6600;
}

.article-thumb img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.related-products-from-post {
  margin-top: 60px;
  padding: 40px 20px;
  background: #fdfdfd;
  border-top: 2px solid #eee;
  text-align: center;
}

.related-products-from-post h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #222;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  padding: 0 1rem;
}

.related-product-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.related-product-box:hover {
  transform: translateY(-4px);
}

.related-product-box h4 {
  font-size: 1rem;
  margin: 10px 0 5px;
  color: #333;
}

.related-product-box .price {
  font-weight: 600;
  color: #f04e23;
}
