/* ============================================================
   WEEDN COMPONENTS — Streetwear Chic
   ============================================================ */

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--weedn-green-dark);
  padding: var(--space-2) 0;
  text-align: center;
  border-bottom: 1px solid var(--weedn-green);
}

.announcement-bar__text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--weedn-text);
  margin: 0;
}

.announcement-bar__text a {
  color: var(--weedn-green-neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* === SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--weedn-bg);
  border-bottom: 1px solid var(--weedn-border);
  transition: transform var(--transition-slow), background var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}

.site-header__logo {
  text-decoration: none;
}

.site-header__logo-text {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 6px;
  color: var(--weedn-text);
  line-height: 1;
}

/* Nav */
.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  gap: var(--space-1);
  list-style: none;
}

.nav-menu li a {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--weedn-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--weedn-radius);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--weedn-text);
  background: var(--weedn-bg-hover);
}

/* Actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__search-toggle,
.site-header__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--weedn-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.site-header__search-toggle:hover,
.site-header__cart:hover {
  color: var(--weedn-text);
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--weedn-green-neon);
  color: var(--weedn-bg);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count:empty { display: none; }

/* Mobile menu toggle */
.site-header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.site-header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--weedn-text);
  transition: all var(--transition-base);
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* === SEARCH OVERLAY === */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  background: rgba(10, 10, 10, 0.98);
  padding: var(--space-24) 0;
}

.search-form {
  display: flex;
  gap: var(--space-4);
  max-width: 600px;
  margin: 0 auto;
}

.search-form__input {
  flex: 1;
  font-size: var(--text-xl);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--weedn-border);
  border-radius: 0;
  color: var(--weedn-text);
  padding: var(--space-4) 0;
}

.search-form__input:focus {
  border-color: var(--weedn-green-neon);
  box-shadow: none;
}

.search-overlay__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 36px;
  color: var(--weedn-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--weedn-bg);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--weedn-bg) 0%, var(--weedn-green-dark) 50%, var(--weedn-bg) 100%);
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__title {
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.15em;
  margin: var(--space-4) 0;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--weedn-text-muted);
  letter-spacing: 3px;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTION TITLES === */
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  letter-spacing: 4px;
  margin-bottom: var(--space-12);
  text-align: center;
}

/* === PRODUCT CARD === */
.product-card .card__image {
  position: relative;
  background: var(--weedn-bg);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

.product-card__badge--bottom {
  top: auto;
  bottom: 12px;
}

.product-card__category {
  display: block;
  margin-bottom: var(--space-1);
}

.product-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--space-2);
}

.product-card__title a {
  color: var(--weedn-text);
  text-decoration: none;
}

.product-card__price {
  font-size: var(--text-lg);
}

/* === PRODUCT PAGE === */
.product-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.product-page__main-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--weedn-bg-card);
  border-radius: var(--weedn-radius);
  overflow: hidden;
}

.product-page__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__thumbnails {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.product-page__thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: var(--weedn-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--weedn-bg-card);
  padding: 0;
  transition: border-color var(--transition-fast);
}

.product-page__thumb.active,
.product-page__thumb:hover {
  border-color: var(--weedn-green-neon);
}

.product-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__title {
  font-size: var(--text-4xl);
  margin: var(--space-2) 0 var(--space-4);
}

.product-page__specs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.product-page__price {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--weedn-green-neon);
  margin-bottom: var(--space-4);
}

.product-page__desc {
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.product-page__cart {
  margin-bottom: var(--space-6);
}

.product-page__terpenes {
  padding: var(--space-4);
  background: var(--weedn-bg-card);
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
  margin-bottom: var(--space-6);
}

.product-page__terpenes h4 {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.product-page__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--weedn-bg-card);
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
}

.product-page__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--weedn-text-muted);
}

.product-page__trust-item svg {
  color: var(--weedn-green-neon);
  flex-shrink: 0;
}

.product-page__full-desc {
  max-width: 800px;
  margin: 0 auto var(--space-16);
}

.product-page__full-desc h2 {
  margin-bottom: var(--space-6);
}

.product-page__related h2 {
  margin-bottom: var(--space-8);
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--weedn-text-dim);
  margin-bottom: var(--space-8);
}

.breadcrumb a {
  color: var(--weedn-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--weedn-text); }

/* === SHOP FILTERS === */
.shop-filters {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--weedn-border);
  margin-bottom: var(--space-8);
}

.shop-filters__list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shop-filters__list::-webkit-scrollbar { display: none; }

.shop-filters__list .btn--ghost.active {
  color: var(--weedn-green-neon);
  background: var(--weedn-bg-hover);
}

/* === PROMO BANNER (Homepage) === */
.promo-banner-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--weedn-green) 0%, var(--weedn-green-dark) 100%);
  border: 1px solid var(--weedn-green-neon);
  border-radius: var(--weedn-radius);
  padding: var(--space-8) var(--space-12);
}

.promo-banner-home h2 {
  margin-bottom: var(--space-2);
}

/* === FREE SHIPPING NOTICE === */
.free-shipping-notice {
  background: var(--weedn-bg-card);
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  text-align: center;
}

.free-shipping-notice p { margin: 0 0 var(--space-2); font-size: var(--text-sm); }

