/*
Theme Name: The Knotted Grace
Theme URI: https://theknottedgrace.com
Author: Custom
Description: Elegant jewellery catalogue theme with WhatsApp ordering
Version: 1.0
*/

/* =============================================
   TOKENS
   ============================================= */
:root {
  --blush:       #F2A7B0;
  --rose:        #D96B7A;
  --deep-rose:   #B84F5E;
  --cream:       #FDF6F0;
  --warm-white:  #FFFAF7;
  --charcoal:    #2C2C2C;
  --muted:       #7A6A6A;
  --gold:        #C9963A;
  --gold-light:  #E8C882;
  --border:      #F0DDD8;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-card: 0 4px 24px rgba(180,90,100,0.10);
  --shadow-hover:0 8px 36px rgba(180,90,100,0.18);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

/* =============================================
   HEADER & NAV
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,250,247,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(180,90,100,0.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Logo */
.site-logo a {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--deep-rose);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.site-logo span {
  color: var(--gold);
}

/* Nav links */
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--rose); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Social icons in header */
.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--rose);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.header-social a:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--warm-white);
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
  transition: color var(--transition);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--rose); }

/* =============================================
   HERO BANNER (Homepage)
   ============================================= */
.hero-banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #fceae4 !important;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('<?php echo get_template_directory_uri(); ?>/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 80px 20px 80px 60px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-content h1 {
  margin-bottom: 20px;
  color: var(--deep-rose);
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(217,107,122,0.35);
}
.hero-cta:hover {
  background: var(--deep-rose);
  transform: translateY(-2px);
}
.hero-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42%;
  flex-shrink: 0;
   margin-left: auto;
}
.hero-deco-circle {
  width: 420px; height: 420px;
  
  background: radial-gradient(circle, rgba(242,167,176,0.25) 0%, rgba(242,167,176,0.04) 70%);
  border: 2px solid rgba(242,167,176,0.3);
  position: relative;
}
.hero-deco-circle::before {
  content: '✦';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 5rem;
  color: rgba(201,150,58,0.15);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-header h2 { color: var(--deep-rose); margin-bottom: 12px; }
.section-header p  { color: var(--muted); max-width: 500px; margin: 0 auto; }

.divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px auto 0;
  width: 160px;
}
.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}
.divider-line span { color: var(--gold); font-size: 0.75rem; }

/* =============================================
   CATEGORY SECTIONS (Homepage)
   ============================================= */
.home-categories { padding: 72px 0; }

.category-block { margin-bottom: 72px; }
.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.category-block-header h3 {
  color: var(--deep-rose);
  font-size: 1.5rem;
}
.view-more-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  white-space: nowrap;
}
.view-more-link:hover { color: var(--deep-rose); }
.view-more-link svg { transition: transform var(--transition); }
.view-more-link:hover svg { transform: translateX(4px); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card-img {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--cream);
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-card-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-rose);
  margin-bottom: 14px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}
.btn-whatsapp svg { flex-shrink: 0; }

/* =============================================
   SEARCH & FILTER BAR (Shop/Catalogue page)
   ============================================= */
.shop-header {
   background: var(--cream);
  background-image: url('https://theknottedgrace.com/wp-content/uploads/2026/06/4243433423.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
}
.shop-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253,246,240,0.65);
}

.shop-header .container {
  position: relative;
  z-index: 1;
}
.shop-header h1 { color: var(--deep-rose); margin-bottom: 8px; }
.shop-header p  { color: var(--muted); }

.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 76px;
  z-index: 90;
  box-shadow: 0 2px 12px rgba(180,90,100,0.07);
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-box input {
  width: 100%;
   padding: 7px 14px 7px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--warm-white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.search-box input:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(242,167,176,0.18);
}
.search-box input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.chip {
   padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.chip:hover { border-color: var(--blush); color: var(--rose); }
.chip.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.sort-select {
   padding: 6px 12px;
  font-size: 0.78rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  
  color: var(--charcoal);
  background: var(--warm-white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--blush); }

.results-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Shop page product grid */
.shop-grid-section { padding: 48px 0 72px; }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 1rem;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  background: linear-gradient(135deg, #FDF0F2 0%, #FFF5EC 100%);
  padding: 80px 0;
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-hero-img {
  position: relative;
}
.about-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-hover);
}
.about-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-photo-deco {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blush);
  opacity: 0.3;
  z-index: -1;
}
.about-photo-deco2 {
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.25;
  z-index: -1;
}
.about-hero-text .section-eyebrow { margin-bottom: 10px; }
.about-hero-text h1 { color: var(--deep-rose); margin-bottom: 20px; }
.about-hero-text p  { color: var(--muted); margin-bottom: 18px; font-size: 1rem; }

