/* ============ PowerTools Australia — TradeTools-inspired theme ============ */
:root {
  --red: #e30613;
  --red-dark: #b30510;
  --maroon: #510000;
  --dark: #1b1b1b;
  --grey: #f4f4f4;
  --grey-2: #e5e5e5;
  --text: #222;
  --muted: #777;
  --green: #1e8e3e;
  --yellow: #ffd400;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
  --font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Promo ticker ---------- */
.ticker { background: var(--dark); color: #fff; font-size: 13px; overflow: hidden; position: relative; height: 36px; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity .5s; padding: 0 12px; text-align: center; }
.ticker-item.active { opacity: 1; }
.ticker-item a { color: var(--yellow); font-weight: 700; white-space: nowrap; }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--grey-2); }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 16px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo b { font-size: 26px; font-weight: 900; color: var(--maroon); letter-spacing: -1px; font-style: italic; }
.logo b span { color: var(--red); }
.logo small { font-size: 10px; letter-spacing: 3.5px; color: var(--muted); font-weight: 700; margin-top: 3px; text-transform: uppercase; }
.search { flex: 1; display: flex; max-width: 620px; }
.search input { flex: 1; border: 2px solid var(--maroon); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 11px 14px; font-size: 14px; outline: none; }
.search button { background: var(--red); border: 2px solid var(--red); color: #fff; padding: 0 22px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; font-size: 14px; }
.search button:hover { background: var(--red-dark); }
.header-actions { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.header-action { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #444; gap: 2px; position: relative; }
.header-action svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -6px; right: -2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ---------- Nav ---------- */
.nav { background: var(--maroon); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: stretch; }
.nav a, .nav .nav-btn { color: #fff; font-size: 13.5px; font-weight: 700; padding: 13px 16px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .3px; background: none; border: 0; }
.nav a:hover, .nav .nav-btn:hover { background: rgba(255,255,255,.12); }
.nav .hot { color: var(--yellow); }
.nav-cats { position: relative; }
.nav-cats .nav-btn { background: var(--red); }
.nav-cats .nav-btn:hover { background: var(--red-dark); }
.cats-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); width: 640px; max-height: 70vh; overflow: auto; z-index: 60; padding: 14px; border-radius: 0 0 var(--radius) var(--radius); grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.nav-cats.open .cats-dropdown { display: grid; }
.cats-dropdown a { color: var(--text); font-size: 13px; font-weight: 600; padding: 7px 8px; border-radius: 4px; text-transform: none; letter-spacing: 0; display: flex; justify-content: space-between; }
.cats-dropdown a:hover { background: var(--grey); color: var(--red); }
.cats-dropdown a small { color: var(--muted); font-weight: 400; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; }
.hero-slide.active { opacity: 1; position: relative; }
.hero-slide img { width: 100%; height: 380px; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; max-width: 60%; }
.hero-overlay .kicker { color: var(--yellow); font-weight: 800; letter-spacing: 2px; font-size: 14px; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hero-overlay h2 { color: #fff; font-size: clamp(26px, 4vw, 46px); font-weight: 900; line-height: 1.08; margin: 10px 0 16px; text-shadow: 0 2px 12px rgba(0,0,0,.7); font-style: italic; }
.hero-overlay .btn { align-self: flex-start; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; }
.hero-dots button.active { background: var(--red); border-color: var(--red); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; font-weight: 800; font-size: 14px; padding: 12px 26px; border-radius: var(--radius); border: 0; text-transform: uppercase; letter-spacing: .5px; transition: background .15s; }
.btn:hover { background: var(--red-dark); }
.btn.outline { background: transparent; border: 2px solid #fff; }
.btn.outline:hover { background: #fff; color: var(--dark); }
.btn.dark { background: var(--dark); }
.btn.dark:hover { background: #000; }
.btn.sm { padding: 9px 14px; font-size: 12.5px; width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section.alt { background: var(--grey); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.section-head h2 em { color: var(--red); font-style: italic; }
.section-head a { color: var(--red); font-weight: 700; font-size: 14px; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; overflow: hidden; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .img-wrap { position: relative; padding: 14px; }
.card .img-wrap img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 4px; z-index: 2; }
.badge-stock { position: absolute; top: 10px; right: 10px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 4px; z-index: 2; }
.badge-stock.out { background: var(--muted); }
.card-body { padding: 0 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card .code { font-size: 11px; color: var(--muted); }
.card h3 { font-size: 14px; font-weight: 700; line-height: 1.35; min-height: 38px; }
.card h3 a:hover { color: var(--red); }
.price-row { margin-top: auto; padding-top: 8px; }
.was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.save { font-size: 12px; color: var(--green); font-weight: 800; margin-left: 6px; }
.price { font-size: 21px; font-weight: 900; color: var(--dark); }
.price .gst { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 20px 14px; text-align: center; font-weight: 700; font-size: 14px; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tile:hover { border-color: var(--red); color: var(--red); box-shadow: var(--shadow); }
.tile .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--grey); display: flex; align-items: center; justify-content: center; color: var(--maroon); font-size: 20px; }
.tile small { color: var(--muted); font-weight: 400; }

/* ---------- Brand strip ---------- */
.brands-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.brand-pill { border: 2px solid var(--grey-2); border-radius: 999px; padding: 10px 26px; font-weight: 900; font-size: 16px; font-style: italic; color: #444; letter-spacing: .5px; transition: all .15s; }
.brand-pill:hover { border-color: var(--red); color: var(--red); }

/* ---------- USP bar ---------- */
.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.usp { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 16px; }
.usp svg { width: 34px; height: 34px; color: var(--red); flex-shrink: 0; }
.usp b { display: block; font-size: 14px; }
.usp small { color: var(--muted); font-size: 12.5px; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 16px; position: sticky; top: 64px; max-height: calc(100vh - 90px); overflow: auto; }
.sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; color: var(--maroon); }
.sidebar .cat-link { display: flex; justify-content: space-between; padding: 6px 6px; font-size: 13px; border-radius: 4px; color: #333; }
.sidebar .cat-link:hover { background: var(--grey); }
.sidebar .cat-link.active { background: var(--red); color: #fff; font-weight: 700; }
.sidebar .cat-link small { color: inherit; opacity: .6; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .result-count { font-size: 14px; color: var(--muted); }
.toolbar select { padding: 9px 12px; border: 1px solid var(--grey-2); border-radius: var(--radius); font-size: 13px; background: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid var(--grey-2); background: #fff; border-radius: var(--radius); font-weight: 700; font-size: 13px; }
.pagination button.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- Product page ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); padding: 14px 0; }
.crumbs a:hover { color: var(--red); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.pdp-gallery { border: 1px solid var(--grey-2); border-radius: var(--radius); padding: 20px; position: sticky; top: 70px; }
.pdp-gallery .main-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: contain; border: 2px solid var(--grey-2); border-radius: 4px; padding: 4px; cursor: pointer; }
.thumbs img.active { border-color: var(--red); }
.pdp-info h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.pdp-info .code { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pdp-price { background: var(--grey); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.pdp-price .price { font-size: 34px; }
.qty-row { display: flex; gap: 12px; margin: 18px 0; }
.qty { display: flex; border: 1px solid var(--grey-2); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 42px; background: var(--grey); border: 0; font-size: 18px; font-weight: 700; }
.qty input { width: 54px; text-align: center; border: 0; font-size: 15px; font-weight: 700; outline: none; }
.pdp-desc { margin-top: 40px; }
.pdp-desc h2 { font-size: 18px; text-transform: uppercase; border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: 6px; margin-bottom: 16px; font-style: italic; }
.pdp-desc .desc-body { font-size: 14.5px; line-height: 1.7; color: #333; }
.pdp-desc .desc-body ul { padding-left: 22px; margin: 10px 0; }
.pdp-desc .desc-body p { margin: 10px 0; }
.stock-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.stock-dot.out { background: var(--muted); }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--grey-2); }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--grey-2); vertical-align: middle; font-size: 14px; }
.cart-table img { width: 70px; height: 70px; object-fit: contain; }
.cart-item-name { font-weight: 700; }
.remove-btn { background: none; border: 0; color: var(--red); font-size: 13px; font-weight: 700; }
.cart-summary { background: var(--grey); border-radius: var(--radius); padding: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary .row.total { font-size: 20px; font-weight: 900; border-top: 2px solid var(--grey-2); margin-top: 8px; padding-top: 14px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }

/* ---------- Offers hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--maroon), var(--red)); color: #fff; padding: 44px 0; }
.page-hero h1 { font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.page-hero p { margin-top: 8px; opacity: .9; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: #ccc; margin-top: 60px; }
.footer-news { background: var(--red); padding: 26px 0; }
.footer-news .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.footer-news h3 { color: #fff; font-size: 20px; font-weight: 900; font-style: italic; }
.footer-news form { display: flex; flex: 1; max-width: 480px; }
.footer-news input { flex: 1; border: 0; padding: 12px 14px; border-radius: var(--radius) 0 0 var(--radius); font-size: 14px; outline: none; }
.footer-news button { border-radius: 0 var(--radius) var(--radius) 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 40px 0; }
.footer-cols h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-cols a, .footer-cols p { display: block; font-size: 13.5px; color: #bbb; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; padding: 16px 0; font-size: 12.5px; color: #888; text-align: center; }

/* ---------- Misc ---------- */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f7f7f7 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--dark); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 200; display: flex; gap: 10px; align-items: center; animation: pop .25s; }
.toast .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.empty-note { text-align: center; padding: 60px 20px; color: var(--muted); }
.notice { background: #fff8e1; border: 1px solid #ffe082; color: #7a5c00; font-size: 13px; padding: 10px 14px; border-radius: var(--radius); margin: 14px 0; }

@media (max-width: 900px) {
  .shop-layout, .pdp, .cart-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .pdp-gallery { position: static; }
  .hero-slide img { height: 300px; }
  .hero-overlay { max-width: 90%; }
  .header-inner { flex-wrap: wrap; }
  .search { order: 3; max-width: 100%; width: 100%; }
  .cats-dropdown { width: 92vw; grid-template-columns: 1fr; }
  .nav-inner { overflow-x: auto; }
  .nav a, .nav .nav-btn { white-space: nowrap; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body h3 { font-size: .82rem; }
  .price { font-size: 1.05rem; }
  .hero-slide img { height: 220px; }
  .hero-overlay h2 { font-size: 1.3rem; }
  .container { padding-left: 10px; padding-right: 10px; }
}
