/* =========================================================
   ZINA B2B Theme (Premium) — Hanken Grotesk + Spacing + UI
   ========================================================= */

:root{
  /* Typography scale */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-0: 0.875rem;  /* 14 */
  --fs-1: 1rem;      /* 16 */
  --fs-2: 1.125rem;  /* 18 */
  --fs-3: 1.25rem;   /* 20 */
  --fs-4: 1.5rem;    /* 24 */
  --fs-5: 1.875rem;  /* 30 */
  --fs-6: 2.25rem;   /* 36 */

  --lh-tight: 1.2;
  --lh-normal: 1.45;
  --lh-loose: 1.65;

  /* Spacing (8px grid) */
  --sp-1: .25rem;   /* 4 */
  --sp-2: .5rem;    /* 8 */
  --sp-3: .75rem;   /* 12 */
  --sp-4: 1rem;     /* 16 */
  --sp-5: 1.25rem;  /* 20 */
  --sp-6: 1.5rem;   /* 24 */
  --sp-7: 2rem;     /* 32 */
  --sp-8: 2.5rem;   /* 40 */

  /* Premium UI tokens */
  --radius-sm: .5rem;   /* 8 */
  --radius-md: .75rem;  /* 12 */
  --radius-lg: 1rem;    /* 16 */

  --shadow-1: 0 1px 2px rgba(0,0,0,.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,.10);
  --shadow-3: 0 16px 40px rgba(0,0,0,.14);

  --border: rgba(0,0,0,.08);

  /* One subtle background */
  --surface: #fff;
  --surface-2: #f7f8fa;
}

/* Global base */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body{
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: var(--lh-normal);
  background: var(--surface-2);
}

/* Headings */
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-sans);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-6); font-weight: 700; }
h2 { font-size: var(--fs-5); font-weight: 700; }
h3 { font-size: var(--fs-4); font-weight: 700; }
h4 { font-size: var(--fs-3); font-weight: 600; }
h5 { font-size: var(--fs-2); font-weight: 600; }
h6 { font-size: var(--fs-1); font-weight: 600; }

/* Small text */
.small, small { font-size: var(--fs-0); }

/* Bootstrap components “premium” */
.card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  background: var(--surface);
}

.btn{
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: .01em;
}

.btn:focus,
.btn:focus-visible{
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.15);
}

/* Subtle hover lift */
.card.hover-lift,
.product-card-tile{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.hover-lift:hover,
.product-card-tile:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(0,0,0,.12);
}

/* Premium container spacing */
.page-wrap,
.category-view,
.product-view{
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-8);
}

/* ========= Product list (tiles) ========= */
.product-card-tile .card-body{
  padding: var(--sp-4);
}
.product-card-tile .card-footer{
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.015);
}

.product-card-tile .product-name{
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
}
.product-card-tile .product-sku{
  font-size: .8rem;
  opacity: .7;
}
.product-card-tile .product-price{
  font-size: 1rem;
  font-weight: 700;
}

/* ========= Product card (gallery layout) ========= */
.pd-top-actions{
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  flex-wrap: wrap;
}

.pd-top-actions .btn{
  min-width: 180px;
}

.pd-top-actions .btn.is-disabled{
  opacity: .45;
  pointer-events: none;
  filter: grayscale(1);
}

.product-gallery{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--sp-4);
}

.product-gallery-grid{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-4);
  align-items: start;
}

.product-thumbs{
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 520px;
  overflow: auto;
  padding-right: var(--sp-1);
}

.pd-thumb,
.product-thumb{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.pd-thumb img,
.product-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb.is-active,
.product-thumb.is-active{
  border-color: rgba(13,110,253,.7);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.12);
}

.product-main-image{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.product-main-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* Info panel */
.product-info{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--sp-5);
}

/* Responsive */
@media (max-width: 991.98px){
  .product-gallery-grid{
    grid-template-columns: 1fr;
  }
  .product-thumbs{
    flex-direction: row;
    max-height: none;
    overflow: auto;
    padding-right: 0;
  }
  .pd-thumb,
  .product-thumb{
    width: 72px;
    height: 72px;
  }
  .pd-top-actions .btn{
    min-width: 140px;
  }
}