.about-values { padding: 72px 0; background: #fff; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}
.value-card h4 {
  color: var(--deep-rose);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.value-card p { color: var(--muted); font-size: 0.88rem; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { padding: 80px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { color: var(--deep-rose); margin-bottom: 16px; }
.contact-info p  { color: var(--muted); margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item-text strong { display: block; color: var(--charcoal); margin-bottom: 2px; font-size: 0.9rem; }
.contact-item-text span  { color: var(--muted); font-size: 0.88rem; }

.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--rose);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.contact-social a:hover { background: var(--rose); color: #fff; }

.contact-form-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.contact-form-box h3 { color: var(--deep-rose); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(242,167,176,0.18);
}
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--deep-rose); transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .site-logo-footer {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blush);
  margin-bottom: 14px;
  display: block;
}
.footer-brand .site-logo-footer span { color: var(--gold-light); }
.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--rose); color: #fff; }

.footer-links h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--blush); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 13px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
}

/* =============================================
   LEGAL PAGES (Privacy, T&C)
   ============================================= */
.legal-section {
  padding: 64px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-section h1 { color: var(--deep-rose); margin-bottom: 8px; }
.legal-date { color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-section h2 { color: var(--charcoal); margin: 36px 0 12px; font-size: 1.2rem; }
.legal-section p, .legal-section li { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; list-style: disc; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 968px) {
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-hero-img { max-width: 380px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero-banner {
    flex-direction: column;
  }
  .hero-content {
    padding: 40px 20px 20px;
    max-width: 100%;
    z-index: 1;
  }
  .hero-deco {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px 40px;
  }
  .hero-deco img {
    width: 280px;
    height: 280px;
  }
  .hero-content { padding: 60px 20px; }
}

@media (max-width: 768px) {
  .main-nav, .header-social { display: none; }
  .hamburger { display: flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .filter-inner { flex-direction: column; align-items: stretch; }
  .filter-chips { justify-content: flex-start; }
  .contact-form-box { padding: 28px 20px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr);
    gap: 10px; }
  .hero-content h1 { font-size: 1.9rem; }
  .product-card-body {
    padding: 10px 10px 12px;
  }

  .product-card-name {
    font-size: 0.82rem;
    margin-bottom: 5px;
  }

  .product-card-desc {
    font-size: 0.75rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
  }

  .product-card-price {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

 .btn-whatsapp {
    font-size: 0.68rem;
    padding: 7px 6px;
    gap: 4px;
    white-space: nowrap;
  }

  .btn-whatsapp svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    letter-spacing: 0.03em;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}
.product-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:14px;
}

/* VIEW DETAILS BUTTON */

.btn-details{
    display:block;
    text-align:center;
    text-decoration:none;
    padding:13px 16px;
    border-radius:12px;
    background:linear-gradient(135deg, #e8b8c4, #d97a92) !important;
    color:#ffffff !important;
    font-weight:600;
    font-size:14px;
    letter-spacing:.3px;
    transition:.3s ease;
    box-shadow:0 4px 10px rgba(217,122,146,.18) !important;
}

.btn-details:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 14px rgba(217,122,146,.28);
}

/* WHATSAPP */

.btn-whatsapp{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#25D366 !important;
    color:#fff !important;
    padding:13px 16px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

.btn-whatsapp:hover{
    transform:translateY(-2px);
    background:#20ba59 !important;
}
/* ============================================
   MOBILE FILTER - ULTRA COMPACT (FINAL)
   ============================================ */

@media (max-width: 768px) {

  /* ----- Filter Bar ----- */
  .filter-bar {
    position: sticky !important;
    top: 85px !important;  /* Header ke neeche se start */
    z-index: 99 !important;
    background: #fff !important;
    padding: 4px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    min-height: auto !important;
    border-bottom: 1px solid #eee !important;
  }

  .filter-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    padding: 0 10px !important;
  }

  /* ----- Search Box ----- */
  .search-box {
    height: 28px !important;
    margin-bottom: 2px !important;
    width: 100% !important;
    order: 1 !important;
  }

  .search-box input {
    font-size: 16px !important;
    padding: 4px 10px 4px 30px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 20px !important;
    background: #f5f5f5 !important;
    border: 1px solid #eee !important;
  }

  .search-box .search-icon {
    width: 12px !important;
    height: 12px !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* ----- Category Chips - Horizontal Scroll ----- */
  .filter-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    order: 2 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .filter-chips::-webkit-scrollbar {
    display: none !important;
  }

  .chip {
    flex: 0 0 auto !important;
     padding: 5px 12px !important;
    font-size: 14px !important;
     min-height: 26px !important;
     height: 26px !important;
     /*line-height: 26px !important;*/
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    color: #333 !important;
    white-space: nowrap !important;
  }

  .chip.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
  }

  /* ----- Sort + Count - Ek line me (Wrapper se) ----- */
  .sort-select {
    height: 22px !important;
    font-size: 14px !important;
    padding: 0 18px 0 8px !important;
    min-height: 22px !important;
    border-radius: 20px !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 8px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    flex: 1 !important;
    max-width: 120px !important;
  }

  .results-count {
    font-size: 9px !important;
    color: #888 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  

  /* ----- Product Grid ----- */
  .shop-grid-section {
    padding-top: 4px !important;
  }

  .product-grid {
    gap: 10px !important;
    padding-top: 4px !important;
  }

  /* ----- Header Hidden ----- */
  .shop-header h1,
  .shop-header p,
  .section-eyebrow {
    /*display: none !important;*/
  }

  .shop-header {
    padding: 20px 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  .shop-header h1 {
    font-size: 1.4rem !important;
    margin-bottom: 4px !important;
  }

  .shop-header p {
    font-size: 0.78rem !important;
    margin-bottom: 0 !important;
  }

  .shop-header .section-eyebrow {
    font-size: 0.6rem !important;
    margin-bottom: 6px !important;
  }

  .shop-header {
    padding: 16px 0 !important;
  }
}

/* ============================================
   VERY SMALL SCREENS (under 400px)
   ============================================ */
@media (max-width: 400px) {

  .filter-bar {
    padding: 3px 0 !important;
    top: 85px !important;
  }

  .search-box {
    height: 26px !important;
  }

  .search-box input {
    font-size: 11px !important;
     height: 28px !important;
   min-height: 28px !important;
    padding: 4px 10px 4px 30px !important;
  }

  .search-box .search-icon {
    width: 10px !important;
    height: 10px !important;
    left: 8px !important;
  }

  .chip {
    font-size: 8px !important;
    padding: 2px 7px !important;
    min-height: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
  }

  .sort-select {
    height: 20px !important;
    font-size: 8px !important;
    padding: 0 14px 0 6px !important;
    max-width: 80px !important;
  }

  .results-count {
    font-size: 8px !important;
  }
}

/* Force Sort + Count in one line - Without PHP change */
@media (max-width: 768px) {
  .filter-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .search-box {
    order: 1 !important;
    flex: 0 0 100% !important;
  }

  .filter-chips {
    order: 2 !important;
    flex: 0 0 100% !important;
  }

  .sort-select {
    order: 3 !important;
    flex: 0 1 auto !important;
    margin-right: 4px !important;
  }

  .results-count {
    order: 3 !important;
    flex: 0 1 auto !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  #tkg-tagline {
    font-size: 0.65rem !important;
     min-width: 100px !important;
  }
}

/* Shop page only - compact cards */
  .shop-grid .product-card-body {
    padding: 8px 8px 10px;
  }

  .shop-grid .product-card-name {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .shop-grid .product-card-desc {
    font-size: 0.7rem;
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
  }

  .shop-grid .product-card-price {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .shop-grid .btn-whatsapp,
  .shop-grid .btn-details {
    font-size: 0.65rem;
    padding: 6px 8px;
    gap: 3px;
  }

  .shop-grid .btn-whatsapp svg,
  .shop-grid .btn-details svg {
    width: 11px;
    height: 11px;
  }
  
  
 .category-banner {
  height: 400px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .category-banner {
    height: 160px !important;
  }
}

.tkg-main-box{
    border-radius: 20%;
}
.tkg-main-box img{
    border: 5px solid #d96b7a;
    border-radius: 20%;
}