/*
Theme Name: Foodstall Duck Heritage
Theme URI: https://www.foodstallbd.xyz/
Author: Foodstall
Description: Single-page WooCommerce theme for Foodstall - Duck Heritage. Bengali landing page, cash-on-delivery checkout, Dhaka-city delivery.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodstall-duck
*/

/* ---------- base (mirrors the approved design) ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F3E9;
  font-family: 'Hind Siliguri', sans-serif;
  color: #2A352E;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #176B43; color: #fff; }
a { color: #176B43; text-decoration-color: rgba(23,107,67,0.35); }
a:hover { color: #C99A2D; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; }

@keyframes fsPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(44,123,84,0.55); } 50% { box-shadow: 0 0 0 7px rgba(44,123,84,0); } }
@keyframes fsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fsRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fsSpin { to { transform: rotate(360deg); } }

.fs-card { transition: transform .28s ease, box-shadow .28s ease; }
.fs-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(27,74,54,0.16) !important; }

/* ---------- shared page shell for non-landing pages ---------- */
.fs-page { max-width: 1180px; margin: 0 auto; padding: 40px 20px 64px; width: 100%; }
.fs-page-head { text-align: center; margin-bottom: 30px; }
.fs-page-title {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: clamp(26px, 4vw, 36px); color: #173527; margin: 0 0 8px;
}
.fs-page-sub { color: #4C5950; font-size: 16px; font-weight: 500; margin: 0; }
.fs-panel {
  background: #fff; border: 1px solid #E8E2D4; border-radius: 24px;
  padding: 26px; box-shadow: 0 12px 30px rgba(27,74,54,0.09);
}
.fs-col-pad { padding: 26px; }

/* ---------- duck picker (checkout) ---------- */
.fs-picker { margin: 0 0 24px; }
.fs-picker h2 {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: clamp(21px, 3vw, 27px); color: #173527; margin: 0 0 4px;
}
.fs-picker .fs-picker-sub { color: #6B766B; font-weight: 600; font-size: 14.5px; margin: 0 0 18px; }
.fs-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fs-opt { position: relative; display: block; cursor: pointer; }
.fs-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fs-opt-box {
  border: 2px solid #E8E2D4; background: #FAF8F1; border-radius: 18px;
  padding: 12px; display: flex; align-items: center; gap: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; height: 100%;
}
.fs-opt:hover .fs-opt-box { border-color: #C9DECD; }
.fs-opt input:checked + .fs-opt-box {
  border-color: #176B43; background: #fff; box-shadow: 0 10px 24px rgba(23,107,67,0.16);
}
.fs-opt input:focus-visible + .fs-opt-box { border-color: #176B43; }
.fs-opt-img {
  width: 62px; height: 62px; border-radius: 14px; object-fit: cover;
  flex: none; display: block; background: #EFE9D9;
}
.fs-opt-name {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; font-size: 18px;
  color: #173527; line-height: 1.2; margin-bottom: 2px;
}
.fs-opt-price { font-weight: 700; color: #176B43; font-size: 15px; }
.fs-opt-price span { font-weight: 600; color: #6B766B; font-size: 13px; }
.fs-opt-tick {
  position: absolute; top: 9px; right: 9px; width: 21px; height: 21px; border-radius: 50%;
  background: #176B43; display: none; align-items: center; justify-content: center;
}
.fs-opt input:checked ~ .fs-opt-tick { display: flex; }

.fs-qtyrow {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #E8E2D4;
}
.fs-qtylabel { display: block; font-weight: 600; color: #1B4A36; font-size: 14px; margin-bottom: 6px; }
.fs-qtybox {
  display: flex; align-items: center; border: 1.5px solid #D9D2C2;
  border-radius: 12px; background: #FAF8F1; overflow: hidden; width: 168px;
}
.fs-qtybox button {
  width: 48px; height: 50px; border: none; background: transparent;
  font-size: 22px; color: #1B4A36; cursor: pointer; font-weight: 700; line-height: 1;
}
.fs-qtybox button:hover { background: #EFE9D9; }
.fs-qtybox button:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.fs-qtybox span { flex: 1; text-align: center; font-weight: 700; font-size: 18px; color: #173527; }
.fs-linetotal { margin-left: auto; text-align: right; }
.fs-linetotal small { display: block; color: #6B766B; font-weight: 600; font-size: 13.5px; margin-bottom: 2px; }
.fs-linetotal b {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: 26px; color: #176B43; line-height: 1;
}
.fs-picker.is-busy { opacity: .5; pointer-events: none; }

/* ---------- WooCommerce skin ---------- */
.woocommerce form .form-row label, .woocommerce-page form .form-row label {
  font-weight: 600; color: #1B4A36; font-size: 14px; margin-bottom: 6px; display: block;
}
.woocommerce form .form-row { padding: 0; margin: 0 0 15px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  width: 100%; padding: 13px 15px; border: 1.5px solid #D9D2C2; border-radius: 12px;
  font-size: 16px; color: #2A352E; background: #FAF8F1; outline: none; height: auto;
  line-height: 1.4; box-shadow: none;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { border-color: #176B43; background: #fff; }
.woocommerce form .form-row textarea { min-height: 84px; resize: vertical; }
.woocommerce .woocommerce-billing-fields h3,
.woocommerce-checkout h3#order_review_heading {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; color: #173527;
  font-size: 22px; margin: 0 0 16px;
}
.woocommerce table.shop_table {
  border: 1px solid #E8E2D4; border-radius: 16px; background: #F7F3E9;
  border-collapse: separate; border-spacing: 0; overflow: hidden; width: 100%;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  border-top: 1px solid #E8E2D4; padding: 13px 16px; color: #33403A; font-size: 15.5px;
}
.woocommerce table.shop_table thead th { border-top: none; color: #1B4A36; font-weight: 700; }
.woocommerce table.shop_table tr:first-child th, .woocommerce table.shop_table tr:first-child td { border-top: none; }
.woocommerce table.shop_table .order-total .amount {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; font-size: 22px; color: #176B43;
}
.woocommerce .cart_totals h2, .woocommerce-cart .cart-collaterals h2 {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; color: #173527; font-size: 22px;
}
#payment, .woocommerce-checkout #payment {
  background: #F7F3E9; border: 1px solid #E8E2D4; border-radius: 16px;
}
#payment ul.payment_methods { border-bottom: 1px solid #E8E2D4; padding: 16px; margin: 0; }
#payment ul.payment_methods li { list-style: none; }
#payment ul.payment_methods label {
  font-family: 'Baloo Da 2', cursive; font-weight: 700; color: #1B4A36; font-size: 17px; display: inline;
}
#payment div.payment_box {
  background: #E4EFE7; color: #1B4A36; font-size: 14.5px; font-weight: 500; border-radius: 12px;
}
#payment div.payment_box::before { border-bottom-color: #E4EFE7; }
#payment div.form-row { padding: 16px; }

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #payment #place_order,
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt {
  background: #176B43; color: #fff; border: none; border-radius: 14px;
  padding: 16px 30px; font-family: 'Baloo Da 2', cursive; font-weight: 700;
  font-size: 19px; cursor: pointer; box-shadow: 0 10px 22px rgba(23,107,67,0.3);
  line-height: 1.3; text-shadow: none; width: auto;
}
.woocommerce #payment #place_order { width: 100%; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #payment #place_order:hover, .woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover { background: #125838; color: #fff; }
.woocommerce .quantity .qty {
  padding: 10px; border: 1.5px solid #D9D2C2; border-radius: 10px; background: #FAF8F1;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  background: #fff; border-top: 3px solid #176B43; border-radius: 14px;
  color: #33403A; font-weight: 600; box-shadow: 0 8px 20px rgba(27,74,54,0.07); list-style: none;
}
.woocommerce-error { border-top-color: #C4553B; }
.woocommerce-message::before, .woocommerce-info::before { color: #176B43; }
.woocommerce-error::before { color: #C4553B; }
.woocommerce form.checkout_coupon, .woocommerce form.login {
  border: 1px solid #E8E2D4; border-radius: 16px; background: #fff;
}
.woocommerce-privacy-policy-text { font-size: 13.5px; color: #6B766B; }
abbr.required { color: #C4553B; text-decoration: none; border: none; }

@media (min-width: 900px) {
  .fs-checkout-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
}

/* ---------- thank you ---------- */
.fs-ty-badge {
  width: 76px; height: 76px; border-radius: 50%; background: #E4EFE7;
  border: 2px solid #C9DECD; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; animation: fsFloat 3s ease-in-out infinite;
}
.fs-ty-title {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: clamp(27px, 4.3vw, 40px); color: #173527; margin: 0 0 12px;
  text-align: center; line-height: 1.28;
}
.fs-ty-lead {
  text-align: center; color: #4C5950; font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65; font-weight: 500; margin: 0 auto 28px; max-width: 600px;
}
.fs-ty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.fs-ty-stat { background: #FAF8F1; border: 1px solid #E8E2D4; border-radius: 16px; padding: 15px 17px; }
.fs-ty-stat small { display: block; color: #6B766B; font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.fs-ty-stat b {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; color: #173527;
  font-size: 19px; line-height: 1.25; display: block;
}
.fs-ty-stat b.fs-accent { color: #176B43; font-size: 24px; }
.fs-ty-steps { display: flex; flex-direction: column; gap: 14px; }
.fs-ty-step { display: flex; align-items: flex-start; gap: 12px; }
.fs-ty-step span.n {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: #E4EFE7;
  color: #1B4A36; display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo Da 2', cursive; font-weight: 800; font-size: 16px;
}
.fs-ty-step p { margin: 0; font-weight: 600; color: #33403A; font-size: 15.5px; line-height: 1.55; padding-top: 5px; }
.woocommerce-order .woocommerce-order-details, .woocommerce-order .woocommerce-customer-details { margin-top: 26px; }
.woocommerce-order .woocommerce-column__title, .woocommerce-order .woocommerce-order-details__title {
  font-family: 'Baloo Da 2', cursive; font-weight: 800; color: #173527; font-size: 21px; margin: 0 0 14px;
}
.woocommerce ul.woocommerce-order-overview { display: none; }
address { font-style: normal; line-height: 1.7; color: #33403A; }

@media (max-width: 640px) {
  .fs-col-pad { padding: 20px; }
  .fs-opt-box { padding: 10px; gap: 10px; }
  .fs-opt-img { width: 54px; height: 54px; }
  .fs-linetotal { margin-left: 0; text-align: left; width: 100%; }
}

/* Power Coupons ships an untranslatable English drawer trigger that is not part
   of the approved design. The native WooCommerce coupon field is kept instead. */
.power-coupons-drawer-trigger-wrapper,
#power-coupons-view-coupons-btn,
#power-coupons-drawer { display: none !important; }

/* ---------- landing order form: duck + quantity chooser ---------- */
/* Deliberately loud: this block was getting skipped past as a plain dropdown. */
.fs-choose {
  background: #FDFAF0;
  border: 2px solid #EADCB6;
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(201,154,45,0.10);
}
.fs-choose.fs-flash { animation: fsAttn 1.1s ease-out 2; }
@keyframes fsAttn {
  0%, 100% { box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(201,154,45,0.10); border-color: #EADCB6; }
  45%      { box-shadow: inset 0 1px 0 #fff, 0 0 0 6px rgba(201,154,45,0.20); border-color: #C99A2D; }
}

.fs-choose-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.fs-choose-head--2 { margin-top: 16px; padding-top: 15px; border-top: 1.5px dashed #E4D5AE; }
.fs-badge {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #C99A2D; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo Da 2', cursive; font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 8px rgba(201,154,45,0.35);
}
.fs-choose-title {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: 18px; color: #173527; line-height: 1.2;
}

.fs-choose-opts { display: flex; flex-direction: column; gap: 9px; }
.fs-ch-box {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 2px solid #E3DAC6; border-radius: 15px;
  padding: 9px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.fs-ch:hover .fs-ch-box { border-color: #C9DECD; }
.fs-ch-img {
  width: 54px; height: 54px; border-radius: 12px; object-fit: cover;
  flex: none; display: block; background: #EFE9D9;
}
.fs-ch-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-ch-name {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: 19px; color: #173527; line-height: 1.15;
}
.fs-ch-price {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: 17px; color: #176B43; line-height: 1.15;
}
.fs-ch-price small {
  font-family: 'Hind Siliguri', sans-serif; font-weight: 600;
  font-size: 13px; color: #6B766B;
}

.fs-qty-big {
  display: flex; align-items: stretch;
  background: #fff; border: 2px solid #E3DAC6; border-radius: 15px; overflow: hidden;
}
.fs-qty-big button {
  width: 62px; flex: none; border: none; background: #F7F3E9;
  font-size: 28px; line-height: 1; color: #176B43; cursor: pointer; font-weight: 700;
  transition: background .15s ease;
}
.fs-qty-big button:hover { background: #E4EFE7; }
.fs-qty-big button:disabled { opacity: .3; cursor: not-allowed; background: #F7F3E9; }
.fs-qty-val {
  flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px;
  padding: 12px 6px;
}
.fs-qty-val b {
  font-family: 'Baloo Da 2', cursive; font-weight: 800;
  font-size: 26px; color: #173527; line-height: 1;
}
.fs-qty-val small { font-weight: 600; font-size: 14px; color: #6B766B; }

@media (prefers-reduced-motion: reduce) {
  .fs-choose.fs-flash { animation: none; }
}

/* Modern Cart's floating blue cart button is off-brand for this one-product
   cash-on-delivery funnel and competes with the sticky order bar. */
#moderncart-floating-cart,
.moderncart-toggle-slide-out { display: none !important; }

/* ---------- inline errors on the one-step order form ---------- */
.fs-form-errors { margin-bottom: 16px; }
.fs-form-errors ul.woocommerce-error {
  margin: 0; padding: 14px 16px 14px 44px; list-style: none;
  background: #FDF1EE; border: 1.5px solid #E8BFB3; border-top: 3px solid #C4553B;
  border-radius: 14px; color: #8A3524; font-weight: 600; font-size: 15px; box-shadow: none;
}
.fs-form-errors ul.woocommerce-error li { margin: 0 0 5px; line-height: 1.5; }
.fs-form-errors ul.woocommerce-error li:last-child { margin-bottom: 0; }
.fs-form-errors ul.woocommerce-error::before { color: #C4553B; top: 15px; left: 15px; }
.fs-form-errors .woocommerce-message, .fs-form-errors .woocommerce-info { display: none; }

/* ---------- per-duck quantity rows ---------- */
.fs-choose-hint { margin: -4px 0 12px; color: #6B766B; font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.fs-choose-unit { margin: 11px 0 0; color: #8A9488; font-weight: 600; font-size: 12.5px; text-align: center; }

.fs-ch { position: relative; }
.fs-ch.is-on .fs-ch-box {
  border-color: #176B43; background: #F3FAF5;
  box-shadow: 0 8px 20px rgba(23,107,67,0.16);
}
.fs-ch-box { flex-wrap: wrap; }
.fs-ch-txt { flex: 1 1 90px; }

.fs-ch-qty {
  flex: none; display: flex; align-items: center;
  border: 1.5px solid #D9D2C2; border-radius: 11px;
  background: #fff; overflow: hidden; margin-left: auto;
}
.fs-ch.is-on .fs-ch-qty { border-color: #9FC8B0; }
.fs-ch-qty button {
  width: 38px; height: 40px; border: none; background: #F7F3E9;
  font-size: 21px; line-height: 1; color: #176B43; cursor: pointer; font-weight: 700;
  transition: background .15s ease;
}
.fs-ch-qty button:hover:not(:disabled) { background: #E4EFE7; }
.fs-ch-qty button:disabled { opacity: .3; cursor: not-allowed; }
.fs-ch-n {
  min-width: 40px; text-align: center;
  font-family: 'Baloo Da 2', cursive; font-weight: 800; font-size: 19px; color: #173527;
}
.fs-ch:not(.is-on) .fs-ch-n { color: #A8B0A6; }

/* order summary lines */
.fs-sum-lines { display: flex; flex-direction: column; gap: 7px; }
.fs-sum-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 15px; color: #58655B; font-weight: 600;
}
.fs-sum-row.fs-sum-empty { color: #9AA499; font-weight: 600; }

/* checkout picker reuses the same rows */
.fs-picker .fs-qtyrow { align-items: center; }
.fs-picker-lines { display: flex; flex-direction: column; gap: 4px; color: #58655B; font-weight: 600; font-size: 14.5px; }
.fs-picker-lines .fs-none { color: #9AA499; }

@media (max-width: 380px) {
  .fs-ch-qty { margin-left: 0; width: 100%; justify-content: space-between; }
  .fs-ch-qty button { width: 44px; }
}
