/*
Theme Name:        HashMart Theme
Theme URI:         https://hashmartonline.com
Author:            HashMart Online
Author URI:        https://hashmartonline.com
Description:       A luxury e-commerce WordPress theme for HashMart Online — featuring chocolate & cream branding, WooCommerce integration, animated announcement ticker, dynamic hero slider, and premium product grid. Built for Men's Watches, Women's Watches, Couples Watches, and Premium Bedding categories.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      8.1
License:           Proprietary
License URI:       https://hashmartonline.com/license
Text Domain:       hashmart-theme
Tags:              woocommerce, e-commerce, luxury, one-column, custom-header, custom-menu, featured-images, rtl-language-support
*/

/* ============================================================
   HASHMART DESIGN TOKENS — Chocolate & Cream Brand Palette
   ============================================================ */
:root {
  --hm-cream:        #FDFBF7;   /* Page background, light text */
  --hm-chocolate:    #4A3525;   /* Primary dark text, header bg, footer bg */
  --hm-forest:       #1E5936;   /* Accent green — CTAs, active nav, cart button */
  --hm-forest-dark:  #164228;   /* Hover state for forest green */
  --hm-gold:         #D4AF37;   /* Luxury accent gold — prices, stars, dividers */
  --hm-caramel:      #C5A059;   /* Secondary gold border accent */
  --hm-warm-tan:     #8B735B;   /* Bedding card background */
  --hm-parchment:    #EAE2D8;   /* Borders, subtle backgrounds */
  --hm-text-primary: #2D231E;   /* Body copy */
  --hm-font-sans:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --hm-font-serif:   "Playfair Display", ui-serif, Georgia, serif;
  --hm-font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--hm-cream);
  color: var(--hm-text-primary);
  font-family: var(--hm-font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--hm-cream); }
::-webkit-scrollbar-thumb { background: var(--hm-chocolate); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--hm-forest); }

/* ============================================================
   UTILITY CLASSES (Tailwind-style helpers for PHP templates)
   ============================================================ */
.hm-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .hm-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .hm-container { padding-left: 2rem; padding-right: 2rem; }
}

.hm-serif { font-family: var(--hm-font-serif); }
.hm-mono  { font-family: var(--hm-font-mono); }
.hm-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   ANNOUNCEMENT TICKER BANNER
   ============================================================ */
.hm-ticker-wrap {
  background-color: var(--hm-chocolate);
  color: var(--hm-cream);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(197,160,89,0.2);
  user-select: none;
}

.hm-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: hm-marquee 30s linear infinite;
}

.hm-ticker-track:hover {
  animation-play-state: paused;
}

.hm-ticker-set {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 1rem;
}

.hm-ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1E5936;
  animation: hm-pulse 2s infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

.hm-ticker-sep {
  color: var(--hm-caramel);
}

@keyframes hm-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes hm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ============================================================
   SITE HEADER
   ============================================================ */
#hm-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background-color: rgba(253,251,247,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,53,37,0.1);
  box-shadow: 0 4px 30px rgba(74,53,37,0.05);
}

.hm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
}

/* Logo */
.hm-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.hm-logo-wrap:hover { transform: scale(1.02); }

.hm-logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--hm-chocolate);
  display: flex; align-items: center; justify-content: center;
}

.hm-logo-icon svg { width: 22px; height: 22px; fill: var(--hm-gold); }

.hm-logo-text-top {
  font-family: var(--hm-font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hm-logo-text-sub {
  font-family: var(--hm-font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--hm-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Desktop Navigation */
#hm-primary-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

@media (min-width: 768px) {
  #hm-primary-nav { display: flex; }
}

#hm-primary-nav li a,
#hm-primary-nav li span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-chocolate);
  border-radius: 0.5rem;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

#hm-primary-nav li a:hover,
#hm-primary-nav li span:hover {
  color: var(--hm-forest);
  background-color: rgba(74,53,37,0.05);
}

#hm-primary-nav li.current-menu-item > a {
  color: var(--hm-forest);
  background-color: rgba(30,89,54,0.05);
  font-weight: 600;
}

#hm-primary-nav li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--hm-forest);
  border-radius: 9999px;
}

/* Header Action Icons */
.hm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hm-icon-btn {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--hm-chocolate);
  transition: all 0.25s;
}

