/* GoldenPharm — B2B shop layer. Built on the design-system tokens. */

/* ============================ Header cart + actions ============================ */
.gp-cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gp-navy-800);
  background: var(--accent-soft);
  flex: 0 0 auto;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast);
}
.gp-cart-link:hover { background: var(--accent); color: #fff; }
.gp-cart-link__i { width: 21px; height: 21px; display: inline-flex; }
.gp-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gp-blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  border: 2px solid #fff;
}

/* ============================ Shop page shell ============================ */
.gp-shop { background: var(--gp-surface); min-height: 60vh; }
.gp-shop-head {
  background: var(--gp-navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gp-shop-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 86% -20%, rgba(65, 138, 193, 0.32), transparent 60%);
  pointer-events: none;
}
.gp-shop-head .gp-wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 48px; }
.gp-shop-head h1 { color: #fff; font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 12px; }
.gp-shop-head p { color: var(--text-on-dark-muted); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0; }
.gp-shop-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gp-blue-300); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.gp-shop-eyebrow span { width: 16px; height: 16px; display: inline-flex; }

.gp-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; flex-wrap: wrap; }
.gp-breadcrumb a { color: var(--text-body); font-weight: 600; }
.gp-breadcrumb a:hover { color: var(--accent); }
.gp-breadcrumb span.sep { width: 14px; height: 14px; display: inline-flex; color: var(--gp-slate-300); }

/* ============================ Catalog ============================ */
.gp-catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
.gp-cat-filters { position: sticky; top: 96px; }
.gp-cat-filters h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.gp-cat-list { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0 0 28px; padding: 0; }
.gp-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--text-body);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.gp-cat-list a:hover { background: var(--accent-soft); color: var(--gp-blue-700); }
.gp-cat-list a.is-active { background: var(--accent); color: #fff; }
.gp-cat-list a .n { font-size: 12px; opacity: 0.7; font-weight: 700; }

.gp-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.gp-prod-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.gp-prod-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.gp-prod-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--gp-blue-50); overflow: hidden; }
.gp-prod-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-prod-card__media .gp-badge { position: absolute; top: 12px; left: 12px; }
.gp-prod-card__media a.gp-prod-cover { position: absolute; inset: 0; }
.gp-prod-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.gp-prod-card__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.gp-prod-card__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-strong); margin: 0 0 6px; line-height: 1.3; }
.gp-prod-card__title a { color: inherit; }
.gp-prod-card__title a:hover { color: var(--accent); }
.gp-prod-card__sku { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.gp-prod-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--text-body); margin: 0 0 16px; }
.gp-prod-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gp-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); }
.gp-price small { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ============================ Quantity stepper ============================ */
.gp-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: #fff; }
.gp-qty button { width: 36px; height: 40px; border: none; background: #fff; color: var(--text-body); cursor: pointer; display: grid; place-items: center; transition: background var(--dur-fast); }
.gp-qty button:hover { background: var(--accent-soft); color: var(--accent); }
.gp-qty button span { width: 16px; height: 16px; display: inline-flex; }
.gp-qty input { width: 46px; height: 40px; border: none; border-left: 1px solid var(--border-hairline); border-right: 1px solid var(--border-hairline); text-align: center; font-family: var(--gp-font-sans); font-size: 15px; font-weight: 700; color: var(--text-strong); -moz-appearance: textfield; }
.gp-qty input::-webkit-outer-spin-button, .gp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================ Product detail ============================ */
.gp-pd { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gp-pd__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-hairline); aspect-ratio: 1 / 1; background: var(--gp-blue-50); }
.gp-pd__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-pd__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.gp-pd h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 12px; line-height: 1.12; }
.gp-pd__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.gp-pd__sku { font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.gp-pd__price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin-bottom: 22px; }
.gp-pd__desc { font-size: 16px; line-height: 1.7; color: var(--text-body); margin-bottom: 26px; }
.gp-pd__buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); margin-bottom: 26px; }
.gp-pd__features { display: flex; flex-direction: column; gap: 12px; }
.gp-pd__features div { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text-body); }
.gp-pd__features span.ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.gp-pd__features span.ic span { width: 17px; height: 17px; display: inline-flex; }

/* ============================ Cart ============================ */
.gp-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.gp-cart-table { width: 100%; border-collapse: collapse; }
.gp-cart-table thead th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding: 0 12px 14px; border-bottom: 1px solid var(--border-hairline); }
.gp-cart-table thead th.num, .gp-cart-table td.num { text-align: right; }
.gp-cart-row td { padding: 18px 12px; border-bottom: 1px solid var(--border-hairline); vertical-align: middle; }
.gp-cart-prod { display: flex; align-items: center; gap: 16px; }
.gp-cart-prod img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: var(--gp-blue-50); }
.gp-cart-prod .t { font-size: 15.5px; font-weight: 700; color: var(--text-strong); line-height: 1.3; }
.gp-cart-prod .t a { color: inherit; }
.gp-cart-prod .s { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.gp-cart-remove { background: none; border: none; cursor: pointer; color: var(--gp-slate-400); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; transition: background var(--dur-fast), color var(--dur-fast); }
.gp-cart-remove:hover { background: var(--gp-danger-soft); color: var(--gp-danger); }
.gp-cart-remove span { width: 17px; height: 17px; display: inline-flex; }
.gp-cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.gp-summary { background: #fff; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-1); position: sticky; top: 96px; }
.gp-summary h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-strong); margin: 0 0 18px; }
.gp-summary__row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--text-body); padding: 9px 0; }
.gp-summary__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--text-strong); border-top: 1px solid var(--border-hairline); margin-top: 8px; padding-top: 16px; }
.gp-summary__total .v { font-size: 26px; letter-spacing: -0.02em; }
.gp-summary .gp-btn { width: 100%; margin-top: 18px; }
.gp-summary__note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; text-align: center; }

