:root {
  --commerce-ink: #10182b;
  --commerce-blue: #0052ff;
  --commerce-amber: #ff9500;
  --commerce-line: #dce4ef;
  --commerce-muted: #64748b;
  --commerce-bg: #f6f8fc;
}
* {
  box-sizing: border-box;
}
body.commerce-page {
  margin: 0;
  background: var(--commerce-bg);
  color: var(--commerce-ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
.commerce-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}
.commerce-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--commerce-line);
  backdrop-filter: blur(14px);
}
.commerce-nav {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.commerce-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--commerce-ink);
  text-decoration: none;
  font: 700 1.22rem "Space Grotesk";
  letter-spacing: 0.08em;
}
.commerce-logo img {
  width: 39px;
  height: 39px;
  border-radius: 11px;
}
.commerce-logo b {
  color: var(--commerce-amber);
}
.commerce-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.commerce-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}
.commerce-links a:hover,
.commerce-links a.active {
  color: var(--commerce-blue);
}
.commerce-cart-link {
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 11px;
  background: #edf4ff;
  color: var(--commerce-blue) !important;
}
.commerce-cart-link span {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--commerce-amber);
  color: #111827;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
}
.commerce-main {
  padding: 52px 0 84px;
  min-height: calc(100vh - 150px);
}
.commerce-page-head {
  margin-bottom: 28px;
}
.commerce-page-head a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--commerce-blue);
  text-decoration: none;
}
.commerce-page-head h1 {
  margin: 12px 0 7px;
  font: 700 clamp(1.9rem, 4vw, 2.7rem) "Space Grotesk";
  letter-spacing: -0.035em;
}
.commerce-page-head p {
  margin: 0;
  color: var(--commerce-muted);
  font-size: 0.86rem;
}
.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}
.commerce-card {
  background: #fff;
  border: 1px solid var(--commerce-line);
  border-radius: 21px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}
