:root {
  --color-blue: #10265a;
  --color-blue-deep: #0b1a40;
  --color-blue-soft: #18367a;
  --color-gold: #e2c58e;
  --color-gold-soft: #f0d9a8;
  --color-text: #f7f1e6;
  --color-muted: rgba(226, 197, 142, 0.78);
  --color-border: rgba(226, 197, 142, 0.18);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --shadow-card: 0 30px 70px rgba(8, 18, 48, 0.35);
  --container: min(1180px, calc(100% - 2rem));
  --font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  --transition: 220ms ease;
}

@property --title-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(226, 197, 142, 0.16), transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(24, 54, 122, 0.55), transparent 45%),
    linear-gradient(165deg, #18367a 0%, #10265a 45%, #0b1a40 100%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(226, 197, 142, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 197, 142, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

body > * {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(226, 197, 142, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 1rem;
  right: 1rem;
  transform: translateY(-200%);
  background: var(--color-gold);
  color: var(--color-blue);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 200;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 26, 64, 0.94), rgba(16, 38, 90, 0.82));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 197, 142, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 32% 32%, #e2c58e 0 18%, transparent 19% 100%),
    linear-gradient(135deg, #18367a 0%, #10265a 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 197, 142, 0.35);
}

.desktop-nav,
.footer-bottom {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 1.5rem;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  color: var(--color-muted);
  transition: color var(--transition);
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: var(--color-gold);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-gold);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  top: 82px;
  right: 0;
  left: 0;
  padding: 0 1rem 1rem;
}

.mobile-menu__panel {
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  background: rgba(11, 26, 64, 0.98);
  box-shadow: var(--shadow-card);
}

.mobile-nav {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.shop-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(4.5rem, 8vw, 7rem);
}

.hero-heading {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.hero-heading h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.15;
}

.hero-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.products-showcase {
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
  align-items: stretch;
}

/* ——— 3D glass cards (DepthFold style, blue/gold) ——— */
.ux-parent {
  width: 100%;
  max-width: 400px;
  height: 320px;
  margin-inline: auto;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.ux-card {
  position: relative;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(145deg, #18367a 0%, #10265a 45%, #0b1a40 100%);
  transform-style: preserve-3d;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
  box-shadow:
    rgba(8, 18, 48, 0.28) 0 25px 35px -8px,
    0 0 0 1px rgba(226, 197, 142, 0.12);
}

.ux-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #e2c58e 0%, #d4b67a 50%, #c9a66a 100%);
  opacity: 0;
  transform: translate3d(0, 0, 1px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.ux-parent:hover .ux-card,
.ux-parent:focus-within .ux-card {
  transform: rotate3d(1, 1, 0, 28deg);
  box-shadow:
    rgba(8, 18, 48, 0.45) 28px 48px 28px -38px,
    rgba(226, 197, 142, 0.2) 0 0 50px -8px,
    rgba(8, 18, 48, 0.2) 0 25px 35px 0;
}

.ux-parent:hover .ux-card::before,
.ux-parent:focus-within .ux-card::before {
  opacity: 1;
}

.ux-glass {
  transform-style: preserve-3d;
  position: absolute;
  inset: 8px;
  z-index: 1;
  border-radius: 55px;
  border-top-left-radius: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(16, 38, 90, 0.28) 100%);
  transform: translate3d(0, 0, 25px);
  border-inline-end: 1px solid rgba(226, 197, 142, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.55s ease, border-color 0.55s ease;
  pointer-events: none;
}

.ux-parent:hover .ux-glass,
.ux-parent:focus-within .ux-glass {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.72) 100%);
  border-inline-end-color: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.ux-character {
  --character-accent: #ee6f64;
  --character-aura: rgba(226, 197, 142, 0.22);
  --character-hair: #10265a;
  position: absolute;
  inset-inline-start: 0.65rem;
  top: 0.55rem;
  width: min(45%, 10rem);
  transform: translate3d(0, 0, 70px) rotate(-3deg);
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 24px 22px rgba(8, 18, 48, 0.28));
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}

.ux-character::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0.6rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(8, 18, 48, 0.2);
  filter: blur(10px);
  transform: translate3d(0, 0, -12px);
}

