/*
Theme Name:   Vendya (Blocksy Child)
Theme URI:    https://example.com
Description:  Saffron & maroon Indian-heritage child theme for Blocksy. Fully editable from Appearance > Customize and the block editor.
Author:       Vendya
Template:     blocksy
Version:      1.2.0
License:      GNU General Public License v2 or later
Text Domain:  vendya
*/

/* All colours below use Blocksy palette variables, so changing them in
   Customize > Colors changes the whole site. */

.vendya-section { padding: 90px 24px; }
.vendya-hero { padding: 140px 24px; text-align: center; position: relative; }
.vendya-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .04em; margin-bottom: .4em; }
.vendya-hero p  { max-width: 640px; margin-inline: auto; font-size: 1.15rem; opacity: .92; }

/* gold divider line under section headings */
.vendya-title::after {
  content: ""; display: block; width: 72px; height: 3px; margin: 14px auto 0;
  background: #D4A017; border-radius: 2px;
}

.vendya-card {
  padding: 32px 28px; border-radius: 14px; height: 100%;
  border-top: 4px solid var(--theme-palette-color-1);
  box-shadow: 0 10px 30px rgba(92, 10, 20, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.vendya-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(92, 10, 20, .16); }

.wp-block-button__link { border-radius: 40px; padding: 14px 34px; font-weight: 600; }
.wp-block-button__link:hover { background: #D4A017 !important; color: #5C0A14 !important; }

@media (max-width: 768px) {
  .vendya-section { padding: 60px 18px; }
  .vendya-hero { padding: 90px 18px; }
}

/* WooCommerce – Vendya look */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price { color: var(--theme-palette-color-2); font-weight: 700; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--theme-palette-color-4); }
.woocommerce ul.products li.product { text-align: center; }
.woocommerce ul.products li.product img { border-radius: 12px; }
.woocommerce span.onsale { background: #D4A017; color: #5C0A14; }

/* ===== Vendya storefront layout ===== */
.vendya-announce { padding: 8px 12px; text-align: center; font-size: .85rem; letter-spacing: .03em; }
.vendya-announce p { margin: 0; }
.vendya-trustbar { padding: 14px 24px; border-bottom: 1px solid #F0D9B5; }
.vendya-trustbar .wp-block-columns { margin: 0; gap: 8px; }
.vendya-trust { margin: 0; font-size: .9rem; text-align: center; }

.vendya-hindi { margin-top: -6px; color: var(--theme-palette-color-1); font-size: 1.05rem; }
.vendya-banner-1 { background: linear-gradient(135deg, #5C0A14 0%, #800000 60%, #A8430F 100%) !important; }
.vendya-offer { text-align: center; background: linear-gradient(90deg, #800000, #5C0A14) !important; }

.vendya-tile {
  text-align: center; padding: 28px 16px; border-radius: 16px; height: 100%;
  border: 1px solid #F0D9B5; transition: transform .25s, box-shadow .25s;
}
.vendya-tile:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(92,10,20,.14); }
.vendya-tile a, .vendya-collection a { text-decoration: none; color: inherit; }
.vendya-tile p { margin: 4px 0; }

.vendya-collection { padding: 56px 18px; border-radius: 16px; text-align: center; min-height: 190px; }
.vendya-c1 { background: linear-gradient(160deg,#800000,#5C0A14) !important; }
.vendya-c2 { background: linear-gradient(160deg,#A8430F,#800000) !important; }
.vendya-c3 { background: linear-gradient(160deg,#E8751A,#A8430F) !important; }
.vendya-c4 { background: linear-gradient(160deg,#5C0A14,#2B0509) !important; }

.vendya-stars { color: #D4A017; letter-spacing: 3px; margin: 0; }
.vendya-pure h3 { margin-bottom: 6px; }

.vendya-faq details { border-bottom: 1px solid #F0D9B5; padding: 14px 4px; max-width: 820px; margin: 0 auto; }
.vendya-faq summary { cursor: pointer; font-weight: 600; color: var(--theme-palette-color-4); }

.vendya-help .wp-block-columns { margin-top: 36px; }
.vendya-pagehero { padding: 80px 24px; text-align: center; }
.vendya-policy p { max-width: 780px; margin-inline: auto; }

.vendya-footer { padding: 60px 24px 30px; }
.vendya-footer ul { list-style: none; padding: 0; margin: 0; }
.vendya-footer li { margin: 6px 0; }
.vendya-footer a { color: #FFF8EE; text-decoration: none; }
.vendya-footer a:hover { color: #D4A017; }
.vendya-mantra { text-align: center; margin-top: 36px; font-size: 1rem; }

/* product cards */
.woocommerce ul.products li.product { position: relative; }
.vendya-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: #800000; color: #FFF8EE;
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; letter-spacing: .03em;
}
.woocommerce ul.products li.product .button { background: var(--theme-palette-color-1); color: #fff; border-radius: 30px; }
.woocommerce ul.products li.product .button:hover { background: #800000; }
.woocommerce ul.products li.product del { opacity: .55; margin-right: 6px; }
.woocommerce ul.products li.product ins { text-decoration: none; }

/* ===== Palette variables (change these to re-colour the whole storefront) ===== */
:root {
  --vd-saffron: var(--theme-palette-color-1, #E8751A);
  --vd-maroon:  var(--theme-palette-color-2, #800000);
  --vd-deep:    var(--theme-palette-color-4, #5C0A14);
  --vd-cream:   var(--theme-palette-color-7, #FFF8EE);
  --vd-gold:    #D4A017;
}

/* ===== Hero slider (no plugin needed) ===== */
.vendya-slider {
  display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  max-width: none !important; width: 100%; padding: 0 !important; margin: 0 !important; gap: 0 !important;
}
.vendya-slider::-webkit-scrollbar { display: none; }
.vendya-slider > .vendya-slide {
  flex: 0 0 100%; max-width: 100% !important; margin: 0 !important; scroll-snap-align: start;
  min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 70px 24px; background-size: cover, 520px; background-position: center, right -80px center;
  background-repeat: no-repeat;
}
.vendya-slide h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.vendya-slide p { max-width: 620px; }
.vendya-slide.s1 { background-image: linear-gradient(135deg,#5C0A14,#800000 60%,#A8430F), url('assets/mandala.svg'); }
.vendya-slide.s2 { background-image: linear-gradient(135deg,#800000,#E8751A), url('assets/mandala.svg'); }
.vendya-slide.s3 { background-image: linear-gradient(135deg,#A8430F,#5C0A14), url('assets/mandala.svg'); }
.vendya-slide.s4 { background-image: linear-gradient(135deg,#5C0A14,#B8860B), url('assets/mandala.svg'); }

/* ===== Shop-by-type grid ===== */
.vendya-typegrid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; max-width: 1200px; margin: 28px auto 0; }
.vendya-typegrid > * { max-width: none !important; margin: 0 !important; }
.vendya-ico { font-size: 1.8rem; margin: 0 0 4px; }
.vendya-chip { display: inline-block; background: var(--vd-gold); color: var(--vd-deep); padding: 3px 14px; border-radius: 20px; font-size: .75rem; letter-spacing: .08em; margin: 0 0 10px; }
.vendya-feature { padding: 48px 24px; border-radius: 16px; text-align: center; background-image: linear-gradient(150deg,#800000,#5C0A14), url('assets/mandala.svg'); background-size: cover, 340px; background-position: center, right -60px center; background-repeat: no-repeat; }
.vendya-f2 { background-image: linear-gradient(150deg,#A8430F,#800000), url('assets/mandala.svg'); }

/* ===== Purpose pills ===== */
.vendya-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.vendya-pill { padding: 10px 24px; border: 1.5px solid var(--vd-saffron); border-radius: 40px; color: var(--vd-deep); font-weight: 600; text-decoration: none; background: #fff; transition: all .2s; }
.vendya-pill:hover { background: var(--vd-saffron); color: #fff; }

/* ===== Product carousels ===== */
.vendya-carousel ul.products { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 14px; scrollbar-width: thin; }
.vendya-carousel ul.products li.product { flex: 0 0 calc(25% - 15px); min-width: 230px; scroll-snap-align: start; margin: 0 !important; }
@media (max-width: 768px) { .vendya-carousel ul.products li.product { flex-basis: 70%; } .vendya-slider > .vendya-slide { min-height: 380px; } }
