/* GoGiftings auth + product-grid stabilization fix */
:root {
  --gg-pink: #f62780;
  --gg-purple: #5a1a93;
  --gg-ink: #2b1730;
  --gg-soft: #fff4fa;
  --gg-line: rgba(90, 26, 147, 0.14);
}
.login-premium-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(246, 39, 128, 0.14),
      transparent 34%
    ),
    radial-gradient(circle at 88% 8%, rgba(90, 26, 147, 0.12), transparent 32%),
    linear-gradient(180deg, #fff7fb 0%, #fff 62%);
  padding: 54px 0 72px;
}
.login-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: center;
}
.login-story {
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 70px rgba(90, 26, 147, 0.1);
  backdrop-filter: blur(18px);
}
.login-story h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.98;
  margin: 16px 0;
  color: var(--gg-ink);
  letter-spacing: -0.04em;
}
.login-story p {
  font-size: 17px;
  color: #6d526f;
  max-width: 560px;
}
.login-benefit-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.login-benefit-grid div {
  padding: 15px 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--gg-line);
}
.login-benefit-grid strong {
  display: block;
  color: var(--gg-ink);
}
.login-benefit-grid span {
  display: block;
  color: #7d667f;
  font-size: 13px;
  margin-top: 3px;
}
.login-card-premium {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 610px;
  border-radius: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 28px 88px rgba(90, 26, 147, 0.18);
}
.login-flower-frame {
  position: relative;
  min-height: 520px;
  background: linear-gradient(145deg, #ffe5f2, #f2e8ff);
}
.login-flower-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login-flower-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(43, 23, 48, 0.18));
}
.login-form-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.login-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gg-pink), var(--gg-purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(246, 39, 128, 0.24);
}
.login-brand-lockup strong,
.login-brand-lockup span {
  display: block;
}
.login-brand-lockup span {
  font-size: 12px;
  color: #7d667f;
}
.login-secure-chip,
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  border: 1px solid var(--gg-line);
  color: var(--gg-purple);
  font-weight: 800;
  font-size: 12px;
}
.login-form-panel h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  margin: 15px 0 10px;
  color: var(--gg-ink);
}
.login-form-panel p {
  color: #715a73;
  line-height: 1.6;
}
.gg-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #fff1f8;
  border: 1px solid var(--gg-line);
  margin: 18px 0;
}
.gg-auth-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 12px 16px;
  font-weight: 900;
  color: #6c5070;
  cursor: pointer;
}
.gg-auth-tab.is-active {
  background: #fff;
  color: var(--gg-pink);
  box-shadow: 0 10px 24px rgba(90, 26, 147, 0.11);
}
.premium-login-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.premium-login-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #45234b;
}
.premium-login-form input {
  width: 100%;
  min-height: 52px;
  border-radius: 17px;
  border: 1px solid var(--gg-line);
  padding: 0 16px;
  font: inherit;
  background: #fff;
  color: var(--gg-ink);
  outline: none;
}
.premium-login-form input:focus,
.otp-box:focus {
  border-color: var(--gg-pink);
  box-shadow: 0 0 0 4px rgba(246, 39, 128, 0.12);
}
.gg-auth-step[hidden],
.gg-register-fields[hidden],
.gg-auth-status[hidden] {
  display: none !important;
}
.gg-register-fields {
  display: grid;
  gap: 12px;
}
.gg-otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin: 8px 0 4px;
}
.otp-box {
  height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  border-radius: 16px;
  border: 1px solid var(--gg-line);
  background: #fff;
  color: var(--gg-ink);
  outline: none;
}
.gg-auth-helper {
  font-size: 13px;
  color: #806785;
}
.gg-auth-status {
  border-radius: 18px;
  padding: 12px 14px;
  background: #fff6fb;
  border: 1px solid rgba(246, 39, 128, 0.18);
  color: #68416b;
  font-size: 13px;
}
.gg-auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gg-link-button {
  border: 0;
  background: transparent;
  color: var(--gg-purple);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}
.login-trust-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.login-trust-row span {
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gg-line);
  padding: 8px 10px;
  color: #614465;
  font-size: 12px;
  font-weight: 800;
}
.login-terms {
  font-size: 12px;
  margin-top: 14px;
}
.gg-auth-return-chip {
  margin-top: 10px;
  font-size: 12px;
  color: #68416b;
  background: #fff;
  border: 1px dashed rgba(90, 26, 147, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  width: max-content;
  max-width: 100%;
}
.gg-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--gg-line);
  box-shadow: 0 12px 34px rgba(90, 26, 147, 0.08);
}
.gg-grid-count {
  font-weight: 900;
  color: var(--gg-ink);
}
.gg-load-more-wrap {
  text-align: center;
  margin: 26px 0;
}
.gg-load-more {
  min-width: 210px;
}
.product-card.gg-hidden-card {
  display: none !important;
}
.listing-grid,
.product-row,
.addon-grid {
  align-items: stretch;
}
.product-card {
  height: 100%;
  min-width: 0;
}
.product-card h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
}
.thumb-wrap,
.product-thumb {
  overflow: hidden;
}
.gg-auth-required-note {
  margin: 10px 0 0;
  color: #7a5f7d;
  font-size: 13px;
}
@media (max-width: 980px) {
  .login-premium-grid,
  .login-card-premium {
    grid-template-columns: 1fr;
  }
  .login-flower-frame {
    min-height: 270px;
  }
  .login-card-premium {
    min-height: auto;
  }
  .login-story {
    padding: 24px;
  }
  .login-form-panel {
    padding: 24px;
  }
}
@media (max-width: 560px) {
  .login-premium-page {
    padding: 28px 0 46px;
  }
  .gg-otp-row {
    gap: 6px;
  }
  .otp-box {
    height: 48px;
    border-radius: 13px;
    font-size: 19px;
  }
  .gg-auth-actions {
    display: grid;
  }
  .gg-auth-actions .btn {
    width: 100%;
  }
  .login-trust-row {
    display: grid;
  }
  .gg-grid-toolbar {
    display: grid;
    text-align: left;
  }
  .login-form-panel {
    padding: 20px;
  }
  .login-card-premium {
    border-radius: 28px;
  }
}
.gg-auth-hidden {
  display: none !important;
}
.header-actions .gg-login-entry {
  background: linear-gradient(135deg, #f62780, #5a1a93);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(246, 39, 128, 0.22);
}
.header-actions .gg-login-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(90, 26, 147, 0.24);
}
@media (max-width: 720px) {
  .header-actions {
    gap: 7px;
  }
  .header-actions .gg-login-entry .label-hide,
  .header-actions .gg-account-entry .label-hide {
    display: none;
  }
}