.hm-icon-btn:hover {
  color: var(--hm-forest);
  background-color: rgba(74,53,37,0.05);
}

.hm-icon-btn svg { width: 1.25rem; height: 1.25rem; }

/* WooCommerce Cart Button in Header */
.hm-cart-btn {
  position: relative;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background-color: var(--hm-forest);
  color: var(--hm-cream);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(30,89,54,0.35);
}

.hm-cart-btn:hover {
  background-color: var(--hm-forest-dark);
  box-shadow: 0 4px 16px rgba(30,89,54,0.4);
}

.hm-cart-btn svg { width: 1.125rem; height: 1.125rem; }

.hm-cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--hm-gold);
  color: var(--hm-chocolate);
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--hm-cream);
}

/* Mobile Nav Toggle */
.hm-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  color: var(--hm-chocolate);
  transition: all 0.25s;
}

.hm-mobile-toggle:hover {
  background-color: rgba(74,53,37,0.05);
  color: var(--hm-forest);
}

@media (min-width: 768px) {
  .hm-mobile-toggle { display: none; }
}

.hm-mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

/* Mobile Menu Drawer */
#hm-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(74,53,37,0.05);
  margin-top: 0.75rem;
}

#hm-mobile-menu.is-open { display: flex; }

@media (min-width: 768px) {
  #hm-mobile-menu { display: none !important; }
}

#hm-mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hm-chocolate);
  border-radius: 0.5rem;
  transition: all 0.2s;
}

#hm-mobile-menu a:hover,
#hm-mobile-menu a.active {
  background-color: rgba(30,89,54,0.08);
  color: var(--hm-forest);
}

/* Search Bar Inline */
.hm-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hm-search-input {
  background: rgba(74,53,37,0.05);
  border: none;
  border-radius: 9999px;
  padding: 0.375rem 2.5rem 0.375rem 0.875rem;
  font-size: 0.875rem;
  color: var(--hm-chocolate);
  outline: none;
  width: 240px;
  transition: background 0.2s;
}

.hm-search-input:focus { background: rgba(74,53,37,0.08); }
.hm-search-input::placeholder { color: rgba(74,53,37,0.45); }

/* ============================================================
   HERO SLIDER SECTION
   ============================================================ */
#hm-hero {
  padding: 1.5rem 0;
  background: var(--hm-cream);
}

.hm-hero-slider {
  width: 100%;
  height: 400px;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(197,160,89,0.3);
  box-shadow: 0 4px 24px rgba(74,53,37,0.12);
}

@media (min-width: 640px) {
  .hm-hero-slider { height: 480px; }
}

.hm-hero-slide {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease, transform 1s ease;
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.hm-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hm-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #4A3525 0%, rgba(74,53,37,0.4) 50%, transparent 100%);
  z-index: 1;
}

.hm-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .hm-hero-content { padding: 2.5rem; }
}

.hm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  background: var(--hm-forest);
  color: var(--hm-cream);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  animation: hm-pulse 2.5s infinite;
}

.hm-hero-subtitle {
  font-family: var(--hm-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--hm-gold);
  text-transform: uppercase;
}

.hm-hero-title {
  font-family: var(--hm-font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .hm-hero-title { font-size: 2.5rem; }
}

.hm-hero-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(253,251,247,0.9);
  line-height: 1.65;
  display: none;
}

@media (min-width: 640px) {
  .hm-hero-desc { display: block; }
}

.hm-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 1.5rem;
  background: var(--hm-forest);
  color: var(--hm-cream);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(30,89,54,0.4);
  transition: all 0.3s;
}

.hm-hero-cta:hover {
  background: var(--hm-forest-dark);
  box-shadow: 0 4px 16px rgba(30,89,54,0.5);
  transform: translateY(-1px);
}

