/* TheSaleZone Store: shared base (tokens, layout, buttons, product card, notices) */
:root{
  --tsz-bg:#F9F6F2; --tsz-card:#FFFFFF; --tsz-ink:#201D1C; --tsz-muted:#6B6360; --tsz-line:#E8DDD6;
  --tsz-rose:#A86F73; --tsz-rose-d:#8C575B; --tsz-rose-l:#D3A1A5; --tsz-blush:#F3E1DE;
  --tsz-ok:#2F7D5B; --tsz-danger:#B3382C; --tsz-warn:#9A6A12; --tsz-wa:#25D366;
  --tsz-serif:'Playfair Display',Georgia,serif; --tsz-sans:'Poppins',system-ui,sans-serif;
  --tsz-r-sm:10px; --tsz-r:16px; --tsz-r-lg:22px;
  --tsz-shadow:0 10px 30px rgba(140,87,91,.12);
}

/* ---------- Page chrome: neutralise the theme around store pages ---------- */
body.tsz-woocommerce-frontend{background:var(--tsz-bg)!important;overflow-x:clip}
body.tsz-woocommerce-frontend .site-content,
body.tsz-woocommerce-frontend #content,
body.tsz-woocommerce-frontend .ast-container,
body.tsz-woocommerce-frontend #primary,
body.tsz-woocommerce-frontend #main{background:transparent!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important;float:none!important;display:block}
body.tsz-woocommerce-frontend #secondary,
body.tsz-woocommerce-frontend .ast-woocommerce-container>.woocommerce-breadcrumb,
body.tsz-woocommerce-frontend .woocommerce-products-header,
body.tsz-woocommerce-frontend .entry-header,
body.tsz-woocommerce-frontend .ast-archive-description,
body.tsz-woocommerce-frontend .page-header{display:none!important}

.tsz-store{font-family:var(--tsz-sans);font-size:15px;line-height:1.55;color:var(--tsz-ink);background:var(--tsz-bg);width:100vw;margin-left:calc(50% - 50vw);padding-bottom:70px;-webkit-font-smoothing:antialiased}
.tsz-store *,
.tsz-store *::before,
.tsz-store *::after{box-sizing:border-box}
.tsz-store a{color:inherit;text-decoration:none}
.tsz-store h1,
.tsz-store h2,
.tsz-store h3,
.tsz-store h4,
.tsz-store p,
.tsz-store ul,
.tsz-store ol,
.tsz-store figure{margin:0;padding:0}
.tsz-store ul,
.tsz-store ol{list-style:none}
.tsz-store img{max-width:100%;height:auto;display:block}
.tsz-store button{font:inherit;cursor:pointer}
.tsz-store :focus-visible{outline:2px solid var(--tsz-rose);outline-offset:2px}
.tsz-store .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.tsz-store .tsz-container{width:min(1240px,calc(100% - 40px));margin:0 auto}
.tsz-store .tsz-ico{flex:none}

/* ---------- Breadcrumbs + page title ---------- */
.tsz-store .tsz-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:20px 0 6px;font-size:13px;color:var(--tsz-muted)}
.tsz-store .tsz-crumbs a:hover{color:var(--tsz-rose-d);text-decoration:underline;text-underline-offset:3px}
.tsz-store .tsz-page-head{padding:6px 0 22px}
.tsz-store .tsz-page-head h1{font-family:var(--tsz-serif);font-weight:600;font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.2px}
.tsz-store .tsz-page-head p{margin-top:6px;color:var(--tsz-muted);max-width:640px}

