/* ==========================================================================
   Vedam Herbs — supplemental theme stylesheet
   Houses components the original "Pure Ayurveda" template never had.
   Loaded after style.css / responsive.css on every page. Uses the shared
   --ayur-* custom properties defined in style.css so both files stay
   in sync if the palette changes again.
   ========================================================================== */

/* ---------- Header search toggle ---------- */
.ayur-nav-search {
  position: relative;
}

.vedam-search-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 300px;
  max-width: 80vw;
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px -20px rgba(24, 53, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 40;
}

.vedam-search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vedam-search-panel input {
  width: 100%;
  border: none;
  background: none;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ayur-heading-color);
  outline: none;
}

/* ---------- Contact page reuse of footer's contact-box component ----------
   .ayur-contact-box p is styled for the dark footer background elsewhere;
   override its text color when reused inside a light ivory card. */
.ayur-contact-map .ayur-contact-box p {
  color: var(--ayur-para-color);
}

/* ---------- Trust badge strip ---------- */
.vedam-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  padding: 28px 20px;
  background-color: var(--ayur-card-bg);
  border-top: 1px solid var(--ayur-border-color);
  border-bottom: 1px solid var(--ayur-border-color);
}

.vedam-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.vedam-trust-item .vedam-trust-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ayur-gold-color);
  color: var(--ayur-primary-color);
  font-size: 20px;
}

.vedam-trust-item p {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ayur-heading-color);
  line-height: 1.3;
}

/* ---------- Section wrapper on alternating ivory backgrounds ---------- */
.vedam-section-alt {
  background-color: var(--ayur-ivory-alt);
}

/* ---------- Wellness goal tiles (Shop by Wellness Goal) ---------- */
.vedam-goal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .vedam-goal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
  .vedam-goal-grid { grid-template-columns: repeat(2, 1fr); }
}

.vedam-goal-tile {
  display: block;
  text-align: center;
  padding: 28px 16px;
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 16px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.vedam-goal-tile:hover {
  transform: translateY(-6px);
  border-color: var(--ayur-gold-color);
  box-shadow: 0 18px 34px -18px rgba(24, 53, 38, 0.35);
}

.vedam-goal-tile img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.vedam-goal-tile h3 {
  font-size: 18px;
  color: var(--ayur-heading-color);
}

/* ---------- Product Detail Page: gallery ---------- */
.vedam-pdp-gallery {
  display: flex;
  gap: 16px;
}

.vedam-pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 84px;
  flex-shrink: 0;
}

.vedam-pdp-thumbs button {
  padding: 0;
  border: 1px solid var(--ayur-border-color);
  border-radius: 12px;
  background-color: var(--ayur-card-bg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s ease;
}

.vedam-pdp-thumbs button.is-active,
.vedam-pdp-thumbs button:hover {
  border-color: var(--ayur-gold-color);
}

.vedam-pdp-thumbs img {
  width: 100%;
  display: block;
}

.vedam-pdp-mainimg {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
}

.vedam-pdp-mainimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}

.vedam-pdp-mainimg:hover img {
  transform: scale(1.06);
}

/* ---------- PDP sticky buy box ---------- */
.vedam-buybox {
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 20px;
  padding: 32px;
}

.vedam-buybox .vedam-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 14px 0;
}

.vedam-buybox .vedam-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--ayur-primary-color);
}

.vedam-buybox .vedam-mrp {
  font-size: 18px;
  color: var(--ayur-text-color);
  text-decoration: line-through;
}

.vedam-buybox .vedam-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--ayur-gold-color);
  background-color: var(--ayur-ivory-alt);
  padding: 4px 10px;
  border-radius: 999px;
}

.vedam-buybox-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.vedam-buybox-actions .ayur-btn {
  flex: 1;
  text-align: center;
  min-width: 160px;
}

.vedam-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ayur-primary-color);
  border-radius: 999px;
  color: var(--ayur-primary-color);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all .3s ease;
}

.vedam-btn-outline:hover {
  background-color: var(--ayur-primary-color);
  color: var(--ayur-white-color);
}

/* ---------- Highlight / benefit / ingredient cards ---------- */
.vedam-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) { .vedam-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .vedam-card-grid { grid-template-columns: 1fr; } }

.vedam-info-card {
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 16px;
  padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.vedam-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -22px rgba(24, 53, 38, 0.4);
}

.vedam-info-card .vedam-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--ayur-ivory-alt);
  color: var(--ayur-primary-color);
  margin-bottom: 14px;
  font-size: 18px;
}

.vedam-info-card h4 {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ayur-heading-color);
  margin-bottom: 6px;
}

.vedam-info-card p {
  font-size: 14px;
  color: var(--ayur-para-color);
  margin: 0;
}

/* ---------- Ingredients table/grid ---------- */
.vedam-ingredient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 991px) { .vedam-ingredient-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .vedam-ingredient-grid { grid-template-columns: 1fr; } }

.vedam-ingredient-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 12px;
}

.vedam-ingredient-item .vedam-ingredient-name {
  font-weight: 600;
  color: var(--ayur-heading-color);
  font-size: 14px;
}

.vedam-ingredient-item .vedam-ingredient-note {
  font-size: 12px;
  color: var(--ayur-para-color);
  margin-top: 4px;
}

.vedam-ingredient-item .vedam-ingredient-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--ayur-gold-color);
  white-space: nowrap;
}

/* ---------- FAQ accordion ---------- */
.vedam-faq {
  max-width: 860px;
  margin: 0 auto;
}

.vedam-faq-item {
  border-bottom: 1px solid var(--ayur-border-color);
}

