/*
Theme Name: DabbingBuddy Tropical
Theme URI: https://dabbingbuddy.com
Description: Premium Tropical Smoke Shop Theme for DabbingBuddy Co.,LTD - Based in Koh Samui, Thailand
Author: DabbingBuddy Team
Author URI: https://dabbingbuddy.com
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dabbingbuddy
Domain Path: /languages
Template: hello-elementor
*/

/* ========================================
   CSS VARIABLES - TROPICAL ISLAND + PREMIUM SMOKE SHOP
   ======================================== */
:root {
  /* Primary Colors */
  --db-primary: #0B4F6C;
  --db-primary-light: #147a8f;
  --db-primary-dark: #073a52;
  
  /* Secondary Colors */
  --db-secondary: #FF6B6B;
  --db-secondary-light: #ff8e8e;
  --db-secondary-dark: #e55555;
  
  /* Accent Colors */
  --db-accent: #D4A574;
  --db-accent-light: #e4c49a;
  --db-accent-dark: #c49360;
  
  /* Dark & Light */
  --db-dark: #1A1A2E;
  --db-dark-light: #2d2d44;
  --db-light: #FAFAFA;
  --db-light-dark: #f0f0f0;
  
  /* Text Colors */
  --db-text: #2D3436;
  --db-text-light: #636e72;
  --db-text-muted: #b2bec3;
  
  /* Success/Status Colors */
  --db-success: #00B894;
  --db-warning: #FDCB6E;
  --db-error: #D63031;
  
  /* Gradients */
  --db-gradient-tropical: linear-gradient(135deg, #0B4F6C 0%, #00B894 100%);
  --db-gradient-sunset: linear-gradient(135deg, #FF6B6B 0%, #D4A574 100%);
  --db-gradient-ocean: linear-gradient(180deg, #0B4F6C 0%, #147a8f 100%);
  --db-gradient-hero: linear-gradient(135deg, rgba(11, 79, 108, 0.85) 0%, rgba(255, 107, 107, 0.75) 100%);
  
  /* Shadows */
  --db-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --db-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --db-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --db-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  
  /* Border Radius */
  --db-radius-sm: 8px;
  --db-radius: 16px;
  --db-radius-lg: 24px;
  --db-radius-xl: 32px;
  --db-radius-full: 9999px;
  
  /* Transitions */
  --db-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --db-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --db-header-height: 80px;
  --db-section-padding: 80px;
  --db-container-max: 1400px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--db-text);
  background-color: var(--db-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--db-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
  color: var(--db-primary);
  text-decoration: none;
  transition: var(--db-transition);
}

a:hover {
  color: var(--db-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.db-container {
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.db-section {
  padding: var(--db-section-padding) 0;
}

.db-gradient-tropical {
  background: var(--db-gradient-tropical);
}

.db-gradient-sunset {
  background: var(--db-gradient-sunset);
}

.db-text-gradient {
  background: var(--db-gradient-tropical);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.db-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   AGE GATE MODAL
   ======================================== */
#db-age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 79, 108, 0.95) 0%, rgba(26, 26, 46, 0.98) 100%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.db-age-gate-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--db-radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--db-shadow-xl);
}

.db-age-gate-logo {
  max-width: 200px;
  margin: 0 auto 30px;
}

.db-age-gate h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 15px;
}

.db-age-gate p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.db-age-gate-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.db-btn-age-yes {
  background: var(--db-success);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--db-radius-full);
  cursor: pointer;
  transition: var(--db-transition);
  font-family: 'Montserrat', sans-serif;
}

.db-btn-age-yes:hover {
  background: #00a383;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 184, 148, 0.4);
}

.db-btn-age-no {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--db-radius-full);
  cursor: pointer;
  transition: var(--db-transition);
  font-family: 'Montserrat', sans-serif;
}

.db-btn-age-no:hover {
  background: var(--db-error);
  border-color: var(--db-error);
  color: white;
}

/* ========================================
   HEADER
   ======================================== */
.db-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--db-header-height);
  background: white;
  z-index: 1000;
  transition: var(--db-transition);
}

.db-header.scrolled {
  box-shadow: var(--db-shadow);
}

.db-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Burger Menu */
.db-burger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.db-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--db-primary);
  transition: var(--db-transition);
  border-radius: 2px;
}

.db-burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.db-burger.active span:nth-child(2) {
  opacity: 0;
}

