/*
Theme Name: GdkeyCloud Managed Theme
Text Domain: esm-gdkeycloud-theme
Version: 1.4.0
Description: Generated theme for tpl-home-premium.
*/

:root {
  --brand-primary: #1c5ac6;
  --brand-ink: #162132;
  --brand-soft: #f6f1e7;
  --brand-surface: #fffdf8;
  --brand-line: rgba(22, 33, 50, 0.1);
  --brand-muted: #61708a;
  --brand-contrast: #ffffff;
  --brand-accent: #f3a83b;
  --shadow-card: 0 18px 44px rgba(22, 33, 50, 0.08);
  --shell-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top right, rgba(243, 168, 59, 0.14), transparent 24rem),
    linear-gradient(180deg, #fffaf2 0%, #f4f7fb 60%, #ffffff 100%);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.esm-shell {
  width: min(var(--shell-width), calc(100% - 32px));
  margin: 0 auto;
}

.esm-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}

.esm-announcement {
  padding: 10px 16px;
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.esm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.88);
  border-bottom: 1px solid rgba(22, 33, 50, 0.08);
}

.esm-header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}

.esm-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.esm-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-primary), #0d1e3b);
  color: var(--brand-contrast);
  font-weight: 700;
}

.esm-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.esm-brand-copy strong {
  font-size: 1rem;
}

.esm-brand-copy small {
  color: var(--brand-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.esm-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.esm-nav a {
  color: var(--brand-muted);
  font-size: 0.96rem;
}

.esm-nav a:hover,
.esm-nav a:focus-visible {
  color: var(--brand-ink);
}

.esm-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.esm-link-button,
.esm-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  font-weight: 600;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 14px 30px rgba(28, 90, 198, 0.2);
}

.esm-button-secondary {
  border-color: rgba(22, 33, 50, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-ink);
  box-shadow: none;
}

.esm-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  font-weight: 600;
}

.esm-cart-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(22, 33, 50, 0.08);
  font-size: 0.85rem;
}

.esm-button:hover,
.esm-link-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.esm-hero {
  padding: 34px 0 0;
}

.esm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.esm-hero-copy,
.esm-hero-stage {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.esm-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 236, 0.96)),
    linear-gradient(120deg, rgba(28, 90, 198, 0.08), rgba(243, 168, 59, 0.12));
  box-shadow: var(--shadow-card);
}

.esm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.esm-hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 9ch;
}

.esm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.esm-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.esm-trust-row div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(22, 33, 50, 0.08);
}

.esm-trust-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.esm-trust-row span {
  color: var(--brand-muted);
  font-size: 0.92rem;
}

.esm-hero-stage {
  display: grid;
  gap: 18px;
}

.esm-stage-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #132033, #20355f);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  min-height: 220px;
}

.esm-stage-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 168, 59, 0.25), transparent 70%);
}

.esm-stage-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.esm-stage-card h2,
.esm-stage-card h3 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
}

.esm-stage-card-primary {
  background:
    linear-gradient(145deg, rgba(20, 34, 54, 0.96), rgba(17, 49, 99, 0.94)),
    radial-gradient(circle at top left, rgba(243, 168, 59, 0.16), transparent 18rem);
}

.esm-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.esm-section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.esm-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.esm-merch-grid,
.esm-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.esm-merch-card,
.esm-empty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 33, 50, 0.08);
  box-shadow: var(--shadow-card);
}

.esm-merch-card strong,
.esm-empty-card strong {
  font-size: 1.25rem;
}

.esm-merch-card span,
.esm-empty-card span {
  color: var(--brand-muted);
}

.esm-feature-band {
  margin-top: 12px;
  padding: 34px 0;
  background: linear-gradient(135deg, #132033, #182c4f);
  color: #fff;
}

.esm-feature-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.esm-feature-band .esm-kicker,
.esm-feature-band p,
.esm-feature-band span {
  color: rgba(255, 255, 255, 0.78);
}

.esm-feature-band h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.esm-feature-points {
  display: grid;
  gap: 14px;
}

.esm-feature-points div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.esm-feature-points strong {
  display: block;
  margin-bottom: 6px;
}

.esm-page-hero {
  padding: 22px 0 0;
}

.esm-page-hero .esm-shell {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 33, 50, 0.08);
  box-shadow: var(--shadow-card);
}

.esm-page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.esm-page-shell {
  padding: 0 0 16px;
}

.esm-page-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(22, 33, 50, 0.08);
  box-shadow: var(--shadow-card);
}

.esm-page-card > * + * {
  margin-top: 16px;
}

.esm-page-card h2,
.esm-page-card h3 {
  font-size: 1.6rem;
}

.esm-page-card a {
  color: var(--brand-primary);
}

.woocommerce:where(.esm-shop-shell, .esm-single-shell) {
  display: block;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 33, 50, 0.08);
  box-shadow: var(--shadow-card);
}

.woocommerce ul.products li.product a img {
  margin-bottom: 14px;
  border-radius: 16px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.18rem;
  color: var(--brand-ink);
}

.woocommerce div.product {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 33, 50, 0.08);
  box-shadow: var(--shadow-card);
}

.woocommerce .price {
  color: var(--brand-primary) !important;
  font-weight: 700;
}

.woocommerce span.onsale {
  min-width: auto;
  min-height: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-accent);
  color: #102038;
  line-height: 1;
}

.woocommerce .quantity .qty,
.woocommerce form .input-text,
.woocommerce textarea {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(22, 33, 50, 0.14);
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-radius: 16px;
}

.esm-footer {
  margin-top: 24px;
  padding: 34px 0 0;
  border-top: 1px solid rgba(22, 33, 50, 0.08);
}

.esm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
}

.esm-footer h2,
.esm-footer h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.esm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.esm-footer li + li {
  margin-top: 10px;
}

.esm-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 30px;
  color: var(--brand-muted);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .esm-header-row,
  .esm-hero-grid,
  .esm-feature-band-grid,
  .esm-merch-grid,
  .esm-empty-grid,
  .woocommerce ul.products,
  .esm-footer-grid {
    grid-template-columns: 1fr;
  }

  .esm-nav {
    justify-content: flex-start;
  }

  .esm-header-row {
    padding: 16px 0;
  }
}

@media (max-width: 720px) {
  .esm-shell {
    width: min(var(--shell-width), calc(100% - 20px));
  }

  .esm-hero-copy,
  .esm-stage-card,
  .esm-page-card,
  .woocommerce div.product {
    padding: 22px;
  }

  .esm-trust-row {
    grid-template-columns: 1fr;
  }

  .esm-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .esm-footer-meta {
    flex-direction: column;
  }
}
