/* Digitex Print — warm ecommerce theme (reference-aligned) */
:root {
  --cream: #fffbeb;
  --cream-2: #fef3c7;
  --yellow: #fde68a;
  --yellow-strong: #fbbf24;
  --pink: #fbcfe8;
  --pink-strong: #f472b6;
  --ink: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --script: "Pacifico", cursive;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  padding-bottom: 72px;
}

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

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

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  background: var(--yellow);
}

.header-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.header-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.header-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
}

.header-icon svg path[fill],
.social-row svg path {
  fill: currentColor;
  stroke: none;
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--yellow);
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-yellow {
  background: var(--yellow-strong);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}

.hero-copy .accent {
  font-family: var(--script);
  color: var(--yellow-strong);
  font-weight: 400;
}

.hero-copy p {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
}

.hero-circle {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  border: 8px solid var(--pink);
}

.hero-bubble {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.hero-bubble.one {
  top: 8%;
  left: -4%;
}

.hero-bubble.two {
  bottom: 10%;
  right: -2%;
}

.play-pill {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.panel-yellow {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--cream-2) 100%);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.5rem;
}

.category-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.spotlight-main {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.spotlight-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.arch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.arch-card .arch {
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 0.75rem;
}

.arch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--pink-strong);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: #f9fafb;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__actions {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
}

.icon-btn.is-active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.product-card__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.product-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-prices {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0.25rem 0 0.75rem;
}

.price-current {
  font-weight: 800;
  font-size: 1.05rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

/* Banners */
.banner-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.promo-banner {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  color: #fff;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner .overlay {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.promo-banner.pink-tone {
  outline: 4px solid var(--pink);
}

.promo-banner.yellow-tone {
  outline: 4px solid var(--yellow-strong);
}

.badge-round {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--yellow-strong);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-btn {
  border: 0;
  background: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.tab-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

/* Brands */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.brand-tile {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 140px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.brand-tile span {
  position: absolute;
  inset: auto auto 12px 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card.large img {
  height: 100%;
  min-height: 360px;
}

.blog-card .body {
  padding: 1rem 1.1rem 1.25rem;
}

.blog-stack {
  display: grid;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #fff7ed;
  margin-top: 2rem;
  border-top: 1px solid rgba(251, 191, 36, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) 1fr;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 28rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
}

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

.footer-col li {
  margin: 0.35rem 0;
}

.footer-col a:hover {
  color: var(--pink-strong);
}

.social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--yellow);
  display: grid;
  place-items: center;
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.newsletter-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-inline input {
  flex: 1;
  min-width: 180px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  font-weight: 600;
  font-size: 0.92rem;
}

.pay-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-icons span {
  background: var(--white);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}

/* Mobile bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid #eee;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
}

.mobile-bar a {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0.25rem;
}

.mobile-bar svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
}

/* Forms */
.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form-field input:not([type="checkbox"]),
.form-field textarea,
.form-field select {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:not([type="checkbox"]):focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--yellow-strong);
  border-color: transparent;
}

.form-field input:not([type="checkbox"]).is-invalid,
.form-field textarea.is-invalid {
  border-color: #ef4444;
}

.field-error {
  color: #b91c1c;
  font-size: 0.82rem;
  min-height: 1.1em;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  align-items: start;
  margin: 0.75rem 0 1rem;
}

.checkbox-field input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  accent-color: var(--ink);
  cursor: pointer;
  flex: none;
  appearance: auto;
}

.checkbox-field label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  cursor: pointer;
  padding-top: 0.05rem;
}

.checkbox-field label a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-field .field-error {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding-left: calc(1.125rem + 0.65rem);
}

.checkbox-field input[type="checkbox"].is-invalid {
  outline: 2px solid #ef4444;
  outline-offset: 1px;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.legal-doc {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-doc h2 {
  margin-top: 2rem;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: #374151;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

/* Shop extras */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 1rem;
  font: inherit;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.cart-line img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

.qty-input {
  width: 70px;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 80;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.reco-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}

.reco-portrait {
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  min-height: 320px;
}

.reco-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.offer-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offer-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 160px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
}

.offer-card * {
  position: relative;
  z-index: 1;
}

.empty-state {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid,
  .category-spotlight,
  .banner-duo,
  .blog-grid,
  .reco-row,
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 64px;
  }
  .nav-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem;
    border-bottom: 1px solid #eee;
    flex-direction: column;
    align-items: flex-start;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .mobile-bar {
    display: grid;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .offer-trio {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .header-actions .header-icon[aria-label="Account"],
  .header-actions .header-icon[aria-label="Search"] {
    display: grid;
  }
}