.db-burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo */
.db-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.db-logo img {
  max-height: 50px;
  width: auto;
}

/* Cart */
.db-cart-icon {
  position: relative;
  cursor: pointer;
  padding: 8px;
}

.db-cart-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--db-primary);
  transition: var(--db-transition);
}

.db-cart-icon:hover svg {
  fill: var(--db-secondary);
}

.db-cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--db-secondary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Panel */
.db-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  z-index: 999;
  transition: var(--db-transition-slow);
  box-shadow: var(--db-shadow-xl);
  overflow-y: auto;
}

.db-mobile-menu.active {
  left: 0;
}

.db-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--db-transition);
}

.db-mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.db-mobile-menu-header {
  padding: 30px 20px;
  background: var(--db-gradient-tropical);
}

.db-mobile-menu-header h3 {
  color: white;
  font-size: 1.5rem;
}

.db-mobile-menu-nav {
  padding: 20px 0;
}

.db-mobile-menu-nav a {
  display: block;
  padding: 15px 25px;
  color: var(--db-text);
  font-weight: 500;
  border-bottom: 1px solid var(--db-light-dark);
  transition: var(--db-transition);
}

.db-mobile-menu-nav a:hover {
  background: var(--db-light);
  color: var(--db-primary);
  padding-left: 30px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.db-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.db-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.db-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--db-gradient-hero);
  z-index: 2;
}

.db-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 800px;
}

.db-hero h1 {
  color: white;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.db-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 40px;
}

.db-btn-primary {
  display: inline-block;
  background: var(--db-secondary);
  color: white;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--db-radius-full);
  transition: var(--db-transition);
  font-family: 'Montserrat', sans-serif;
  border: none;
  cursor: pointer;
}

.db-btn-primary:hover {
  background: var(--db-secondary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

/* ========================================
   CATEGORY SECTION
   ======================================== */
.db-categories {
  padding: 80px 0;
  background: var(--db-light);
}

.db-section-title {
  text-align: center;
  margin-bottom: 50px;
}

.db-section-title h2 {
  color: var(--db-dark);
  margin-bottom: 15px;
}

.db-section-title p {
  color: var(--db-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.db-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.db-category-card {
  position: relative;
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow);
  transition: var(--db-transition);
  cursor: pointer;
  background: white;
}

.db-category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--db-shadow-lg);
}

.db-category-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: var(--db-transition-slow);
}

.db-category-card:hover img {
  transform: scale(1.1);
}

.db-category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.db-category-card h3 {
  color: white;
  font-size: 1.3rem;
  text-align: center;
}

/* ========================================
   BESTSELLERS CAROUSEL
   ======================================== */
.db-bestsellers {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.db-bestsellers-carousel {
  position: relative;
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 60px;
}

.db-carousel-track {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0;
}

.db-carousel-track::-webkit-scrollbar {
  display: none;
}

.db-product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow);
  transition: var(--db-transition);
}

.db-product-card:hover {
  box-shadow: var(--db-shadow-lg);
}

.db-product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.db-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--db-transition);
}

.db-product-card:hover .db-product-card-image img {
  transform: scale(1.05);
}

.db-product-card-content {
  padding: 20px;
}

.db-product-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--db-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.db-product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--db-primary);
  margin-bottom: 15px;
}

.db-product-card-price del {
  color: var(--db-text-muted);
  font-size: 0.9rem;
  margin-right: 8px;
}

.db-btn-add-cart {
  width: 100%;
  background: var(--db-primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--db-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--db-transition);
  opacity: 0;
  transform: translateY(10px);
}

.db-product-card:hover .db-btn-add-cart {
  opacity: 1;
  transform: translateY(0);
}

.db-btn-add-cart:hover {
  background: var(--db-secondary);
}

/* Carousel Navigation */
.db-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--db-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--db-transition);
  z-index: 10;
}

.db-carousel-nav:hover {
  background: var(--db-primary);
}

.db-carousel-nav:hover svg {
  fill: white;
}

.db-carousel-nav.prev {
  left: 0;
}

.db-carousel-nav.next {
  right: 0;
}

.db-carousel-nav svg {
  width: 20px;
  height: 20px;
  fill: var(--db-primary);
  transition: var(--db-transition);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.db-about {
  padding: 100px 0;
  background: white;
}

.db-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
}

.db-about-image {
  border-radius: var(--db-radius-lg);
  overflow: hidden;
  box-shadow: var(--db-shadow-lg);
}