/* GoGiftings modal login rebuild */
html.gg-modal-lock {
  overflow: hidden;
}
.gg-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 100000;
  background: #2b1730;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 18px 45px rgba(43, 23, 48, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}
.gg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.gg-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.gg-auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.gg-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 11, 34, 0.55);
  backdrop-filter: blur(12px);
}
.gg-auth-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  box-shadow: 0 34px 110px rgba(43, 23, 48, 0.35);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}
.gg-auth-modal.is-open .gg-auth-dialog {
  transform: translateY(0) scale(1);
}
.gg-auth-close {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #5a1a93;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(43, 23, 48, 0.14);
  cursor: pointer;
}
.gg-auth-art {
  position: relative;
  min-height: 520px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255, 255, 255, 0.32),
      transparent 28%
    ),
    linear-gradient(145deg, #f62780, #5a1a93);
  overflow: hidden;
}
.gg-auth-art:before {
  content: "";
  position: absolute;
  inset: auto -30% -32% -20%;
  height: 72%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.24),
    transparent 58%
  );
  transform: rotate(-12deg);
}
.gg-auth-bloom {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 950;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    0 18px 44px rgba(0, 0, 0, 0.16);
  margin-bottom: auto;
}
.gg-auth-art h3 {
  position: relative;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  margin: 20px 0 8px;
  letter-spacing: -0.04em;
}
.gg-auth-art p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
  max-width: 320px;
}
.gg-auth-panel {
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gg-auth-subcopy {
  color: #715a73;
  line-height: 1.55;
}
.gg-auth-modal .premium-login-form {
  margin-top: 10px;
}
.gg-auth-modal .btn.btn-primary,
.header-actions .gg-login-entry {
  background: linear-gradient(135deg, #f62780, #5a1a93) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 32px rgba(246, 39, 128, 0.28) !important;
}
.gg-auth-modal .btn.btn-primary:hover,
.header-actions .gg-login-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(90, 26, 147, 0.3) !important;
}
.footer-col [data-login-entry],
.nav-links [data-login-entry] {
  font-weight: 900;
  color: #f62780 !important;
}
.auth-page .premium-blog-section,
.auth-page .listing-grid,
.auth-page .product-row,
.auth-page .product-card,
.auth-page .more-products {
  display: none !important;
}
.auth-page .login-premium-page {
  min-height: 60vh;
}
.auth-page .login-card-premium {
  display: none !important;
}
.auth-page .login-story {
  max-width: 760px;
  margin: auto;
  text-align: center;
}
.auth-page .login-story .login-benefit-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 780px) {
  .gg-auth-dialog {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }
  .gg-auth-art {
    min-height: 210px;
    padding: 24px;
  }
  .gg-auth-bloom {
    width: 62px;
    height: 62px;
    border-radius: 21px;
    font-size: 32px;
  }
  .gg-auth-panel {
    padding: 24px;
  }
  .gg-auth-art h3 {
    font-size: 30px;
  }
  .auth-page .login-story .login-benefit-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .gg-auth-modal {
    padding: 10px;
  }
  .gg-auth-dialog {
    max-height: 96vh;
  }
  .gg-auth-panel {
    padding: 20px;
  }
  .gg-auth-art {
    display: none;
  }
  .gg-toast {
    width: calc(100% - 28px);
    text-align: center;
  }
  .header-actions .gg-login-entry {
    min-width: 42px;
  }
}

/* Header auth cleanup: use Account as the only top auth entry */
/* Account inherits the same icon button theme as Track and Cart. */
.header-actions .gg-account-entry {
  background: transparent;
  color: #363347 !important;
  border: inherit;
  box-shadow: none;
  font-weight: inherit;
}
.header-actions .gg-account-entry:hover,
.header-actions .gg-account-entry:focus-visible {
  color: var(--brand) !important;
  box-shadow: none;
}
.header-actions .gg-account-entry .label-hide {
  color: inherit;
}
@media (max-width: 768px) {
  .header-actions .gg-account-entry {
    background: #fbf5fb;
    border: 1px solid #e9d6e6;
  }
}
