/*
Theme Name: Thattukada Blocksy Child
Theme URI: https://thattukada.in/
Description: Mobile-first marketplace child theme for Blocksy, designed for Thattukada Marketplace.
Author: Thattukada
Template: blocksy
Version: 1.0.0
Text Domain: thattukada-blocksy-child
*/

:root {
  --tkd-primary:#00685f;
  --tkd-primary-container:#008378;
  --tkd-primary-fixed:#89f5e7;
  --tkd-bg:#f8f9ff;
  --tkd-surface:#ffffff;
  --tkd-surface-low:#eff4ff;
  --tkd-surface-container:#e5eeff;
  --tkd-text:#0b1c30;
  --tkd-muted:#3d4947;
  --tkd-outline:#6d7a77;
  --tkd-border:#bcc9c6;
  --tkd-tertiary:#825100;
  --tkd-radius:18px;
  --tkd-shadow:0 8px 28px rgba(11,28,48,.08);
}

html { scroll-behavior:smooth; }
body { background:var(--tkd-bg); color:var(--tkd-text); font-family:"Plus Jakarta Sans","Inter",system-ui,sans-serif; }
a { color:var(--tkd-primary); }
a:hover { color:var(--tkd-primary-container); }
.tkd-container { width:min(1180px,calc(100% - 32px)); margin-inline:auto; }

/* Marketplace surfaces */
.tkd-card,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { background:var(--tkd-surface); border:1px solid rgba(188,201,198,.65); border-radius:var(--tkd-radius); box-shadow:var(--tkd-shadow); overflow:hidden; }

.woocommerce ul.products li.product { padding:0 0 16px; transition:transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(11,28,48,.12); }
.woocommerce ul.products li.product a img { margin:0 0 12px; width:100%; aspect-ratio:1/1; object-fit:cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating { margin-left:14px; margin-right:14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:15px; line-height:1.35; color:var(--tkd-text); }
.woocommerce ul.products li.product .price { color:var(--tkd-primary); font-weight:800; }
.woocommerce ul.products li.product .button { margin:10px 14px 0; border-radius:12px; background:var(--tkd-primary); color:#fff; width:calc(100% - 28px); text-align:center; }
.woocommerce ul.products li.product .button:hover { background:var(--tkd-primary-container); }

/* Buttons / forms */
button, .button, input[type="submit"], .wp-block-button__link { border-radius:12px; }
input, select, textarea { border-radius:12px !important; }

/* Mobile app navigation */
.tkd-mobile-nav { display:none; }
@media (max-width:767px) {
  body { padding-bottom:74px; }
  .tkd-mobile-nav { position:fixed; display:flex; left:0; right:0; bottom:0; z-index:9999; height:64px; padding:5px 8px max(5px,env(safe-area-inset-bottom)); background:rgba(255,255,255,.96); backdrop-filter:blur(16px); border-top:1px solid rgba(188,201,198,.65); box-shadow:0 -5px 20px rgba(11,28,48,.08); justify-content:space-around; }
  .tkd-mobile-nav a { min-width:58px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--tkd-muted); text-decoration:none; font-size:10px; font-weight:700; line-height:1.1; }
  .tkd-mobile-nav a.is-active { color:var(--tkd-primary); }
  .tkd-mobile-nav .tkd-icon { font-size:22px; line-height:1; }
  .tkd-cart-count { position:absolute; top:0; right:7px; min-width:15px; height:15px; padding:0 4px; display:grid; place-items:center; border-radius:99px; background:var(--tkd-tertiary); color:#fff; font-size:9px; }
  .tkd-whatsapp { right:14px !important; bottom:82px !important; }
  .tkd-whatsapp-label { display:none; }
  .tkd-container { width:min(100% - 24px,1180px); }
  .woocommerce ul.products { margin-left:-5px; margin-right:-5px; }
  .woocommerce ul.products li.product { margin:0 5px 12px; width:calc(50% - 10px); }
}

@media (min-width:768px) {
  .tkd-mobile-nav { display:none !important; }
}

/* WooCommerce single product */
.woocommerce div.product { background:transparent; }
.woocommerce div.product .summary { padding:4px 0; }
.woocommerce div.product .product_title { font-weight:800; color:var(--tkd-text); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color:var(--tkd-primary); font-weight:800; }
.woocommerce div.product form.cart .button { background:var(--tkd-primary); color:#fff; border-radius:14px; min-height:48px; }
.woocommerce div.product form.cart .button:hover { background:var(--tkd-primary-container); }
.woocommerce div.product .woocommerce-product-gallery img { border-radius:18px; }
.woocommerce-tabs { margin-top:34px !important; }

/* Checkout / cart */
.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-checkout-payment, form.checkout { border-radius:18px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius:14px; }

/* Vendor route pages supplied by Thattukada plugin */
.tkd-vendor-store, .tkd-vendor-dashboard, .tkd-registration-page { font-family:"Plus Jakarta Sans","Inter",system-ui,sans-serif; }

/* Hide legacy theme bottom spacing where the app nav owns it */
@media (max-width:767px) {
  .site-footer { padding-bottom:70px; }
}