.ux-character--jet {
  --character-accent: #5f7c93;
  --character-aura: rgba(238, 111, 100, 0.2);
  --character-hair: #0b1a40;
}

.ux-character--seo {
  --character-accent: #e2c58e;
  --character-aura: rgba(115, 181, 173, 0.24);
  --character-hair: #43315f;
}

.ux-character-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: translate3d(0, 0, 16px);
}

.ux-character-aura {
  fill: var(--character-aura);
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 3;
}

.ux-character-body {
  fill: #10265a;
  stroke: rgba(226, 197, 142, 0.82);
  stroke-width: 4;
}

.ux-character-face,
.ux-character-hair,
.ux-character-goggle {
  fill: var(--character-hair);
}

.ux-character-skin {
  fill: #f4c7a8;
  stroke: rgba(8, 18, 48, 0.2);
  stroke-width: 2;
}

.ux-character-accent,
.ux-character-scarf {
  fill: var(--character-accent);
}

.ux-character-paper,
.ux-character-board {
  fill: #f7f1e6;
  stroke: rgba(16, 38, 90, 0.28);
  stroke-width: 3;
}

.ux-character-line,
.ux-character-smile,
.ux-character-search {
  fill: none;
  stroke: #10265a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.ux-character-detail {
  fill: none;
  stroke: #10265a;
  stroke-linecap: round;
  stroke-width: 8;
}

.ux-parent:hover .ux-character,
.ux-parent:focus-within .ux-character {
  transform: translate3d(0, -8px, 112px) rotate(-7deg) scale(1.05);
  filter: drop-shadow(-8px 32px 22px rgba(8, 18, 48, 0.22));
}

.ux-title {
  --title-border-angle: 0deg;
  position: absolute;
  top: 2.35rem;
  inset-inline-end: 1.35rem;
  inset-inline-start: auto;
  z-index: 5;
  margin: 0;
  max-width: min(62%, 13.5rem);
  padding: 0.45rem 0.7rem;
  border-radius: 0.75rem;
  background:
    linear-gradient(rgba(11, 26, 64, 0.88), rgba(11, 26, 64, 0.88)) padding-box,
    conic-gradient(
      from var(--title-border-angle),
      #e2c58e,
      transparent 25%,
      #e2c58e 50%,
      transparent 75%,
      #e2c58e
    ) border-box;
  border: 1.5px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2c58e;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: right;
  transform: translate3d(0, 0, 30px);
  text-shadow: 0 2px 10px rgba(8, 18, 48, 0.35);
  animation: title-border-spin 2.8s linear infinite;
  transition:
    color 0.55s ease,
    background 0.55s ease;
}

.ux-parent:hover .ux-title,
.ux-parent:focus-within .ux-title {
  color: #10265a;
  background:
    linear-gradient(rgba(247, 241, 230, 0.94), rgba(247, 241, 230, 0.94)) padding-box,
    conic-gradient(
      from var(--title-border-angle),
      #10265a,
      transparent 25%,
      #10265a 50%,
      transparent 75%,
      #10265a
    ) border-box;
  text-shadow: none;
}

@keyframes title-border-spin {
  to {
    --title-border-angle: 360deg;
  }
}

@supports not (background: conic-gradient(red, blue)) {
  .ux-title {
    border: 1.5px solid rgba(226, 197, 142, 0.45);
    background: rgba(11, 26, 64, 0.88);
    animation: none;
  }

  .ux-parent:hover .ux-title,
  .ux-parent:focus-within .ux-title {
    border-color: rgba(16, 38, 90, 0.35);
    background: rgba(247, 241, 230, 0.94);
  }
}

