/*
Theme Name: HomeDecorHub Child
Template: blocksy
Author: HDH - Rekha
Description: HomeDecorHub child theme - elegant home decor & toys store
Version: 1.0.0
*/

/* ============================================
   HDH - HomeDecorHub Custom Design
   Brand: HDH | Owner: Rekha
   Aesthetic: Warm Luxury + Earthy Elegance
   ============================================ */

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

:root {
  --hdh-cream:      #faf6f1;
  --hdh-warm:       #f5ede0;
  --hdh-terracotta: #c8745a;
  --hdh-deep:       #3b2a1a;
  --hdh-sage:       #8a9e7e;
  --hdh-gold:       #c9a96e;
  --hdh-light:      #fff9f4;
  --hdh-muted:      #9b8573;
  --hdh-toys:       #e07b54;
  --hdh-decor:      #8a9e7e;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Jost', sans-serif;
}

/* ── GLOBAL RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body) !important;
  background-color: var(--hdh-cream) !important;
  color: var(--hdh-deep) !important;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── LOADING SCREEN ── */
#hdh-loader {
  position: fixed;
  inset: 0;
  background: var(--hdh-deep);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#hdh-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hdh-loader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--hdh-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
  animation: fadeUp 0.8s ease forwards;
}
.hdh-loader-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--hdh-warm);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s 0.2s ease forwards;
  opacity: 0;
}
.hdh-loader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.hdh-loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hdh-terracotta), var(--hdh-gold));
  animation: loadBar 1.6s ease forwards;
  width: 0%;
}
@keyframes loadBar { to { width: 100%; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── ANNOUNCEMENT BAR ── */
.hdh-announce {
  background: var(--hdh-deep);
  color: var(--hdh-gold);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ── HEADER ── */
.ct-header, #header {
  background: var(--hdh-light) !important;
  border-bottom: 1px solid rgba(200,116,90,0.15) !important;
  box-shadow: 0 2px 20px rgba(59,42,26,0.06) !important;
}
.ct-header .site-title a,
.site-title a,
.ct-logo {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--hdh-deep) !important;
  text-decoration: none !important;
  letter-spacing: 0.05em;
}
.ct-header .site-title a span,
.ct-logo span { color: var(--hdh-terracotta) !important; }

/* Nav links */
.ct-header nav a,
.menu-item a,
#main-navigation a {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--hdh-deep) !important;
  transition: color 0.2s !important;
}
.ct-header nav a:hover,
.menu-item a:hover { color: var(--hdh-terracotta) !important; }

/* Cart / Icons */
.ct-header .header-cart-icon,
.ct-header .ct-cart-content { color: var(--hdh-deep) !important; }

/* ── HERO / BANNER ── */
.hero-section, .ct-hero, .elementor-section.hero,
.wp-block-cover.hero, .ct-image-holder {
  background: linear-gradient(135deg, var(--hdh-warm) 0%, var(--hdh-cream) 60%, rgba(138,158,126,0.15) 100%) !important;
}

/* ── SECTION TITLES ── */
h1, h2, h3, h4, h5, h6,
.entry-title, .ct-heading, .woocommerce-loop-product__title {
  font-family: var(--font-display) !important;
  color: var(--hdh-deep) !important;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem) !important; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem) !important; }

/* ── CATEGORY BADGES ── */
.hdh-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.hdh-cat-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59,42,26,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hdh-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(59,42,26,0.2);
}
.hdh-cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hdh-cat-card:hover img { transform: scale(1.06); }
.hdh-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(59,42,26,0.72) 0%, transparent 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.hdh-cat-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.hdh-cat-pill {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hdh-gold);
  font-family: var(--font-body);
}

/* ── PRODUCT CARDS ── */
.products .product,
ul.products li.product,
.wc-block-grid__product {
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(59,42,26,0.07) !important;
  border: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.products .product:hover,
ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 36px rgba(59,42,26,0.15) !important;
}
.woocommerce-loop-product__title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem 0.25rem !important;
}
.price, .woocommerce-Price-amount {
  color: var(--hdh-terracotta) !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* Add to cart button */
.button, .wc-block-components-button,
.wp-block-button__link,
button[type="submit"],
.add_to_cart_button,
.single_add_to_cart_button {
  background: var(--hdh-terracotta) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 10px 22px !important;
  transition: background 0.25s ease, transform 0.2s ease !important;
  cursor: pointer !important;
}
.button:hover, .add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background: var(--hdh-deep) !important;
  transform: translateY(-2px) !important;
}

/* ── SALE BADGE ── */
.onsale {
  background: var(--hdh-terracotta) !important;
  border-radius: 50px !important;
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}

/* ── SHOP PAGE ── */
.woocommerce-products-header__title,
h1.page-title {
  font-family: var(--font-display) !important;
  color: var(--hdh-deep) !important;
}
.woocommerce-breadcrumb {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  color: var(--hdh-muted) !important;
}
.woocommerce-breadcrumb a { color: var(--hdh-terracotta) !important; }

