/*
Theme Name: WZS
Author: Welcome Zone
Description: Fast, lightweight E-commerce theme without Node.js. Based on custom Purple & White UI.
Version: 1.0.3
Text Domain: wzs
*/

:root {
  --wz-primary: #4e31aa;
  --wz-primary-hover: #3b2488;
  --wz-secondary: #ff9800;
  --wz-green: #22c55e;
  --wz-green-hover: #16a34a;
  --wz-bg: #f8fafc;
  --wz-card-bg: #ffffff;
  --wz-text-dark: #1e293b;
  --wz-text-gray: #64748b;
  --wz-border: #e2e8f0;
  --wz-radius: 12px;
  --wz-radius-lg: 24px;
  --wz-font: 'Inter', sans-serif;
  --wz-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--wz-font); color: var(--wz-text-dark); background: var(--wz-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--wz-radius); font-weight: 600; cursor: pointer; transition: 0.3s ease; border: none; font-size: 15px; }
.btn-primary { background: var(--wz-primary); color: #fff; }
.btn-primary:hover { background: var(--wz-primary-hover); }
.btn-whatsapp { background: var(--wz-green); color: #fff; }
.btn-whatsapp:hover { background: var(--wz-green-hover); }
.btn-outline { border: 2px solid var(--wz-border); background: transparent; color: var(--wz-text-dark); }
.btn-outline:hover { border-color: var(--wz-primary); color: var(--wz-primary); }

/* =====================================
HEADER CSS (Desktop & Mobile)
===================================== */
.wzs-header { background: #ffffff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.wzs-top-bar { padding: 15px 20px; }
.wzs-logo a { text-decoration: none; }

.wzs-mobile-toggle { display: none; background: transparent; border: none; font-size: 26px; cursor: pointer; color: var(--wz-primary); line-height: 1; }

.wzs-search { flex: 1; max-width: 500px; margin: 0 40px; }
.wzs-search form { width: 100%; border: 1.5px solid var(--wz-border); border-radius: 6px; overflow: hidden; }
.wzs-search input { flex: 1; padding: 10px 15px; border: none; outline: none; font-size: 14px; background: transparent; }
.wzs-search button { border-radius: 0; padding: 10px 20px; }

.wzs-header-icons a { font-size: 13px; font-weight: 600; color: var(--wz-text-dark); display: flex; align-items: center; gap: 5px; }
.wzs-header-icons a:hover { color: var(--wz-primary); }
.wzs-cart-icon { position: relative; }
.wzs-cart-count { background: var(--wz-secondary); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 20px; position: absolute; top: -10px; right: -15px; font-weight: bold; }

.wzs-nav-bar { background: var(--wz-primary); color: #fff; }
.wzs-nav-menu { list-style: none; margin: 0; padding: 0; }
.wzs-nav-menu li { position: relative; }
.wzs-nav-menu a { display: block; padding: 14px 18px; font-size: 14px; font-weight: 600; color: #fff; }
.wzs-nav-menu a:hover { background: var(--wz-primary-hover); }

/* =====================================
FOOTER CSS
===================================== */
.wzs-footer { background: var(--wz-primary); color: #fff; padding: 50px 0 20px; margin-top: 50px; }
.wzs-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 30px; }
.footer-col h3 { font-size: 13px; margin-bottom: 15px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a, .footer-col.contact-info li { font-size: 13px; color: #cbd5e1; transition: 0.2s; }
.footer-col a:hover { color: #fff; }
.social-links a { font-size: 13px; color: #cbd5e1; font-weight: bold; }

.wzs-footer-bottom { font-size: 12px; color: #cbd5e1; padding-top: 10px; }
.wzs-trust-badges { flex-wrap: wrap; }
.wzs-trust-badges span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

/* Responsive Settings (Header/Footer) */
@media (max-width: 991px) {
  .wzs-top-bar { flex-direction: column; gap: 15px; position: relative; }
  .wzs-search { margin: 0; width: 100%; max-width: 100%; }
  .wzs-footer-grid { grid-template-columns: 1fr 1fr; }

  .wzs-mobile-toggle { display: block; position: absolute; left: 0; top: 15px; }
  .wzs-nav-bar { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .wzs-nav-bar.wzs-nav-open { max-height: 500px; }
  .wzs-nav-menu { flex-direction: column; overflow-x: visible; white-space: normal; }
  .wzs-nav-menu a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 600px) {
  .wzs-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .wzs-footer-bottom { flex-direction: column; gap: 15px; justify-content: center; }
  .wzs-trust-badges { justify-content: center; }
  /* Add breathing room so the sticky single-product bar never overlaps footer content */
  .wzs-footer { padding-bottom: 90px; }
}

/* =====================================
HOMEPAGE CSS (Hero & Trust Badges)
===================================== */
.wzs-homepage { padding-bottom: 60px; }

.wzs-hero { padding: 50px 0; background: #fff; margin-bottom: 40px; border-bottom: 1px solid var(--wz-border); }
.wzs-hero-wrap { gap: 40px; }
.wzs-hero-content { flex: 1 1 50%; }
.wzs-hero-image { flex: 1 1 50%; display: flex; justify-content: flex-end; }
.wzs-hero-image img { width: 100%; max-width: 500px; object-fit: cover; }

.wzs-trust-section { margin-bottom: 50px; }
.wzs-trust-grid { grid-template-columns: repeat(5, 1fr); gap: 15px; border: 1px solid var(--wz-border); border-radius: 16px; padding: 20px; background: #fff; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .icon { font-size: 24px; color: var(--wz-primary); }
.trust-item strong { display: block; font-size: 13px; color: var(--wz-text-dark); }
.trust-item span { display: block; font-size: 11px; color: var(--wz-text-gray); }

.section-header { margin-bottom: 25px; border-bottom: 2px solid var(--wz-bg); padding-bottom: 10px; }
.section-header h2 { font-size: 20px; font-weight: 800; color: var(--wz-text-dark); text-transform: uppercase; }

/* =====================================
WOOCOMMERCE GLOBAL PRODUCT GRID RESET
===================================== */
.wzs-categories-wrap ul.products,
.wzs-products-wrap ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wzs-categories-wrap ul.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.wzs-categories-wrap ul.products li.product { width: 100%; margin: 0; text-align: center; border: 1px solid var(--wz-border); border-radius: 12px; padding: 15px 10px; background: #fff; transition: 0.3s; list-style: none; }
.wzs-categories-wrap ul.products li.product:hover { border-color: var(--wz-primary); box-shadow: var(--wz-shadow); transform: translateY(-3px); }
.wzs-categories-wrap ul.products li.product img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 10px; border-radius: 8px; }
.wzs-categories-wrap ul.products li.product .woocommerce-loop-category__title { font-size: 13px; font-weight: 700; color: var(--wz-text-dark); margin: 0; padding: 0; background: none; }
.wzs-categories-wrap ul.products li.product .woocommerce-loop-category__title mark { display: none; }

.wzs-products-wrap ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wzs-products-wrap ul.products li.product { width: 100%; margin: 0; background: #fff; border: 1px solid var(--wz-border); border-radius: 16px; padding: 15px; transition: 0.3s; position: relative; list-style: none; }
.wzs-products-wrap ul.products li.product:hover { box-shadow: var(--wz-shadow); transform: translateY(-5px); }
.wzs-products-wrap ul.products li.product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; margin-bottom: 15px; }
.wzs-products-wrap ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 700; color: var(--wz-text-dark); margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wzs-products-wrap ul.products li.product a { display: block; }

.wzs-products-wrap ul.products li.product .price { font-size: 15px; font-weight: 800; color: var(--wz-text-dark); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wzs-products-wrap ul.products li.product .price del { font-size: 12px; color: var(--wz-text-gray); font-weight: 500; }
.wzs-products-wrap ul.products li.product .price ins { text-decoration: none; color: var(--wz-text-dark); }

.wzs-products-wrap ul.products li.product .button { display: none; }

.wzs-categories-wrap span.onsale,
.wzs-products-wrap span.onsale { position: absolute; top: 10px; left: 10px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; line-height: 1; z-index: 9; min-height: auto; min-width: auto; }

@media (max-width: 1024px) {
  .wzs-categories-wrap ul.products { grid-template-columns: repeat(4, 1fr); }
  .wzs-products-wrap ul.products { grid-template-columns: repeat(3, 1fr); }
  .wzs-trust-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .wzs-hero-wrap { flex-direction: column; text-align: center; }
  .wzs-hero-list { display: inline-block; text-align: left; }
  .wzs-categories-wrap ul.products { grid-template-columns: repeat(3, 1fr); }
  .wzs-products-wrap ul.products { grid-template-columns: repeat(2, 1fr); }
  .wzs-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .wzs-hero h1 { font-size: 32px !important; }
  .wzs-categories-wrap ul.products { grid-template-columns: repeat(2, 1fr); }
  .wzs-trust-grid { grid-template-columns: 1fr; }
}

/* =====================================
SHOP / ARCHIVE PAGE CSS
===================================== */
.wzs-breadcrumb a:hover { color: var(--wz-primary); }

.woocommerce-result-count { color: var(--wz-text-gray); font-size: 14px; font-weight: 500; margin-bottom: 15px; display: inline-block; }

.woocommerce-ordering { display: inline-block; float: right; margin-bottom: 15px; }
.woocommerce-ordering select { padding: 10px 15px; border: 1.5px solid var(--wz-border); border-radius: 8px; font-size: 14px; font-family: var(--wz-font); background: #fff; outline: none; cursor: pointer; color: var(--wz-text-dark); }
.woocommerce-ordering select:focus { border-color: var(--wz-primary); }

.woocommerce-notices-wrapper { display: block; clear: both; }

.wzs-products-wrap .woocommerce-pagination { margin-top: 30px; clear: both; }
.wzs-products-wrap .woocommerce-pagination ul { list-style: none; display: flex; gap: 8px; justify-content: center; }
.wzs-products-wrap .woocommerce-pagination ul li { list-style: none; }
.wzs-products-wrap .woocommerce-pagination ul li a,
.wzs-products-wrap .woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1.5px solid var(--wz-border); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--wz-text-dark); background: #fff; }
.wzs-products-wrap .woocommerce-pagination ul li a:hover,
.wzs-products-wrap .woocommerce-pagination ul li span.current { background: var(--wz-primary); color: #fff; border-color: var(--wz-primary); }

.woocommerce-no-products-found { padding: 40px; text-align: center; background: #fff; border-radius: var(--wz-radius-lg); border: 1px solid var(--wz-border); color: var(--wz-text-gray); font-size: 15px; }

@media (max-width: 600px) {
  .woocommerce-ordering { float: none; display: block; width: 100%; margin-bottom: 20px; }
  .woocommerce-ordering select { width: 100%; }
  .woocommerce-result-count { display: block; margin-bottom: 10px; }
}

/* =====================================
SINGLE PRODUCT PAGE CSS (Redesigned)
===================================== */
.wzs-single-product { padding: 30px 20px 40px; min-height: 60vh; }

.wzs-breadcrumb { margin-bottom: 20px; font-size: 13px; color: var(--wz-text-gray); font-weight: 500; }
.wzs-breadcrumb-current { color: var(--wz-text-dark); font-weight: 600; }

.wzs-product-grid { gap: 45px; margin-bottom: 55px; align-items: flex-start; }
.wzs-product-gallery { flex: 1 1 45%; position: sticky; top: 90px; }
.wzs-product-info { flex: 1 1 55%; }

/* Images */
.wzs-main-image { position: relative; border: 1px solid var(--wz-border); border-radius: var(--wz-radius-lg); padding: 12px; background: #fff; margin-bottom: 15px; overflow: hidden; box-shadow: var(--wz-shadow); }
.wzs-main-image img { width: 100%; border-radius: var(--wz-radius); aspect-ratio: 1/1; object-fit: contain; transition: transform 0.3s ease; }
.wzs-main-image:hover img { transform: scale(1.03); }

.wzs-single-sale-badge { position: absolute; top: 18px; left: 18px; z-index: 5; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 20px; letter-spacing: 0.5px; }

.wzs-thumbnails { flex-wrap: wrap; gap: 10px; }
.wzs-thumb-box { width: 72px; height: 72px; border: 2px solid var(--wz-border); border-radius: 10px; overflow: hidden; cursor: pointer; flex-shrink: 0; transition: 0.2s; opacity: 0.85; }
.wzs-thumb-box:hover { opacity: 1; border-color: var(--wz-primary); }
.wzs-thumb-box.wzs-thumb-active { border-color: var(--wz-primary); opacity: 1; box-shadow: 0 0 0 2px rgba(78,49,170,0.15); }
.wzs-thumb-box img { width: 100%; height: 100%; object-fit: cover; }

/* Info Area */
.wzs-product-title { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: var(--wz-text-dark); line-height: 1.3; }

.wzs-price-box { font-size: 28px; font-weight: 800; color: var(--wz-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wzs-price-box del { font-size: 16px; color: var(--wz-text-gray); font-weight: 500; }
.wzs-price-box ins { text-decoration: none; }

.wzs-short-desc { color: var(--wz-text-gray); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }

.wzs-stock-status { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 22px; padding: 6px 14px; border-radius: 20px; }
.wzs-stock-status.wzs-in-stock { color: var(--wz-green); background: rgba(34,197,94,0.1); }
.wzs-stock-status.wzs-out-stock { color: #ef4444; background: rgba(239,68,68,0.1); }

/* Form & Inputs */
.wzs-custom-field { margin-bottom: 20px; }
.wzs-custom-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--wz-text-dark); }
.wzs-custom-field input { width: 100%; padding: 14px; border: 2px solid var(--wz-border); border-radius: 8px; font-family: var(--wz-font); outline: none; font-size: 15px; transition: 0.3s; }
.wzs-custom-field input:focus { border-color: var(--wz-primary); }

.wzs-actions { margin-bottom: 18px; }
.wzs-quantity { border: 2px solid var(--wz-border); border-radius: 8px; overflow: hidden; height: 50px; display: flex; align-items: center; background: #fff; }
.wzs-qty-btn { width: 40px; height: 100%; border: none; background: var(--wz-bg); color: var(--wz-text-dark); font-size: 18px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.wzs-qty-btn:hover { background: var(--wz-border); }
.wzs-quantity input { width: 50px; text-align: center; border: none; outline: none; font-weight: bold; font-size: 16px; -moz-appearance: textfield; }
.wzs-btn-add { flex: 1; height: 50px; font-size: 15px; text-transform: uppercase; border-radius: 8px; }
.wzs-btn-buy { flex: 1; height: 50px; font-size: 15px; text-transform: uppercase; border-radius: 8px; background: var(--wz-secondary); color: #fff; }
.wzs-btn-buy:hover { background: #e68900; }
.wzs-btn-wa { width: 100%; height: 52px; font-size: 15px; border-radius: 8px; margin-bottom: 22px; text-transform: uppercase; gap: 8px; }

.wzs-trust-features { border-top: 1px solid var(--wz-border); border-bottom: 1px solid var(--wz-border); padding: 16px 0; font-size: 13px; color: var(--wz-text-gray); font-weight: 600; margin-bottom: 18px; }

.wzs-meta-info { font-size: 13px; color: var(--wz-text-gray); }
.wzs-meta-info p { margin-bottom: 6px; }
.wzs-meta-info strong { color: var(--wz-text-dark); }

.wzs-out-of-stock-msg { font-weight: 600; color: #ef4444; }

/* Product Description Area */
.wzs-product-full-desc { margin-top: 50px; background: #fff; padding: 30px; border-radius: var(--wz-radius-lg); border: 1px solid var(--wz-border); }
.wzs-product-full-desc h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; border-bottom: 2px solid var(--wz-bg); padding-bottom: 10px; }
.wzs-desc-content { font-size: 15px; color: var(--wz-text-gray); line-height: 1.8; }

/* Related Products (native WooCommerce output) */
.related.products { margin-top: 55px; }
.related.products > h2 { font-size: 20px; font-weight: 800; margin-bottom: 22px; border-bottom: 2px solid var(--wz-bg); padding-bottom: 10px; text-transform: uppercase; }
.related.products ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.related.products ul.products li.product { background: #fff; border: 1px solid var(--wz-border); border-radius: 16px; padding: 15px; transition: 0.3s; }
.related.products ul.products li.product:hover { box-shadow: var(--wz-shadow); transform: translateY(-5px); }
.related.products ul.products li.product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.related.products ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.related.products ul.products li.product .price { font-size: 14px; font-weight: 800; color: var(--wz-text-dark); }
.related.products ul.products li.product .button { display: none; }

/* Sticky Mobile Bottom Action Bar */
.wzs-sticky-mobile-bar { display: none; }

/* Responsive */
@media (max-width: 991px) {
  .wzs-product-grid { flex-direction: column; }
  .wzs-product-gallery, .wzs-product-info { width: 100%; flex: none; position: static; }
  .related.products ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .related.products ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wzs-single-product { padding: 20px 15px 30px; }
  .wzs-actions { flex-wrap: wrap; }
  .wzs-quantity { width: 100%; justify-content: center; }
  .wzs-btn-add, .wzs-btn-buy { flex: 1 1 48%; }
  .wzs-trust-features { flex-direction: column; gap: 10px; align-items: center; }
  .wzs-thumb-box { width: 64px; height: 64px; }

  /* Hide the in-page action row on mobile once sticky bar takes over visually is not needed;
     we keep in-page buttons for accessibility but show a persistent sticky bar too */
  .wzs-sticky-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid var(--wz-border);
    transition: transform 0.25s ease;
  }
  .wzs-sticky-mobile-bar.wzs-sticky-hide { transform: translateY(100%); }
  .wzs-sticky-price { font-size: 15px; font-weight: 800; color: var(--wz-primary); flex: 0 0 auto; white-space: nowrap; }
  .wzs-sticky-price del { display: none; }
  .wzs-sticky-add, .wzs-sticky-buy { flex: 1; height: 46px; font-size: 13px; border-radius: 8px; text-transform: uppercase; }
  .wzs-sticky-buy { background: var(--wz-secondary); color: #fff; }

  /* Prevent content from being hidden behind the sticky bar */
  .wzs-single-product { padding-bottom: 90px; }
}

/* =====================================
CART PAGE CSS
===================================== */
.woocommerce-cart .woocommerce { display: flex; flex-direction: column; gap: 30px; padding: 40px 20px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 1024px) {
  .woocommerce-cart .woocommerce { flex-direction: row; align-items: flex-start; }
  .woocommerce-cart .woocommerce-cart-form { flex: 1 1 65%; }
  .woocommerce-cart .cart-collaterals { flex: 1 1 35%; position: sticky; top: 20px; }
}

.woocommerce-cart-form__contents { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--wz-radius-lg); box-shadow: var(--wz-shadow); overflow: hidden; }
.woocommerce-cart-form__contents th { background: var(--wz-bg); padding: 15px 20px; text-align: left; font-size: 14px; color: var(--wz-text-gray); text-transform: uppercase; border-bottom: 1px solid var(--wz-border); }
.woocommerce-cart-form__contents td { padding: 20px; border-bottom: 1px solid var(--wz-border); vertical-align: middle; }
.woocommerce-cart-form__contents tr:last-child td { border-bottom: none; }
.woocommerce-cart-form__contents img { width: 70px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.woocommerce-cart-form__contents .product-name a { font-weight: 700; color: var(--wz-text-dark); font-size: 16px; }
.woocommerce-cart-form__contents .product-remove a { color: #ef4444; font-size: 20px; font-weight: bold; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: #fee2e2; border-radius: 50%; transition: 0.2s; }
.woocommerce-cart-form__contents .product-remove a:hover { background: #ef4444; color: #fff; }

.woocommerce-cart-form .actions { padding: 20px; background: #fff; border-top: 1px solid var(--wz-border); }
.woocommerce-cart-form .coupon { display: flex; gap: 10px; float: left; }
.woocommerce-cart-form .coupon input { padding: 12px 15px; border: 1px solid var(--wz-border); border-radius: var(--wz-radius); outline: none; width: 200px; }
.woocommerce-cart-form .button { background: var(--wz-primary); color: #fff; border: none; padding: 12px 24px; border-radius: var(--wz-radius); font-weight: 600; cursor: pointer; transition: 0.2s; }
.woocommerce-cart-form .button:hover { background: var(--wz-primary-hover); }
.woocommerce-cart-form button[name="update_cart"] { background: var(--wz-bg); color: var(--wz-text-dark); border: 1px solid var(--wz-border); float: right; }

.cart_totals { background: #fff; padding: 30px; border-radius: var(--wz-radius-lg); box-shadow: var(--wz-shadow); }
.cart_totals h2 { font-size: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--wz-border); padding-bottom: 15px; color: var(--wz-text-dark); }
.cart_totals table { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.cart_totals th, .cart_totals td { padding: 15px 0; border-bottom: 1px solid var(--wz-border); text-align: left; color: var(--wz-text-dark); }
.cart_totals td { text-align: right; font-weight: 700; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 20px; border-bottom: none; padding-top: 20px; color: var(--wz-primary); }
.wc-proceed-to-checkout .checkout-button { display: block; width: 100%; text-align: center; background: var(--wz-primary); color: #fff; padding: 16px; border-radius: var(--wz-radius); font-weight: 700; font-size: 16px; transition: 0.3s; }
.wc-proceed-to-checkout .checkout-button:hover { background: var(--wz-primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(78, 49, 170, 0.3); }

/* =====================================
CHECKOUT PAGE CSS
===================================== */
.woocommerce-checkout .woocommerce { display: flex; flex-direction: column; gap: 40px; padding: 40px 20px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 1024px) {
  .woocommerce-checkout .woocommerce { flex-direction: row; align-items: flex-start; }
  .woocommerce-checkout #customer_details { flex: 1 1 55%; background: #fff; padding: 40px; border-radius: var(--wz-radius-lg); box-shadow: var(--wz-shadow); }
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { flex: 1 1 45%; background: #fff; padding: 40px; border-radius: var(--wz-radius-lg); box-shadow: var(--wz-shadow); }
  .woocommerce-checkout #order_review_heading { margin-bottom: -40px; z-index: 2; position: relative; border-bottom: none; box-shadow: none; padding-bottom: 0; background: transparent; }
}

.woocommerce-checkout h3 { font-size: 22px; margin-bottom: 25px; color: var(--wz-text-dark); border-bottom: 2px solid var(--wz-bg); padding-bottom: 10px; }
.woocommerce-checkout label { font-size: 13px; font-weight: 600; color: var(--wz-text-gray); margin-bottom: 8px; display: block; }
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout select, .woocommerce-checkout textarea { width: 100%; padding: 14px 15px; border: 2px solid var(--wz-border); border-radius: var(--wz-radius); outline: none; font-family: inherit; font-size: 15px; transition: 0.3s; background: #fafaf9; }
.woocommerce-checkout input:focus, .woocommerce-checkout select:focus, .woocommerce-checkout textarea:focus { border-color: var(--wz-primary); background: #fff; }
.woocommerce form .form-row { margin-bottom: 20px; }

.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 15px 0; border-bottom: 1px solid var(--wz-border); text-align: left; }
.woocommerce-checkout-review-order-table td { text-align: right; font-weight: 600; color: var(--wz-text-dark); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 20px; border-bottom: none; color: var(--wz-primary); }

#payment { background: var(--wz-bg); padding: 25px; border-radius: var(--wz-radius); margin-top: 20px; border: 1px solid var(--wz-border); }
#payment ul.payment_methods { list-style: none; margin-bottom: 20px; border-bottom: 1px solid var(--wz-border); padding-bottom: 20px; }
#payment ul.payment_methods li { margin-bottom: 15px; font-weight: 600; color: var(--wz-text-dark); }
#payment ul.payment_methods input[type="radio"] { accent-color: var(--wz-primary); width: 16px; height: 16px; margin-right: 10px; vertical-align: middle; }
#place_order { width: 100%; background: var(--wz-primary); color: #fff; padding: 18px; border: none; border-radius: var(--wz-radius); font-size: 18px; font-weight: 800; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 12px rgba(78, 49, 170, 0.3); }
#place_order:hover { background: var(--wz-primary-hover); transform: translateY(-2px); }

/* Mobile Fixes for Cart */
@media (max-width: 768px) {
  .woocommerce-cart-form__contents thead { display: none; }
  .woocommerce-cart-form__contents tr.cart_item { display: flex; flex-wrap: wrap; padding: 20px; border-bottom: 5px solid var(--wz-bg); position: relative; }
  .woocommerce-cart-form__contents td { padding: 10px 0; border: none; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .woocommerce-cart-form__contents td::before { content: attr(data-title); font-weight: 700; color: var(--wz-text-gray); font-size: 13px; text-transform: uppercase; }
  .woocommerce-cart-form__contents td.product-thumbnail { width: auto; }
  .woocommerce-cart-form__contents td.product-thumbnail::before { display: none; }
  .woocommerce-cart-form__contents td.product-name { width: calc(100% - 90px); padding-left: 15px; justify-content: flex-start; }
  .woocommerce-cart-form__contents td.product-name::before { display: none; }
  .woocommerce-cart-form__contents td.product-remove { position: absolute; top: 10px; right: 10px; width: auto; padding: 0; }
  .woocommerce-cart-form__contents td.product-remove::before { display: none; }
  .woocommerce-cart-form .actions { display: flex; flex-direction: column; gap: 15px; }
  .woocommerce-cart-form .coupon { width: 100%; flex-direction: column; float: none; }
  .woocommerce-cart-form .coupon input { width: 100%; }
  .woocommerce-cart-form button[name="update_cart"] { float: none; width: 100%; }
}


/* =====================================
PASTE THIS BLOCK INTO style.css
(Styles the "Enter Name to Engrave" field rendered by the
 WZ Custom Product Text plugin -- only shows on enabled products)
===================================== */

.wz-cpt-box {
  width: 100%;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: var(--wz-radius-lg);
  border: 2px solid #fde68a;
  background: #fffbeb;
  position: relative;
  overflow: hidden;
}
.wz-cpt-accent {
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #fbbf24, #f97316);
}
.wz-cpt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wz-text-dark);
  margin-bottom: 12px;
}
.wz-cpt-icon { color: #d97706; flex-shrink: 0; }
.wz-cpt-required { color: #ef4444; }
.wz-cpt-input {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--wz-border);
  background: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wz-text-dark);
  font-family: var(--wz-font);
  outline: none;
  transition: 0.2s;
}
.wz-cpt-input::placeholder { color: #a8a29e; font-weight: 500; }
.wz-cpt-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.15);
}
.wz-cpt-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--wz-text-gray);
  margin-top: 10px;
}
.wz-cpt-hint svg { color: #a8a29e; flex-shrink: 0; }



/* =====================================
PASTE THIS BLOCK INTO style.css
(Styling for products WITHOUT the "Direct Order" category --
 these show only the WhatsApp button, no Add to Cart / Buy Now)
===================================== */

.wzs-whatsapp-only-wrap { margin-bottom: 18px; }
.wzs-btn-wa-solo { margin-bottom: 10px; }
.wzs-wa-only-note {
  font-size: 12px;
  color: var(--wz-text-gray);
  text-align: center;
}

/* Sticky mobile bar variant for WhatsApp-only products */
.wzs-sticky-mobile-bar.wzs-sticky-wa-only .wzs-sticky-wa {
  flex: 1;
  height: 46px;
  font-size: 13px;
  border-radius: 8px;
  text-transform: uppercase;
}




/* =====================================
PASTE THIS BLOCK INTO style.css
(Bottom section layout: Description + Attributes + Related on the LEFT,
 Widget Sidebar on the RIGHT -- desktop only. Also styles the
 attributes/specifications table.)
===================================== */

.wzs-bottom-section {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  align-items: flex-start;
}
.wzs-bottom-main { flex: 1 1 100%; min-width: 0; }

/* Sidebar only shows as a real 2-column layout when widgets exist */
.wzs-bottom-section.wzs-has-sidebar .wzs-bottom-main { flex: 1 1 68%; }
.wzs-bottom-sidebar {
  flex: 1 1 32%;
  max-width: 340px;
}

.wzs-widget {
  background: #fff;
  border: 1px solid var(--wz-border);
  border-radius: var(--wz-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.wzs-widget-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--wz-text-dark);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wz-bg);
}

/* Product Attributes / Specifications table */
.wzs-product-attributes {
  margin-top: 30px;
  background: #fff;
  padding: 30px;
  border-radius: var(--wz-radius-lg);
  border: 1px solid var(--wz-border);
}
.wzs-product-attributes h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--wz-bg);
  padding-bottom: 10px;
}
.wzs-attr-table { width: 100%; border-collapse: collapse; }
.wzs-attr-table tr { border-bottom: 1px solid var(--wz-border); }
.wzs-attr-table tr:last-child { border-bottom: none; }
.wzs-attr-table th,
.wzs-attr-table td {
  padding: 12px 10px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.wzs-attr-table th {
  width: 30%;
  font-weight: 700;
  color: var(--wz-text-dark);
  background: var(--wz-bg);
}
.wzs-attr-table td { color: var(--wz-text-gray); }
.wzs-attr-table p { margin: 0; }

@media (max-width: 991px) {
  .wzs-bottom-section { flex-direction: column; }
  .wzs-bottom-section.wzs-has-sidebar .wzs-bottom-main,
  .wzs-bottom-sidebar { flex: none; width: 100%; max-width: 100%; }
}