/* .beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
} */

/* body {
  margin-top: 3rem;
} */


:root {
  --bg-main: #faf9f7;
  --bg-muted: #eef1ec;
  --text-main: #1f1f1f;
  --text-soft: #5f5f5f;
  --accent: #2f4f3a;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0;
  -webkit-user-drag: none;
  user-select: none;
}

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

/* ---------------- Header ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(4px);
}

/* ---------------- Brand / Logo ---------------- */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap img {
  opacity: 0.95;
}

.logo-wrap:hover img {
  opacity: 1;
}

/* Primary logo (always visible) */
.logo-primary {
  height: 34px;
  width: auto;
  display: block;
}

/* Secondary logo (desktop only) */
.logo-secondary {
  height: 26px;
  width: auto;
  display: block;
}

/* Mobile behaviour */
@media (max-width: 700px) {
  .brand .logo-secondary {
    display: none;
  }

  .logo-primary {
    height: 30px;
  }
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

/* ================================
   HEADER BASKET COUNT
   ================================ */

.basket-link {
  position: relative;
  text-decoration: none;
}

.cart-count {
  display: inline-block;
  margin-left: 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  line-height: 1.4rem;
  text-align: center;
  border-radius: 999px;
  background-color: #000;
  color: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}


/* ================================
   Mobile Navigation (360px)
================================ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Collapse nav at very small widths */
@media (max-width: 380px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
  }

  .nav-links.is-open {
    display: flex;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  max-width: 1200px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-soft);
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.9rem;
}

.hero-image {
  border: 20px solid #1f1f1f;
}

@media (max-width: 900px) {
  .hero-image {
    display: none;
  }
}


/* ---------------- Sections ---------------- */
section {
  margin-bottom: 5rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-bottom: 4rem;
}

.section-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

/* ---------------- Prints Grid ---------------- */
.prints-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.print-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.print-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.print-info {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.price {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.print-card-image {
  border: 10px solid #1f1f1f;
  border-radius: 0;
}

@media (max-width: 700px) {
  .prints-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .prints-carousel .print-card {
    min-width: 80%;
    max-width: 70%;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Hide scrollbar but keep swipe */
  .prints-carousel::-webkit-scrollbar {
    display: none;
  }
}


/* ---------------- Trust Builder ---------------- */
.trust {
  background: var(--bg-muted);
  padding: 3rem 1.5rem;
}

.trust-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------------- About ---------------- */
.about {
  background: var(--bg-muted);
  padding: 4rem 0;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about p {
  max-width: 40ch;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.about a {
  font-size: 0.9rem;
  color: var(--accent);
}

@media (max-width: 850px) {
  .about-inner img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
  }

  .about-inner {
    text-align: center;
  }

  .about p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------------- About Page ---------------- */

.about-page {
  padding: 4rem 1.5rem 2rem;
}

.about-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.about-intro {
  color: var(--text-soft);
  max-width: 55ch;
}

.about-page-inner {
  max-width: 720px;
  /* slightly narrower = calmer */
  margin: 0 auto;
}

.about-block {
  margin-bottom: 4rem;
}

.about-block h2 {
  margin-bottom: 1rem;
}

.about-page p {
  max-width: none;
  /* stop fighting the container */
}


/* ---------------- About Hero ---------------- */

.about-hero {
  padding: 4rem 1.5rem 3rem;
  margin-bottom: 0;
}

.about-hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.about-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.about-hero-image img {
  border: 12px solid #1f1f1f;
}

/* ---------------- About Page Enhancements ---------------- */

.about-block h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: #ccc;
  margin-bottom: 1rem;
}

.about-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
}

.about-page p {
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 1rem;
}

/* ---------------- About Life Section ---------------- */

.about-life {
  margin-top: 2rem;
  background: var(--bg-muted);
  padding: 4rem 1.5rem;
}

.about-life-text h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.about-life-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about-life-image img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.about-life-text p {
  color: var(--text-soft);
  max-width: 42ch;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 850px) {

  .about-hero-inner,
  .about-life-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero-image img {
    max-width: 280px;
    margin: 0 auto;
  }

  .about-life-text p,
  .about-page p {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ---------------- Policies ---------------- */

.policies {
  background: var(--bg-muted);
  padding: 4rem 1.5rem;
}

.policies-inner {
  max-width: 800px;
  margin: 0 auto;
}

.policies h2 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2rem;
}

/* Details / summary dropdown */

.policy-item {
  border-top: 1px solid #ddd;
  padding: 1.25rem 0;
}

.policy-item:last-child {
  border-bottom: 1px solid #ddd;
}

.policy-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.policy-item summary::-webkit-details-marker {
  display: none;
}

.policy-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.policy-item[open] summary::after {
  content: "–";
}

.policy-content {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.policy-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* ---------------- Closing CTA ---------------- */
.closing-cta {
  text-align: center;
  padding: 4rem 1.5rem;
}

.closing-cta p {
  margin-bottom: 1.25rem;
  color: var(--text-soft);
}

/* ---------------- Footer ---------------- */
footer {
  background: #e6e4df;
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .prints-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
  }
}

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

/*--------------shop page---------------------*/
/* Shop product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

/* Individual product card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Image wrapper */
.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / √2;
  /* portrait artwork */
  overflow: hidden;
}

/* Product image itself */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f7f7;
  display: block;
}

.product-image img {
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Product image frame with border */
.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / √2;
  overflow: hidden;
  border: 10px solid #000;
  box-sizing: border-box;
}

/* ================================
   PRODUCT PAGE
   ================================ */

.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 4rem;
  }
}