.commerce-card h2 {
  font: 700 1.15rem "Space Grotesk";
  margin: 0 0 19px;
}
.commerce-empty {
  text-align: center;
  padding: 60px 25px;
}
.commerce-empty svg {
  width: 70px;
  color: #cbd5e1;
}
.commerce-empty h2 {
  margin: 17px 0 7px;
}
.commerce-empty p {
  color: var(--commerce-muted);
  font-size: 0.84rem;
  margin: 0 0 22px;
}
.commerce-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--commerce-blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.commerce-button:hover {
  background: #0648d8;
}
.commerce-button.amber {
  background: var(--commerce-amber);
  color: #111827;
}
.commerce-button.secondary {
  background: #eef2f7;
  color: #334155;
}
.commerce-button.full {
  width: 100%;
}
.commerce-button[hidden] {
  display: none !important;
}
.commerce-button[disabled] {
  opacity: 0.55;
  cursor: wait;
}
.auth-social {
  margin-top: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--commerce-muted);
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.google-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid #d7dee9;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.google-button:hover {
  background: #f8fafc;
  border-color: #b8c4d5;
}
.google-button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.google-button svg {
  width: 19px;
  height: 19px;
}
.cart-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #edf1f5;
  align-items: center;
}
.cart-line:first-child {
  padding-top: 0;
}
.cart-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.cart-line img {
  width: 92px;
  height: 92px;
  box-sizing: border-box;
  padding: 6px;
  object-fit: contain;
  border-radius: 13px;
  background: #f5f7fa;
}
.cart-product-image {
  display: block;
  border-radius: 13px;
  line-height: 0;
}
.cart-product-image:focus-visible,
.cart-product-link:focus-visible,
.wishlist-product-link:focus-visible {
  outline: 3px solid #0052ff;
  outline-offset: 3px;
}
.cart-line h3 {
  font: 700 0.92rem "Space Grotesk";
  margin: 0 0 5px;
}
.cart-product-link {
  color: inherit;
  text-decoration: none;
}
.cart-product-link:hover {
  color: #0052ff;
}
.cart-line p {
  margin: 0 0 12px;
  color: var(--commerce-muted);
  font-size: 0.72rem;
}
.cart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quantity {
  display: flex;
  border: 1px solid var(--commerce-line);
  border-radius: 10px;
  overflow: hidden;
}
.quantity button {
  width: 34px;
  height: 32px;
  border: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 1rem;
}
.quantity span {
  width: 36px;
  display: grid;
  place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
}
.remove-line {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
}
.cart-line-price {
  text-align: right;
  font: 700 0.94rem "Space Grotesk";
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--commerce-muted);
  font-size: 0.8rem;
  margin: 12px 0;
}
.summary-row.total {
  border-top: 1px solid var(--commerce-line);
  padding-top: 16px;
  margin-top: 16px;
  color: var(--commerce-ink);
  font: 700 1rem "Space Grotesk";
}
.summary-note {
  padding: 11px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.68rem;
  margin: 14px 0 18px;
}
.secure-note {
  text-align: center;
  color: #94a3b8;
  font-size: 0.65rem;
  margin: 12px 0 0;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 0.72rem;
  font-weight: 750;
  color: #334155;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--commerce-line);
  border-radius: 11px;
  background: #fbfdff;
  padding: 12px 13px;
  color: var(--commerce-ink);
  outline: 0;
  font-size: 0.8rem;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--commerce-blue);
  box-shadow: 0 0 0 4px #e5edff;
  background: #fff;
}
.form-message {
  display: none;
  margin: 0 0 15px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.73rem;
}
.form-message.show {
  display: block;
}
.form-message.error {
  background: #fef2f2;
  color: #b91c1c;
}
.form-message.success {
  background: #ecfdf5;
  color: #047857;
}
.auth-shell {
  width: min(960px, calc(100% - 40px));
  margin: 55px auto 90px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #fff;
  border: 1px solid var(--commerce-line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.auth-side {
  padding: 48px;
  background: linear-gradient(145deg, #071d50, #0052ff);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h1 {
  font: 700 2.25rem/1.05 "Space Grotesk";
  margin: 18px 0;
}
.auth-side p {
  color: #c9d9ff;
  font-size: 0.84rem;
  line-height: 1.65;
}
.auth-benefits {
  display: grid;
  gap: 13px;
  margin-top: 35px;
}
.auth-benefits span {
  font-size: 0.75rem;
}
.auth-panel {
  padding: 45px;
}
.auth-tabs {
  display: flex;
  background: #eef2f7;
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 27px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #64748b;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--commerce-blue);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}
.auth-panel h2 {
  font: 700 1.45rem "Space Grotesk";
  margin: 0 0 7px;
}
.auth-panel > p {
  margin: 0 0 23px;
  color: var(--commerce-muted);
  font-size: 0.8rem;
}
.orders-list {
  display: grid;
  gap: 12px;
}
.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--commerce-line);
  border-radius: 13px;
  padding: 15px;
}
.order-row strong {
  font: 700 0.82rem "Space Grotesk";
}
.order-row small {
  display: block;
  color: var(--commerce-muted);
  font-size: 0.67rem;
  margin-top: 4px;
}
.order-status {
  padding: 6px 9px;
  border-radius: 99px;
  background: #fff4e5;
  color: #b45309;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: capitalize;
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.wishlist-card {
  background: #fff;
  border: 1px solid var(--commerce-line);
  border-radius: 18px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}
.wishlist-product-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.wishlist-product-link:hover h3 {
  color: #0052ff;
}
.wishlist-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f8fc;
}
.wishlist-card h3 {
  font: 700 0.88rem "Space Grotesk";
  margin: 13px 0 5px;
}
.wishlist-card p {
  margin: 0 0 13px;
  color: var(--commerce-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}
.wishlist-card .price {
  font: 700 0.95rem "Space Grotesk";
  margin-top: auto;
}
.wishlist-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.wishlist-actions button {
  flex: 1;
  padding: 10px;
  font-size: 0.68rem;
}
.success-card {
  text-align: center;
  width: min(620px, 100%);
  margin: auto;
}
.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}
.success-card h1 {
  font: 700 2rem "Space Grotesk";
  margin: 0 0 10px;
}
.success-card p {
  color: var(--commerce-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}
.success-number {
  display: inline-block;
  margin: 10px 0 22px;
  padding: 9px 13px;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--commerce-blue);
  font-weight: 800;
}
.commerce-footer {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 0.68rem;
  border-top: 1px solid var(--commerce-line);
  background: #fff;
}
@media (max-width: 760px) {
  .commerce-wrap {
    width: calc(100% - 28px);
  }
  .commerce-nav {
    height: 64px;
  }
  .commerce-logo span {
    font-size: 1rem;
  }
  .commerce-logo img {
    width: 34px;
    height: 34px;
  }
  .commerce-links {
    gap: 12px;
  }
  .commerce-links a:not(.commerce-cart-link):not([href="account.html"]) {
    display: none;
  }
  .commerce-cart-link {
    padding: 9px 10px;
  }
  .commerce-main {
    padding: 30px 0 60px;
  }
  .commerce-grid {
    grid-template-columns: 1fr;
  }
  .commerce-card {
    padding: 19px;
    border-radius: 17px;
  }
  .cart-line {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
  }
  .cart-line img {
    width: 74px;
    height: 74px;
  }
  .cart-line-price {
    grid-column: 2;
    text-align: left;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .auth-shell {
    width: calc(100% - 28px);
    margin: 25px auto 60px;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .auth-side {
    padding: 28px;
  }
  .auth-side h1 {
    font-size: 1.7rem;
  }
  .auth-benefits {
    display: none;
  }
  .auth-panel {
    padding: 27px 22px;
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wishlist-card img {
    height: 135px;
  }
  .order-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .order-row > :last-child {
    grid-column: 1/-1;
  }
  .commerce-page-head h1 {
    font-size: 1.8rem;
  }
}

.quantity button[disabled] {
  color: #94a3b8;
  cursor: not-allowed;
}
.stock-warning {
  color: #b91c1c !important;
  font-weight: 700;
}
.summary-note.stock-warning-note {
  background: #fef2f2;
  color: #b91c1c;
}
.commerce-button.unavailable {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}
/* Mobile Safari zooms focused form controls whose computed text is below 16px. */
@media (max-width: 1024px), (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

.product-variant i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  margin-right: 7px;
  vertical-align: -2px;
}
.product-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.product-detail-sections article {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  padding: 22px;
}
.product-detail-sections h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}
.product-detail-sections p {
  color: #637087;
  line-height: 1.7;
  margin: 0;
}
.product-detail-sections dl {
  margin: 0;
  display: grid;
}
.product-detail-sections dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}
.product-detail-sections dt {
  font-weight: 800;
}
.product-detail-sections dd {
  margin: 0;
  color: #637087;
}
.cart-line small {
  display: block;
  color: #66758d;
  margin: 4px 0;
}
@media (max-width: 700px) {
  .product-detail-sections {
    grid-template-columns: 1fr;
  }
  .product-detail-sections dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