.vedam-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ayur-heading-color);
}

.vedam-faq-question .vedam-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--ayur-gold-color);
  color: var(--ayur-gold-color);
  transition: transform .3s ease;
  font-size: 14px;
}

.vedam-faq-item.is-open .vedam-faq-icon {
  transform: rotate(45deg);
}

.vedam-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.vedam-faq-item.is-open .vedam-faq-answer {
  max-height: 300px;
}

.vedam-faq-answer p {
  padding: 0 4px 20px;
  color: var(--ayur-para-color);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Category pill filters (Shop page) ---------- */
.vedam-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.vedam-filter-pill {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--ayur-border-color);
  background-color: var(--ayur-card-bg);
  color: var(--ayur-para-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
}

.vedam-filter-pill.is-active,
.vedam-filter-pill:hover {
  background-color: var(--ayur-primary-color);
  border-color: var(--ayur-primary-color);
  color: var(--ayur-white-color);
}

/* ---------- Wishlist heart state ---------- */
.ayur-tpro-like a.is-wishlisted .unlike { display: none; }
.ayur-tpro-like a.is-wishlisted .like { display: inline-block; }
.ayur-tpro-like a .like { display: none; }

/* ---------- Recently viewed / related products track ---------- */
.vedam-scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.vedam-scroll-row::-webkit-scrollbar { height: 6px; }
.vedam-scroll-row::-webkit-scrollbar-thumb { background-color: var(--ayur-gold-color); border-radius: 999px; }

.vedam-scroll-row > * { flex: 0 0 260px; }

/* ---------- GSAP reveal utility hooks ----------
   Elements marked [data-vedam-reveal] are hidden via inline style set by
   vedam-animations.js itself right before it registers the ScrollTrigger
   reveal — never via CSS default. This guarantees content stays visible
   if the GSAP CDN script fails to load (no permanently-hidden sections). */

/* ---------- Header icon row: never wrap to a second line ---------- */
.ayur-nav-icons {
  flex-wrap: nowrap;
}

/* ---------- Header account: text links on desktop, icon + dropdown on mobile ---------- */
.ayur-nav-user {
  display: flex;
  align-items: center;
}

.vedam-account-textlink {
  font-size: 13px;
  margin-left: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ayur-banheading-color);
}

.vedam-account-inlineform {
  display: inline;
}

.vedam-account-sep {
  margin: 0 4px;
}

.vedam-account-mobile {
  display: none;
  position: relative;
}

.vedam-account-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: var(--ayur-card-bg);
  border: 1px solid var(--ayur-border-color);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px -20px rgba(24, 53, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .25s ease;
  z-index: 40;
}

.vedam-account-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vedam-account-panel a,
.vedam-account-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ayur-heading-color);
  cursor: pointer;
}

.vedam-account-panel a:hover,
.vedam-account-panel button:hover {
  background-color: var(--ayur-white-color);
}

@media (max-width: 991px) {
  .vedam-account-desktop {
    display: none;
  }
  .vedam-account-mobile {
    display: block;
  }
}

/* ---------- Trust badge strip: stacked one-per-row on mobile ---------- */
@media (max-width: 767px) {
  .vedam-trust-strip {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
  }
  .vedam-trust-item {
    width: 100%;
    max-width: 320px;
    min-width: auto;
    justify-content: flex-start;
  }
  .vedam-trust-item p {
    font-size: 12px;
    white-space: normal;
  }
}

/* ---------- Footer logo: brand mark is dark-green-on-transparent, which
   nearly disappears on the dark green footer background. Render it as a
   white silhouette instead of touching the footer's background color. */
.ayur-footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ---------- Cart / checkout: tighter spacing and safe image scaling on mobile ---------- */
@media (max-width: 767px) {
  .ayur-cartpage-wrapper,
  .ayur-checkout-wrapper {
    padding: 45px 0;
  }
  .ayur-checkout-table-wrapper {
    padding: 20px 15px;
  }
  .ayur-cart-table tbody tr td,
  .ayur-cart-table tbody tr td h2,
  .ayur-cartsubtotal th,
  .ayur-cartsubtotal td {
    font-size: 14px;
  }
  .ayur-cart-table tbody tr td > img {
    width: 60px;
    height: 60px;
  }
  .ayur-carttotal-wrapper {
    margin: 20px 0 0;
    padding: 20px;
  }
}

.ayur-chkout-flex {
  flex-wrap: wrap;
}

.ayur-chkout-flex img.pull-right {
  max-width: 100%;
  height: auto;
}

/* ---------- Shop page: mobile filter toggle ----------
   Desktop/tablet (≥992px): sidebar widgets always visible, toggle hidden.
   Mobile (<992px): only the "Filters" button shows; product cards render
   right below it since the sidebar column comes first in the row but its
   body is collapsed to nothing until the button is tapped. */
.vedam-shop-filter-toggle {
  display: none;
}

@media (max-width: 991px) {
  .vedam-shop-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 18px;
    background-color: var(--ayur-primary-color);
    color: var(--ayur-white-color);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
  .vedam-shop-filter-toggle span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .vedam-shop-filter-toggle svg {
    stroke: currentColor;
  }
  .vedam-shop-filter-chevron {
    transition: transform .25s ease;
  }
  .vedam-shop-filter-toggle[aria-expanded="true"] .vedam-shop-filter-chevron {
    transform: rotate(180deg);
  }
  .vedam-shop-filter-body {
    display: none;
    margin-bottom: 20px;
  }
  .vedam-shop-filter-body.is-open {
    display: block;
  }
}
