:root {
  --g1p-bg: #f3f6fc;
  --g1p-ink: #111827;
  --g1p-muted: #5f6b7c;
  --g1p-card: #ffffff;
  --g1p-border: #e5eaf2;
  --g1p-accent: #d45231;
  --g1p-accent-2: #2f5c8f;
  --g1p-shadow: 0 18px 48px rgba(17, 24, 39, 0.1);
}

.portal-page .container {
  width: 100%;
  max-width: none;
}

.g1p-portal-wrap {
  width: 100%;
  max-width: 1520px;
  margin: 1rem auto 2rem;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--g1p-border);
  background:
    radial-gradient(1200px 320px at 10% -20%, #ffffff 0%, transparent 65%),
    radial-gradient(900px 260px at 95% -5%, #ecf2ff 0%, transparent 60%),
    var(--g1p-bg);
  box-shadow: var(--g1p-shadow);
  color: var(--g1p-ink);
}

.g1p-login-wrap {
  max-width: 520px;
  background: #fff;
}

.g1p-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--g1p-accent-2);
}

.g1p-subtitle {
  margin: 0.35rem 0 0;
  color: var(--g1p-muted);
}

.g1p-portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.g1p-portal-header h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
}

.g1p-brand-strip {
  margin: 0.8rem 0 1rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #d9e4f5;
  background: linear-gradient(120deg, #f8fbff 0%, #ffffff 45%, #f5f9ff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.g1p-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #1f2a3f;
  color: #fff;
  padding: 0.2rem 0.58rem;
  font-size: 0.73rem;
  font-weight: 800;
  margin-right: 0.45rem;
}

.g1p-brand-note {
  color: #546176;
  font-size: 0.9rem;
}

.g1p-order-form {
  display: grid;
  gap: 0.8rem;
}

.g1p-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.7rem;
}

.g1p-order-form label,
.g1p-inline-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: #2d3748;
}

.g1p-order-form input,
.g1p-order-form textarea,
.g1p-order-form select,
.g1p-search-form input[type="search"],
.g1p-inline-form input,
.g1p-inline-form select,
.g1p-portal-wrap input[type="text"],
.g1p-portal-wrap input[type="password"] {
  border: 1px solid #d5dce8;
  border-radius: 12px;
  padding: 0.64rem 0.72rem;
  width: 100%;
  max-width: 100%;
  background: #fff;
  font: inherit;
}

.g1p-order-form input:focus,
.g1p-order-form textarea:focus,
.g1p-order-form select:focus,
.g1p-search-form input[type="search"]:focus,
.g1p-inline-form input:focus,
.g1p-inline-form select:focus {
  border-color: #98accf;
  outline: none;
  box-shadow: 0 0 0 3px rgba(53, 87, 132, 0.12);
}

.g1p-button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--g1p-accent), #d86c43);
  color: #fff;
  padding: 0.66rem 1.06rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 20px rgba(204, 78, 47, 0.28);
}

.g1p-button:hover {
  transform: translateY(-1px);
}

.g1p-button-secondary {
  background: linear-gradient(120deg, var(--g1p-accent-2), #4e77ad);
  box-shadow: 0 8px 20px rgba(53, 87, 132, 0.24);
}

.g1p-alert {
  border-radius: 12px;
  padding: 0.72rem 0.86rem;
  margin: 0.7rem 0;
}

.g1p-alert-error {
  background: #fff1f1;
  color: #9a1d1d;
  border: 1px solid rgba(154, 29, 29, 0.28);
}

.g1p-alert-success {
  background: #eefaf1;
  color: #14592c;
  border: 1px solid rgba(20, 89, 44, 0.26);
}

.g1p-shop-topbar {
  margin: 0.9rem 0 1.2rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
}

.g1p-search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  width: 100%;
}

.g1p-cart-chip {
  margin-left: auto;
  text-decoration: none;
  border: 1px solid #cfdbef;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  color: #1d2b45;
  font-weight: 800;
  background: #fff;
  box-shadow: 0 8px 20px rgba(33, 52, 88, 0.08);
}

.g1p-shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr 335px;
  gap: 1.05rem;
  align-items: start;
}

.g1p-menu-sidebar,
.g1p-checkout-panel,
.g1p-catalog-panel {
  border: 1px solid var(--g1p-border);
  border-radius: 16px;
  background: var(--g1p-card);
  box-shadow: 0 10px 25px rgba(16, 24, 40, 0.04);
}

.g1p-menu-sidebar {
  padding: 0.9rem;
  position: sticky;
  top: 1rem;
}

.g1p-menu-sidebar h3,
.g1p-checkout-panel h3,
.g1p-catalog-head h3 {
  margin-top: 0;
}

.g1p-side-nav {
  display: grid;
  gap: 0.4rem;
}

.g1p-side-link {
  text-decoration: none;
  color: #1f2a3d;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.52rem 0.6rem;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.g1p-side-link:hover,
.g1p-side-link.is-active {
  border-color: #d9e3f3;
  background: #f5f8fe;
}

.g1p-catalog-panel {
  padding: 1rem;
}

.g1p-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.g1p-results-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7deea;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  color: #4f5a6b;
  background: #f9fbff;
}

.g1p-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
}

.g1p-product-card {
  border: 1px solid var(--g1p-border);
  border-radius: 16px;
  padding: 0.92rem;
  background: #fff;
  display: grid;
  gap: 0.62rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.g1p-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.09);
}

.g1p-product-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.g1p-product-card p {
  margin: 0;
  color: #5f6b7c;
  font-size: 0.92rem;
}

.g1p-option-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.g1p-option-chips span {
  border-radius: 999px;
  border: 1px solid #dde5f2;
  background: #f8fbff;
  color: #556178;
  padding: 0.18rem 0.52rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.g1p-product-image,
.g1p-product-image-placeholder {
  width: 100%;
  height: 205px;
  border-radius: 12px;
}

.g1p-product-image {
  object-fit: cover;
}

.g1p-product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #3e557e;
  background: linear-gradient(135deg, #eef3ff 0%, #f8faff 100%);
  border: 1px solid #dde6f6;
}

.g1p-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  align-items: end;
  border-top: 1px dashed #e6ecf6;
  padding-top: 0.65rem;
}

.g1p-inline-form .g1p-button {
  grid-column: 1 / -1;
}

.g1p-checkout-panel {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.g1p-order-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  max-height: 46vh;
  overflow: auto;
}

.g1p-order-list li {
  display: grid;
  gap: 0.38rem;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  padding: 0.68rem;
  background: #fff;
}

.g1p-order-list span {
  color: #576173;
  font-size: 0.9rem;
}

.g1p-muted {
  color: var(--g1p-muted);
  font-size: 0.92rem;
}

@media (max-width: 1200px) {
  .g1p-shop-layout {
    grid-template-columns: 220px 1fr;
  }

  .g1p-checkout-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 800px) {
  .g1p-brand-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .g1p-shop-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .g1p-cart-chip {
    margin-left: 0;
    text-align: center;
  }

  .g1p-shop-layout {
    grid-template-columns: 1fr;
  }

  .g1p-menu-sidebar {
    position: static;
  }

  .g1p-product-grid {
    grid-template-columns: 1fr;
  }

  .g1p-portal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