.gp-empty { text-align: center; padding: 60px 20px; }
.gp-empty__ic { width: 72px; height: 72px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 22px; }
.gp-empty__ic span { width: 36px; height: 36px; display: inline-flex; }
.gp-empty h2 { font-size: 24px; font-weight: 800; color: var(--text-strong); margin: 0 0 10px; }
.gp-empty p { font-size: 15.5px; color: var(--text-body); margin: 0 auto 24px; max-width: 380px; }

/* ============================ Checkout ============================ */
.gp-checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
.gp-co-items { display: flex; flex-direction: column; gap: 2px; }
.gp-co-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-hairline); }
.gp-co-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: var(--gp-blue-50); }
.gp-co-item .t { font-size: 14.5px; font-weight: 700; color: var(--text-strong); flex: 1; }
.gp-co-item .q { font-size: 13px; color: var(--text-muted); }
.gp-co-item .l { font-size: 14.5px; font-weight: 700; color: var(--text-strong); min-width: 80px; text-align: right; }

/* ============================ Account ============================ */
.gp-account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.gp-acct-side { background: #fff; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); position: sticky; top: 96px; }
.gp-acct-user { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--border-hairline); margin-bottom: 16px; }
.gp-acct-user .av { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.gp-acct-user .nm { font-size: 15px; font-weight: 700; color: var(--text-strong); line-height: 1.2; }
.gp-acct-user .og { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.gp-acct-nav { display: flex; flex-direction: column; gap: 2px; }
.gp-acct-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text-body); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.gp-acct-nav a span.ic { width: 18px; height: 18px; display: inline-flex; }
.gp-acct-nav a:hover { background: var(--accent-soft); color: var(--gp-blue-700); }
.gp-acct-nav a.is-active { background: var(--accent); color: #fff; }
.gp-acct-panel { display: none; }
.gp-acct-panel.is-active { display: block; }

.gp-orders-table { width: 100%; border-collapse: collapse; }
.gp-orders-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding: 0 14px 14px; border-bottom: 1px solid var(--border-hairline); }
.gp-orders-table td { padding: 16px 14px; border-bottom: 1px solid var(--border-hairline); font-size: 14px; color: var(--text-body); }
.gp-orders-table td.num, .gp-orders-table th.num { text-align: right; }
.gp-orders-table .onum { font-weight: 700; color: var(--text-strong); }

.gp-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================ Login / request ============================ */
.gp-auth-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: calc(100vh - 76px); }
.gp-auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 40px; background: #fff; }
.gp-auth-card { width: 100%; max-width: 420px; }
.gp-auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); margin: 0 0 8px; }
.gp-auth-card p.sub { font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0 0 28px; }
.gp-auth-aside { position: relative; overflow: hidden; background: var(--gp-navy-900); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; }
.gp-auth-aside::after { content: ""; position: absolute; inset: 0; background: radial-gradient(680px 420px at 80% 120%, rgba(65, 138, 193, 0.34), transparent 60%); }
.gp-auth-aside > * { position: relative; z-index: 1; }
.gp-auth-aside img.logo { height: 40px; width: auto; margin-bottom: 28px; }
.gp-auth-aside h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; line-height: 1.18; }
.gp-auth-aside ul { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.gp-auth-aside li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; color: var(--text-on-dark-muted); line-height: 1.5; }
.gp-auth-aside li span.ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(65, 138, 193, 0.2); color: var(--gp-blue-300); display: grid; place-items: center; flex: 0 0 auto; }
.gp-auth-aside li span.ic span { width: 17px; height: 17px; display: inline-flex; }
.gp-checkbox { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-body); cursor: pointer; }
.gp-checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ============================ Toast ============================ */
.gp-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--gp-navy-900); color: #fff; padding: 14px 22px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-4);
  display: flex; align-items: center; gap: 10px; z-index: 6000;
  opacity: 0; pointer-events: none; transition: opacity .28s ease, transform .28s ease;
}
.gp-toast.in { opacity: 1; transform: translateX(-50%) translateY(0); }
.gp-toast span.ic { width: 19px; height: 19px; display: inline-flex; color: var(--gp-success); }

/* ============================ Responsive ============================ */
@media (max-width: 960px) {
  .gp-catalog-layout { grid-template-columns: 1fr; }
  .gp-cat-filters { position: static; }
  .gp-cat-list { flex-direction: row; flex-wrap: wrap; }
  .gp-prod-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-pd { grid-template-columns: 1fr; gap: 28px; }
  .gp-cart-layout, .gp-checkout-layout, .gp-account-layout { grid-template-columns: 1fr; }
  .gp-summary, .gp-acct-side, .gp-cat-filters { position: static; }
  .gp-auth-wrap { grid-template-columns: 1fr; }
  .gp-auth-aside { display: none; }
}
@media (max-width: 600px) {
  .gp-prod-grid { grid-template-columns: 1fr; }
  .gp-field-grid { grid-template-columns: 1fr; }
  .gp-cart-table thead { display: none; }
  .gp-cart-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--border-hairline); }
  .gp-cart-row td { padding: 2px 0; border: none; }
  .gp-cart-row td.gp-cart-prod-cell { grid-column: 1 / -1; }
}

/* ============================ Print (order) ============================ */
@media print {
  .site-header, .site-footer, .gp-mmenu, .gp-fx, .gp-no-print { display: none !important; }
  body { background: #fff !important; }
  .gp-order-doc { box-shadow: none !important; border: none !important; }
}
