/*
Theme Name: Vriraj Spices
Theme URI: https://vrirajspices.com/
Author: Vriraj Spices
Description: A custom WooCommerce theme for Vriraj Spices, natural wellness products, pooja supplies, and wholesale services.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: vriraj-spices
*/

:root {
  --ink: #2b170b;
  --muted: #715f51;
  --cream: #fff8eb;
  --paper: #fffdf7;
  --line: #eadcc4;
  --saffron: #ec8f18;
  --turmeric: #f4c430;
  --chili: #b53b22;
  --leaf: #3f7e32;
  --white: #fff;
  --shadow: 0 20px 55px rgba(68, 38, 13, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { height: auto; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.topbar {
  align-items: center;
  background: rgba(255, 253, 247, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}
.brand { align-items: center; display: flex; gap: 12px; }
.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--chili), var(--saffron));
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}
.brand-mark img { height: 100%; object-fit: contain; width: 100%; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-wrap { align-items: center; display: flex; gap: 22px; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { font-size: 14px; font-weight: 800; }
.nav a:hover, .nav .current-menu-item > a { color: var(--chili); }
.header-tools { align-items: center; display: flex; gap: 12px; }
.cart-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
}
.cart-count {
  align-items: center;
  background: var(--chili);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}
.nav-toggle {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: none;
  font-size: 20px;
  height: 42px;
  width: 42px;
}

.hero { min-height: 720px; overflow: hidden; position: relative; }
.hero > img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero-shade {
  background: linear-gradient(90deg, rgba(43,23,11,.88), rgba(43,23,11,.5) 48%, rgba(43,23,11,.04));
  inset: 0;
  position: absolute;
}
.hero-copy { color: var(--white); max-width: 770px; padding: 108px clamp(22px, 6vw, 84px) 70px; position: relative; z-index: 1; }
.eyebrow { color: var(--saffron); font-size: 13px; font-weight: 900; letter-spacing: .12em; margin: 0 0 14px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 5.5vw, 74px); line-height: .98; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.05; margin-bottom: 18px; }
h3 { font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-copy p:not(.eyebrow) { color: #fff2d6; font-size: 19px; max-width: 690px; }
.hero-actions, .filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .filter, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}
.button.primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--turmeric); color: #271500; }
.button.ghost { border: 1px solid rgba(255,255,255,.62); color: var(--white); }
.button.secondary { background: var(--cream); color: var(--chili); }
.hero-tags { border-top: 1px solid rgba(255,255,255,.28); display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 20px; }
.hero-tags span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff9e9; font-size: 14px; font-weight: 800; padding: 8px 12px; }

.section, .site-main, .woocommerce-page .site-main { padding: 86px clamp(20px, 5vw, 72px); }
.intro { align-items: end; display: grid; gap: 46px; grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); }
.category-strip { background: var(--ink); display: grid; gap: 1px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.category-strip a { background: #3a2110; color: var(--white); min-height: 180px; padding: 30px; }
.category-strip strong, .category-strip span { display: block; }
.category-strip strong { font-size: 22px; margin-bottom: 16px; }
.category-strip span { color: #f4d9aa; line-height: 1.6; }
.section-heading { max-width: 890px; }
.filter { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.filter.active { background: var(--chili); border-color: var(--chili); color: var(--white); }

.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 34px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 18px; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.product-card:hover { border-color: rgba(181,59,34,.42); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card.hidden { display: none; }
.product-image { aspect-ratio: 1 / 1; background: var(--cream); border-radius: 8px; display: block; margin-bottom: 18px; overflow: hidden; }
.product-image img { height: 100%; object-fit: cover; width: 100%; }
.product-card h3 { font-size: 19px; }
.product-card p { font-size: 14px; margin-bottom: 14px; }
.product-card .price { color: var(--chili); display: block; font-size: 18px; font-weight: 900; margin: auto 0 14px; }
.product-card .button { background: var(--ink); color: var(--white); font-size: 14px; width: 100%; }
.badge { color: var(--leaf); display: block; font-size: 12px; font-weight: 900; letter-spacing: .08em; margin-bottom: 12px; text-transform: uppercase; }

.wellness { background: var(--cream); }
.need-grid, .proof-grid { display: grid; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 34px; }
.need-grid article, .proof-grid article { background: var(--white); border-radius: 8px; padding: 28px; }
.need-grid p { font-size: 15px; margin-bottom: 0; }
.note { background: #fff6d5; border-left: 4px solid var(--turmeric); border-radius: 8px; margin: 28px 0 0; padding: 18px 20px; }
.services { align-items: center; display: grid; gap: 52px; grid-template-columns: minmax(0,1fr) minmax(300px,460px); }
.service-list { background: var(--ink); border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 1px; overflow: hidden; }
.service-list span { background: #3a2110; color: var(--white); font-weight: 850; padding: 20px 24px; }
.proof-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 18px; margin-bottom: 12px; }
.proof-grid span { color: var(--muted); line-height: 1.6; }
.contact { align-items: center; background: linear-gradient(135deg,#341b0d,#8f351f); color: var(--white); display: grid; gap: 48px; grid-template-columns: minmax(0,1fr) minmax(280px,430px); }
.contact p { color: #ffe7be; }
.contact-panel { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; display: grid; gap: 12px; padding: 28px; }
.contact-panel p { margin: 0; }

.page-header { background: var(--cream); border-bottom: 1px solid var(--line); padding: 60px clamp(20px,5vw,72px); }
.page-header h1 { font-size: clamp(36px,5vw,62px); margin: 0; }
.content-wrap { margin: 0 auto; max-width: 1100px; }
.entry-content > * { max-width: 850px; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); margin-bottom: 28px; }
.woocommerce ul.products { display: grid; gap: 22px; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 30px 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { background: var(--white); border: 1px solid var(--line); border-radius: 8px; float: none; margin: 0; padding: 18px; width: auto; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; border-radius: 8px; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font-size: 18px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--chili); font-weight: 900; }
.woocommerce span.onsale { background: var(--leaf); min-height: 44px; min-width: 44px; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: 8px; }
.woocommerce div.product .product_title { font-size: clamp(34px,4vw,54px); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--saffron); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--saffron); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 8px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select, .search-field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 12px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { border-bottom: 1px solid var(--line); display: block; font-weight: 800; padding: 12px; }

.footer { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 28px clamp(20px,5vw,72px); }
.footer strong { color: var(--ink); }

@media (max-width: 1000px) {
  .nav-wrap { background: var(--paper); border-bottom: 1px solid var(--line); display: none; flex-direction: column; left: 0; padding: 20px; position: absolute; right: 0; top: 71px; }
  .nav-wrap.open { display: flex; }
  .nav { align-items: center; flex-direction: column; }
  .nav-toggle { display: inline-flex; }
  .intro, .services, .contact { grid-template-columns: 1fr; }
  .category-strip, .product-grid, .need-grid, .proof-grid, .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 18px; }
  .brand small, .cart-label { display: none; }
  .hero { min-height: 760px; }
  .hero-shade { background: rgba(43,23,11,.72); }
  .hero-copy { padding: 86px 20px 54px; }
  h1 { font-size: 40px; }
  .hero-copy p:not(.eyebrow) { font-size: 17px; }
  .section, .site-main, .woocommerce-page .site-main { padding: 62px 20px; }
  .category-strip, .product-grid, .need-grid, .proof-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
}