/* ── SIDEBAR WIDGETS ── */
.widget-title, .widgettitle {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  color: var(--hdh-deep) !important;
  border-bottom: 2px solid var(--hdh-gold) !important;
  padding-bottom: 0.5rem !important;
}

/* ── CATEGORY CHIPS (shop filter) ── */
.product-category a, .cat-item a {
  font-family: var(--font-body) !important;
  color: var(--hdh-deep) !important;
  transition: color 0.2s !important;
}
.product-category a:hover, .cat-item a:hover {
  color: var(--hdh-terracotta) !important;
}

/* ── FOOTER ── */
#footer, .ct-footer {
  background: var(--hdh-deep) !important;
  color: var(--hdh-warm) !important;
  padding-top: 3rem !important;
}
#footer a, .ct-footer a { color: var(--hdh-gold) !important; }
#footer a:hover, .ct-footer a:hover { color: var(--hdh-terracotta) !important; }
.ct-footer-widgets .widget-title,
#footer .widget-title {
  color: var(--hdh-gold) !important;
  border-bottom-color: rgba(201,169,110,0.3) !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}
.ct-footer-copyright, .site-info {
  background: rgba(0,0,0,0.25) !important;
  color: var(--hdh-muted) !important;
  font-size: 0.78rem !important;
  text-align: center !important;
  padding: 1rem !important;
}

/* ── CONTACT / INFO BLOCK ── */
.hdh-contact-strip {
  background: var(--hdh-warm);
  border-top: 1px solid rgba(200,116,90,0.2);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--hdh-muted);
}
.hdh-contact-strip a {
  color: var(--hdh-terracotta);
  text-decoration: none;
}
.hdh-contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hdh-contact-item svg {
  width: 15px; height: 15px;
  fill: var(--hdh-terracotta);
  flex-shrink: 0;
}

/* ── FORMS (checkout etc) ── */
input[type="text"], input[type="email"],
input[type="tel"], input[type="password"],
textarea, select {
  border: 1px solid rgba(59,42,26,0.18) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  background: #fff !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--hdh-terracotta) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(200,116,90,0.12) !important;
}

/* ── HOMEPAGE HERO CUSTOM ── */
.hdh-hero {
  background: linear-gradient(135deg, var(--hdh-warm) 0%, var(--hdh-cream) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hdh-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,116,90,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hdh-hero-badge {
  display: inline-block;
  background: var(--hdh-terracotta);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
}
.hdh-hero h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 6vw, 4rem) !important;
  color: var(--hdh-deep) !important;
  line-height: 1.15 !important;
  margin-bottom: 1rem !important;
}
.hdh-hero p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--hdh-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hdh-hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hdh-btn-primary {
  background: var(--hdh-terracotta) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 32px !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: background 0.25s, transform 0.2s !important;
  font-weight: 500 !important;
}
.hdh-btn-primary:hover {
  background: var(--hdh-deep) !important;
  transform: translateY(-2px) !important;
}
.hdh-btn-outline {
  background: transparent !important;
  color: var(--hdh-deep) !important;
  border: 2px solid var(--hdh-deep) !important;
  border-radius: 8px !important;
  padding: 11px 28px !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
  font-weight: 500 !important;
}
.hdh-btn-outline:hover {
  background: var(--hdh-deep) !important;
  color: #fff !important;
}

/* ── FEATURED STRIP ── */
.hdh-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--hdh-deep);
  color: var(--hdh-warm);
}
.hdh-feature-item {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hdh-feature-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.hdh-feature-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hdh-gold);
  margin-bottom: 0.2rem;
}
.hdh-feature-sub {
  font-size: 0.75rem;
  color: var(--hdh-muted);
  letter-spacing: 0.05em;
}

/* ── SECTION LABEL ── */
.hdh-section-label {
  text-align: center;
  margin: 3rem 0 1.5rem;
}
.hdh-section-label .eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hdh-terracotta);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}
.hdh-section-label h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  color: var(--hdh-deep) !important;
  margin: 0 !important;
}

/* ── WOO CATEGORY PAGE ── */
.term-description {
  font-family: var(--font-body);
  color: var(--hdh-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── DECOR CATEGORY COLOR ACCENT ── */
.cat-decor .hdh-cat-pill { color: var(--hdh-sage); }
.cat-toys  .hdh-cat-pill { color: var(--hdh-toys); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--hdh-cream); }
::-webkit-scrollbar-thumb {
  background: var(--hdh-terracotta);
  border-radius: 3px;
}

/* ── BACK TO TOP ── */
.hdh-top-btn {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--hdh-terracotta);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(200,116,90,0.4);
}
.hdh-top-btn.show { opacity: 1; transform: translateY(0); }
.hdh-top-btn:hover { background: var(--hdh-deep); }

/* ── MOBILE ── */
@media (max-width: 640px) {
  .hdh-cat-grid { grid-template-columns: 1fr; }
  .hdh-features  { grid-template-columns: 1fr 1fr; }
  .hdh-hero { padding: 3rem 1.2rem; }
}
