:root {
  --red: #d85025;
  --dark: #333e48;
  --dark2: #494f56;
  --grey: #f5f5f5;
  --text: #333e48;
  --muted: #7a8290;
  --border: #e6e6e6;
  --yellow: #fed700;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Inter", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* top bar + header (matches original: light top strip, orange category bar, white header) */
.topbar { background: #fff; color: var(--dark); font-size: 13px; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; justify-content: space-between; padding: 6px 16px; }
.topbar a { color: var(--dark); }
.topbar a:hover { color: var(--red); }

.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 18px; padding: 14px 16px; flex-wrap: wrap; }
.logo { font-size: 34px; font-weight: 900; letter-spacing: 1px; color: var(--dark); }
.logo::first-letter { color: var(--red); }
.logo-img { height: 44px; width: auto; }
.footer-logo-img { height: 52px; }
.catbar-strip { background: var(--red); }
.catbar { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 16px; }
.catbar a { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #fff; }
.catbar a:hover, .catbar a.active { color: #ffe3d6; text-decoration: underline; }
.searchbox { display: flex; flex: 1 1 220px; max-width: 460px; }
.searchbox input { flex: 1; border: 2px solid var(--red); border-right: 0; padding: 8px 10px; outline: none; }
.searchbox button { background: var(--red); color: #fff; border: 0; padding: 0 16px; font-weight: 700; }
.searchbox button:hover { background: #c2431d; }
.icon-link { display: flex; align-items: center; gap: 6px; color: var(--dark); font-size: 14px; font-weight: 600; }
.icon-link:hover { color: var(--red); }
.cart-link { position: relative; }
.cart-total { background: var(--red); color: #fff; border-radius: 3px; padding: 3px 8px; font-size: 13px; }

.mainnav { background: #fff; border-bottom: 1px solid var(--border); }
.mainnav-inner { display: flex; gap: 4px; align-items: center; padding: 0 16px; }
.mainnav a { color: var(--dark); padding: 12px 16px; font-size: 14px; font-weight: 500; display: inline-block; }
.mainnav a:hover, .mainnav a.active { color: var(--red); }
.lang-switch { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.lang-switch button { background: transparent; border: 1px solid var(--border); color: var(--dark); padding: 4px 10px; font-size: 12px; border-radius: 3px; }
.lang-switch button.active { background: var(--red); border-color: var(--red); color: #fff; }

/* buttons */
.btn { display: inline-block; background: var(--red); color: #fff; border: 0; padding: 11px 22px; font-weight: 700; font-size: 14px; border-radius: 22px; letter-spacing: .3px; }
.btn:hover { background: #c2431d; }
.btn.dark { background: var(--dark); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--dark); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--grey); }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* hero */
.hero { position: relative; height: 400px; overflow: hidden; background: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; }
.hero-slide img.hero-bg { opacity: .25; }
.hero-bg { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; color: #fff; }
.hero-content h2 { font-size: 44px; font-weight: 800; text-transform: uppercase; line-height: 1.1; color: var(--dark); }
.hero-content h2 em { color: var(--red); font-style: normal; }
.hero-content p { margin: 12px 0 22px; color: #5a6570; font-size: 17px; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 30px; height: 4px; border: 0; background: #cccccc; }
.hero-dots button.active { background: var(--red); }

/* home banner (original style: photo cards on white) */
.home-banner { background: #fff; padding: 26px 0 10px; }
.cat-cards .cat-card { border: 1px solid var(--border); border-radius: 4px; min-height: 0; background: #fff; }
.cat-cards .cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-cards .cat-card .cat-info { background: linear-gradient(transparent 30%, #ffffffe8 75%); text-align: left; }
.cat-cards .cat-card h3 { color: var(--dark); font-size: 19px; }
.cat-cards .learn-more { color: var(--red); font-weight: 700; font-size: 14px; }

/* category cards */
.section { padding: 46px 0; }
.section-title { text-align: left; font-size: 24px; font-weight: 700; margin-bottom: 14px; position: relative; padding-left: 14px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; background: var(--red); border-radius: 3px; }
.section-title em { color: var(--red); font-style: normal; }
.section-light { background: #fff; }
.section-grey { background: var(--grey); }
.section-sub { text-align: left; color: var(--muted); margin-bottom: 30px; padding-left: 14px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cat-card { position: relative; border-radius: 6px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; }
.cat-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-card .cat-info { position: relative; padding: 18px; width: 100%; background: linear-gradient(transparent, #000000a8); }
.cat-card h3 { font-size: 22px; text-transform: uppercase; }
.cat-card p { color: #d8dbe0; font-size: 14px; margin: 4px 0 10px; }

/* tabs */
.tabs { display: flex; justify-content: flex-start; gap: 0; margin-bottom: 26px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs button { border: 0; border-bottom: 3px solid transparent; background: #fff; padding: 9px 22px; font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: .5px; margin-bottom: -1px; }
.tabs button.active { color: var(--red); border-bottom-color: var(--red); }

/* product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 8px 24px #0002; transform: translateY(-3px); }
.product-card .thumb { position: relative; display: block; background: var(--grey); aspect-ratio: 1; }
.product-card .thumb svg { width: 100%; height: 100%; }
.product-card .badge { position: absolute; top: 10px; left: 10px; background: var(--yellow); color: #000; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 3px; letter-spacing: .5px; }
.product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cats { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-card h3 { font-size: 15px; line-height: 1.35; }
.product-card h3 a:hover { color: var(--red); }
.product-card .tagline { font-size: 13px; color: var(--muted); flex: 1; }
.product-card .price { font-size: 19px; font-weight: 800; color: var(--dark); }
.product-card .actions { display: flex; gap: 8px; }
.product-card .actions .btn { flex: 1; text-align: center; }
.stars { color: #ffc107; font-size: 14px; letter-spacing: 2px; }
.stars .muted { color: var(--border); }
.rating-text { font-size: 12px; color: var(--muted); }

/* page hero */
.page-hero { background: var(--grey); color: var(--dark); padding: 38px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 30px; font-weight: 900; text-transform: uppercase; }
.page-hero p { color: var(--muted); margin-top: 6px; }
.breadcrumb { font-size: 13px; margin-bottom: 18px; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }

/* shop toolbar */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--border); background: #fff; }
.result-count { color: var(--muted); font-size: 14px; margin-right: auto; }

/* product page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 30px 0 50px; }
.product-detail .gallery { background: var(--grey); border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.product-detail .gallery svg { width: 100%; height: 100%; }
.product-detail h1 { font-size: 27px; line-height: 1.25; }
.product-detail .meta { color: var(--muted); font-size: 14px; margin: 8px 0; }
.product-detail .price { font-size: 30px; font-weight: 700; color: var(--dark); margin: 10px 0; }
.product-detail .qty-add { display: flex; gap: 10px; margin: 18px 0; }
.qty-input { width: 74px; padding: 10px; text-align: center; border: 1px solid var(--border); }
.spec-box { border-top: 2px solid var(--red); margin-top: 14px; padding-top: 16px; }
.spec-box h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 10px; }
.spec-box ul { list-style: none; }
.spec-box li { padding: 7px 0 7px 22px; border-bottom: 1px dashed var(--border); position: relative; font-size: 14.5px; }
.spec-box li::before { content: "▸"; position: absolute; left: 4px; color: var(--red); }

/* cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.cart-table th { text-align: left; background: var(--grey); color: var(--dark); padding: 12px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table .thumb-mini { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; background: var(--grey); }
.cart-table .thumb-mini svg { width: 100%; height: 100%; }
.cart-table .qty-input { width: 58px; }
.cart-summary { background: var(--grey); padding: 24px; border-radius: 6px; max-width: 420px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.cart-summary .row.total { font-size: 20px; font-weight: 900; border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; }
.cart-summary .btn { width: 100%; text-align: center; margin-top: 14px; }

/* forms */
.form-card { max-width: 480px; margin: 36px auto; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.form-card h2 { margin-bottom: 18px; font-size: 22px; }
.form-card.wide { max-width: 640px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 3px; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--dark); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-note a { color: var(--red); font-weight: 700; }
.form-error { background: #fdecec; color: #b5161f; border: 1px solid #f5c6c8; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }
.form-ok { background: #e9f9ee; color: #177245; border: 1px solid #bde8cd; padding: 10px 12px; border-radius: 4px; font-size: 14px; margin-bottom: 14px; }

/* content pages */
.prose { max-width: 860px; margin: 36px auto; line-height: 1.75; }
.prose h2 { margin: 22px 0 10px; font-size: 22px; }
.prose p, .prose li { color: #454b54; font-size: 15.5px; }
.prose ul { padding-left: 22px; margin: 10px 0; }

/* account & admin */
.dash-card { border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 20px; }
.dash-card h3 { margin-bottom: 12px; }
.order-item-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #454b54; border-bottom: 1px dashed var(--border); }
.status { font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.status.processing { background: #fff4d6; color: #9d6b00; }
.status.shipped { background: #dcebff; color: #10529c; }
.status.completed { background: #e0f6e8; color: #177245; }
.status.cancelled { background: #fde5e7; color: #b5161f; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { background: var(--red); color: #fff; border-radius: 6px; padding: 18px; }
.stat .num { font-size: 30px; font-weight: 900; }
.stat .lbl { color: #ffe3d6; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { background: var(--grey); text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; }
table.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.data-table select { padding: 5px 8px; border: 1px solid var(--border); }
.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }
.empty-state .big { font-size: 40px; font-weight: 900; color: var(--border); }

/* toasts */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 14px; animation: slidein .25s; border-left: 4px solid var(--red); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* footer (light like original) */
.footer { background: #f8f8f8; color: #5a6570; margin-top: 60px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 44px 16px; }
.footer-logo { color: var(--dark); margin-bottom: 10px; }
.footer h4 { color: var(--dark); margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.footer p { font-size: 14px; margin-bottom: 8px; }
.footer a:hover { color: var(--red); }
.footer-bottom { background: #2d2d2f; text-align: center; padding: 16px; font-size: 13px; color: #9fa1a6; }
.footer a:hover { color: var(--red); }

/* responsive */
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .hero { height: 320px; }
  .hero-content h2 { font-size: 30px; }
  .header-main { gap: 10px; }
  .catbar { order: 5; width: 100%; }
}
@media (max-width: 640px) {
  .cart-table .hide-sm { display: none; }
  .mainnav-inner { flex-wrap: wrap; }
  .lang-switch { margin-left: 0; }
}

/* product gallery */
.gallery-wrap { position: relative; }
.product-detail .gallery { position: relative; overflow: hidden; cursor: zoom-in; }
.product-detail .gallery img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .18s ease-out; }
.product-detail .gallery:hover img.zoomable { transform: scale(1.8); }
.gallery-status { position: absolute; bottom: 10px; right: 10px; background: #ffffffe0; border: 1px solid var(--border); border-radius: 3px; font-size: 11px; color: var(--muted); padding: 2px 8px; pointer-events: none; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--border); border-radius: 4px; cursor: pointer; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--red); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cart-table .thumb-mini img { width: 100%; height: 100%; object-fit: contain; }

/* product tabs (WooCommerce style) */
.wc-tabs { margin-top: 10px; }
.ptab-panel { border: 1px solid var(--border); border-top: 0; padding: 4px 0 10px; }
.spec-list { list-style: none; padding-left: 4px; margin: 10px 0 16px; }
.spec-list li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px dashed var(--border); }
.spec-list li::before { content: "▸"; position: absolute; left: 4px; color: var(--red); }
.share-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.share-row > span { font-size: 13px; font-weight: 700; color: var(--dark); }
.share-row a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 3px; }
.share-row a:hover { border-color: var(--dark); }
.product-meta-row { font-size: 13px; color: var(--muted); margin-top: 6px; }
.product-meta-row a { color: var(--dark); text-decoration: underline; }
.product-meta-row a:hover { color: var(--red); }

/* shop sidebar */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 26px 0 50px; }
.shop-sidebar .widget { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 18px; }
.shop-sidebar .widget h4 { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.shop-sidebar .widget ul { list-style: none; padding: 8px 14px; }
.shop-sidebar .widget li a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); border-bottom: 1px dashed #eee; }
.shop-sidebar .widget li a:hover, .shop-sidebar .widget li a.active { color: var(--red); }
.shop-sidebar .widget li a .count { color: var(--muted); font-size: 12px; float: right; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }

/* pagination */
.pagination { display: flex; gap: 6px; margin: 26px 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 3px; font-size: 14px; font-weight: 600; }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* footer social icons */
.footer-social { display: flex; gap: 8px; margin-top: 10px; }
.footer-social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; background: #ffffff; border: 1px solid var(--border); }
.footer-social a:hover { border-color: var(--red); }

/* warranty form */
.warranty-intro { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.radio-group label { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 400; }

/* footer contact column (like original) */
.footer-contact-col { display: flex; flex-direction: column; gap: 14px; }
.f-title { color: var(--dark); font-size: 14px; display: block; margin-bottom: 4px; }
.footer-call, .footer-addr { font-size: 14px; line-height: 1.7; }