.free-shipping-bar {
  height: 4px;
  background: var(--weedn-border);
  border-radius: 2px;
  overflow: hidden;
}

.free-shipping-bar__fill {
  height: 100%;
  background: var(--weedn-green-neon);
  transition: width var(--transition-slow);
}

.free-shipping-notice--achieved {
  border-color: var(--weedn-green);
}

.free-shipping-notice--achieved p {
  color: var(--weedn-green-neon);
  font-weight: 700;
}

/* === ABOUT SECTION === */
.about-features {
  list-style: none;
  margin: var(--space-6) 0;
}

.about-features li {
  padding: var(--space-2) 0;
  color: var(--weedn-text-muted);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--weedn-border);
}

.about-features li::before {
  content: '—';
  color: var(--weedn-green-neon);
  margin-right: var(--space-3);
}

/* === FOOTER === */
.site-footer {
  background: var(--weedn-bg);
  border-top: 1px solid var(--weedn-border);
  padding: var(--space-16) 0 var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.site-footer__logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 6px;
  display: block;
  margin-bottom: var(--space-3);
}

.site-footer__desc {
  font-size: var(--text-sm);
  color: var(--weedn-text-muted);
  margin-bottom: var(--space-4);
}

.site-footer__social {
  display: flex;
  gap: var(--space-3);
}

.site-footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--weedn-border);
  border-radius: var(--weedn-radius);
  color: var(--weedn-text-muted);
  transition: all var(--transition-fast);
}

.site-footer__social a:hover {
  border-color: var(--weedn-green-neon);
  color: var(--weedn-green-neon);
}

.site-footer__title {
  font-size: var(--text-sm);
  letter-spacing: 3px;
  margin-bottom: var(--space-4);
}

.site-footer__menu {
  list-style: none;
}

.site-footer__menu li { margin-bottom: var(--space-2); }

.site-footer__menu a {
  font-size: var(--text-sm);
  color: var(--weedn-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__menu a:hover { color: var(--weedn-text); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--weedn-border);
  font-size: var(--text-xs);
  color: var(--weedn-text-dim);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-4);
}

.site-footer__legal a {
  color: var(--weedn-text-dim);
}

.site-footer__legal a:hover { color: var(--weedn-text-muted); }

/* === WHATSAPP WIDGET === */
.whatsapp-widget {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: var(--weedn-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  color: #fff;
}

/* === ANIMATIONS (Scroll Reveal) === */
.card,
.section__title,
.hero__content > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.is-visible,
.section__title.is-visible,
.hero__content > .is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .section__title,
  .hero__content > * {
    opacity: 1;
    transform: none;
  }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .site-header__menu-toggle { display: flex; }

  .site-header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--weedn-bg);
    padding: var(--space-8);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-overlay);
  }

  .site-header__nav.is-open { transform: translateX(0); }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu li a {
    display: block;
    padding: var(--space-4);
    font-size: var(--text-2xl);
    border-bottom: 1px solid var(--weedn-border);
  }

  .hero { min-height: 60vh; }
  .hero__actions { flex-direction: column; align-items: center; }

  .product-page__grid { grid-template-columns: 1fr; gap: var(--space-6); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }

  .site-footer__bottom { flex-direction: column; gap: var(--space-4); text-align: center; }

  .promo-banner-home {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
    padding: var(--space-6);
  }
}

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; align-items: center; gap: var(--space-4); }
}

/* === PRODUCT CARD HOVER EFFECTS === */
.product-card:hover .card__image img,
div[style*="background:#141414"]:hover img {
  transform: scale(1.05);
}

/* === SHOP PAGE GRID RESPONSIVE === */
@media (max-width: 1024px) {
  div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* === CATEGORY FILTER BAR SCROLLBAR === */
div[style*="overflow-x:auto"]::-webkit-scrollbar { display: none; }
div[style*="overflow-x:auto"] { scrollbar-width: none; }

/* === PRODUCT CARD BUTTON HOVER === */
a[style*="background:#22c55e"]:hover {
  background: #fff !important;
  color: #0a0a0a !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

/* === WOOCOMMERCE PRODUCT IMAGE ASPECT === */
.woocommerce ul.products li.product a img {
  border-radius: 4px;
  background: #0a0a0a;
}

/* === BREADCRUMB STYLE === */
.woocommerce .woocommerce-breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #71717a;
  margin-bottom: 24px;
}
.woocommerce .woocommerce-breadcrumb a {
  color: #a1a1aa;
  text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover { color: #fff; }

/* === TAB STYLE FOR PRODUCT DESC === */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #27272a;
  padding: 0;
  margin: 0 0 24px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  background: none;
  border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: #a1a1aa;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #22c55e;
  border-bottom-color: #22c55e;
}
.woocommerce div.product .woocommerce-tabs .panel {
  color: #a1a1aa;
  line-height: 1.7;
}

/* Custom logo (uploaded image) - high specificity + !important to beat WP defaults */
body .site-header__logo .custom-logo-link,
body .site-header .custom-logo-link {
  display: inline-block !important;
  line-height: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
}
body .site-header img.custom-logo,
body .wp-custom-logo .custom-logo {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 768px) {
  body .site-header img.custom-logo,
  body .wp-custom-logo .custom-logo {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 140px !important;
  }
}
