:root {
  --gold: #b38d2f;
  --text: #111111;
  --muted: #666666;
  --border: #dedede;
  --background: #ffffff;
  --soft-background: #f7f7f7;

  --line: #dedede;
  --line-soft: #eeeeee;
  --panel: #ffffff;
  --panel-2: #f7f7f7;
}


* {
  box-sizing: border-box;
}


html,
body {
  background: #ffffff !important;
  color: #111111 !important;
  margin: 0;
}


a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}


.container {
  width: min(1180px, 92%);
  margin: auto;
}


/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #999;

  backdrop-filter: blur(12px);
}


.nav {
  min-height: 135px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


.brand {
  display: flex;
  align-items: center;
}


.brand-logo {
  width: 220px;
  height: auto;
  display: block;
}


.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}


.brand-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #444;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}


.language-select {
  min-width: 165px;

  padding: 13px 42px 13px 14px;

  background: #fff;
  color: #111;

  border: 1px solid #999;
  border-radius: 0;

  font-size: 16px;

  cursor: pointer;
}


.language-select:focus {
  outline: none;
  border-color: var(--gold);
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 0;

  background: var(--gold);
  color: #fff;

  font-weight: 600;

  border: 1px solid var(--gold);
}


.button:hover {
  background: #997722;
}


/* HERO */

.hero {
  padding: 82px 0 52px;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}


h1 {
  font-size: clamp(2.8rem,7vw,5.8rem);
  line-height: .95;
  margin: 16px 0 22px;
  max-width: 930px;
}


.hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}


/* CATEGORY SECTION */

.section {
  padding: 30px 0 85px;
}


.section .container {
  border: 1px solid #e1e1e1;
  border-radius: 8px;

  padding: 32px;

  background: #ffffff;
}


.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}


.section-title h2 {
  margin: 4px 0 0;
  font-size: 2rem;
}


.section-title p {
  margin: 0;
  color: var(--muted);
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}


.category-card {
  min-height: 245px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;

  border: 1px solid #d7d7d7;
  border-radius: 6px;

  background: #ffffff;

  box-shadow: 0 2px 8px rgba(0,0,0,.04);

  transition: .2s ease;
}


.category-card:hover {
  transform: translateY(-3px);

  border-color: var(--gold);

  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}


.category-cover {
  min-height: 175px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  background: #f7f7f7;

  border-bottom: 1px solid #e5e5e5;
}


.category-cover h3 {
  margin: 0 0 7px;
  font-size: 2rem;
}


.category-cover p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}


.card-body {
  padding: 18px 22px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--muted);

  background: #ffffff;
}


.arrow {
  color: var(--gold);
  font-size: 1.35rem;
}


/* CATALOG */

.breadcrumb {
  padding-top: 38px;
  color: var(--muted);
  font-size: .95rem;
}


.catalog-head {
  padding: 28px 0 24px;
}


.catalog-head h1 {
  margin-bottom: 14px;
  font-size: clamp(2.5rem,6vw,4.8rem);
}


.catalog-head p {
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}


/* SEARCH */

.table-tools {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0 18px;
}


.search {
  width: min(430px,100%);
  padding: 13px 15px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}


.search:focus {
  border-color: var(--gold);
}


.result-count {
  color: var(--muted);
  white-space: nowrap;
  font-size: .92rem;
}


/* TABLE */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  background: #ffffff;
  margin-bottom: 80px;
}


.catalog-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}


.catalog-table th {
  padding: 15px 16px;
  text-align: left;

  background: #202530;
  color: #ffffff;

  border-bottom: 1px solid var(--line);

  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}


.catalog-table td {
  padding: 13px 16px;

  border-bottom: 1px solid var(--line-soft);

  vertical-align: middle;

  background: #ffffff;
  color: #111111;
}


.catalog-table td,
.catalog-table td a,
.catalog-table td span,
.catalog-table td div {
  color: #111111;
}


.catalog-table tr:last-child td {
  border-bottom: 0;
}


/* IMPORTANT: no black row when hovering/selecting */

.catalog-table tbody tr,
.catalog-table tbody tr td {
  background: #ffffff;
  color: #111111;
}


.catalog-table tbody tr:hover,
.catalog-table tbody tr:hover td {
  background: #ffffff !important;
  color: #111111 !important;
}