.hm-hero-cta svg { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }
.hm-hero-cta:hover svg { transform: translateX(2px); }

/* Slide dots */
.hm-hero-dots {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(74,53,37,0.3);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  border-radius: 9999px;
}

.hm-hero-dot {
  height: 6px;
  border-radius: 9999px;
  background: rgba(253,251,247,0.6);
  transition: all 0.3s;
  width: 6px;
  cursor: pointer;
}

.hm-hero-dot.is-active {
  width: 1.5rem;
  background: var(--hm-forest);
}

/* ============================================================
   BENTO PRODUCT GRID (Hero section below slider)
   ============================================================ */
.hm-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .hm-bento-grid { grid-template-columns: 2fr 1fr; }
}

.hm-bento-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .hm-bento-pair { grid-template-columns: 1fr 1fr; }
}

/* Bento Card base */
.hm-bento-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  border: 1px solid rgba(197,160,89,0.2);
  box-shadow: 0 1px 4px rgba(74,53,37,0.08);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hm-bento-card:hover {
  box-shadow: 0 12px 40px rgba(74,53,37,0.18);
  transform: translateY(-2px);
}

.hm-bento-card--forest { background-color: var(--hm-forest); color: #fff; }
.hm-bento-card--tan    { background-color: var(--hm-warm-tan); color: #fff; }

.hm-bento-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hm-bento-tag {
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.hm-bento-card--forest .hm-bento-tag { color: var(--hm-gold); }
.hm-bento-card--tan    .hm-bento-tag { color: rgba(253,251,247,0.8); }

.hm-bento-title {
  font-family: var(--hm-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hm-bento-desc {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(253,251,247,0.8);
  margin-top: 0.375rem;
}

.hm-bento-thumb {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.hm-bento-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hm-bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hm-bento-price-old {
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  text-decoration: line-through;
  color: rgba(253,251,247,0.6);
  display: block;
}

.hm-bento-price {
  font-family: var(--hm-font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hm-gold);
}

.hm-bento-card--tan .hm-bento-price { color: #fff; }

.hm-quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.hm-bento-card--forest .hm-quick-add-btn {
  background: #fff;
  color: var(--hm-forest);
}

.hm-bento-card--forest .hm-quick-add-btn:hover { background: var(--hm-cream); }

.hm-bento-card--tan .hm-quick-add-btn {
  background: var(--hm-chocolate);
  color: var(--hm-cream);
}

.hm-bento-card--tan .hm-quick-add-btn:hover { background: #38281C; }

/* Trending Now card */
.hm-trending-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(74,53,37,0.1);
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(74,53,37,0.06);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.hm-trending-header {
  border-bottom: 1px solid rgba(74,53,37,0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.hm-trending-eyebrow {
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hm-forest);
  display: block;
}

.hm-trending-title {
  font-family: var(--hm-font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  margin-top: 0.25rem;
}

.hm-trending-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--hm-parchment);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.hm-trending-item:last-child { margin-bottom: 0; }

.hm-trending-item:hover {
  border-color: rgba(74,53,37,0.3);
  box-shadow: 0 4px 16px rgba(74,53,37,0.08);
}

.hm-trending-img {
  width: 4rem; height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #F5F2EC;
  border: 1px solid var(--hm-parchment);
  flex-shrink: 0;
}

.hm-trending-img img { width: 100%; height: 100%; object-fit: cover; }

.hm-trending-cat {
  font-family: var(--hm-font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hm-forest);
  display: block;
}

.hm-trending-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.hm-trending-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.hm-trending-stars svg {
  width: 10px; height: 10px;
  fill: var(--hm-gold);
  color: var(--hm-gold);
}

.hm-trending-price {
  font-family: var(--hm-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hm-forest);
  display: block;
  margin-top: 2px;
}

.hm-trending-add-btn {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--hm-forest);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.2s;
}

.hm-trending-add-btn:hover {
  background: var(--hm-forest-dark);
  transform: scale(1.1);
}

.hm-trending-trust {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(74,53,37,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: rgba(74,53,37,0.75);
}

.hm-trending-trust svg { width: 1rem; height: 1rem; color: var(--hm-gold); }

/* ============================================================
   CATEGORY FILTER TABS
   ============================================================ */
#hm-category-tabs {
  padding: 2rem 0 1rem;
  background: var(--hm-cream);
}

.hm-category-tabs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hm-category-tabs-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  transition: all 0.25s;
  color: rgba(74,53,37,0.75);
  background: transparent;
}

.hm-tab-btn:hover {
  color: var(--hm-chocolate);
  background: rgba(74,53,37,0.05);
}

.hm-tab-btn.is-active {
  background: var(--hm-chocolate);
  color: var(--hm-cream);
  border-color: var(--hm-chocolate);
}

.hm-tab-btn svg { width: 0.875rem; height: 0.875rem; }

.hm-product-count {
  font-size: 0.6875rem;
  font-family: var(--hm-font-mono);
  font-weight: 600;
  color: rgba(74,53,37,0.5);
}

/* ============================================================
   WOOCOMMERCE PRODUCT GRID
   ============================================================ */
#hm-products {
  padding: 1rem 0 3rem;
}

/* Override WooCommerce default grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

@media (min-width: 768px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Individual Product Card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid var(--hm-parchment);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(74,53,37,0.06);
  transition: all 0.3s;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  position: relative;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  box-shadow: 0 10px 32px rgba(74,53,37,0.14);
  transform: translateY(-2px);
  border-color: rgba(74,53,37,0.2);
}

/* Product image */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  text-decoration: none;
}

.woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--hm-parchment);
  transition: transform 0.4s;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.04);
}

/* Product info area */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hm-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  padding: 0.75rem 1rem 0.25rem;
  margin: 0;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 1rem;
  font-family: var(--hm-font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hm-forest);
}

.woocommerce ul.products li.product .price del {
  color: rgba(74,53,37,0.4);
  font-size: 0.75rem;
  text-decoration: line-through;
  margin-right: 0.25rem;
}

.woocommerce ul.products li.product .star-rating {
  display: flex;
  padding: 0.25rem 1rem 0;
}

/* WooCommerce Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block;
  margin: 0.75rem 1rem 1rem;
  padding: 0.5rem 1rem;
  background: var(--hm-forest) !important;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border-radius: 0.625rem;
  border: none;
  transition: background 0.25s;
  text-decoration: none;
  font-family: var(--hm-font-sans);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--hm-forest-dark) !important;
}

/* Sale / New badges */
.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--hm-gold);
  color: var(--hm-chocolate);
  font-family: var(--hm-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
  min-height: unset;
  min-width: unset;
  line-height: 1.4;
}

