/*
Theme Name: Darion
Theme URI: https://darion.com
Author: Ubeenah Khanum
Author URI: https://darion.com
Description: Modern Interior Furniture WooCommerce Theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: darion
Tags: woocommerce, furniture, interior, modern, minimal
*/

/* ============================================
   DARION THEME — MAIN STYLESHEET
   Modern Interior Living
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --white: #ffffff;
  --off-white: #f8f6f3;
  --cream: #f2ede6;
  --light-gray: #e8e4de;
  --mid-gray: #999490;
  --dark-gray: #4a4644;
  --near-black: #1c1a18;
  --black: #0d0c0b;
  --accent: #c9a96e;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --transition: all 0.3s ease;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--near-black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { font-size: 0.9rem; line-height: 1.75; color: var(--dark-gray); }

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--near-black);
  text-transform: uppercase;
}
.main-nav ul {
  display: flex;
  gap: 2.5rem;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-gray);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--near-black);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--near-black); }
.main-nav a:hover::after { width: 100%; }
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.header-icons a {
  font-size: 0.9rem;
  color: var(--dark-gray);
}
.header-icons a:hover { color: var(--near-black); }
.cart-count {
  background: var(--near-black);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  vertical-align: top;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  width: 24px;
  height: 24px;
}
.hamburger span {
  width: 22px; height: 1.5px;
  background: var(--near-black);
  display: block;
  transition: var(--transition);
}

/* ── HERO ── */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 64px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  width: 100%;
  padding: 0 2rem;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
  line-height: 1.15;
}
.hero-btn {
  display: inline-block;
  background: var(--white);
  color: var(--near-black);
  padding: 0.85rem 2.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
}
.hero-btn:hover {
  background: var(--near-black);
  color: var(--white);
}

/* ── FEATURES BAR ── */
.features-bar {
  background: var(--near-black);
  padding: 1.2rem 0;
}
.features-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--white);
  text-align: center;
  padding: .4rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,.15);
  width: 100%;
}
.feature-item:last-child { border-right: none; }
.feature-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.feature-item span {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── CATEGORY GRID ── */
.categories-section { padding: 4rem 0; }
.categories-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  cursor: pointer;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.05); }
.category-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
}
.category-info h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.category-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ── PROMO BANNER ── */
.promo-section {
  padding: 4rem 0;
  background: var(--off-white);
}
.promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.promo-text .section-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 1rem;
}
.promo-text h2 {
  margin-bottom: 1.2rem;
  line-height: 1.15;
}
.promo-text p { margin-bottom: 2rem; max-width: 420px; }
.btn-dark {
  display: inline-block;
  background: var(--near-black);
  color: var(--white);
  padding: 0.85rem 2.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-dark:hover {
  background: var(--dark-gray);
}
.promo-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.promo-image:hover img { transform: scale(1.03); }

/* ── BESTSELLERS ── */
.bestsellers-section { padding: 5rem 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: 0.4rem; }
.section-header p { font-size: 0.82rem; color: var(--mid-gray); }
.view-all {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--near-black);
  padding-bottom: 2px;
  white-space: nowrap;
}
.view-all:hover { color: var(--mid-gray); border-color: var(--mid-gray); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  position: relative;
  cursor: pointer;
}
.product-image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  margin-bottom: 1rem;
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-new { background: var(--near-black); color: var(--white); }
.badge-sale { background: #c0392b; color: var(--white); }
.product-actions {
  position: absolute;
  bottom: 0.8rem; right: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-actions button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.product-actions button:hover {
  background: var(--near-black);
  color: var(--white);
}
.product-actions button svg { width: 16px; height: 16px; }
.product-info { padding: 0 0.2rem; }
.product-info h3 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  color: var(--near-black);
}
.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.price-current { font-weight: 500; color: var(--near-black); }
.price-old {
  text-decoration: line-through;
  color: var(--mid-gray);
  font-size: 0.8rem;
}
.product-colors {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}
.color-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}
.color-dot.active { border-color: var(--near-black); }

/* ── TESTIMONIAL ── */
.testimonial-section {
  padding: 5rem 0;
  background: var(--off-white);
}
.testimonial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.testimonial-content { padding-right: 2rem; }
.quote-icon {
  font-size: 4rem;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--near-black);
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
}
.testimonial-author span {
  color: var(--mid-gray);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
}
.testimonial-image {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}
.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── INSTAGRAM ── */
.instagram-section { padding: 5rem 0 2rem; }
.instagram-section .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
.insta-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-item:hover img { transform: scale(1.08); }
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.insta-item:hover .insta-overlay { opacity: 1; }
.insta-overlay svg { width: 28px; height: 28px; color: var(--white); }