.ux-content {
  position: absolute;
  inset-inline-end: 1.35rem;
  inset-inline-start: auto;
  bottom: 4.6rem;
  width: min(52%, 11.5rem);
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(11, 26, 64, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: translate3d(0, 0, 26px);
  z-index: 5;
  text-align: right;
  transition: background 0.55s ease, border-color 0.55s ease;
}

.ux-parent:hover .ux-content,
.ux-parent:focus-within .ux-content {
  background: rgba(247, 241, 230, 0.88);
  border-color: rgba(16, 38, 90, 0.12);
}

.ux-text {
  display: block;
  margin: 0;
  color: rgba(226, 197, 142, 0.88);
  font-size: 0.75rem;
  line-height: 1.55;
  font-weight: 500;
  transition: color 0.55s ease;
}

.ux-parent:hover .ux-text,
.ux-parent:focus-within .ux-text {
  color: rgba(16, 38, 90, 0.84);
}

.ux-bottom {
  padding: 10px 12px;
  transform-style: preserve-3d;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0, 0, 26px);
  z-index: 6;
}

.ux-social {
  display: flex;
  gap: 10px;
  transform-style: preserve-3d;
}

.ux-social-btn {
  width: 32px;
  aspect-ratio: 1;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  border: none;
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: rgba(8, 18, 48, 0.35) 0 8px 6px -5px;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out,
    background 0.2s;
}

.ux-social-btn:nth-child(1) {
  transition-delay: 0.05s;
}

.ux-social-btn:nth-child(2) {
  transition-delay: 0.1s;
}

.ux-social-btn:nth-child(3) {
  transition-delay: 0.15s;
}

.ux-social-btn svg {
  width: 15px;
  height: 15px;
  fill: #e2c58e;
  transition: fill 0.45s ease;
}

.ux-parent:hover .ux-social-btn svg,
.ux-parent:focus-within .ux-social-btn svg {
  fill: #10265a;
}

.ux-social-btn:hover {
  background: #0b1a40;
}

.ux-social-btn:hover svg {
  fill: #e2c58e !important;
}

.ux-parent:hover .ux-social-btn,
.ux-parent:focus-within .ux-social-btn {
  transform: translate3d(0, 0, 50px);
  box-shadow: rgba(8, 18, 48, 0.25) -5px 20px 12px 0;
}

.ux-more {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ux-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: #e2c58e;
  font-weight: 800;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.45s ease;
}

.ux-parent:hover .ux-more-btn,
.ux-parent:focus-within .ux-more-btn {
  color: #10265a;
}

.ux-more-btn:hover {
  transform: translate3d(0, 0, 10px);
}

.ux-more-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 3px;
  width: 16px;
  height: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition), color var(--transition);
  font-weight: 700;
}

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

.button-outline {
  border-color: rgba(226, 197, 142, 0.35);
  color: var(--color-gold);
  background: transparent;
}

.site-footer {
  background: linear-gradient(180deg, #0f2354 0%, #0b1a40 100%);
  color: var(--color-text);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(226, 197, 142, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 2rem;
}

.site-footer h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--color-gold);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(226, 197, 142, 0.78);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-bottom {
  justify-content: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(226, 197, 142, 0.14);
  color: rgba(226, 197, 142, 0.7);
}

.ux-parent[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.ux-parent[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal]:not(.ux-parent) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal]:not(.ux-parent).is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container: min(100% - 1.25rem, 100%);
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .products-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-shell {
    min-height: 74px;
  }

  .mobile-menu {
    top: 74px;
  }

  .ux-parent {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .ux-parent[data-reveal] {
    opacity: 1;
    transform: none;
  }

  .ux-card,
  .ux-character,
  .ux-social-btn,
  .ux-more-btn,
  .ux-card::before,
  .ux-glass,
  .ux-title {
    transition: none !important;
    animation: none !important;
  }

  .ux-parent:hover .ux-card {
    transform: none;
  }

  .ux-parent:hover .ux-social-btn {
    transform: none;
  }
}