.db-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.db-about-content h2 {
  margin-bottom: 20px;
  color: var(--db-dark);
}

.db-about-content p {
  color: var(--db-text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.db-about-content .db-btn-primary {
  margin-top: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.db-footer {
  background: var(--db-dark);
  color: white;
  padding: 80px 0 0;
}

.db-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--db-container-max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.db-footer-column h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.db-footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--db-secondary);
}

.db-footer-column p,
.db-footer-column a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.db-footer-column a {
  display: block;
  margin-bottom: 10px;
}

.db-footer-column a:hover {
  color: var(--db-secondary);
}

.db-footer-logo {
  max-width: 150px;
  margin-bottom: 20px;
}

.db-footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.db-footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--db-transition);
}

.db-footer-social a:hover {
  background: var(--db-secondary);
  transform: translateY(-3px);
}

.db-footer-social svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* Payment Icons */
.db-payment-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.db-payment-icon {
  width: 50px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer Bottom */
.db-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 20px;
  text-align: center;
}

.db-footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.db-footer-bottom-links {
  margin-top: 10px;
}

.db-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0 10px;
}

.db-footer-bottom-links a:hover {
  color: var(--db-secondary);
}

/* ========================================
   WOOCOMMERCE CUSTOMIZATIONS
   ======================================== */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.woocommerce .product {
  background: white;
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow);
  transition: var(--db-transition);
}

.woocommerce .product:hover {
  box-shadow: var(--db-shadow-lg);
  transform: translateY(-5px);
}

.woocommerce .product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.woocommerce .product .woocommerce-loop-product__title {
  padding: 15px 20px 5px;
  font-size: 1rem;
  color: var(--db-dark);
}

.woocommerce .product .price {
  padding: 0 20px 15px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--db-primary);
}

.woocommerce .product .button {
  margin: 0 20px 20px;
  background: var(--db-primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--db-radius-sm);
  font-weight: 600;
  transition: var(--db-transition);
}

.woocommerce .product .button:hover {
  background: var(--db-secondary);
}

/* Single Product */
.woocommerce div.product .product_title {
  font-size: 2rem;
  color: var(--db-dark);
  margin-bottom: 20px;
}

.woocommerce div.product .price {
  font-size: 1.5rem;
  color: var(--db-primary);
  font-weight: 700;
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--db-secondary);
  padding: 16px 40px;
  font-size: 1.1rem;
  border-radius: var(--db-radius-full);
  transition: var(--db-transition);
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--db-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* Cart */
.woocommerce-cart .cart-collaterals .cart_totals {
  background: white;
  padding: 30px;
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}

.woocommerce-cart .checkout-button {
  background: var(--db-secondary);
  border-radius: var(--db-radius-full);
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Checkout */
.woocommerce-checkout .woocommerce-form-coupon {
  background: white;
  padding: 20px;
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}

/* ========================================
   BUDDYPRESS CUSTOMIZATIONS
   ======================================== */
#buddypress {
  background: white;
  padding: 40px;
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}

#buddypress .item-list-tabs ul li a {
  color: var(--db-text);
  padding: 12px 20px;
  font-weight: 600;
}

#buddypress .item-list-tabs ul li.selected a,
#buddypress .item-list-tabs ul li.current a {
  background: var(--db-primary);
  color: white;
  border-radius: var(--db-radius-sm);
}

#buddypress .standard-form input[type="text"],
#buddypress .standard-form input[type="email"],
#buddypress .standard-form textarea {
  border: 2px solid var(--db-light-dark);
  border-radius: var(--db-radius-sm);
  padding: 12px 16px;
  transition: var(--db-transition);
}

#buddypress .standard-form input:focus,
#buddypress .standard-form textarea:focus {
  border-color: var(--db-primary);
  outline: none;
}

#buddypress .standard-form input[type="submit"] {
  background: var(--db-secondary);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: var(--db-radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--db-transition);
}

#buddypress .standard-form input[type="submit"]:hover {
  background: var(--db-secondary-dark);
  transform: translateY(-2px);
}

/* Member Profile */
#buddypress #item-header {
  background: var(--db-gradient-tropical);
  padding: 40px;
  border-radius: var(--db-radius);
  margin-bottom: 30px;
}

#buddypress #item-header h2 {
  color: white;
}