/* ---------- Buttons ---------- */
.tsz-store .tsz-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 24px;border:1px solid transparent;border-radius:999px;font-size:14px;font-weight:600;line-height:1;text-align:center;transition:background .2s,color .2s,border-color .2s,transform .2s}
.tsz-store .tsz-btn:hover{transform:translateY(-1px)}
.tsz-store .tsz-btn-primary{background:var(--tsz-rose-d);border-color:var(--tsz-rose-d);color:#fff!important}
.tsz-store .tsz-btn-primary:hover{background:transparent;color:var(--tsz-rose-d)!important}
.tsz-store .tsz-btn-dark{background:var(--tsz-ink);border-color:var(--tsz-ink);color:#fff!important}
.tsz-store .tsz-btn-dark:hover{background:transparent;color:var(--tsz-ink)!important}
.tsz-store .tsz-btn-outline{background:transparent;border-color:var(--tsz-line);color:var(--tsz-ink)!important}
.tsz-store .tsz-btn-outline:hover{border-color:var(--tsz-rose);color:var(--tsz-rose-d)!important}
.tsz-store .tsz-btn-wa{background:var(--tsz-wa);border-color:var(--tsz-wa);color:#0b2e17!important}
.tsz-store .tsz-btn-wa:hover{filter:brightness(1.06)}
.tsz-store .tsz-btn[disabled],
.tsz-store .tsz-btn.disabled{opacity:.5;pointer-events:none}
.tsz-store .tsz-btn-block{width:100%}

/* ---------- Product grid + card ---------- */
.tsz-store .tsz-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.tsz-store .tsz-card{position:relative;display:flex;flex-direction:column;min-width:0;background:var(--tsz-card);border:1px solid var(--tsz-line);border-radius:var(--tsz-r);overflow:hidden;transition:transform .25s,box-shadow .25s}
.tsz-store .tsz-card:hover{transform:translateY(-3px);box-shadow:var(--tsz-shadow)}
.tsz-store .tsz-card-img{position:relative;display:block;aspect-ratio:1/1;background:linear-gradient(145deg,#F3E1DE,#E8DDD6);overflow:hidden}
.tsz-store .tsz-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.tsz-store .tsz-card:hover .tsz-card-img img{transform:scale(1.04)}
.tsz-store .tsz-tag{position:absolute;top:12px;left:12px;z-index:2;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.2;background:var(--tsz-rose-d);color:#fff}
.tsz-store .tsz-tag-new{background:var(--tsz-ink)}
.tsz-store .tsz-tag-out{background:#fff;color:var(--tsz-muted);border:1px solid var(--tsz-line)}
.tsz-store .tsz-heart{position:absolute;top:10px;right:10px;z-index:3;width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.94);color:var(--tsz-ink);transition:color .2s,transform .2s}
.tsz-store .tsz-heart:hover{transform:scale(1.08)}
.tsz-store .tsz-heart[aria-pressed="true"]{color:var(--tsz-rose-d)}
.tsz-store .tsz-heart[aria-pressed="true"] svg{fill:currentColor}
.tsz-store .tsz-card-body{display:flex;flex-direction:column;gap:6px;padding:14px 14px 16px;flex:1}
.tsz-store .tsz-card-name{font-size:14px;font-weight:500;line-height:1.4}
.tsz-store .tsz-card-name a:hover{color:var(--tsz-rose-d)}
.tsz-store .tsz-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:15px;font-weight:700;color:var(--tsz-ink)}
.tsz-store .tsz-price del{order:2;color:#8b817c;font-size:12px;font-weight:400}
.tsz-store .tsz-price ins{order:1;text-decoration:none;background:none}
.tsz-store .tsz-price .woocommerce-Price-currencySymbol{font-weight:inherit}
.tsz-store .tsz-price .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.tsz-store .tsz-rating{display:flex;align-items:center;gap:6px;color:var(--tsz-rose-d);font-size:13px;letter-spacing:1px}
.tsz-store .tsz-rating small{color:var(--tsz-muted);font-size:12px;letter-spacing:0}
.tsz-store .tsz-add{margin-top:auto;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--tsz-ink);border-radius:12px;background:var(--tsz-ink);color:#fff!important;font-size:13px;font-weight:600;transition:background .2s,color .2s}
.tsz-store .tsz-add:hover{background:transparent;color:var(--tsz-ink)!important}
.tsz-store .tsz-add-disabled{background:#efe9e4;border-color:#efe9e4;color:var(--tsz-muted)!important;pointer-events:none}
.tsz-store .tsz-add.loading{opacity:.6;pointer-events:none}
.tsz-store .tsz-add.added{background:var(--tsz-ok);border-color:var(--tsz-ok)}
.tsz-store .tsz-card a.added_to_cart{display:block;margin-top:2px;text-align:center;font-size:12px;font-weight:600;color:var(--tsz-rose-d)!important;text-decoration:underline!important;text-underline-offset:3px}

/* ---------- Quantity stepper (shared by product + cart) ---------- */
.tsz-store .tsz-qty{display:inline-flex;align-items:center;border:1px solid var(--tsz-line);border-radius:999px;background:#fff;overflow:hidden}
.tsz-store .tsz-qty button{width:42px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:var(--tsz-ink)}
.tsz-store .tsz-qty button:hover{background:var(--tsz-blush)}
.tsz-store .tsz-qty input[type=number]{width:44px;height:44px;border:0;padding:0;text-align:center;background:transparent;color:var(--tsz-ink);font:inherit;font-weight:600;-moz-appearance:textfield;box-shadow:none}
.tsz-store .tsz-qty input[type=number]::-webkit-outer-spin-button,
.tsz-store .tsz-qty input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

/* ---------- Forms ---------- */
.tsz-store input[type=text],
.tsz-store input[type=email],
.tsz-store input[type=tel],
.tsz-store input[type=password],
.tsz-store input[type=search],
.tsz-store input[type=number],
.tsz-store select,
.tsz-store textarea{width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--tsz-line);border-radius:12px;background:#fff;color:var(--tsz-ink);font:inherit;font-size:15px;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.tsz-store textarea{min-height:92px;resize:vertical}
.tsz-store input:focus,
.tsz-store select:focus,
.tsz-store textarea:focus{outline:none;border-color:var(--tsz-rose);box-shadow:0 0 0 3px rgba(168,111,115,.16)}
.tsz-store label{font-size:13px;font-weight:500;color:var(--tsz-ink)}

/* ---------- WooCommerce notices ---------- */
.tsz-store .woocommerce-message,
.tsz-store .woocommerce-info,
.tsz-store .woocommerce-error{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 18px!important;padding:14px 18px!important;border:1px solid var(--tsz-line)!important;border-left-width:4px!important;border-radius:12px;background:#fff!important;color:var(--tsz-ink)!important;list-style:none;font-size:14px}
.tsz-store .woocommerce-message{border-left-color:var(--tsz-ok)!important}
.tsz-store .woocommerce-info{border-left-color:var(--tsz-rose)!important}
.tsz-store .woocommerce-error{border-left-color:var(--tsz-danger)!important}
.tsz-store .woocommerce-message::before,
.tsz-store .woocommerce-info::before,
.tsz-store .woocommerce-error::before{display:none!important}
.tsz-store .woocommerce-message .button,
.tsz-store .woocommerce-info .button{order:2;margin-left:auto;padding:9px 16px;border-radius:999px;background:var(--tsz-ink)!important;color:#fff!important;font-size:13px;font-weight:600}

/* ---------- Pagination ---------- */
.tsz-store .woocommerce-pagination{margin-top:34px;display:flex;justify-content:center}
.tsz-store .woocommerce-pagination ul{display:flex;flex-wrap:wrap;gap:6px;border:0!important}
.tsz-store .woocommerce-pagination li{border:0!important;float:none!important;overflow:visible!important}
.tsz-store .woocommerce-pagination .page-numbers{min-width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--tsz-line);border-radius:999px;background:#fff;color:var(--tsz-ink);font-size:14px;font-weight:500;line-height:1}
.tsz-store .woocommerce-pagination .page-numbers:hover{border-color:var(--tsz-rose)}
.tsz-store .woocommerce-pagination .page-numbers.current{background:var(--tsz-ink);border-color:var(--tsz-ink);color:#fff}

/* ---------- Trust row ---------- */
.tsz-store .tsz-trust-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tsz-store .tsz-trust-item{display:flex;gap:12px;align-items:flex-start;padding:16px;background:#fff;border:1px solid var(--tsz-line);border-radius:var(--tsz-r)}
.tsz-store .tsz-trust-item .tsz-ico{color:var(--tsz-rose-d);margin-top:2px}
.tsz-store .tsz-trust-item strong{display:block;font-size:14px;font-weight:600}
.tsz-store .tsz-trust-item span{font-size:12.5px;color:var(--tsz-muted)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){.tsz-store .tsz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.tsz-store .tsz-trust-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){
  .tsz-store .tsz-container{width:calc(100% - 28px)}
  .tsz-store .tsz-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .tsz-store .tsz-card-body{padding:11px 11px 13px}
  .tsz-store .tsz-card-name{font-size:13px}
  .tsz-store .tsz-price{font-size:14px}
  .tsz-store .tsz-add{min-height:42px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.tsz-store *{transition:none!important;animation:none!important}}
