/*
Theme Name: DriveX Lite Checkout Theme
Theme URI: https://example.com/
Author: OpenAI
Description: Lightweight WooCommerce theme with DriveX-style single product order flow.
Version: 1.0.0
Text Domain: drivexlite
*/

:root{
  --dx-bg:#f8f8f8;
  --dx-card:#ffffff;
  --dx-text:#111827;
  --dx-muted:#6b7280;
  --dx-border:#e5e7eb;
  --dx-green:#1faa4a;
  --dx-green-soft:#effcf4;
  --dx-teal:#2a8c78;
  --dx-orange:#f6a400;
  --dx-orange-dark:#d48d00;
  --dx-radius:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--dx-bg);color:var(--dx-text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.site-header{background:#fff;border-bottom:1px solid var(--dx-border);position:sticky;top:0;z-index:99}
.dx-container{max-width:920px;margin:0 auto;padding:0 14px}
.site-header-inner{display:flex;align-items:center;justify-content:space-between;min-height:72px}
.site-branding a{font-size:40px;font-weight:900;letter-spacing:2px}
.site-main{padding:18px 0 110px}
.dx-breadcrumbs{font-size:14px;color:var(--dx-muted);margin:0 0 10px}
.dx-breadcrumbs a{color:var(--dx-muted)}
.dx-card{background:var(--dx-card);border:1px solid #ececec;border-radius:22px;padding:18px;margin-bottom:18px;box-shadow:0 1px 8px rgba(0,0,0,.03)}
.dx-product-title{font-size:26px;line-height:1.25;font-weight:800;margin:0 0 8px}
.dx-product-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--dx-muted);margin-bottom:8px}
.dx-stock-pill{display:inline-flex;align-items:center;padding:7px 14px;border-radius:999px;background:#effcf8;border:1px solid #cdeede;color:#178f58;font-weight:800}
.dx-price-main,.summary .price{font-size:28px;font-weight:800;color:var(--dx-orange-dark);margin:0 0 14px}
.dx-gallery-main{border-radius:24px;overflow:hidden;background:#fff;border:1px solid var(--dx-border)}
.dx-gallery-main img{width:100%;aspect-ratio:1/1;object-fit:cover}
.dx-gallery-thumbs{display:flex;gap:12px;margin-top:14px;overflow:auto;padding-bottom:4px}
.dx-gallery-thumb{width:86px;height:86px;border:2px solid transparent;border-radius:16px;overflow:hidden;background:#fff;flex:0 0 auto;cursor:pointer}
.dx-gallery-thumb.active{border-color:var(--dx-teal)}
.dx-gallery-thumb img{width:100%;height:100%;object-fit:cover}
.dx-top-cta{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #efefef;border-radius:20px;padding:10px;box-shadow:0 2px 10px rgba(0,0,0,.04);margin-top:14px}
.dx-top-price{flex:0 0 auto;min-width:120px;font-size:20px;font-weight:800;color:var(--dx-orange-dark)}
.dx-wa-btn,.dx-sticky-wa{width:52px;height:52px;border-radius:16px;border:1px solid #dfe9e3;background:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}
.dx-order-scroll-btn,.dx-sticky-btn{flex:1 1 auto;height:52px;border:none;border-radius:16px;background:var(--dx-orange);color:#fff;font-size:18px;font-weight:800;cursor:pointer}
.dx-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #e8ece9;border-radius:20px;overflow:hidden}
.dx-feature-item{text-align:center;padding:16px 8px;font-size:14px;font-weight:700;color:#4b5563;background:#fff;border-right:1px solid #eef2ef}
.dx-feature-item:last-child{border-right:none}
.dx-section-title{font-size:18px;font-weight:800;margin:0 0 16px}
.dx-field{margin-bottom:18px}
.dx-field label{display:block;font-size:15px;font-weight:700;margin-bottom:8px}
.dx-field input,.dx-field textarea,.dx-option-select select{width:100%;border:1px solid #e3e5e7;border-radius:16px;padding:14px 16px;font-size:16px;background:#fff;color:var(--dx-text)}
.dx-field textarea{min-height:100px;resize:vertical}
.dx-delivery-grid{display:grid;gap:14px}
.dx-delivery-option{position:relative;border:1.5px solid var(--dx-border);border-radius:20px;padding:18px 18px 18px 52px;cursor:pointer;background:#fff}
.dx-delivery-option.active{border-color:var(--dx-teal);background:#f8fffc}
.dx-delivery-option input{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:22px;height:22px}
.dx-delivery-title{font-size:16px;font-weight:800}
.dx-delivery-sub{font-size:14px;color:var(--dx-muted);margin-top:4px}
.dx-delivery-price{position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:16px;font-weight:800}
.dx-cod-badge{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:10px 16px;border-radius:999px;background:var(--dx-green-soft);color:#1b7f4a;font-size:15px;font-weight:800;border:1px solid #ccefd7}
.dx-summary-item{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:start;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #ececec}
.dx-summary-thumb img{width:72px;height:72px;object-fit:cover;border-radius:14px;border:1px solid #eaeaea}
.dx-summary-name{font-size:16px;font-weight:800;line-height:1.3;margin-bottom:4px}
.dx-summary-brand{font-size:14px;color:var(--dx-muted)}
.dx-summary-price{font-size:18px;font-weight:800;align-self:center}
.dx-qty-wrap{display:inline-flex;align-items:center;border:1px solid var(--dx-border);border-radius:16px;overflow:hidden;margin-top:12px}
.dx-qty-btn{width:40px;height:40px;border:none;background:#fff;font-size:22px;cursor:pointer;color:#4b5563}
.dx-qty-input{width:52px;height:40px;border:none!important;text-align:center;font-size:18px;font-weight:700;padding:0!important;border-radius:0!important}
.dx-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;font-size:16px}
.dx-line.muted{color:var(--dx-muted)}
.dx-line.total{border-top:1px solid #ececec;padding-top:16px;margin-top:10px;font-size:20px;font-weight:800;color:#178e4e}
.dx-submit{width:100%;margin-top:18px;height:58px;border:none;border-radius:18px;background:var(--dx-green);color:#fff;font-size:22px;font-weight:800;cursor:pointer;box-shadow:0 14px 28px rgba(31,170,74,.16)}
.dx-message{display:none;margin-top:14px;padding:14px 16px;border-radius:14px;font-size:15px}
.dx-message.success{display:block;background:#ecfff2;border:1px solid #b8efc7;color:#12723f}
.dx-message.error{display:block;background:#fff1f1;border:1px solid #f3c0c0;color:#b42318}
.dx-sticky{position:fixed;left:12px;right:12px;bottom:12px;z-index:9999;display:flex;gap:10px;align-items:center;padding:10px;background:#fff;border-radius:20px;border:1px solid #ececec;box-shadow:0 10px 30px rgba(0,0,0,.12)}
.dx-sticky-price{flex:0 0 auto;min-width:110px;font-size:18px;font-weight:800;color:var(--dx-orange-dark);padding-left:6px}
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .quantity,
.single-product .related,
.single-product .upsells,
.single-product .product_meta,
.single-product .woocommerce-tabs,
.single-product .reset_variations,
.single-product .woocommerce-review-link,
.single-product .woocommerce-product-rating{display:none!important}
.woocommerce div.product form.cart{margin:0!important}
.dx-option-select select{appearance:none;-webkit-appearance:none;background-image:none}
.site-footer{padding:30px 0;text-align:center;color:var(--dx-muted);font-size:14px}
@media (min-width:992px){.dx-sticky{max-width:920px;margin:auto}.dx-product-grid{display:grid;grid-template-columns:1fr;gap:20px}}
@media (max-width:767px){.site-branding a{font-size:34px}.dx-product-title{font-size:24px}.dx-top-price{min-width:102px;font-size:18px}.dx-feature-grid{grid-template-columns:repeat(3,1fr)}.dx-feature-item{font-size:13px;padding:14px 6px}.dx-summary-item{grid-template-columns:72px 1fr}.dx-summary-price{grid-column:2/3}.dx-delivery-price{position:static;transform:none;margin-top:10px}.dx-delivery-option{padding-right:18px}.dx-submit{font-size:20px}}