/* ── NEWSLETTER ── */
.newsletter-section {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.newsletter-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.newsletter-section p {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 1.8rem;
}
.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid var(--light-gray);
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--near-black);
}
.newsletter-form input::placeholder { color: var(--mid-gray); }
.newsletter-form button {
  padding: 0.85rem 1.8rem;
  background: var(--near-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--dark-gray); }

/* ── FOOTER ── */
#site-footer {
  background: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--light-gray);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
/* Single column on ANY screen under 900px — no exceptions */
@media(max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .footer-col ul {
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem !important;
  }
}
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-address {
  font-size: 0.8rem;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
}
.footer-socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--dark-gray);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--near-black);
  color: var(--white);
  border-color: var(--near-black);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: var(--near-black);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--mid-gray);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--near-black); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--mid-gray);
}
.footer-payments {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.payment-icon {
  width: 38px; height: 24px;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--dark-gray);
  background: var(--off-white);
}

/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--near-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  transition: var(--transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--dark-gray); }
.woocommerce span.price,
.woocommerce .price { color: var(--near-black); font-family: var(--font-body); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.woocommerce-breadcrumb { font-size: 0.78rem; color: var(--mid-gray); }

/* SHOP PAGE — single authoritative rule, no overrides needed */
.woocommerce ul.products,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}
.woocommerce ul.products li.product { margin: 0 !important; }
.woocommerce ul.products li.product a img {
  width: 100% !important;
  aspect-ratio: 4/5 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body) !important;
  font-size: .9rem !important;
  font-weight: 400 !important;
  padding: .8rem 0 .3rem !important;
}
.woocommerce ul.products li.product .price { font-size: .9rem !important; }
.woocommerce ul.products li.product .button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-top: .6rem !important;
  background: var(--near-black) !important;
  color: var(--white) !important;
  font-size: .72rem !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: .65rem 1rem !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--dark-gray) !important; }

/* SINGLE PRODUCT */
.woocommerce div.product .woocommerce-product-gallery { border-radius: var(--radius); }
.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}
.woocommerce div.product p.price { font-size: 1.3rem; }
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--near-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
}