/* ----------------
     Product Image
     ---------------- */

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #000;
  background-color: #fff;
}

/* ----------------
     Product Details
     ---------------- */

.product-details h1 {
  margin: 0 0 0.25rem;
  font-size: 2rem;
}

.artist-name {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #555;
}

.product-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.product-specs li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Long-form product details */

.product-details-long {
  margin-top: 2rem;
  color: #5f5f5f;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 60ch;
}

.product-details-long strong {
  color: #1f1f1f;
  font-weight: 500;
}


/* ----------------
     Price & CTA
     ---------------- */

.product-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

#add-to-cart {
  margin-bottom: 1.25rem;
}

/* ----------------
     Delivery Note
     ---------------- */

.delivery-note {
  font-size: 0.9rem;
  color: #666;
}

/* ----------------
     Error State
     ---------------- */

#product-error {
  text-align: center;
  padding: 4rem 1rem;
}

#product-error p {
  margin-bottom: 1.5rem;
}

/* ================================
   BASKET PAGE
   ================================ */

.basket-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.basket-page h1 {
  margin-bottom: 2rem;
}

/* Empty state */

#empty-basket {
  text-align: center;
  padding: 4rem 1rem;
}

/* Layout */

#basket-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  #basket-content {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Items list */

.basket-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.basket-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
}

.basket-item img {
  width: 80px;
  height: auto;
  border: 1px solid #000;
}

/* Item details */

.item-details h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.item-meta {
  font-size: 0.9rem;
  color: #666;
}

.remove-item {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  text-decoration: underline;
}

/* Quantity */

.item-quantity input {
  width: 60px;
  padding: 0.25rem;
  text-align: center;
}

/* Price */

.item-price {
  font-weight: 600;
}

/* Summary */

.basket-summary {
  border: 1px solid #ddd;
  padding: 1.5rem;
}

.basket-summary h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-row.total {
  font-weight: 600;
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
}

.returns-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #666;
}

/* ================================
   ADD TO BASKET ANIMATION
   ================================ */

@keyframes bump {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

.cart-count.bump {
  animation: bump 0.3s ease;
}

/* Button feedback */
.btn-primary.added {
  position: relative;
  overflow: hidden;
}

.btn-primary.added::after {
  content: "✓ Added";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeAdded 1.2s ease forwards;
}

@keyframes fadeAdded {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Checkout Button feedback */
#checkout-button.loading {
  cursor: not-allowed;
  opacity: 0.6;
}

#checkout-button.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}