/* =========================================================
   Bigfix E-Shop — Amazon-style Theme
   ========================================================= */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --nav:       #131921;
  --nav2:      #009999;
  --nav-hover: rgba(255,255,255,0.12);
  --orange:    #009999;
  --orange2:   #007878;
  --blue:      #2563eb;
  --teal:      #009999;
  --green:     #059669;
  --red:       #e11d48;
  --page-bg:   #f0f8f8;
  --card-bg:   #ffffff;
  --border:    #c8e0e3;
  --star:      #f59e0b;
  --text:      #0f172a;
  --muted:     #64748b;
  --link:      #007878;
  --radius:    8px;
  --shadow:    0 2px 5px 0 rgba(0,153,153,.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: "Amazon Ember", "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--orange2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Top Nav ────────────────────────────────────────────── */
#top-nav {
  background: var(--nav);
  position: sticky; top: 0; z-index: 1000;
  width: 100%;
  border-bottom: 3px solid #009999;
}
.tn-inner {
  max-width: 1500px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 8px;
  height: 60px;
}
.tn-logo { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 3px; }
.tn-logo:hover { outline: 1px solid #fff; text-decoration: none; }
.tn-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.tn-logo-text { color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }
.tn-logo-sub  { color: #ccc; font-size: 0.65rem; display: block; line-height: 1; }

.tn-translate { padding: 0 8px; flex-shrink: 0; margin-top: 4px; overflow: hidden; height: 32px; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; width: 140px;}
.tn-translate .goog-te-combo { border: none; font-size: 0.8rem; outline: none; background: transparent; color: #333; padding: 0; margin: 0; }
.tn-translate .goog-logo-link { display: none !important; }
.tn-translate .goog-te-gadget { color: transparent !important; font-size: 0; display: flex; align-items: center; }
.tn-translate .goog-te-gadget .goog-te-combo { color: #333; font-size: 0.8rem; }
.tn-translate .goog-te-gadget-icon { display: none !important; }
.tn-translate .goog-te-gadget-simple { background: transparent !important; border: none !important; padding: 0 !important; font-size: 0.8rem !important; display: flex; align-items: center; }
.tn-translate .goog-te-gadget-simple .goog-te-menu-value { color: #333 !important; }
.tn-translate .goog-te-gadget-simple .goog-te-menu-value span { color: #333 !important; }
.tn-translate .goog-te-gadget-simple img { display: none !important; }

body { top: 0 !important; }
.goog-te-banner-frame { display: none !important; }


.tn-deliver { padding: 4px 8px; border-radius: 3px; cursor: pointer; flex-shrink: 0; }
.tn-deliver:hover { outline: 1px solid #fff; }
.tn-deliver-lbl { font-size: 0.75rem; color: #ccc; }
.tn-deliver-val { font-size: 0.8rem; color: #fff; font-weight: 700; }

.tn-search {
  flex: 1; display: flex; height: 40px;
  border-radius: 4px; overflow: hidden;
  background: #fff;
}
.tn-search-cat {
  background: #f3f3f3; border: none; border-right: 1px solid #ccc;
  padding: 0 10px; font-size: 0.75rem; color: var(--text);
  cursor: pointer; white-space: nowrap;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
  padding-right: 22px;
}
.tn-search input {
  flex: 1; border: none; outline: none; padding: 0 12px;
  font-size: 0.875rem; color: var(--text);
}
.tn-search-btn {
  background: var(--orange); border: none;
  width: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--nav); font-size: 1.1rem; transition: background 0.15s;
}
.tn-search-btn:hover { background: var(--orange2); }

.tn-account { padding: 4px 8px; border-radius: 3px; cursor: pointer; flex-shrink: 0; position: relative; }
.tn-account:hover { outline: 1px solid #fff; }
.tn-account-lbl { font-size: 0.75rem; color: #ccc; }
.tn-account-val { font-size: 0.8rem; color: #fff; font-weight: 700; }

.tn-account-menu {
  display: none; position: absolute; top: 100%; right: 0;
  background: #fff; border: 1px solid #ccc; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); min-width: 160px;
  padding: 8px 0; z-index: 1050; list-style: none; margin: 0;
}
.tn-account-menu.show { display: block; }
.tn-account-menu li { padding: 0; margin: 0; }
.tn-account-menu a {
  display: block; padding: 8px 16px; color: #333; font-size: 0.85rem; text-decoration: none;
}
.tn-account-menu a:hover { background: #f5f5f5; color: #000; }
.tn-account-menu .dropdown-divider { border-top: 1px solid #eee; margin: 4px 0; }


.tn-returns { padding: 4px 8px; border-radius: 3px; cursor: pointer; flex-shrink: 0; }
.tn-returns:hover { outline: 1px solid #fff; }
.tn-returns-lbl { font-size: 0.75rem; color: #ccc; }
.tn-returns-val { font-size: 0.8rem; color: #fff; font-weight: 700; }

.tn-cart {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 3px; cursor: pointer; flex-shrink: 0; text-decoration: none;
}
.tn-cart:hover { outline: 1px solid #fff; text-decoration: none; }
.tn-cart-icon { position: relative; font-size: 1.8rem; color: #fff; display: flex; align-items: center; }
.tn-cart-badge {
  position: absolute; top: -4px; right: -8px;
  background: #f90; color: #111; font-size: 0.7rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tn-cart-label { font-size: 0.8rem; color: #fff; font-weight: 700; align-self: flex-end; padding-bottom: 2px; }

/* ── Sub-Nav / Category Bar ─────────────────────────────── */
#sub-nav {
  background: var(--nav2);
  border-bottom: 2px solid #007878;
}
.sn-inner {
  max-width: 1500px; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 4px;
  height: 38px; overflow-x: auto; scrollbar-width: none;
}
.sn-inner::-webkit-scrollbar { display: none; }
.sn-item {
  color: #fff; font-size: 0.8rem; font-weight: 500;
  padding: 4px 10px; border-radius: 3px;
  white-space: nowrap; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s;
}
.sn-item:hover { background: rgba(0,0,0,0.18); text-decoration: none; color: #fff; }
.sn-item.active { font-weight: 700; background: rgba(0,0,0,0.22); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.breadcrumb-inner {
  max-width: 1500px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 4px;
  font-size: 0.8rem; color: var(--muted);
}
.breadcrumb-inner a { color: var(--link); }
.breadcrumb-inner a:hover { color: var(--orange2); }
.breadcrumb-sep { color: #ccc; }

/* ── Page Wrapper ───────────────────────────────────────── */
.page-outer { max-width: 1500px; margin: 0 auto; padding: 16px; }

/* ── Cards ──────────────────────────────────────────────── */
.amz-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.amz-card-body { padding: 16px; }
.amz-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem; font-weight: 700; color: var(--text);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-amz {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; font-weight: 600;
  border: 1px solid; cursor: pointer; transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-amz-cart {
  background: linear-gradient(180deg,#00bfbf,#009999);
  border-color: #007878 #006666 #005555;
  color: #fff; width: 100%;
}
.btn-amz-cart:hover { background: linear-gradient(180deg,#00aaaa,#008888); }

.btn-amz-buy {
  background: linear-gradient(180deg,#00d4aa,#00b899);
  border-color: #009999 #007878 #006666;
  color: #fff; width: 100%;
}
.btn-amz-buy:hover { background: linear-gradient(180deg,#00c4a0,#00a88a); }

.btn-amz-primary {
  background: linear-gradient(180deg, var(--blue), #4c5fd5);
  border-color: #3a4bbf; color: #fff;
}
.btn-amz-primary:hover { background: linear-gradient(180deg,#4c5fd5,#3a4bbf); }

.btn-amz-outline {
  background: #fff; border-color: #d5d9d9; color: var(--text);
}
.btn-amz-outline:hover { background: #f7fafa; }

.btn-amz-danger {
  background: #fff; border-color: #d5d9d9; color: var(--red);
}
.btn-amz-danger:hover { background: #fef0f0; border-color: var(--red); }

/* ── Star Ratings ───────────────────────────────────────── */
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars .s { color: var(--star); font-size: 0.9rem; }
.stars .s.empty { color: #ddd; }
.rating-link { color: var(--link); font-size: 0.8rem; }
.rating-link:hover { color: var(--orange2); }

/* ── Badges ─────────────────────────────────────────────── */
.badge-new     { background: #cc0c39; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.badge-hot     { background: #ff6900; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.badge-sale    { background: #007600; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.badge-cat     { background: var(--blue-lt,#eef0fd); color: var(--blue); font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; }

/* ── Price Display ──────────────────────────────────────── */
.price-main { font-size: 1.5rem; font-weight: 400; color: #0f1111; }
.price-main .sym { font-size: 0.75rem; vertical-align: super; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.875rem; }
.price-save { color: var(--red); font-size: 0.8rem; font-weight: 600; }
.price-gst { color: var(--muted); font-size: 0.72rem; }

/* ── In Stock / Availability ────────────────────────────── */
.in-stock { color: var(--green); font-size: 0.875rem; font-weight: 600; }
.low-stock { color: #c40000; font-size: 0.875rem; font-weight: 600; }
.out-stock { color: var(--red); font-size: 0.875rem; }

/* ── Sidebar ────────────────────────────────────────────── */
.shop-sidebar { width: 220px; flex-shrink: 0; }
.sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.sidebar-title {
  padding: 10px 14px; font-size: 0.9rem; font-weight: 700; color: var(--text);
  border-bottom: 1px solid var(--border); background: #e6f4f5;
}
.sidebar-body { padding: 10px 14px; }
.filter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; cursor: pointer; font-size: 0.8rem; color: var(--text);
}
.filter-item input[type=checkbox] { accent-color: var(--orange); width: 14px; height: 14px; }
.filter-item:hover { color: var(--orange2); }
.price-range { width: 100%; accent-color: var(--orange); margin: 8px 0; }
.star-filter { display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 0; }
.star-filter:hover .s { opacity: 0.8; }

/* ── Product Grid ───────────────────────────────────────── */
.shop-main { flex: 1; min-width: 0; }
.sort-bar {
  background: #e6f4f5; border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 8px;
}
.sort-bar strong { color: var(--text); }
.sort-select {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 24px 4px 8px; font-size: 0.8rem; color: var(--text);
  background: #fff; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 6px center;
}
.products-wrap {
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--card-bg);
}
.prod-cell {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
  cursor: pointer; position: relative;
}
.prod-cell:hover { box-shadow: 0 0 0 2px var(--orange) inset; z-index: 1; }
.prod-cell:nth-child(4n) { border-right: none; }
.prod-img-wrap {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: #f7f8f8; border-radius: 4px; margin-bottom: 10px;
  overflow: hidden; position: relative;
}
.prod-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.prod-img-wrap .emoji-placeholder { font-size: 3.5rem; }
.prod-badge-wrap { position: absolute; top: 6px; left: 6px; display: flex; flex-direction: column; gap: 3px; }
.prod-cell h4 { font-size: 0.82rem; font-weight: 400; color: var(--link); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-cell h4:hover { color: var(--orange2); text-decoration: underline; }
.prod-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.prod-stars .s { font-size: 0.75rem; color: var(--star); }
.prod-review-count { font-size: 0.72rem; color: var(--link); }
.prod-price-wrap { margin-bottom: 8px; }
.prod-price { font-size: 1rem; font-weight: 400; color: var(--text); }
.prod-price .sym { font-size: 0.7rem; vertical-align: super; }
.prod-old-price { font-size: 0.72rem; color: var(--muted); text-decoration: line-through; }
.prod-savings { font-size: 0.7rem; color: var(--red); font-weight: 600; }
.prod-delivery { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; }
.prod-delivery .free { color: var(--teal); font-weight: 600; }
.prod-cart-btn {
  width: 100%; padding: 5px; border-radius: 20px;
  background: linear-gradient(180deg,#00bfbf,#009999);
  border: 1px solid #007878; color: #fff;
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.prod-cart-btn:hover { background: linear-gradient(180deg,#00aaaa,#008888); }

/* ── Product Detail ─────────────────────────────────────── */
.pd-layout { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: flex-start; }
.pd-gallery { width: 360px; flex-shrink: 0; }
.pd-thumbs { display: flex; flex-direction: column; gap: 6px; width: 60px; }
.pd-thumb {
  width: 58px; height: 58px; border: 1px solid var(--border);
  border-radius: 4px; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f7f8f8; transition: border 0.15s;
}
.pd-thumb:hover, .pd-thumb.active { border: 2px solid var(--orange); }
.pd-main-img {
  flex: 1; border: 1px solid var(--border); border-radius: 4px;
  min-height: 360px; display: flex; align-items: center; justify-content: center;
  background: #f7f8f8; overflow: hidden; cursor: zoom-in;
}
.pd-main-img img { max-height: 360px; object-fit: contain; padding: 16px; }
.pd-main-img .emoji-ph { font-size: 8rem; }

.pd-info { min-width: 0; }
.pd-brand { font-size: 0.8rem; color: var(--link); margin-bottom: 4px; }
.pd-title { font-size: 1.4rem; font-weight: 400; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.pd-rating-row { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.pd-rating-val { font-size: 1.1rem; color: var(--orange2); font-weight: 700; }
.pd-price-box { padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pd-price-lbl { font-size: 0.8rem; color: var(--muted); }
.pd-price-main { font-size: 1.6rem; font-weight: 400; }
.pd-price-sym { font-size: 0.85rem; vertical-align: super; }
.pd-price-old { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
.pd-price-pct { font-size: 0.85rem; color: var(--red); font-weight: 600; }
.pd-incl-gst { font-size: 0.72rem; color: var(--muted); }
.pd-delivery { font-size: 0.875rem; margin-bottom: 4px; }
.pd-delivery b { color: var(--teal); }
.pd-stock { font-size: 1.1rem; font-weight: 600; color: var(--green); margin-bottom: 14px; }
.pd-qty-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pd-qty-label { font-size: 0.875rem; }
.pd-qty-ctrl {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.pd-qty-ctrl button {
  width: 30px; height: 30px; background: #f0f2f5; border: none;
  font-size: 1rem; font-weight: 700; color: var(--text);
  cursor: pointer; transition: background 0.15s;
}
.pd-qty-ctrl button:hover { background: #e0e2e5; }
.pd-qty-ctrl input {
  width: 44px; height: 30px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  text-align: center; font-size: 0.875rem; color: var(--text);
  outline: none;
}

.pd-buy-box { width: 240px; flex-shrink: 0; }
.buy-box-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  position: sticky; top: 76px;
}
.buy-price-main { font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.buy-delivery { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.buy-delivery a { color: var(--link); }
.buy-stock { font-size: 1rem; font-weight: 600; color: var(--green); margin-bottom: 12px; }
.buy-qty { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.8rem; }
.buy-qty select {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 20px 4px 8px; background: #f0f2f5;
  font-size: 0.8rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.buy-ship { font-size: 0.75rem; color: var(--muted); margin-top: 10px; }
.buy-guarantee { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.buy-guarantee i { color: var(--muted); font-size: 1.1rem; }
.buy-guarantee span { font-size: 0.72rem; color: var(--muted); }

/* Warranty panel */
.warranty-section {
  background: #fffbf0; border: 1px solid #f0c040;
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 14px;
}
.warranty-header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.875rem; margin-bottom: 10px; color: #c5600a; }
.warranty-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 6px; cursor: pointer;
  background: #fff; transition: border 0.15s;
}
.warranty-option:hover, .warranty-option.selected { border-color: var(--orange); background: #fffbf0; }
.warranty-option input[type=radio] { accent-color: var(--orange); }
.warranty-opt-label { font-size: 0.8rem; font-weight: 600; }
.warranty-opt-price { font-size: 0.8rem; color: var(--green); margin-left: auto; font-weight: 600; }

/* Product Tabs */
.pd-tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; margin-bottom: 16px; }
.pd-tab {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
.pd-tab:hover { color: var(--text); }
.pd-tab.active { color: var(--text); border-bottom-color: var(--orange); }
.pd-tab-content { display: none; }
.pd-tab-content.active { display: block; }

/* ── Reviews ────────────────────────────────────────────── */
.reviews-section { padding: 20px 0; }
.review-summary { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.review-big-num { font-size: 4rem; font-weight: 700; color: var(--text); line-height: 1; }
.review-big-stars { display: flex; gap: 2px; margin: 6px 0; }
.review-big-stars .s { font-size: 1.1rem; color: var(--star); }
.review-total { font-size: 0.8rem; color: var(--muted); }
.review-bars { flex: 1; }
.review-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; cursor: pointer; }
.review-bar-row:hover .review-bar-lbl { text-decoration: underline; color: var(--link); }
.review-bar-lbl { font-size: 0.75rem; color: var(--link); white-space: nowrap; width: 45px; }
.review-bar-bg { flex: 1; height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; }
.review-bar-fill { height: 100%; background: var(--star); border-radius: 6px; transition: width 0.4s ease; }
.review-bar-pct { font-size: 0.72rem; color: var(--muted); width: 28px; text-align: right; }
.review-list { margin-top: 20px; }
.review-card {
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.review-card:last-child { border-bottom: none; }
.rc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rc-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #009999, #00d4aa);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.rc-name { font-size: 0.8rem; font-weight: 700; }
.rc-date { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
.rc-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.rc-body { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.rc-verified { font-size: 0.72rem; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.rc-helpful { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.rc-helpful a { color: var(--link); }

/* ── Cart ───────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: flex-start; }
.cart-header { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 16px; }
.cart-header h1 { font-size: 1.5rem; font-weight: 400; }
.cart-item {
  background: var(--card-bg); border: 1px solid var(--border); border-top: none;
  padding: 16px; display: flex; gap: 16px;
}
.cart-item:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.cart-item-img {
  width: 100px; height: 100px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f8f8; overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-img .emoji-ph { font-size: 2.5rem; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 1rem; color: var(--link); margin-bottom: 4px; line-height: 1.35; }
.cart-item-title:hover { color: var(--orange2); }
.cart-item-stock { font-size: 0.8rem; color: var(--green); margin-bottom: 6px; }
.cart-item-price { font-size: 1.1rem; font-weight: 700; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-qty-ctrl {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.cart-qty-ctrl button { width: 28px; height: 28px; background: #f0f2f5; border: none; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.cart-qty-ctrl button:hover { background: #e0e2e5; }
.cart-qty-ctrl span { width: 36px; text-align: center; font-size: 0.875rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 28px; display: flex; align-items: center; justify-content: center; }
.cart-action-btn { font-size: 0.78rem; color: var(--link); cursor: pointer; padding: 0 8px; border-left: 1px solid var(--border); }
.cart-action-btn:first-child { border-left: none; padding-left: 0; }
.cart-action-btn:hover { color: var(--orange2); text-decoration: underline; }
.cart-subtotal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  position: sticky; top: 76px;
}
.cart-subtotal h3 { font-size: 0.875rem; margin-bottom: 4px; }
.cart-subtotal .price { font-size: 1.1rem; font-weight: 700; }
.free-delivery-note { font-size: 0.75rem; color: var(--green); margin: 8px 0; }

/* ── Order History ──────────────────────────────────────── */
.order-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.order-card-header {
  background: #f7fafa; padding: 10px 16px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); font-size: 0.8rem;
}
.oh-lbl { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.oh-val { font-weight: 700; color: var(--text); margin-top: 2px; }
.order-card-body { padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; }
.order-thumb {
  width: 80px; height: 80px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f8f8;
}
.order-thumb .emoji-ph { font-size: 2rem; }
.order-info { flex: 1; }
.order-status-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
}
.status-paid    { background: #e6f4ea; color: var(--green); }
.status-pending { background: #fff4e0; color: #c45500; }
.status-shipped { background: #e6f0fa; color: #004b9e; }
.status-cancel  { background: #fce8ec; color: var(--red); }

/* ── Tracking Timeline ──────────────────────────────────── */
.track-timeline { position: relative; padding-left: 24px; }
.track-timeline::before { content:''; position:absolute; left:7px; top:8px; bottom:8px; width:2px; background: var(--border); }
.track-step { position: relative; margin-bottom: 16px; }
.track-dot {
  position: absolute; left: -24px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--border); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
}
.track-dot.done { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.track-dot.active { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); animation: pulse-track 1.5s infinite; }
@keyframes pulse-track { 0%,100%{box-shadow:0 0 0 2px var(--orange);}50%{box-shadow:0 0 0 5px rgba(255,153,0,0.25);} }
.track-label { font-size: 0.875rem; font-weight: 600; }
.track-time { font-size: 0.75rem; color: var(--muted); }

/* ── Profile ────────────────────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
.profile-sidebar { position: sticky; top: 76px; }
.profile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 4px; cursor: pointer;
  font-size: 0.875rem; color: var(--text); border: none; background: none;
  width: 100%; text-align: left; transition: background 0.15s;
}
.profile-menu-item:hover { background: var(--page-bg); }
.profile-menu-item.active { background: #fff8ed; color: var(--orange2); font-weight: 700; border-right: 3px solid var(--orange); }
.profile-menu-item i { width: 18px; text-align: center; }

/* ── Auth Pages ─────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--page-bg); padding-top: 0; }
.auth-nav { background: var(--nav); height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
.auth-nav-divider { background: var(--nav2); height: 4px; }
.auth-card { max-width: 380px; margin: 24px auto; }
.auth-card .amz-card-body { padding: 22px; }
.auth-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.auth-field { margin-bottom: 12px; }
.auth-field label { font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 4px; }
.auth-field input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.875rem; outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.auth-field input:focus { border-color: #e77600; box-shadow: 0 0 0 3px rgba(231,118,0,0.25); }
.auth-submit {
  width: 100%; height: 36px; border-radius: 4px;
  background: linear-gradient(180deg,#ffd814,#f4c700);
  border: 1px solid #a88734; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.auth-submit:hover { background: linear-gradient(180deg,#f7ca00,#e5ba00); }
.auth-divider { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }
.auth-divider span { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.auth-footer-text { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 12px; }
.auth-footer-text a { color: var(--link); }
.auth-new-customer {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-top: 12px; background: var(--card-bg);
}
.auth-new-customer h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.auth-new-customer p { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.btn-create-account {
  display: block; width: 100%; height: 34px;
  background: linear-gradient(180deg,#f7f8fa,#e7e9ec);
  border: 1px solid #adb1b8; border-radius: 4px;
  font-size: 0.875rem; font-weight: 600; text-align: center;
  line-height: 34px; cursor: pointer; color: var(--text);
  transition: background 0.15s;
}
.btn-create-account:hover { background: linear-gradient(180deg,#e7e9ec,#d9dce1); text-decoration: none; }

/* ── Transactions / Orders Table ────────────────────────── */
.txn-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.txn-table thead th { background: #f7fafa; border-bottom: 2px solid var(--border); padding: 10px 12px; text-align: left; font-weight: 700; color: var(--text); }
.txn-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.txn-table tbody tr:hover { background: #f7fafa; }
.txn-table tbody tr:last-child td { border-bottom: none; }

/* ── Footer ─────────────────────────────────────────────── */
#shop-footer { margin-top: 32px; }
.ft-back-top {
  background: #37475a; text-align: center; padding: 14px;
  color: #fff; font-size: 0.8rem; cursor: pointer;
  transition: background 0.15s; letter-spacing: 0.04em;
}
.ft-back-top:hover { background: #485769; }

/* ── Footer main columns ── */
.ft-main { background: #232f3e; color: #ddd; padding: 40px 16px 28px; }
.ft-main-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.ft-col { display: flex; flex-direction: column; }
.ft-col-heading {
  font-size: 0.82rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ft-col-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ft-col-list li a {
  font-size: 0.8rem; color: #b0bec5;
  transition: color 0.15s; display: block;
}
.ft-col-list li a:hover { color: #fff; text-decoration: none; }
/* legacy selectors */
.ft-col h4 { font-size: 0.82rem; font-weight: 700; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.ft-col a, .ft-col p { font-size: 0.8rem; color: #b0bec5; margin-bottom: 8px; display: block; transition: color 0.15s; }
.ft-col a:hover { color: #fff; text-decoration: none; }

/* ── Footer bottom bar ── */
.ft-bottom {
  background: var(--nav); padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ft-bottom-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.ft-bottom-logo img { height: 28px; filter: brightness(0) invert(1); opacity: 0.85; display: block; }
.ft-bottom-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center;
}
.ft-bottom-links a { font-size: 0.72rem; color: #aaa; padding: 0 8px; transition: color 0.15s; }
.ft-bottom-links a:hover { color: #fff; text-decoration: none; }
.ft-bottom-sep { color: #555; font-size: 0.72rem; }
.ft-copyright, .ft-bottom-copy { font-size: 0.72rem; color: #aaa; white-space: nowrap; }

/* ── Misc Utilities ─────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.text-muted { color: var(--muted) !important; }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-teal  { color: var(--teal); }
.text-orange { color: var(--orange2); }
.fw-bold { font-weight: 700; }
.fs-sm  { font-size: 0.78rem; }
.fs-xs  { font-size: 0.72rem; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-wrap { grid-template-columns: repeat(3,1fr); }
  .pd-layout { grid-template-columns: auto 1fr; }
  .pd-buy-box { display: none; }
}
@media (max-width: 960px) {
  .shop-sidebar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .ft-main-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .ft-bottom-inner { justify-content: center; text-align: center; }
}
@media (max-width: 768px) {
  .products-wrap { grid-template-columns: repeat(2,1fr); }
  .tn-inner { gap: 6px; }
  .tn-deliver, .tn-returns { display: none; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { width: 100%; }
}
@media (max-width: 480px) {
  .products-wrap { grid-template-columns: 1fr; }
  .ft-main-inner { grid-template-columns: 1fr; gap: 20px; }
  .review-summary { flex-direction: column; }
}