#buddypress #item-header a {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .db-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .db-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .db-about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  :root {
    --db-header-height: 70px;
    --db-section-padding: 60px;
  }
  
  .db-hero-content {
    padding: 100px 20px 60px;
  }
  
  .db-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .db-category-card h3 {
    font-size: 1rem;
  }
  
  .db-bestsellers-carousel {
    padding: 0 40px;
  }
  
  .db-product-card {
    flex: 0 0 240px;
  }
  
  .db-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .db-age-gate-content {
    padding: 40px 25px;
  }
  
  .db-age-gate h2 {
    font-size: 1.5rem;
  }
  
  .db-age-gate-buttons {
    flex-direction: column;
  }
  
  .woocommerce .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .db-categories-grid {
    grid-template-columns: 1fr;
  }
  
  .db-product-card {
    flex: 0 0 200px;
  }
  
  .woocommerce .products {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.db-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.db-pulse {
  animation: pulse 2s infinite;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.db-text-center { text-align: center; }
.db-text-left { text-align: left; }
.db-text-right { text-align: right; }

.db-mt-1 { margin-top: 0.5rem; }
.db-mt-2 { margin-top: 1rem; }
.db-mt-3 { margin-top: 1.5rem; }
.db-mt-4 { margin-top: 2rem; }

.db-mb-1 { margin-bottom: 0.5rem; }
.db-mb-2 { margin-bottom: 1rem; }
.db-mb-3 { margin-bottom: 1.5rem; }
.db-mb-4 { margin-bottom: 2rem; }

.db-hidden { display: none !important; }
.db-visible { display: block !important; }

/* Loading State */
.db-loading {
  position: relative;
  pointer-events: none;
}

.db-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--db-light);
  border-top-color: var(--db-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* ========================================
   WOOCOMMERCE PRODUCT GRID FIX
   ======================================== */

/* Produkt Grid */
.woocommerce .products ul,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Einzelnes Produkt */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Produkt Bild */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin: 0;
    border-radius: 16px 16px 0 0;
}

/* Produkt Titel */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A2E;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

/* Preis */
.woocommerce ul.products li.product .price {
    padding: 0 20px 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0B4F6C;
}

.woocommerce ul.products li.product .price del {
    color: #b2bec3;
    font-size: 0.95rem;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    margin: 0 20px 20px;
    background: #0B4F6C;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    width: calc(100% - 40px);
}

.woocommerce ul.products li.product .button:hover {
    background: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    background: #FF6B6B;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* Star Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0 20px 10px;
    color: #FDCB6E;
}

/* Kategorie Beschreibung */
.term-description {
    background: linear-gradient(135deg, #0B4F6C 0%, #147a8f 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}

.term-description h1,
.term-description h2 {
    color: white;
    margin-bottom: 15px;
}

.term-description p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Shop Header */
.woocommerce-products-header {
    background: linear-gradient(135deg, #0B4F6C 0%, #147a8f 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 24px 24px;
}

.woocommerce-products-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Sortieren und Anzeige */
.woocommerce .woocommerce-ordering {
    margin-bottom: 30px;
}

.woocommerce .woocommerce-ordering select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 50px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 12px 20px;
    border-radius: 8px;
    background: white;
    color: #0B4F6C;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0B4F6C;
    color: white;
    border-color: #0B4F6C;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce ul.products[class*=columns-] li.product,
    .woocommerce-page ul.products[class*=columns-] li.product {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    
    .woocommerce .products ul,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .woocommerce .products ul,
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}
/* MINI CART STYLES */

/* ========================================
   MINI CART STYLES - HIDDEN BY DEFAULT
   ======================================== */

/* Mini Cart Container - Hidden by default */
.db-mini-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show mini-cart when active */
.db-mini-cart.active {
    visibility: visible;
    opacity: 1;
}

/* Mini Cart Overlay */
.db-mini-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Mini Cart Panel - Slide from right */
.db-mini-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Slide in when active */
.db-mini-cart.active .db-mini-cart-panel {
    transform: translateX(0);
}

/* Mini Cart Header */
.db-mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #0B4F6C 0%, #00B894 100%);
    color: white;
}

.db-mini-cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.db-mini-cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.db-mini-cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mini Cart Content */
.db-mini-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Widget shopping cart content */
.widget_shopping_cart_content {
    min-height: 100px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .db-mini-cart-panel {
        width: 100%;
        max-width: 100%;
    }
}