.catalog-table tbody tr:focus,
.catalog-table tbody tr:focus td,
.catalog-table tbody tr:active,
.catalog-table tbody tr:active td {
  background: #ffffff !important;
  color: #111111 !important;
}


/* COLUMN WIDTHS */

.catalog-table th:nth-child(1),
.catalog-table td:nth-child(1) {
  width: 36%;
}


.catalog-table th:nth-child(2),
.catalog-table td:nth-child(2) {
  width: 30%;
}


.catalog-table th:nth-child(3),
.catalog-table td:nth-child(3) {
  width: 16%;
}


.catalog-table th:nth-child(4),
.catalog-table td:nth-child(4) {
  width: 18%;
}


.item-name {
  font-weight: 700;
}


.barcode {
  color: var(--muted);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}


/* PHOTOS */

.thumb-button {
  width: 132px;
  height: 86px;

  padding: 0;
  border: 0;
  border-radius: 10px;

  overflow: hidden;

  background: #ffffff;

  cursor: pointer;
}


.thumb-button img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #ffffff;
}


.thumb-button:hover {
  outline: 2px solid var(--gold);
  outline-offset: 2px;

  background: #ffffff;
}


.thumb-button:focus,
.thumb-button:active {
  background: #ffffff;
}


.empty-row {
  display: none;
}


/* IMAGE MODAL */

.image-modal {
  display: none;

  position: fixed;
  inset: 0;
  z-index: 9999;

  padding: 34px;

  background: rgba(0,0,0,.88);

  align-items: center;
  justify-content: center;
}


.image-modal.open {
  display: flex;
}


.modal-panel {
  position: relative;

  max-width: min(900px,82vw);
  max-height: 86vh;

  display: flex;
  align-items: center;
  justify-content: center;
}


.modal-image {
  display: block;

  max-width: 82vw;
  max-height: 82vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 14px;

  background: #ffffff;
}


.modal-close {
  position: absolute;

  top: -18px;
  right: -18px;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.add-cart {
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;

  white-space: normal;
  line-height: 1.2;
  min-width: 120px;
}

.add-cart:hover{
  opacity:.85;
}

.cart-button{
  position:fixed;
  right:25px;
  bottom:25px;
  z-index:900;

  padding:14px 20px;

  background:#fff;
  color:#111;

  border-radius:999px;

  font-weight:800;
  cursor:pointer;
}

.cart-panel{
  position:fixed;
  top:0;
  right:-450px;

  width:min(420px,100%);
  height:100%;

  background:#171a21;

  z-index:9998;

  padding:25px;

  overflow-y:auto;

  transition:.3s;

  border-left:1px solid #2b313c;
}

.cart-panel.open{
  right:0;
}

.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;

  margin-bottom:25px;
}

.cart-header h2{
  margin:0;
}

#closeCart{
  background:none;
  border:0;
  color:#fff;
  font-size:32px;
  cursor:pointer;
}

.cart-item{
  padding:15px 0;
  border-bottom:1px solid #2b313c;
}

.cart-item-info{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.cart-item-info span{
  color:#aab2c0;
  font-size:.9rem;
}

.cart-quantity{
  display:flex;
  align-items:center;
  gap:10px;

  margin-top:12px;
}

.cart-quantity button{
  width:32px;
  height:32px;

  border:0;
  border-radius:6px;

  cursor:pointer;
}

.remove-cart-item{
  margin-top:10px;

  background:none;
  border:0;

  color:#aab2c0;

  cursor:pointer;
}

.cart-actions{
  display:flex;
  gap:10px;

  margin-top:25px;
}

.cart-actions button{
  flex:1;

  padding:12px;

  border:0;
  border-radius:8px;

  cursor:pointer;
  font-weight:700;
}

#sendOrder{
  background:#fff;
  color:#111;
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--line);

  padding: 30px 0 45px;

  color: var(--muted);

  font-size: .9rem;
}


/* RESPONSIVE */

@media (max-width:850px) {

  .category-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .hero {
    padding-top: 62px;
  }

}


@media (max-width:560px) {

  .category-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    min-height: 64px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .table-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .result-count {
    white-space: normal;
  }

  .image-modal {
    padding: 18px;
  }

  .modal-panel {
    max-width: 94vw;
  }

  .modal-image {
    max-width: 94vw;
    max-height: 82vh;
  }

}
