/* ============================================
   DABBINGBUDDY TROPICAL THEME - CUSTOM STYLES
   ============================================ */

/* CSS Variables - Tropical Color Palette */
:root {
  --tropical-primary: #00D9C0;
  --tropical-secondary: #FF6B6B;
  --tropical-accent: #FFD93D;
  --tropical-dark: #1A1A2E;
  --tropical-ocean: #0077B6;
  --tropical-sand: #F5F5DC;
  --tropical-gradient: linear-gradient(135deg, #00D9C0 0%, #0077B6 100%);
  --tropical-sunset: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 100%);
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--tropical-dark);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn, .button, 
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--tropical-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 14px 32px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 4px 15px rgba(0, 217, 192, 0.3) !important;
  cursor: pointer;
}

.btn:hover, .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 217, 192, 0.4) !important;
  filter: brightness(1.1) !important;
}

/* Secondary Button */
.btn-secondary {
  background: var(--tropical-sunset) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header, .db-header, #masthead {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.site-header.scrolled,
.db-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* Logo glow effect */
.site-logo img, .db-logo img {
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 0 transparent);
}

.site-logo img:hover,
.db-logo img:hover {
  filter: drop-shadow(0 0 10px rgba(0, 217, 192, 0.5));
}

/* Navigation Links */
.main-navigation a,
.db-header a {
  position: relative;
  color: var(--tropical-dark) !important;
  font-weight: 500;
  padding: 10px 0 !important;
  margin: 0 15px;
  transition: var(--transition-smooth);
}

.main-navigation a::after,
.db-header a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tropical-gradient);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.db-header a:hover::after {
  width: 100%;
}

.main-navigation a:hover,
.db-header a:hover {
  color: var(--tropical-primary) !important;
}

/* Cart Icon */
.cart-icon, .db-cart-icon {
  position: relative;
  transition: var(--transition-smooth);
}

.cart-icon:hover,
.db-cart-icon:hover {
  transform: scale(1.1);
}

.cart-count, .db-cart-count {
  background: var(--tropical-secondary) !important;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  position: absolute;
  top: -8px;
  right: -8px;
  animation: pulse 2s infinite;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section, .db-hero {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.8) 0%, rgba(0, 217, 192, 0.8) 100%) !important;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.db-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, white, transparent);
}

.hero-content h1,
.db-hero h1 {
  color: white !important;
  font-size: 3.5rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-content p,
.db-hero p {
  color: rgba(255,255,255,0.9) !important;
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s backwards;
}

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

/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card,
.woocommerce ul.products li.product {
  background: white;
  border-radius: 20px !important;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  border: none !important;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-card img,
.woocommerce ul.products li.product img {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.product-card:hover img,
.woocommerce ul.products li.product:hover img {
  transform: scale(1.08);
}

/* Product Title */
.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--tropical-dark) !important;
  margin: 15px 20px 5px !important;
  transition: color 0.3s ease;
}

.product-card:hover .product-title,
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
  color: var(--tropical-primary) !important;
}

/* Price */
.product-price,
.woocommerce ul.products li.product .price {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--tropical-secondary) !important;
  margin: 0 20px 15px !important;
}

/* Add to Cart Button */
.add-to-cart-btn,
.woocommerce ul.products li.product .button {
  width: calc(100% - 40px) !important;
  margin: 0 20px 20px !important;
  border-radius: 25px !important;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .add-to-cart-btn,
.woocommerce ul.products li.product:hover .button {
  opacity: 1;
  transform: translateY(0);
}

/* Sale Badge */
.onsale,
.sale-badge {
  background: var(--tropical-sunset) !important;
  color: white !important;
  border-radius: 20px !important;
  padding: 5px 15px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tropical-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

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

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item, .db-faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover, .db-faq-item:hover {
  box-shadow: var(--shadow-hover);
}

.faq-question, .db-faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--tropical-dark);
  transition: var(--transition-smooth);
  position: relative;
}

.faq-question:hover, .db-faq-question:hover {
  background: linear-gradient(135deg, rgba(0, 217, 192, 0.05) 0%, rgba(0, 119, 182, 0.05) 100%);
}

.faq-icon, .db-faq-icon {
  width: 30px;
  height: 30px;
  background: var(--tropical-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-icon,
.db-faq-item.active .db-faq-icon {
  transform: rotate(45deg);
  background: var(--tropical-sunset);
}

.faq-answer, .db-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 30px;
}

.faq-item.active .faq-answer,
.db-faq-item.active .db-faq-answer {
  max-height: 500px;
  padding-bottom: 25px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer, .db-footer {
  background: var(--tropical-dark) !important;
  color: white !important;
  padding: 60px 0 30px !important;
  position: relative;
}

.site-footer::before,
.db-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--tropical-gradient);
}

.footer-widget h4,
.db-footer h4 {
  color: white !important;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-widget a,
.db-footer a {
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.footer-widget a:hover,
.db-footer a:hover {
  color: var(--tropical-primary) !important;
  padding-left: 5px;
}

/* ============================================
   AGE VERIFICATION POPUP
   ============================================ */

#db-age-gate, .age-verification-overlay {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(10px);
}

#db-age-gate .db-age-gate-content,
.age-verification-modal {
  background: white !important;
  border-radius: 30px !important;
  padding: 50px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
  max-width: 500px !important;
  text-align: center;
  animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#db-age-gate h2,
.age-verification-modal h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: var(--tropical-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.db-btn-age-yes {
  background: var(--tropical-gradient) !important;
}

.db-btn-age-no:hover {
  background: #ff6b6b !important;
  color: white !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-content h1,
  .db-hero h1 {
    font-size: 2rem;
  }
  
  .product-card:hover,
  .woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
  }
  
  .add-to-cart-btn,
  .woocommerce ul.products li.product .button {
    opacity: 1;
    transform: none;
  }
  
  .faq-question,
  .db-faq-question {
    padding: 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--tropical-primary);
  color: white;
}

/* Loading animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Bounce animation for cart */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.bounce {
  animation: bounce 0.5s ease;
}
