/*
Theme Name: Village Sweets
Theme URI: https://villagesweets.pk
Author: Village Sweets
Description: Editable mithai shop. Change the announcement, hero photos and homepage lines in the Customizer. Add sweets, prices and photos under Sweets. Orders appear under Orders.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: village-sweets
*/

:root {
  --cream: #fffbf5;
  --ink: #1f1f1f;
  --muted: #666;
  --green: #16382c;
  --gold: #c6a35a;
  --line: #ebe6dc;
  --sand: #ede9dd;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
}
body.vs-ur { font-family: "Noto Naskh Arabic", Montserrat, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.vs-wrap { width: min(1440px, calc(100% - 32px)); margin-inline: auto; }
@media (min-width: 1024px) {
  .vs-wrap { width: min(1440px, calc(100% - 130px)); }
}

.vs-announce {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.5;
}
.vs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}
.vs-bar {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 8px;
}
@media (min-width: 1024px) {
  .vs-bar { height: 110px; }
}
.vs-logo img, .custom-logo { height: 40px; width: auto; }
@media (min-width: 1024px) {
  .vs-logo img, .custom-logo { height: 84px; }
}
.vs-nav { display: none; gap: 28px; margin-left: 36px; font-size: 16px; font-weight: 500; padding: 0; }
.vs-nav li { list-style: none; }
@media (min-width: 1024px) {
  .vs-nav { display: flex; }
}
.vs-tools { margin-left: auto; display: flex; align-items: center; }
.vs-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.vs-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: #da3f3f;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.vs-burger { display: grid; }
@media (min-width: 1024px) {
  .vs-burger { display: none; }
}
.vs-search {
  display: none;
  padding: 0 0 12px;
}
.vs-search.is-open { display: block; }
.vs-search form { display: flex; gap: 8px; }
.vs-search input[type="search"] {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
}
.vs-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}
.vs-drawer.is-open { display: block; }
.vs-drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); border: 0; }
.vs-drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(320px, 88vw);
  background: #fff;
  padding: 16px 20px;
  overflow: auto;
}
body.vs-ur .vs-drawer-panel { inset: 0 0 0 auto; }
.vs-drawer ul { list-style: none; margin: 0; padding: 0; }
.vs-drawer a, .vs-drawer button {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: start;
  font-weight: 600;
  cursor: pointer;
}

.vs-hero { position: relative; height: 420px; background: var(--green); overflow: hidden; }
@media (min-width: 1024px) {
  .vs-hero { height: 525px; }
}
.vs-hero img { width: 100%; height: 100%; object-fit: cover; }
.vs-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.vs-dots button {
  width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.55); cursor: pointer;
}
.vs-dots button.is-on { background: #fff; }

.vs-section { padding: 48px 0; }
.vs-center { text-align: center; }
.vs-h {
  margin: 0;
  text-align: center;
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .vs-h { font-size: 32px; }
}
.vs-lead { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 16px; }

.vs-shelves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .vs-shelves { grid-template-columns: repeat(4, 1fr); }
}
.vs-shelf { text-align: center; }
.vs-shelf img { width: 100%; aspect-ratio: 316/441; object-fit: cover; border-radius: 10px; }
.vs-shelf h3 { margin: 12px 0 0; color: var(--green); font-size: 18px; }
@media (min-width: 1024px) {
  .vs-shelf h3 { font-size: 24px; }
}
.vs-shelf p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.vs-trust {
  background: var(--green);
  color: #fff;
}
.vs-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .vs-trust-grid { grid-template-columns: repeat(4, 1fr); min-height: 140px; align-items: center; }
}
.vs-trust strong { display: block; font-size: 16px; }
.vs-trust span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.85); }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 15px;
  margin-top: 28px;
}
@media (min-width: 1024px) {
  .vs-grid { grid-template-columns: repeat(4, 1fr); }
}
.vs-card { text-align: center; }
.vs-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.vs-card h3 { margin: 12px 0 0; font-size: 16px; }
.vs-price { margin: 6px 0 0; font-weight: 700; font-size: 16px; }
.vs-atc, .vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  margin-top: 12px;
  padding: 0 22px;
  border-radius: 5px;
  border: 1px solid #000;
  background: var(--gold);
  color: var(--cream);
  font-size: 16px;
  cursor: pointer;
}
.vs-btn.dark { background: var(--green); border-color: var(--green); color: #fff; }

.vs-gifts { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 800px) {
  .vs-gifts { grid-template-columns: repeat(3, 1fr); }
}
.vs-gift img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.vs-gift h3 { margin: 12px 0 6px; color: var(--green); }

.vs-split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) {
  .vs-split { grid-template-columns: 1fr 1fr; }
}
.vs-split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.vs-footer { border-top: 1px solid var(--line); background: var(--cream); padding: 48px 0 16px; }
.vs-foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) {
  .vs-foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
.vs-footer h2 { font-size: 14px; margin: 0 0 10px; }
.vs-footer a, .vs-footer li { color: var(--muted); font-size: 14px; }
.vs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vs-copy { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; text-align: center; color: var(--muted); font-size: 12px; }
.vs-sub { display: flex; max-width: 280px; margin-top: 10px; }
.vs-sub input { flex: 1; height: 42px; border: 1px solid var(--line); border-right: 0; padding: 0 10px; }
.vs-sub button { height: 42px; border: 0; background: var(--ink); color: var(--cream); padding: 0 10px; cursor: pointer; }

.vs-page { padding: 36px 0 64px; }
.vs-page h1 { color: var(--green); font-size: 32px; margin: 0 0 12px; }
.vs-prose { max-width: 720px; font-size: 17px; }
.vs-prose p { margin: 0 0 14px; }

.vs-product { display: grid; gap: 24px; }
@media (min-width: 800px) {
  .vs-product { grid-template-columns: 1fr 1fr; align-items: start; }
}
.vs-product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.vs-qty { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.vs-qty input { width: 64px; height: 44px; text-align: center; border: 1px solid var(--line); }

.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { text-align: start; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vs-table img { width: 72px; height: 72px; object-fit: cover; }
.vs-form { display: grid; gap: 12px; max-width: 560px; }
.vs-form input, .vs-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  background: #fff;
}
.vs-note { background: #e7f2ec; border: 1px solid #c9e0d4; padding: 12px 14px; }
.vs-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  cursor: pointer;
}
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
