/*
Theme Name: Apple Vault Shop
Text Domain: apple-vault-shop
Version: 1.0.0
*/

:root {
  --avs-bg: #f3efe7;
  --avs-surface: #fffaf2;
  --avs-card: #fffdf8;
  --avs-ink: #171717;
  --avs-muted: #6f665d;
  --avs-line: rgba(23, 23, 23, 0.1);
  --avs-accent: #cf4e2a;
  --avs-accent-dark: #9c3416;
  --avs-gold: #cfb07a;
  --avs-shadow: 0 24px 80px rgba(32, 20, 4, 0.1);
  --avs-radius: 28px;
  --avs-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--avs-ink);
  background:
    radial-gradient(circle at top left, rgba(207, 176, 122, 0.22), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f2ede4 48%, #ece4d8 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-shell {
  min-height: 100vh;
}

.site-header,
.site-footer,
.section,
.content-wrap {
  padding-left: 24px;
  padding-right: 24px;
}

.site-header__inner,
.site-footer__inner,
.hero,
.showcase,
.editorial,
.content-wrap__inner {
  width: min(100%, var(--avs-max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(247, 241, 232, 0.78);
  border-bottom: 1px solid rgba(23, 23, 23, 0.06);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-mark__coin {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #171717, #323232);
  color: #fff7ec;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand-mark__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.94rem;
}

.main-nav a {
  color: var(--avs-muted);
}

.cta-button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--avs-accent), var(--avs-accent-dark));
  color: #fffaf6;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 36px rgba(156, 52, 22, 0.25);
}

.cta-button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.cta-button--ghost {
  background: transparent;
  color: var(--avs-ink);
  box-shadow: inset 0 0 0 1px var(--avs-line);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding-top: 72px;
  padding-bottom: 48px;
  align-items: stretch;
}

.hero__copy,
.hero__panel,
.feature-card,
.product-card,
.editorial__content,
.page-card,
.entry-card {
  border: 1px solid rgba(23, 23, 23, 0.06);
  border-radius: var(--avs-radius);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--avs-shadow);
}

.hero__copy {
  padding: 42px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(207, 176, 122, 0.18);
  color: #61492a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.hero p,
.page-hero p,
.entry-summary {
  color: var(--avs-muted);
  font-size: 1.05rem;
}

.hero__actions,
.hero__stats,
.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  margin-top: 28px;
}

.hero__stat {
  min-width: 120px;
}

.hero__stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
}

.hero__panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.97), rgba(52, 44, 34, 0.96)),
    linear-gradient(180deg, #191919, #0f0f0f);
  color: #f8f4ee;
}

.hero__device-stack {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 18px;
  align-items: end;
  margin-top: 24px;
}

.device-card {
  position: relative;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  min-height: 320px;
  overflow: hidden;
}

.device-card__image {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 88%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.35));
}

.device-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.device-card--phone::before,
.device-card--watch::before {
  content: "";
  position: absolute;
  inset: 12% 18%;
  border-radius: 36px;
  background: linear-gradient(180deg, #7a7a7a, #1f1f1f 18%, #050505);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.device-card--watch::before {
  inset: 20% 16%;
  border-radius: 30%;
}

.device-card__label {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.section-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-intro {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--avs-muted);
}

.showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card,
.product-card,
.page-card,
.entry-card {
  padding: 24px;
}

.feature-card h3,
.product-card h3,
.page-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.product-card__media {
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(180deg, #d5cec3, #a89f93);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  filter: drop-shadow(0 22px 36px rgba(36, 31, 24, 0.22));
}

.product-card__device {
  width: 72%;
  height: 80%;
  border-radius: 34px;
  background: linear-gradient(180deg, #737373, #111);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.product-card__device--watch {
  width: 64%;
  height: 58%;
  border-radius: 30%;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(207, 78, 42, 0.12);
  color: var(--avs-accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.editorial {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.editorial__visual {
  min-height: 360px;
  border-radius: var(--avs-radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 250, 242, 0.4), transparent 18%),
    linear-gradient(135deg, #2d2d2d, #0f0f0f 60%, #574734);
  box-shadow: var(--avs-shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.editorial__image {
  width: min(82%, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.3));
}

.editorial__content {
  padding: 36px;
}

.content-wrap {
  padding-top: 60px;
  padding-bottom: 80px;
}

.content-wrap__inner {
  display: grid;
  gap: 28px;
}

.page-hero,
.entry-card {
  padding: 34px;
}

.entry-card__media {
  margin: 18px 0 24px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 38%),
    linear-gradient(180deg, #d5cec3, #a89f93);
}

.entry-card__image {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  padding: 28px;
}

.entry-card .entry-title {
  font-size: clamp(2.3rem, 4vw, 4rem);
  margin-bottom: 16px;
}

.entry-content,
.page-content {
  color: #332e27;
}

.entry-content p,
.page-content p,
.entry-content li,
.page-content li {
  font-size: 1.04rem;
}

.entry-content h2,
.page-content h2,
.entry-content h3,
.page-content h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
}

.site-footer p {
  margin: 0;
  color: var(--avs-muted);
}

@media (max-width: 960px) {
  .hero,
  .showcase,
  .editorial,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .hero__copy,
  .hero__panel,
  .feature-card,
  .product-card,
  .editorial__content,
  .page-card,
  .entry-card,
  .page-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .site-header,
  .site-footer,
  .section,
  .content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
