/* Moved from index.htm <style> */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root{
  --bg:#ffffff;
  --panel:#f5f5f7;
  --muted:#6b7280;
  --accent:#1f2937;
  --accent-dark:#111827;
  --metal:#374151;
  --radius:12px;
  --container:1200px;
  --feature-icon-size:48px;
  --header-h:72px;
}
*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden}
html{scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body{margin:0;padding:0;background:#ffffff;color:#111;font-family:Arial, sans-serif;line-height:1.5}
.wrap{max-width:var(--container);margin:0 auto;padding:0 24px}

/* Header */
header{position:fixed;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;padding:16px 28px;background:#ffffff;border-bottom:1px solid #e5e7eb;z-index:1200;box-shadow:0 2px 8px rgba(0,0,0,0.08)}
.bag-open header, header.bag-open{box-shadow:none !important;border-bottom-color:transparent !important;background:#ffffff}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:52px;height:52px;border-radius:8px;background:transparent;display:flex;align-items:center;justify-content:center;color:#111;overflow:hidden;cursor:pointer}
.logo img{width:52px;height:52px;object-fit:contain}
.brand h1{font-size:18px;margin:0;font-weight:700;color:var(--metal)}
nav{display:flex;gap:22px;align-items:center}
.wrap #siteNav{margin-left:auto}
nav a{color:var(--muted);text-decoration:none;font-weight:600;font-size:15px;padding:8px 10px;border-radius:8px;transition:all .18s}
nav a:hover{color:var(--accent)}
.btn-primary{background:var(--accent);color:#fff;padding:10px 16px;border-radius:8px;font-weight:700;border:none;cursor:pointer}

.hamburger{display:none;flex-direction:column;gap:4px;cursor:pointer}
.hamburger div{width:24px;height:3px;background:var(--metal)}
.bag-btn{background:transparent;border:none;color:var(--metal);padding:0;margin-left:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.bag-btn:hover{background:transparent}
.bag-btn svg{width:28px;height:28px}
.bag-count{position:absolute;top:-4px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;line-height:16px;text-align:center;display:none}
.bag-count.pulse{animation:bagPulse .5s ease}
@keyframes bagPulse{0%{transform:scale(1)}40%{transform:scale(1.2)}100%{transform:scale(1)}}
.fly-img{position:fixed;z-index:3000;border-radius:12px;pointer-events:none;box-shadow:0 8px 20px rgba(0,0,0,0.2);will-change:transform,opacity;transition:transform .6s cubic-bezier(.2,.9,.3,1), opacity .6s}
/* Favorite animation */
.fly-heart{position:fixed;z-index:3001;width:20px;height:20px;pointer-events:none;will-change:transform,opacity;animation:heart-pop .6s cubic-bezier(.2,.9,.3,1) forwards}
.fly-heart svg{width:20px;height:20px;fill:#ef4444}
.fly-heart.inactive svg{fill:#9ca3af}
@keyframes heart-pop{0%{transform:scale(.6);opacity:0}50%{transform:scale(1.3);opacity:1}100%{transform:scale(1);opacity:0}}
.heart-spark{position:fixed;z-index:3000;width:6px;height:6px;border-radius:50%;opacity:0;will-change:transform,opacity;animation:spark-move .7s ease-out forwards}
@keyframes spark-move{0%{transform:translate(0,0) scale(1);opacity:.85}100%{transform:translate(var(--dx),var(--dy)) scale(.2);opacity:0}}
@media(max-width:780px){
  nav{display:none;position:absolute;top:calc(100% - 1px);left:0;width:100%;background:#fff;flex-direction:column;align-items:center;gap:12px;padding:8px 0 16px 0;border-top:none;box-shadow:0 2px 8px rgba(0,0,0,0.08);clip-path:inset(1px 0 0 0);z-index:1300;transition:opacity .3s}
  nav.active{display:flex}
  .hamburger{display:flex}
  .wrap .hamburger{margin-left:auto;margin-right:14px}
  .bag-btn{margin-left:18px}
}
/* Shop bag panel (attached to header) */
.shopbag-panel{display:none;position:absolute;top:calc(100% - 1px);left:0;width:100%;background:#fff;flex-direction:column;align-items:center;gap:12px;padding:0 0 16px 0;border-top:none;box-shadow:0 2px 8px rgba(0,0,0,0.08);clip-path:inset(1px 0 0 0);z-index:1300}
.shopbag-panel.active{display:flex}
.shopbag-content{position:relative;width:100%;max-width:var(--container);padding:0 5px;background:#fff}
/* Bag content */
.bag-body{padding:16px 16px 96px}
.bag-tabs{display:flex;gap:8px;margin-bottom:8px}
.bag-tab{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#374151;cursor:pointer;font-weight:600}
.bag-tab.active{background:#111;color:#fff;border-color:#111}
.bag-items{display:grid;gap:12px}
.bag-summary{margin-top:8px;color:var(--metal)}
.bag-saved{display:block;color:#ef4444;font-size:13px}
.bag-empty{display:grid;gap:12px;align-items:center;justify-items:center;padding:24px;border-radius:8px;color:var(--muted)}
.bag-empty-title{font-weight:700;color:var(--metal)}
.bag-item{display:grid;grid-template-columns:24px 64px 1fr auto;grid-template-rows:auto;align-items:center;gap:12px}
.bag-thumb{width:64px;height:64px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;background:#f3f4f6}
.bag-select{grid-column:1;place-self:center}
.bag-thumb{grid-column:2;align-self:center}
.bag-info{min-width:0;grid-column:3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto}
.bag-title{grid-column:1/span 2;grid-row:1;font-weight:700;color:var(--metal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bag-sku{grid-column:1;grid-row:2;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bag-qty{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted)}
.bag-price{font-weight:700;color:var(--accent-dark);flex-shrink:0;white-space:nowrap}
.bag-price .price-crossed{font-size:0.9em}
.bag-qty{display:flex;align-items:center;gap:8px;color:var(--muted)}
.bag-qty-btn{background:transparent;border:1px solid #e5e7eb;color:var(--metal);padding:6px 10px;border-radius:8px;cursor:pointer}
.bag-qty-btn:active{opacity:.85}
.bag-qty-input{width:56px;padding:6px 8px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px}
.order-copy-btn{background:#f3f4f6;border:1px solid #e5e7eb;color:var(--metal);padding:6px 10px;border-radius:8px;cursor:pointer}
.order-copy-btn:active{opacity:.85}
.bag-select{appearance:none;-webkit-appearance:none;width:18px;height:18px;border:1px solid #e5e7eb;border-radius:50%;background:#fff;display:inline-block;position:relative;cursor:pointer}
.bag-select:checked{background:#1f2937;border-color:#1f2937}
.bag-select:checked::after{content:'';position:absolute;top:50%;left:50%;width:8px;height:8px;background:#fff;border-radius:50%;transform:translate(-50%,-50%)}
.bag-remove-btn{background:transparent;border:1px solid #e5e7eb;color:var(--metal);padding:6px 10px;border-radius:8px;cursor:pointer}
.bag-remove-btn:active{opacity:.85}
.bag-right{display:flex;align-items:center;gap:8px;flex-shrink:0;grid-column:4;justify-content:flex-end;align-self:center}
.bag-remove{background:transparent;border:1px solid #e5e7eb;color:var(--muted);padding:6px 10px;border-radius:8px;cursor:pointer}
.bag-remove:hover{color:var(--accent)}
.bag-remove:active{opacity:.9}
.bag-items{overflow:hidden}
@media(max-width:780px){
  .bag-item{gap:10px}
  .bag-right{justify-content:flex-end}
  .bag-checkout{min-width:100%;max-width:none;width:100%}
}
@media(max-width:480px){
  .bag-items{overflow:hidden}
  .bag-item{grid-template-columns:20px 56px 1fr auto;gap:8px}
  .bag-thumb{width:56px;height:56px}
  .bag-title{font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bag-sku{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bag-qty{font-size:12px}
  .bag-qty-input{width:48px;padding:6px 6px;font-size:12px}
  .bag-price{font-size:14px}
  .bag-info{grid-template-columns:1fr;grid-template-rows:auto auto auto}
  .bag-title{grid-column:1;grid-row:1}
  .bag-sku{grid-column:1;grid-row:2}
  .bag-qty{grid-column:1;grid-row:3;justify-content:flex-start}
}

/* Order confirm items layout optimization */
#orderPanelContent #orderBagItems .bag-item{grid-template-columns:56px 1fr auto;grid-template-rows:auto;align-items:center;gap:10px}
#orderPanelContent #orderBagItems .bag-thumb{grid-column:1;grid-row:1;width:56px;height:56px}
#orderPanelContent #orderBagItems .bag-info{grid-column:2;grid-row:1;min-width:0;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto}
#orderPanelContent #orderBagItems .bag-title{grid-column:1;grid-row:1}
#orderPanelContent #orderBagItems .bag-sku{grid-column:1;grid-row:2}
#orderPanelContent #orderBagItems .bag-qty{grid-column:1;grid-row:3;justify-content:flex-start}
#orderPanelContent #orderBagItems .bag-price{grid-column:3;grid-row:1}
@media(max-width:480px){
  #orderPanelContent #orderBagItems .bag-item{grid-template-columns:48px 1fr auto;gap:8px}
  #orderPanelContent #orderBagItems .bag-thumb{width:48px;height:48px}
  #orderPanelContent #orderBagItems .bag-title{font-size:13px}
  #orderPanelContent #orderBagItems .bag-sku,#orderPanelContent #orderBagItems .bag-qty{font-size:12px}
}
.bag-summary-row{border-top:1px solid #e5e7eb;padding-top:12px;display:flex;justify-content:space-between;color:var(--metal)}
.bag-summary-row.bag-summary-saved{border-top:none}
.bag-summary-row .bag-total{font-weight:700}
.bag-summary-row .bag-total.has-discount{color:#ef4444;font-size:1.15em}
.bag-summary-row .bag-saved-amount{color:#ef4444;font-size:1.15em}
.bag-summary-row .bag-total{font-weight:700}
.bag-summary-row .bag-total.has-discount{color:#ef4444}
.bag-summary-row .bag-saved-amount{color:#ef4444}
.bolt{display:inline-block;width:16px;height:16px;margin-right:6px;vertical-align:-2px}
.bag-checkout{display:block;min-width:60%;max-width:420px;margin:12px auto 0;background:#111;color:#fff;border:none;padding:12px 16px;border-radius:8px;cursor:pointer}
.bag-profile{margin-top:16px;padding:0;background:#fff}
.bag-profile--divider{border-top:1px solid #e5e7eb;padding-top:8px}
.bag-profile-title{font-weight:700;color:var(--metal);margin-bottom:8px}
.bag-profile-links{display:grid;gap:8px}
.bag-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:#374151;padding:8px 4px}
.bag-link-icon{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center}
.bag-link-star{font-size:16px}
/* Order page */
.order-page{display:none;padding:64px 0}
.order-page.active{display:block}
.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:780px){.order-grid{grid-template-columns:1fr}}
.order-card{background:#fff;padding:16px;border-radius:12px;border:1px solid #e5e7eb}
.order-section-title{margin:0 0 12px;color:var(--metal);font-size:18px;font-weight:700}
.order-items{display:grid;gap:12px}
.order-empty{padding:24px;border-radius:8px;color:var(--muted);text-align:center}
.order-back{display:inline-block;margin-top:12px;color:#1f2937;text-decoration:underline}
.order-form{display:grid;gap:12px}
.order-field input,.order-field textarea{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px}
/* Floating label fields */
.float-field{position:relative}
.order-field .float-field input,.order-field .float-field textarea{padding:18px 12px 10px}
.float-label{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:14px;line-height:1;pointer-events:none;transition:all .16s ease}
.float-field:focus-within .float-label,.float-field input:not(:placeholder-shown)~.float-label,.float-field textarea:not(:placeholder-shown)~.float-label{top:10px;font-size:12px;color:var(--metal)}
.order-submit{display:block;min-width:60%;max-width:420px;margin:12px auto 0;background:#111;color:#fff;border:none;padding:12px 16px;border-radius:8px;cursor:pointer}
@media(max-width:780px){.order-submit{min-width:100%;max-width:none;width:100%}}
/* Phone prefix */
.phone-field .phone-prefix{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:6px;color:var(--metal);font-size:14px}
.phone-field .phone-prefix .flag{font-size:16px;line-height:1}
.order-field .phone-field input{padding-left:72px}
.phone-field .float-label{left:72px}
.phone-dropdown{position:absolute;left:12px;top:calc(100% + 6px);z-index:1400;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 16px rgba(0,0,0,0.08);min-width:220px;max-height:220px;overflow:auto;padding:6px;display:none}
.phone-dropdown.active{display:block}
.phone-option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border-radius:8px;cursor:pointer;color:#374151}
.phone-option:hover{background:#f3f4f6}
.phone-option .flag{font-size:16px}
.phone-option .name{flex:1}
.phone-option .code{color:#6b7280}
/* Overlay to seamlessly cover header bottom line/shadow without changing header styles */
.shopbag-panel.active::before{content:none}
/* Seamless panel without arrow; smooth drop */
.shopbag-panel.active::before{content:none}
.shopbag-panel{background:#fff}
.shopbag-panel.active{animation:bagDrop .18s ease-out;opacity:1}
@keyframes bagDrop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:780px){
  .shopbag-panel{max-height:calc(100svh - var(--header-h));overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior:contain}
}

/* Hero */
.hero{min-height:80vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding:140px 0;position:relative}
.hero-left{max-width:600px;z-index:1}
.eyebrow{color:var(--accent);font-weight:700;letter-spacing:1px;margin-bottom:12px;text-transform:uppercase;font-size:14px;transition: opacity 1.2s ease, transform 1.2s ease;}
.hero-title{font-size:48px;line-height:1.1;margin:0 0 18px;color:var(--metal);font-weight:800;transition: opacity 1.2s ease, transform 1.2s ease;}
.hero-sub{color:var(--muted);font-size:18px;margin-bottom:24px;transition: opacity 1.2s ease, transform 1.2s ease;}
.hero-ctas{display:flex;gap:16px}
.cta-primary{background:var(--accent);border:none;color:#fff;padding:14px 22px;border-radius:8px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.15);transition:transform .2s}
.cta-primary:hover{transform:translateY(-2px)}
.cta-ghost{background:transparent;border:1px solid #d1d5db;color:var(--muted);padding:12px 18px;border-radius:8px;cursor:pointer}

.hero-right{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.metal-img{width:100%;height:320px;border-radius:16px;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(0,0,0,0.1);position:relative}
.metal-img img{width:100%;height:100%;object-fit:cover;transition: opacity 1.2s ease, transform 1.2s ease;position:absolute;top:0;left:0}

/* Sections */
section{padding:15px 0}
.products-page #products{padding-top:60px}
.wrap section,[id]{scroll-margin-top:var(--header-h)}
.section-title{font-size:32px;color:var(--metal);margin-bottom:16px;font-weight:700;text-align:center}
.section-title a{color:inherit;text-decoration:none}
.section-title a:hover{color:var(--accent)}
.section-sub{color:var(--muted);max-width:720px;margin:0 auto;text-align:center}

/* Products */
.products-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.category-cards{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.category-card{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#374151;cursor:pointer;font-weight:600}
.category-card.active{background:#111;color:#fff;border-color:#111}
.category-card:active{opacity:.9}
.products-controls select,.products-controls input{padding:8px 12px;border-radius:8px;border:1px solid #e5e7eb;outline:none;font-size:16px}
.hot-toggle{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--metal);user-select:none}
.hot-toggle input{width:18px;height:18px}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:32px}
.card{background:#fff;padding:12px;border-radius:var(--radius);border:1px solid #e5e7eb;display:flex;flex-direction:column;gap:8px;transition:transform .25s,box-shadow .25s;box-shadow:0 2px 8px rgba(0,0,0,0.06)}
.card:hover{transform:translateY(-6px);box-shadow:0 12px 28px rgba(0,0,0,0.12)}
.card-media{aspect-ratio:1;border-radius:12px;overflow:hidden;background:#f3f4f6;position:relative}
.badge-hot{position:absolute;top:0;left:0;width:56px;height:56px;background:linear-gradient(135deg,#ef4444,#f59e0b);clip-path:polygon(0 0, 0 100%, 100% 0);box-shadow:0 6px 14px rgba(245,158,11,0.32)}
.badge-hot-text{position:absolute;top:30%;left:30%;transform:translate(-50%,-50%) rotate(-45deg);transform-origin:center;color:#fff;font-size:10px;font-weight:900;letter-spacing:0.2px;white-space:nowrap;user-select:none;pointer-events:none}
@media(max-width:780px){.badge-hot{width:44px;height:44px}.badge-hot-text{top:32%;left:32%;font-size:9px}}
 .card-media img{width:100%;height:100%;object-fit:contain}
 .badge-new-corner{position:absolute;left:8px;bottom:8px;background:#10b981;color:#fff;font-size:12px;font-weight:800;line-height:1;padding:4px 6px;border-radius:6px;box-shadow:0 4px 10px rgba(16,185,129,0.35)}
 .card h3{margin:6px 0 0;color:var(--metal);font-size:18px;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.attr-row{margin-top:6px;color:var(--muted);font-size:13px}
.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:auto}
.price{font-weight:700;color:var(--accent);font-size:16px}
.price-crossed{color:#6b7280;text-decoration:line-through}
.price-discounted{color:#ef4444;font-size:1.15em}
.price-unit{display:flex;flex-direction:row;align-items:baseline;gap:6px}
.price-unit .price-crossed{font-size:0.9em}
.total-crossed{font-weight:700;color:#6b7280;text-decoration:line-through;font-size:14px}
.total-discounted{color:#ef4444;font-weight:700;font-size:16px}
.buy{background:var(--accent-dark);border:none;color:#fff;padding:8px 12px;border-radius:8px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.1);transition:transform .2s;font-size:14px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.buy:hover{transform:translateY(-2px)}
.buy-hot{background:linear-gradient(90deg,#ef4444,#f59e0b);color:#fff;box-shadow:0 8px 20px rgba(245, 158, 11, 0.35);font-size:14px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;padding:8px 12px}
.buy-hot:hover{transform:translateY(-2px)}
/* Ensure modal subscribe wrapper does not override buy/buy-hot backgrounds */
.subscribe button.buy{background:var(--accent-dark);color:#fff}
.subscribe button.buy-hot{background:linear-gradient(90deg,#ef4444,#f59e0b);color:#fff;box-shadow:0 8px 20px rgba(245, 158, 11, 0.35)}

.products-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:20px}
.page-btn{background:transparent;border:1px solid #d1d5db;color:var(--muted);padding:8px 14px;border-radius:8px;cursor:pointer}
.page-btn[disabled]{opacity:.5;cursor:not-allowed}
.page-indicator{color:var(--metal);font-weight:600}
.products-explore{display:flex;justify-content:center;align-items:center;margin-top:35px}
.products-explore a{color:var(--accent);text-decoration:none;font-weight:700}
.products-explore a:hover{opacity:.9}
/* Order Lookup (compact) */
.order-lookup-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px}
.order-lookup-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.order-lookup-title{font-weight:700;color:var(--metal)}
.order-lookup-status{color:var(--muted);font-weight:600}
.order-lookup-status.status-processing{color:#3b82f6}
.order-lookup-status.status-completed{color:#16a34a}
.order-lookup-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:12px;color:var(--metal)}
.order-lookup-meta .row{display:flex;justify-content:space-between}
.order-lookup-table{width:100%;border-collapse:collapse}
.order-lookup-table th,.order-lookup-table td{border-bottom:1px solid #e5e7eb;padding:8px;font-size:14px;color:#374151;text-align:left}
.order-lookup-table th:nth-child(3),.order-lookup-table td:nth-child(3){text-align:center;width:64px}
.order-lookup-table th:nth-child(4),.order-lookup-table td:nth-child(4){text-align:right}
.order-lookup-table th:nth-child(5),.order-lookup-table td:nth-child(5){text-align:right}
.order-lookup-table th:nth-child(6),.order-lookup-table td:nth-child(6){text-align:right}
.order-lookup-summary{display:flex;justify-content:space-between;gap:24px;margin-top:8px;align-items:center;width:100%}
.order-lookup-summary .label{color:var(--muted)}
.order-lookup-summary .label{flex:1;text-align:left}
.order-lookup-summary .total{font-weight:700;font-size:16px;color:var(--accent-dark)}
.order-lookup-summary .total-crossed{font-weight:700;font-size:16px;color:#6b7280;text-decoration:line-through}
.order-lookup-summary .total-discounted{color:#ef4444}
.order-lookup-summary .total-small-red{color:#ef4444;font-size:13px}
.order-lookup-summary .total-small{font-size:13px;color:var(--accent-dark)}
.order-lookup-summary .total,.order-lookup-summary .total-crossed,.order-lookup-summary .total-discounted,.order-lookup-summary .total-small-red,.order-lookup-summary .total-small{display:inline-block;min-width:120px;text-align:right}
.order-lookup-item{display:flex;align-items:center;gap:8px}
.order-lookup-thumb{width:40px;height:40px;object-fit:contain;border:1px solid #e5e7eb;border-radius:8px;background:#f3f4f6}
#orderLookupResult{overflow-x:auto;overflow-y:auto;max-height:60vh;-webkit-overflow-scrolling:touch;touch-action:auto}
.order-lookup-table{min-width:680px}
#orderLookupResult .order-lookup-card{min-width:720px}
.order-lookup-notes{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:var(--metal)}
.order-lookup-notes .label{color:var(--muted)}
.order-lookup-notes .value{flex:1;text-align:right}
@media(max-width:780px){.order-lookup-header{flex-direction:column;gap:6px;align-items:flex-start}.order-lookup-meta{grid-template-columns:1fr}}

/* Features (How It Works / Why Terra) */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:32px}
.feature{background:var(--panel);padding:28px;border-radius:var(--radius);text-align:center;transition:transform .25s,box-shadow .25s,opacity .25s;box-shadow:0 2px 8px rgba(0,0,0,0.06);position:relative;overflow:hidden}
.feature:hover{transform:translateY(-5px);box-shadow:0 8px 24px rgba(0,0,0,0.12)}
.feature h4{margin:12px 0 8px;color:var(--metal);font-size:18px;display:flex;align-items:center;justify-content:center;gap:8px}
.feature p{margin:0;color:var(--muted);font-size:14px}
.feature::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,215,0,0));opacity:0;transition:opacity .3s;pointer-events:none}
.feature:hover::before{opacity:1}

/* Feature icons */
.feature-icon{display:block;width:var(--feature-icon-size);height:var(--feature-icon-size);margin:0 auto 12px;font-size:var(--feature-icon-size);color:var(--accent)}

/* Status page */
.status-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.status-code{font-size:120px;line-height:1;font-weight:900;letter-spacing:4px;margin:0;color:transparent;background:linear-gradient(135deg,#1f2937,#111827);-webkit-background-clip:text;background-clip:text;text-shadow:0 8px 28px rgba(0,0,0,0.12)}
.status-code.small{font-size:88px}
.status-actions a.cta-primary,.status-actions a.cta-ghost{min-width:180px;text-align:center}
@media(max-width:780px){
  .status-actions{flex-direction:column}
  .status-actions a.cta-primary,.status-actions a.cta-ghost{min-width:auto;width:100%}
}

/* Achievements */
#achievements{padding:64px 0;}
.achievements{display:flex;justify-content:center;gap:40px;margin-top:32px;padding:8px 12px;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.achievements{scroll-snap-type:x mandatory}
.achievement{flex:0 0 auto;width:140px;height:140px;border-radius:14px;background:linear-gradient(180deg,#f7f7f8 0%,#e8e8ea 50%,#e1e1e3 100%);border:1px solid rgba(17,24,39,0.06);box-shadow:0 6px 18px rgba(16,24,40,0.06), inset 0 1px 0 rgba(255,255,255,0.6);padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;transition: transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s;}
.achievement{scroll-snap-align:center}
.achievement:hover,.achievement:focus{transform:translateY(-8px);box-shadow:0 18px 40px rgba(16,24,40,0.12), inset 0 1px 0 rgba(255,255,255,0.55);}
.achievement h3{font-size:28px;color:#2b3036;margin:0;font-weight:700;letter-spacing:0.5px;}
.achievement .num::after{content:'+';margin-left:4px;color:var(--accent);font-weight:700}
.achievement p{font-size:13px;color:#4b5563;margin-top:8px;margin-bottom:0;line-height:1.2;}
.achievements::-webkit-scrollbar { display: none; }
.achievements { -ms-overflow-style: none; scrollbar-width: none; }

#quoteWall{overflow:hidden;position:relative}
#quoteWall::before,#quoteWall::after{content:'';position:absolute;left:0;right:0;height:40px;pointer-events:none}
#quoteWall::before{top:0;background:linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0))}
#quoteWall::after{bottom:0;background:linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0))}
#quoteWall.feature-grid{display:block}
.quote-track{display:flex;flex-direction:column;gap:8px;will-change:transform}
.quote-item{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-bottom:1px solid #e5e7eb;background:transparent;border-radius:0;box-shadow:none}
.quote-item h4{margin:0;font-size:14px;color:var(--metal);font-weight:700}
.quote-item p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;  line-clamp:2}

/* Footer */
footer {background: #f5f5f7;color: #374151;padding: 48px 24px 24px;font-size: 14px;}
.footer-grid {display: grid;grid-template-columns: repeat(3, 1fr);gap: 32px;max-width: var(--container);margin: 0 auto 32px;}
.footer-section h4 {font-size: 18px;margin-bottom: 12px;font-weight: 700;color: var(--metal);}
.footer-section p, .footer-section a, .footer-section li {color: #6b7280;margin: 6px 0;text-decoration: none;}
.footer-section ul {list-style: none;padding: 0;margin: 0;}
.footer-section li a:hover {color: var(--accent);}
.subscribe { display:flex; align-items:stretch; gap:8px; }
.subscribe input, .subscribe textarea {flex:1;padding:8px 12px;border-radius:8px;border:1px solid #e5e7eb;outline:none;font-size:16px;}
.subscribe textarea#quoteTextarea{width:100%}
.subscribe .order-field{flex:1}
.subscribe .order-field .float-field{width:100%}
.subscribe button {background: var(--accent);color:#fff;border:none;padding:8px 16px;border-radius:8px;cursor:pointer;transition: transform .2s;}
.subscribe button:hover {transform: translateY(-2px);}
.subscribe textarea#quoteTextarea{height:160px;min-height:160px;resize:vertical}
.footer-section#footerQuote .subscribe{margin-bottom:5px}
.social {margin-top:12px;display:flex;gap:12px;}
.social a {display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#e5e7eb;border-radius:50%;color:#374151;text-decoration:none;font-size:16px;transition:background .2s;}
.social a:hover {background: var(--accent);color:#fff;}
.footer-bottom {text-align:center;border-top:1px solid #e5e7eb;padding-top:16px;color:#6b7280;max-width:var(--container);margin:0 auto;overflow:hidden;word-break:break-word;padding-left:24px;padding-right:24px}

@media(max-width:1100px){
  .hero{grid-template-columns:1fr 1fr}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .feature-grid{grid-template-columns:1fr 1fr}
  .achievements{flex-direction:row;gap:16px}
}
@media(min-width:1100px){.footer-grid{grid-template-columns:repeat(3,1fr)}.products-grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:900px){.footer-grid{grid-template-columns:repeat(3,1fr) !important;align-items:start}.footer-section{min-width:0}}
@media(min-width:960px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.subscribe textarea#quoteTextarea{height:140px;min-height:140px}}
@media(max-width:780px){
 .hero{grid-template-columns:1fr;padding:100px 0 64px;gap:18px}
  .hero-title{font-size:34px}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .card{padding:6px;gap:5px}
  .card h3{font-size:15px;margin-top:2px}
  .card p{font-size:12px;line-height:1.4}
  .price{font-size:14px}
  .price-row{margin-top:6px}
  .buy,.buy-hot{font-size:13px;padding:8px 10px}
  .feature-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:24px;}
  .achievement{width:120px;height:120px;border-radius:12px;padding:14px;}
 .achievements{justify-content:flex-start;scroll-padding-left:12px;scroll-padding-right:12px;touch-action:pan-x}
  .achievement{scroll-snap-align:start}
}
@supports not (aspect-ratio: 1/1){
  .card-media::before{content:"";display:block;padding-top:100%}
 .card-media img{position:absolute;top:0;left:0;width:100%;height:100%}
}
.card-media .card-fav-btn{position:absolute;top:6px;right:6px;background:rgba(255,255,255,0.9);border:1px solid #e5e7eb;color:var(--muted);width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.card-media .card-fav-btn svg{width:16px;height:16px;display:block}
.card-media .card-fav-btn.favorite-active{color:#ef4444;border-color:#ef444430}

.contact-layout{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.contact-info{flex:1}
.contact-social{flex-shrink:0}
@media(max-width:780px){.contact-layout{flex-direction:column}}

@media(prefers-reduced-motion: reduce){
  *{animation:none !important;transition:none !important}
.buy:hover,.cta-primary:hover,.subscribe button:hover:not(.pd-arrow){transform:none}
}

#quoteWall.feature-grid{grid-template-columns:repeat(3,1fr)}

/* Quote Modal */
#quoteModal{position:fixed;top:0;left:0;right:0;bottom:0;height:100vh;background:rgba(17,24,39,0.45);display:none;align-items:center;justify-content:center;z-index:2000;padding:24px}
@supports (height: 100svh){#quoteModal{height:100svh}}
#supportModal{position:fixed;top:0;left:0;right:0;bottom:0;height:100vh;background:rgba(17,24,39,0.45);display:none;align-items:center;justify-content:center;z-index:2600;padding:24px}
@supports (height: 100svh){#supportModal{height:100svh}}
#quoteModal.active{display:flex}
#supportModal.active{display:flex}
@media(max-width:780px){
  .support-grid{grid-template-columns:1fr !important}
  .alibaba-link{flex-direction:column !important;gap:4px !important;text-align:center}
}
.msg-success{color:#16a34a}
.msg-error{color:#dc2626}
.product-attr{color:var(--muted);font-size:14px}
.alert{display:flex;align-items:center;gap:8px;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;background:#f8fafc;color:#111}
.alert-success{border-color:#16a34a40;background:#ecfdf5}
.alert-error{border-color:#dc262640;background:#fef2f2}
.alert-icon{font-size:18px}
/* Product Detail Fields */
.product-detail-field label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.product-detail-field .value{font-size:16px}
.attr-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.attr-item label{display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
.attr-item .value{font-size:14px}
/* Product Detail Modal */
#productDetailModal{position:fixed;top:0;left:0;right:0;bottom:0;height:100vh;background:rgba(17,24,39,0.45);display:none;align-items:center;justify-content:center;z-index:2000;padding:24px}
@supports (height: 100svh){#productDetailModal{height:100svh}}
#productDetailModal.active{display:flex}
#productDetailModal{touch-action:none;overscroll-behavior:contain}
.modal-open{overflow:hidden}
@media(max-width:780px){#productDetailModal img{height:120px;object-fit:contain}}
@media(max-width:780px){#productDetailModal .modal-body{gap:2px;padding:12px}}
#productDetailModal img{height:310px;object-fit:contain}
/* Floating close for product detail */
#productDetailModal .modal{position:relative}
#productDetailModal .modal-close{position:absolute;top:10px;right:10px;background:transparent;border:none;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:#fff;line-height:1;opacity:1;z-index:5;filter:drop-shadow(0 2px 6px rgba(0,0,0,0.5))}
#productDetailModal .modal-close:hover{opacity:.9}
#productDetailModal .modal-close svg{width:22px;height:22px}
@media(max-width:780px){#productDetailModal .modal-close{top:8px;right:8px;width:36px;height:36px}#productDetailModal .modal-close svg{width:18px;height:18px}}
.richtext-content{font-size:14px;color:#374151;line-height:1.6}
.richtext-content img{max-width:100%;height:auto;border-radius:8px}
.richtext-content h1,.richtext-content h2,.richtext-content h3{color:#1f2937;margin:12px 0 6px}
.richtext-content p{margin:8px 0}
.richtext-content ul, .richtext-content ol{margin:8px 0 8px 20px}
.richtext-content a{color:#1f2937;text-decoration:underline}
.richtext-content{word-break:break-word;overflow-wrap:anywhere}
.richtext-content table{width:100%;border-collapse:collapse}
.richtext-content td,.richtext-content th{border:1px solid #e5e7eb;padding:8px;vertical-align:top;word-break:break-word}
.richtext-content pre,.richtext-content code{white-space:pre-wrap;word-break:break-word}

/* Notify Modal */
#notifyModal{position:fixed;top:0;left:0;right:0;bottom:0;height:100vh;background:rgba(17,24,39,0.45);display:none;align-items:center;justify-content:center;z-index:2400;padding:24px}
@supports (height: 100svh){#notifyModal{height:100svh}}
#notifyModal.active{display:flex}
.modal{background:#fff;border-radius:12px;max-width:720px;max-height:90vh;width:100%;border:1px solid #e5e7eb;box-shadow:0 20px 40px rgba(0,0,0,0.18);overflow:hidden;display:flex;flex-direction:column;position:relative}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.modal-header h4{margin:0;font-size:18px}
.modal-body{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px;overflow:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(96px + env(safe-area-inset-bottom));flex:1 1 auto}
.modal-body .subscribe{display:block}
#productDetailModal .modal-body{padding-bottom:0}
#modalFooter{position:relative;left:auto;right:auto;bottom:auto;display:block;background:#fff;border-top:1px solid #e5e7eb;box-shadow:none;padding:12px 16px;z-index:auto;pointer-events:auto}
#modalFooter .bar{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}
#modalFooter .left{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#modalFooter .right{display:block}
#modalFooter .icon-btn{background:transparent;border:none;color:#111;display:inline-flex;align-items:center;justify-content:center;width:100%;height:48px;border-radius:10px}
#modalFooter .icon-btn:hover{background:#f3f4f6}
#modalFooter #productDetailFavorite:hover,#modalFooter #productDetailFavorite:active{background:transparent}
#modalFooter .icon-btn svg{width:24px;height:24px;stroke:currentColor;fill:transparent}
#modalFooter .icon-btn.favorite-active{color:#ef4444}
#modalFooter .icon-btn.favorite-active svg{fill:currentColor;stroke:none}
#modalFooter .right button{width:100%;min-width:auto;padding:12px 16px}
.modal-footer{background:#fff;border-top:1px solid #e5e7eb;box-shadow:none}
.modal-body input,.modal-body textarea{width:100%;font-size:16px}
.modal-body button{width:100%}
#quoteTextWrap,#quoteSubmitWrap{grid-column:1/-1}
#quoteSubmitWrap{position:sticky;bottom:0;background:linear-gradient(to top, #ffffff, rgba(255,255,255,0.92));padding:10px 0;box-shadow:0 -6px 12px rgba(0,0,0,0.06);z-index:5}
.loading#quoteSubmitWrap, #quoteSubmitWrap.loading{opacity:0.98}
#quoteSubmitWrap.loading button{pointer-events:none}
#quoteSubmitWrap.loading::after{content:"";display:inline-block;width:16px;height:16px;border:2px solid #f60;border-right-color:transparent;border-radius:50%;margin-left:12px;vertical-align:middle;animation:notifySpin 0.8s linear infinite}
/* Ensure alert is fully visible above sticky submit */
#quoteAlertWrap{margin-bottom:8px;position:relative;z-index:6}
#quoteModal .modal-body{padding-bottom:72px}
@keyframes notifySpin{to{transform:rotate(360deg)}}
.msg-success{color:#16a34a}
.msg-error{color:#dc2626}
#quoteTextareaModal{min-height:220px;resize:vertical}
.modal-close{background:transparent;border:none;font-size:22px;line-height:1;color:var(--muted);cursor:pointer}
@media(max-width:780px){.modal{max-height:92svh}.modal-header{padding:10px 14px}.modal-header h4{font-size:16px}.modal-close{font-size:20px}.modal-body{grid-template-columns:1fr}#quoteTextareaModal{min-height:160px}}

/* Image Viewer */
#imageViewer{position:fixed;inset:0;background:rgba(0,0,0,0.7);display:none;align-items:center;justify-content:center;z-index:2200}
#imageViewer.active{display:flex}
.image-stage{position:relative;max-width:90vw;max-height:90vh;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 20px 40px rgba(0,0,0,0.4);touch-action:none;overscroll-behavior:contain}
.image-stage img{display:block;user-select:none;pointer-events:none;transform-origin:center center;will-change:transform}
@media(max-width:780px){.image-stage{max-width:100vw;width:100vw}.image-stage img{width:100%;height:auto}}
.viewer-controls{position:absolute;top:12px;right:12px;display:flex;gap:8px;z-index:1}
.viewer-btn{background:rgba(255,255,255,0.9);border:1px solid #e5e7eb;color:#111;padding:8px 10px;border-radius:8px;cursor:pointer}
.pd-image-wrap{position:relative}
.pd-page{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,0.6);color:#fff;font-size:12px;padding:4px 6px;border-radius:6px}
.pd-arrow{position:absolute;top:50%;transform:translateY(-50%) !important;color:rgba(255,255,255,0.9);font-size:22px;background:transparent;border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;opacity:.6;outline:none;line-height:1;width:38px !important;height:38px !important;border-radius:999px;padding:0 !important;min-width:0 !important;transition:opacity .15s}
.pd-arrow:hover,.pd-arrow:active,.pd-arrow:focus{top:50%;transform:translateY(-50%) !important;opacity:.85}
.pd-left{left:8px}
.pd-right{right:8px}
@media(max-width:780px){.pd-arrow,.modal-body .pd-arrow,#productDetailLeft,#productDetailRight{display:none !important}}
.pd-arrow{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pd-nav-on .pd-arrow{display:inline-flex !important}
.pd-nav-off .pd-arrow{display:none !important}
.modal-body .pd-arrow{position:absolute !important;width:38px !important;height:38px !important;padding:0 !important}
.pd-arrow:hover{opacity:.85}
.pd-left{left:8px}
.pd-right{right:8px}
#productDetailImg.pd-anim{transition:transform .25s ease, opacity .25s ease;will-change:transform,opacity;transform:translateZ(0)}
.pd-slide-exit-left{transform:translateX(-40px);opacity:0}
.pd-slide-exit-right{transform:translateX(40px);opacity:0}
.pd-slide-enter-left{transform:translateX(40px);opacity:.001}
.pd-slide-enter-right{transform:translateX(-40px);opacity:.001}