.hm-badge-new {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--hm-forest);
  color: #fff;
  font-family: var(--hm-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* WooCommerce Pagination */
.woocommerce nav.woocommerce-pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.375rem;
  border: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--hm-parchment);
  color: var(--hm-chocolate);
  transition: all 0.2s;
  text-decoration: none;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--hm-chocolate);
  color: var(--hm-cream);
  border-color: var(--hm-chocolate);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--hm-forest);
  color: #fff;
  border-color: var(--hm-forest);
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
#reviews-section {
  padding: 5rem 0;
  background: rgba(30,89,54,0.04);
  border-top: 1px solid rgba(74,53,37,0.1);
  border-bottom: 1px solid rgba(74,53,37,0.1);
}

.hm-reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

.hm-reviews-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(30,89,54,0.1);
  color: var(--hm-forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hm-reviews-eyebrow svg { width: 0.875rem; height: 0.875rem; }

.hm-reviews-title {
  font-family: var(--hm-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) { .hm-reviews-title { font-size: 2.5rem; } }

.hm-reviews-sub {
  font-size: 0.875rem;
  color: rgba(74,53,37,0.75);
  margin-top: 0.375rem;
}

.hm-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hm-reviews-grid { grid-template-columns: 1fr 2fr; }
}

/* Rating Stats Card */
.hm-ratings-card {
  background: #fff;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(74,53,37,0.1);
  box-shadow: 0 1px 4px rgba(74,53,37,0.06);
}

.hm-rating-big {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74,53,37,0.1);
  margin-bottom: 1.5rem;
}

