/*
Theme Name: BulkAcc
Description: BulkAcc.co catalog storefront replica
Version: 2.0
Author: Aka AlaDin
*/

/* BulkAcc.co replica — flat AdminLTE-style catalog storefront. NO GRADIENTS. */

:root {
  --brand: #6610f2;
  --brand-dark: #520dc2;
  --page-bg: #f4f6f9;
  --card: #ffffff;
  --heading: #1f2d3d;
  --body: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --chip-panel: #f4effe;
  --footer-bg: #0b0b0b;
  --footer-link: #007bff;
  --rail-w: 80px;
  --nav-h: 55px;
  --teal: #17a2b8;
  --teal-dark: #138496;
  --banner-red: #f80000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  background: var(--page-bg);
  color: var(--body);
  font-size: 15px;
  line-height: 1.5;
}

a { text-decoration: none; }

/* ---------- Left icon rail (fixed) ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--brand);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 16px;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.rail .logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.rail nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail a.rail-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: background 0.15s ease-in-out;
}
.rail a.rail-icon:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Top navbar (sticky) ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--brand);
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 18px 0 var(--rail-w);
  color: #fff;
}

.navbar .hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-right: 14px;
  padding: 6px;
}

.navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.navbar .nav-links a {
  color: #fff;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.navbar .nav-links a:hover { background: rgba(255, 255, 255, 0.15); }

.navbar .nav-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 12px;
}
.navbar .nav-utils a {
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Slide-in drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: #fff;
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  padding: 18px 0 30px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}
.drawer-close:hover { color: var(--heading); }

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--border);
}
.drawer-logo .drawer-b {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.drawer-nav { padding: 10px 0; border-bottom: 1px solid var(--border); }
.drawer-nav a {
  display: block;
  padding: 9px 20px;
  color: var(--body);
  font-size: 15px;
}
.drawer-nav a:hover { background: var(--chip-panel); color: var(--brand); }

.drawer-heading {
  padding: 14px 20px 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.drawer-cats a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  color: var(--body);
  font-size: 15px;
}
.drawer-cats a i { width: 22px; text-align: center; color: var(--brand); }
.drawer-cats a:hover { background: var(--chip-panel); color: var(--brand); }

/* ---------- Main content ---------- */
.content {
  margin-left: var(--rail-w);
  padding: calc(var(--nav-h) + 22px) 22px 40px;
  max-width: 1400px;
}

/* ---------- Breadcrumbs + page titles ---------- */
.crumbs {
  text-align: right;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.crumbs a { color: var(--footer-link); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }

.page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 18px;
  line-height: 1.3;
}

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 22px;
  margin-bottom: 22px;
}
.search-box {
  position: relative;
  width: 50%;
  margin: 0 auto;
}
.search-box .fa-magnifying-glass {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
}
.search-box input:focus { border-color: var(--brand); }
.search-box input::placeholder { color: var(--muted); }

/* ---------- Category chip panel ---------- */
.chip-panel {
  background: var(--chip-panel);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 30px;
}
.chip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--muted);
  border-radius: 7px;
  color: #000;
  font-size: 14px;
  text-align: center;
  background: transparent;
  transition: background 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.chip:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Product category sections ---------- */
.cat-section {
  margin-bottom: 34px;
  scroll-margin-top: calc(var(--nav-h) + 14px);
}
.cat-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 14px;
}
.cat-section h2 .count { color: var(--muted); font-weight: 400; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-box {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.15s ease-in-out;
}
.info-box:hover { box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); }

.info-box .tile {
  width: 100px;
  min-height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
}
.info-box .tile.glyph-dark { color: #000; }

.info-box .info-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-box .p-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.35;
}
.info-box .p-stock {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 6px;
}

/* ---------- Category page: red banner + variants table ---------- */
.cat-banner {
  background: var(--banner-red);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 4px 4px 0 0;
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-scroll { overflow-x: auto; margin-bottom: 26px; }

.var-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 15px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.var-table th,
.var-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.var-table thead th {
  font-weight: 700;
  color: var(--heading);
  background: #fff;
}
.var-table tbody tr:last-child td { border-bottom: none; }
.var-table tbody tr:hover { background: #fafafa; }
.var-table .c { text-align: center; }
.var-table .var-title { color: var(--body); text-decoration: underline; }
.var-table .var-title:hover { color: var(--brand); }

.order-btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.order-btn:hover { background: var(--teal-dark); color: #fff; }
.order-btn.big { font-size: 16px; padding: 12px 28px; }

/* ---------- Product detail page ---------- */
.detail-wrap {
  display: flex;
  gap: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 26px;
  align-items: flex-start;
}
.detail-tile {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #fff;
}
.detail-tile.glyph-dark { color: #000; }

.detail-info { flex: 1; min-width: 0; }
.drow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f1f1;
}
.drow > span:first-child { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.4px; }
.drow strong { color: var(--heading); font-size: 16px; text-align: right; }
.drow .dprice { font-size: 20px; color: var(--brand); }
.drow.total strong { font-size: 20px; color: var(--brand); }

.qty { display: inline-flex; align-items: stretch; }
.qty button {
  width: 34px;
  height: 38px;
  border: 1px solid var(--border);
  background: #f8f9fa;
  font-size: 18px;
  cursor: pointer;
  color: var(--body);
}
.qty button:first-child { border-radius: 4px 0 0 4px; }
.qty button:last-child { border-radius: 0 4px 4px 0; }
.qty button:hover { background: var(--chip-panel); }
.qty input {
  width: 60px;
  height: 38px;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.qty-min { font-size: 13px; color: var(--muted); margin-left: 10px; }

.detail-info .order-btn { margin-top: 16px; }
.similar-link {
  display: inline-block;
  margin-top: 12px;
  margin-left: 14px;
  color: var(--footer-link);
  font-size: 15px;
}
.similar-link:hover { text-decoration: underline; }

.desc-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 26px;
}
.desc-block h3,
.similar h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 12px;
}
.similar { margin-bottom: 30px; scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ---------- Checkout ---------- */
.card-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.card-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px;
}

.checkout-form label { font-size: 15px; color: var(--heading); }
.checkout-form .field-hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 6px;
}
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"] {
  width: 100%;
  max-width: 480px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}
.checkout-form input:focus { border-color: var(--brand); }

.notice {
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 15px;
}
.notice.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.notice.error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.notice a { color: inherit; text-decoration: underline; }

.coming-soon {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border-style: dashed;
}
.coming-soon i { font-size: 22px; display: block; margin-bottom: 6px; color: var(--teal); }

/* ---------- Footer ---------- */
.footer {
  margin-left: var(--rail-w);
  background: var(--footer-bg);
  color: #adb5bd;
  padding: 16px 22px;
  font-size: 14px;
}
.footer a { color: var(--footer-link); }
.footer a:hover { text-decoration: underline; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 1050;
}
.back-to-top:hover { background: var(--brand-dark); }
.back-to-top.show { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .chip-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { width: 80%; }
  .detail-wrap { flex-direction: column; }
}

@media (max-width: 767px) {
  .chip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .product-grid { grid-template-columns: 1fr; }
  .navbar .nav-links { display: none; }
  .search-box { width: 100%; }
  .content { padding-left: 14px; padding-right: 14px; }
  .page-title { font-size: 23px; }
  .crumbs { text-align: left; }
}