/* CART & CHECKOUT */
.woocommerce-cart table.cart,
.woocommerce-checkout form.checkout { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
#add_payment_method .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .cart-collaterals .cart_totals {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-form-wrap {
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
}
.search-form-wrap input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--near-black);
  outline: none;
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 1rem 0;
  background: transparent;
  color: var(--near-black);
}
.search-form-wrap input::placeholder { color: var(--light-gray); }
.search-close {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 1.5rem;
  color: var(--dark-gray);
  cursor: pointer;
  transition: var(--transition);
}
.search-close:hover { color: var(--near-black); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  padding: 5rem 2rem 2rem;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  transition: right 0.4s ease;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; }
.mobile-menu ul li a {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--light-gray);
  color: var(--near-black);
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .categories-scroll { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .instagram-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 2rem; }
  .promo-inner { grid-template-columns: 1fr; gap: 2rem; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .testimonial-content { padding-right: 0; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .footer-col h4 { margin-bottom: .8rem; }
  .footer-col ul { display: flex !important; flex-direction: column !important; gap: .5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .woocommerce ul.products,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .woocommerce ul.products li.product a img {
    aspect-ratio: 4/5 !important;
    min-height: 0 !important;
  }
  .shop-layout { display: block !important; }
  .shop-sidebar { display: none !important; }
  .woocommerce-result-count { font-size: .8rem; }
  .woocommerce-ordering select { font-size: .8rem; padding: .4rem .6rem; max-width: 160px; }
  .features-inner { justify-content: center; }
}
@media (max-width: 480px) {
  .categories-scroll { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── HERO PLACEHOLDER (when no image set) ── */
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e2d9 0%, #d4ccc0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section { background: var(--cream); }

/* ── CATEGORY CARD FIX (ensure height even without image) ── */
.category-card { min-height: 320px; }
.category-card > div:first-child { width: 100%; height: 100%; min-height: 320px; }

/* ── PROMO IMAGE FIX ── */
.promo-image { min-height: 300px; }

/* ── PRODUCT GRID MIN HEIGHT ── */
/* min-height removed — aspect-ratio controls height */

/* ════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   Complete rewrite of all breakpoints
════════════════════════════════════════ */

/* ── GLOBAL MOBILE BASE ── */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .categories-scroll { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .promo-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .testimonial-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .instagram-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {

  /* ── TYPOGRAPHY SCALES DOWN ── */
  h1 { font-size: clamp(1.6rem, 5vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.4rem, 4vw, 2rem) !important; }
  h3 { font-size: clamp(1rem, 3vw, 1.3rem) !important; }
  p  { font-size: .88rem !important; }

  /* ── HEADER ── */
  .header-inner { padding: 0 1rem; height: 58px; }
  .site-logo { font-size: 1.1rem; letter-spacing:.1em; max-width:60vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .main-nav { display: none !important; }
  .header-icons { gap: 1rem; align-items: center; }
  .header-icons a { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
  .header-icons a svg { width: 20px; height: 20px; }
  .hamburger { display: flex !important; width: 24px; height: 24px; }
  .hamburger span { width: 20px; height: 1.5px; }
  /* Mobile: hide account, wishlist, cart — show only search + hamburger */
  .header-icons a:not(#searchToggle) { display: none !important; }

  /* ── MOBILE MENU ── */
  .mobile-menu {
    width: 100% !important;
    max-width: 320px;
    padding: 4.5rem 1.5rem 2rem;
  }
  .mobile-menu ul { padding: 0; }
  .mobile-menu ul li a {
    font-size: .85rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
  }
  .mobile-menu-close {
    top: 1.2rem;
    right: 1.2rem;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
  }

  /* ── HERO ── */
  .hero-section { height: 65vh; min-height: 380px; margin-top: 58px; }
  .hero-content { padding: 0 1.2rem; }
  .hero-content h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    margin-bottom: 1.5rem;
  }
  .hero-btn {
    padding: .75rem 1.8rem;
    font-size: .75rem;
  }

  /* ── FEATURES BAR ── */
  .features-bar { padding: 1rem 0; }
  .features-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    row-gap: .8rem;
    padding: 0 1rem;
    justify-items: center;
  }
  .feature-item {
    justify-content: center;
    border-right: none;
    border-bottom: none;
    padding: .5rem 1rem;
    gap: .5rem;
    width: 100%;
  }
  .feature-item svg { width: 18px; height: 18px; }
  .feature-item span { font-size: .72rem; white-space: normal; text-align:center; }

  /* ── CATEGORIES ── */
  .categories-section { padding: 2rem 0; }
  .categories-scroll {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: .6rem;
  }
  .category-card { aspect-ratio: 2/3; min-height: 200px; }
  .category-info h3 { font-size: .95rem; }
  .category-info span { font-size: .7rem; }

  /* ── PROMO SECTION ── */
  .promo-section { padding: 2.5rem 0; }
  .promo-inner {
    grid-template-columns: 1fr !important;
    gap: 1.8rem;
  }
  .promo-image { order: -1; aspect-ratio: 4/3; }
  .promo-text { padding: 0; }
  .promo-text h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  .promo-text p { font-size: .88rem !important; }
  .btn-dark { padding: .75rem 1.8rem; font-size: .75rem; }

  /* ── BESTSELLERS ── */
  .bestsellers-section { padding: 2.5rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: .8rem; margin-bottom: 1.5rem; }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  .product-image-wrap { aspect-ratio: 4/5; }
  .product-image-wrap img { object-fit: cover; width: 100%; height: 100%; }
  .product-info h3 { font-size: .82rem; }
  .product-price { font-size: .82rem; }
  /* Always show product actions on mobile (no hover) */
  .product-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    flex-direction: row;
    bottom: .5rem;
    right: .5rem;
    gap: .3rem;
  }
  .product-actions button { width: 30px; height: 30px; }
  .product-actions button svg { width: 13px; height: 13px; }

  /* ── TESTIMONIAL ── */
  .testimonial-section { padding: 2.5rem 0; }
  .testimonial-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .testimonial-image { order: -1; aspect-ratio: 4/3; }
  .testimonial-content { padding-right: 0 !important; }
  .testimonial-text { font-size: 1rem !important; }
  .quote-icon { font-size: 3rem; }

  /* ── INSTAGRAM ── */
  .instagram-section { padding: 2.5rem 0 1rem; }
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: .4rem;
  }

  /* ── NEWSLETTER ── */
  .newsletter-section { padding: 2.5rem 1rem; }
  .newsletter-section h3 { font-size: 1.1rem; }
  .newsletter-form {
    flex-direction: column !important;
    border: none;
    gap: .6rem;
  }
  .newsletter-form input {
    border: 1px solid var(--light-gray);
    width: 100%;
    padding: .8rem 1rem;
  }
  .newsletter-form button {
    width: 100%;
    padding: .85rem;
  }

  /* ── FOOTER ── */
  #site-footer { padding: 2.5rem 0 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .footer-col ul { display: flex !important; flex-direction: column !important; gap: .5rem; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem;
    text-align: center;
  }
  .footer-payments { flex-wrap: wrap; justify-content: center; }
}

/* ── SMALL PHONES ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .header-inner { padding: 0 .8rem; }
  .header-icons { gap: .6rem; }

  /* Hero full height on small phones */
  .hero-section { height: 75vh; }
  .hero-content h1 { font-size: clamp(1.4rem, 7vw, 1.9rem) !important; }

  /* Features bar stays 2-column even on small phones */
  .features-inner { grid-template-columns: 1fr 1fr; column-gap: 2rem; row-gap: .6rem; }

  /* Products 2 col tight */
  .products-grid { gap: .7rem; }
  .product-image-wrap { aspect-ratio: 4/5; }
  .product-info h3 { font-size: .78rem; }

  /* Instagram 2 col */
  .instagram-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Categories 2 col */
  .categories-scroll { gap: .5rem; }
}



/* ════════════════════════════════════════
   SINGLE PRODUCT MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .woocommerce div.product {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .woocommerce div.product .product_title { font-size: 1.6rem !important; }
  .woocommerce div.product p.price { font-size: 1.1rem !important; }
  .woocommerce div.product form.cart { margin-bottom: 1.5rem; }
  .woocommerce div.product form.cart .quantity { margin-right: .8rem; }
}

/* ════════════════════════════════════════
   CART & CHECKOUT MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .woocommerce-cart table.cart,
  .woocommerce-checkout form.checkout { padding: 0 1rem; }
  .woocommerce table.shop_table { font-size: .82rem; }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td { padding: .6rem .4rem; }
  /* Stack cart layout */
  .woocommerce-cart .cart-collaterals { width: 100% !important; float: none !important; }
  /* Checkout two column stacks */
  .woocommerce-checkout #customer_details {
    display: block !important;
  }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.5rem;
  }
  /* Form fields full width */
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
  }
}