.hm-rating-number {
  font-family: var(--hm-font-mono);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  line-height: 1;
}

.hm-rating-stars-big {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 0.5rem 0;
}

.hm-rating-stars-big svg { width: 1.25rem; height: 1.25rem; fill: var(--hm-gold); color: var(--hm-gold); }

.hm-rating-label {
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(74,53,37,0.6);
}

.hm-rating-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hm-rating-bar-row:last-child { margin-bottom: 0; }

.hm-rating-bar-label {
  font-family: var(--hm-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  width: 3.5rem;
  color: var(--hm-chocolate);
}

.hm-rating-bar-track {
  flex: 1;
  height: 10px;
  background: #f3f3f3;
  border-radius: 9999px;
  overflow: hidden;
}

.hm-rating-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--hm-forest);
}

.hm-rating-bar-pct {
  font-family: var(--hm-font-mono);
  font-size: 0.6875rem;
  color: rgba(74,53,37,0.5);
  width: 2rem;
  text-align: right;
}

/* Review Cards */
.hm-review-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hm-review-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(74,53,37,0.08);
  box-shadow: 0 1px 4px rgba(74,53,37,0.04);
}

.hm-review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.hm-reviewer-info { display: flex; align-items: center; gap: 0.75rem; }

.hm-reviewer-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hm-parchment);
  flex-shrink: 0;
}

.hm-reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hm-reviewer-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hm-chocolate);
}

.hm-review-date {
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  color: rgba(74,53,37,0.5);
  margin-top: 1px;
}

.hm-review-stars { display: flex; gap: 2px; }
.hm-review-stars svg { width: 0.875rem; height: 0.875rem; fill: var(--hm-gold); color: var(--hm-gold); }

.hm-review-text {
  font-size: 0.875rem;
  color: rgba(74,53,37,0.85);
  line-height: 1.65;
}

.hm-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--hm-forest);
  background: rgba(30,89,54,0.08);
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  margin-top: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hm-verified-badge svg { width: 0.625rem; height: 0.625rem; }

/* Review Submit Form */
.hm-review-submit-wrap {
  margin-top: 1.25rem;
  border: 1.5px dashed rgba(74,53,37,0.2);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.hm-review-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--hm-forest);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.25s;
}

.hm-review-submit-btn:hover { background: var(--hm-forest-dark); }
.hm-review-submit-btn svg { width: 1rem; height: 1rem; }

/* WooCommerce reviews form override */
#reviews #reply-title { display: none; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
#hm-site-footer {
  background: var(--hm-chocolate);
  color: var(--hm-cream);
  font-family: var(--hm-font-sans);
  border-top: 1px solid rgba(74,53,37,0.15);
}

/* Footer features strip */
.hm-footer-features {
  border-bottom: 1px solid rgba(253,251,247,0.1);
  padding: 2.5rem 0;
  background: rgba(0,0,0,0.1);
}

.hm-footer-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hm-footer-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hm-footer-features-grid { grid-template-columns: repeat(4, 1fr); }
}

.hm-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hm-feature-icon {
  padding: 0.75rem;
  background: rgba(30,89,54,0.2);
  border-radius: 0.75rem;
  border: 1px solid rgba(30,89,54,0.25);
  color: var(--hm-gold);
  flex-shrink: 0;
}

.hm-feature-icon svg { width: 1.25rem; height: 1.25rem; }

.hm-feature-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hm-cream);
}

.hm-feature-desc {
  font-size: 0.6875rem;
  color: rgba(253,251,247,0.7);
  margin-top: 0.25rem;
  line-height: 1.6;
}

/* Footer Main Content */
.hm-footer-main {
  padding: 4rem 0;
}

.hm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .hm-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hm-footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Footer Logo column */
.hm-footer-logo-col { display: flex; flex-direction: column; gap: 1rem; }

.hm-footer-about {
  font-size: 0.6875rem;
  color: rgba(253,251,247,0.75);
  line-height: 1.75;
  font-weight: 300;
  margin-top: 0.5rem;
}

.hm-footer-license {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--hm-font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--hm-gold);
  background: rgba(253,251,247,0.1);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-top: 0.25rem;
}

/* Footer Nav Columns */
.hm-footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hm-gold);
  margin-bottom: 1rem;
}

.hm-footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
  margin: 0; padding: 0;
}

.hm-footer-nav-list li a {
  font-size: 0.75rem;
  color: rgba(253,251,247,0.85);
  font-weight: 300;
  transition: color 0.2s;
}

.hm-footer-nav-list li a:hover { color: var(--hm-gold); }

.hm-footer-nav-list li span {
  font-size: 0.75rem;
  color: rgba(155,155,155,0.5);
  cursor: not-allowed;
}

/* Newsletter */
.hm-newsletter-desc {
  font-size: 0.75rem;
  color: rgba(253,251,247,0.75);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hm-newsletter-form {
  display: flex;
  gap: 0.625rem;
}

.hm-newsletter-input {
  flex: 1;
  background: rgba(253,251,247,0.1);
  border: 1px solid rgba(253,251,247,0.15);
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  color: var(--hm-cream);
  outline: none;
  font-family: var(--hm-font-sans);
  transition: all 0.2s;
}

.hm-newsletter-input:focus {
  background: rgba(253,251,247,0.15);
  border-color: rgba(253,251,247,0.3);
}

.hm-newsletter-input::placeholder { color: rgba(253,251,247,0.45); }

.hm-newsletter-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  background: var(--hm-forest);
  color: #fff;
  border-radius: 0.625rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hm-newsletter-submit:hover { background: var(--hm-forest-dark); }
.hm-newsletter-submit svg { width: 1rem; height: 1rem; }

/* Footer Contact */
.hm-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(253,251,247,0.12);
}

.hm-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: rgba(253,251,247,0.8);
}

.hm-footer-contact-item svg { width: 0.875rem; height: 0.875rem; color: var(--hm-gold); flex-shrink: 0; }
.hm-footer-contact-item a:hover { text-decoration: underline; }

/* Footer Bottom Bar */
.hm-footer-bottom {
  border-top: 1px solid rgba(253,251,247,0.12);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6875rem;
  color: rgba(253,251,247,0.6);
}

@media (min-width: 640px) {
  .hm-footer-bottom { flex-direction: row; }
}

.hm-footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hm-footer-bottom-links span { cursor: pointer; transition: color 0.2s; }
.hm-footer-bottom-links span:hover { color: var(--hm-gold); }

/* ============================================================
   WOOCOMMERCE GLOBAL OVERRIDES
   ============================================================ */
/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--hm-forest) !important;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--hm-forest) !important;
  color: #fff !important;
  border-radius: 0.625rem !important;
  font-family: var(--hm-font-sans) !important;
  font-weight: 600 !important;
  transition: background 0.25s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--hm-forest-dark) !important;
}

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.75rem;
  color: rgba(74,53,37,0.5);
  padding: 0.75rem 0;
}

.woocommerce .woocommerce-breadcrumb a { color: var(--hm-forest); }

/* Empty state */
.woocommerce-info {
  background: rgba(30,89,54,0.06);
  border-color: var(--hm-forest);
  color: var(--hm-chocolate);
  border-radius: 0.75rem;
  font-size: 0.875rem;
}

/* ============================================================
   UTILITY / LAYOUT HELPERS
   ============================================================ */
.hm-section-title {
  font-family: var(--hm-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hm-chocolate);
  letter-spacing: -0.01em;
}

.hm-divider {
  border: none;
  border-top: 1px solid var(--hm-parchment);
  margin: 2rem 0;
}

/* No product placeholder */
.hm-no-products {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(74,53,37,0.5);
}

.hm-no-products svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; }
.hm-no-products p { font-size: 0.9375rem; }

/* Screen reader text */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