/* ════════════════════════════════════════
   MY ACCOUNT MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin-bottom: 2rem;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: inline-block;
    padding: .4rem .9rem;
    background: var(--off-white);
    border: 1px solid var(--light-gray);
    font-size: .78rem;
    border-radius: 2px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--near-black);
    color: var(--white);
    border-color: var(--near-black);
  }
}

/* ════════════════════════════════════════
   CONTACT PAGE MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .contact-form-inner {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════
   SEARCH RESULTS MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════
   BLOG MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ════════════════════════════════════════
   GENERAL UTILITY FIXES
════════════════════════════════════════ */
/* Prevent horizontal scroll on all pages */
html, body { overflow-x: hidden; max-width: 100%; }
* { box-sizing: border-box; }

/* Images always scale */
img { max-width: 100%; height: auto; }

/* Tables scroll horizontally on mobile */
@media (max-width: 768px) {
  .woocommerce table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
  a, button { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-link, .footer-links a { min-height: auto; display: inline; }
  .category-info h3, .product-info h3 { min-height: auto; display: block; }
}

/* Fix WooCommerce buttons on mobile */
@media (max-width: 768px) {
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: .9rem 1rem;
    font-size: .78rem;
  }
  .single_add_to_cart_button { width: 100% !important; }
}



/* ── Page top offset (matches fixed header height) ── */
.page-top { margin-top: 64px; }
@media (max-width: 768px) { .page-top { margin-top: 58px; } }

/* ── Shared page hero (Wishlist, Cart, Checkout, Account) ── */
.page-hero {
  background: var(--cream);
  padding: 5rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
}
@media (max-width: 768px) {
  .page-hero { padding: 3rem 1.2rem; }
}
