:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fff3f7;
  --surface-2: #fde9f0;
  --text: #8e5a6d;
  --muted: #cfa2b1;
  --accent: #f4b7c2;
  --accent-soft: rgba(244, 183, 194, 0.22);
  --border: rgba(244, 183, 194, 0.55);
}

@font-face {
  font-family: 'Atop';
  src: url('atop-font/Atop-R99O3.ttf') format('truetype');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  background: radial-gradient(circle at top left, rgba(244, 183, 194, 0.22), transparent 36%),
    radial-gradient(circle at bottom right, rgba(244, 183, 194, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  z-index: 10;
}

.brand a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Atop', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: #ffffff;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  z-index: 25;
  padding: 6px;
}

.nav-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(280px, 85vw);
  max-width: 320px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(244, 183, 194, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 20;
}

.nav-panel.active {
  transform: translateX(0);
}

.nav-settings {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(244, 183, 194, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(141, 90, 109, 0.6);
  font-size: 0.85rem;
}

.settings-icon {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  object-fit: contain;
}

.settings-label {
  color: rgba(141, 90, 109, 0.55);
}

.settings-nav a.nav-admin-subtle {
  display: inline-block;
  margin-left: 22px;
  font-size: 0.82rem;
  color: rgba(141, 90, 109, 0.38);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}

.settings-nav a.nav-admin-subtle:hover,
.settings-nav a.nav-admin-subtle:focus {
  color: rgba(141, 90, 109, 0.5);
  background: transparent;
}

.settings-nav {
  display: none;
  transition: max-height 0.22s ease, opacity 0.22s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.nav-settings.open .settings-nav {
  display: block;
  max-height: 200px;
  opacity: 1;
}

/* collapsible nav groups (Gallery / Shop) */
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: 6px 0;
}

.group-row:focus {
  outline: 2px solid rgba(244,183,194,0.18);
  border-radius: 6px;
}

.group-subnav {
  display: none;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-group.open .group-subnav {
  display: flex;
}

.group-subnav a {
  color: rgba(141,90,109,0.48);
  font-size: 0.92rem;
  text-decoration: none;
}

.group-subnav a:hover,
.group-subnav a:focus {
  color: var(--accent);
}

.group-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.group-toggle:focus {
  outline: 2px solid rgba(244,183,194,0.12);
}

.group-toggle-icon {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}

/* color heart icons same as titles/brand */
.group-toggle-icon,
.settings-icon,
.nav-toggle .nav-icon-svg {
  color: var(--muted);
  opacity: 0.75;
}

/* option cards for gallery/shop index pages */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 400px));
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.collection-chooser .section-header,
.collection-chooser .section-copy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.option-card {
  background: linear-gradient(180deg, rgba(244,183,194,0.06), rgba(255,255,255,0.98));
  border: 1px solid rgba(244,183,194,0.2);
  border-radius: 16px;
  padding: 1.15rem;
  width: min(100%, 400px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  justify-self: center;
}

.option-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244,183,194,0.12), rgba(255,255,255,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

.option-image-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}

.option-title {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.option-card a.option-title { color: var(--text); }


.main-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-nav a {
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 80vh;
  padding: 3rem 2rem;
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Atop', sans-serif;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.05;
}

.hero-content p {
  max-width: 36rem;
  color: var(--muted);
  margin: 1.25rem 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--accent);
  color: var(--text);
}

.secondary {
  border: 1px solid rgba(244, 183, 194, 0.8);
  color: var(--accent);
}

.tertiary {
  background: rgba(244, 183, 194, 0.45);
  color: var(--text);
}

.art-card {
  width: min(100%, 420px);
  min-height: 340px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(244, 183, 194, 0.18), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(244, 183, 194, 0.45);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.05rem;
  text-align: center;
  padding: 2rem;
}

.section-panel {
  padding: 3.5rem 2rem;
}

.highlight-panel {
  background: #fff5f8;
  border-top: 1px solid rgba(244, 183, 194, 0.5);
  border-bottom: 1px solid rgba(244, 183, 194, 0.5);
}

.section-header {
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.card-grid,
.shop-grid {
  display: grid;
  gap: 1.25rem;
}

.art-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.art-preview-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.art-preview-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0.92;
  transform: scale(1.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.art-preview-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 243, 247, 0.92));
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.art-link:hover .art-preview-card,
.art-link:focus-visible .art-preview-card {
  opacity: 0.85;
}

.art-link:hover .art-preview-image,
.art-link:focus-visible .art-preview-image {
  opacity: 0.62;
  transform: scale(1.22);
}

.art-link:hover .art-preview-title,
.art-link:focus-visible .art-preview-title {
  opacity: 1;
  transform: translateY(0);
}

.art-detail-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
}

.art-detail-shell {
  width: min(100%, 980px);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.art-detail-image-wrap {
  width: min(100%, 860px);
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.art-detail-trigger {
  cursor: zoom-in;
  appearance: none;
}

.art-detail-trigger:focus-visible {
  outline: 3px solid rgba(244, 183, 194, 0.45);
  outline-offset: 4px;
}

.art-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  display: block;
  background: transparent;
}

.art-detail-title {
  font-family: 'Atop', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.06em;
}

.art-detail-description {
  width: min(100%, 860px);
  min-height: 120px;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  border: 1px dashed rgba(244, 183, 194, 0.65);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.art-detail-description p {
  margin: 0;
}

.art-detail-description p + p {
  margin-top: 1.15rem;
}

.art-lightbox {
  width: min(96vw, 1180px);
  max-width: 1180px;
  border: none;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.art-lightbox::backdrop {
  background: rgba(12, 8, 10, 0.65);
}

.art-lightbox-image {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  border-radius: 22px;
}

.art-lightbox-close {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin: 0.75rem 0.75rem 0 auto;
  display: block;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  z-index: 2;
  right: 0;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sketch-category {
  display: grid;
  gap: 0.9rem;
}

.sketch-category-title {
  margin: 0;
}

.sketch-scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}

.sketch-scroll-row > * {
  scroll-snap-align: start;
}

.art-item,
.shop-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}

.shop-item {
  min-height: 200px;
  padding: 1.2rem;
}

.shop-item h3 {
  font-size: 1.15rem;
  margin: 0.25rem 0;
}

.shop-item p {
  font-size: 0.92rem;
  margin: 0.2rem 0 0.55rem;
}

.art-item {
  color: var(--muted);
}

.art-item.image-frame {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.art-item.image-frame img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.art-item-label {
  padding: 0.9rem 1rem 1rem;
  background: rgba(255, 243, 247, 0.92);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.shop-image {
  width: min(100%, 170px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 183, 194, 0.18), rgba(255, 255, 255, 0.95));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-item .button {
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.section-copy {
  max-width: 42rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 520px;
}

.signup-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 183, 194, 0.6);
  background: #ffffff;
  color: var(--text);
}

.checkout-form,
.signup-form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 183, 194, 0.6);
  background: #ffffff;
  color: var(--text);
}

.checkout-form .form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.checkout-form .plan-options {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(244, 183, 194, 0.12);
}

.checkout-form .paypal-buttons {
  margin-top: 1rem;
}

.basket-action {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.add-to-basket-button {
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  border: 1px solid rgba(244, 183, 194, 0.75);
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.add-to-basket-button:hover,
.add-to-basket-button:focus-visible {
  background: rgba(244, 183, 194, 0.82);
}

.wishlist-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(244, 183, 194, 0.18);
  color: var(--text);
  border: 1px solid rgba(244, 183, 194, 0.45);
  padding: 0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wishlist-button:hover,
.wishlist-button:focus-visible {
  background: rgba(244, 183, 194, 0.28);
}

.wishlist-button[data-in-wishlist='true'] {
  background: rgba(244, 183, 194, 0.38);
  color: #d1506b;
  border-color: rgba(209, 80, 107, 0.38);
}

.profile-form {
  margin-bottom: 1rem;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-tab {
  border: 1px solid rgba(244, 183, 194, 0.5);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.profile-tab.active {
  background: var(--accent);
}

.profile-panel {
  display: none;
}

.profile-panel.active {
  display: block;
}

.profile-list {
  display: grid;
  gap: 1rem;
}

.profile-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.profile-card h3 {
  margin-bottom: 0.35rem;
}

.profile-price {
  margin: 0.5rem 0 0;
  color: var(--text);
  font-weight: 600;
}

.profile-card-actions {
  display: grid;
  gap: 0.6rem;
  justify-items: end;
  min-width: 150px;
}

.profile-basket-button,
.profile-remove-button {
  width: 100%;
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.profile-remove-button {
  background: rgba(209, 80, 107, 0.12);
  color: #d1506b;
  border: 1px solid rgba(209, 80, 107, 0.18);
}

.admin-product-section {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.admin-product-list {
  display: grid;
  gap: 0.85rem;
}

.admin-product-section textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(244, 183, 194, 0.6);
  padding: 1rem;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.payment-intro {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(244, 183, 194, 0.1);
  color: var(--text);
  border: 1px solid rgba(244, 183, 194, 0.25);
}

.payment-intro p {
  margin: 0;
  font-size: 0.95rem;
}

.success-message,
.error-message,
.form-note,
.muted-text {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.success-message {
  color: #8e5a6d;
}

.error-message {
  color: #d1506b;
}

.form-note {
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
}

.signup-form button,
.checkout-form button {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shop-item {
  gap: 1rem;
}

.shop-image {
  width: 100%;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 183, 194, 0.28), rgba(255, 255, 255, 0.9));
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
}

.shop-item button {
  margin-top: auto;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: rgba(244, 183, 194, 0.35);
  color: var(--text);
  cursor: pointer;
}

.shop-item-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.shop-item-actions .button {
  margin-top: 0;
}

.shop-item-actions .add-to-basket-button {
  flex: 1 1 auto;
}

.shop-item-actions .wishlist-button {
  flex: 0 0 auto;
}

.shop-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.product-detail-card {
  max-width: 760px;
  margin: 0 auto;
  justify-items: center;
}

.product-detail-image {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.product-image-trigger {
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: transparent;
}

.product-image-trigger:focus-visible {
  outline: 3px solid rgba(244, 183, 194, 0.45);
  outline-offset: 4px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.product-detail-price {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.product-detail-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.product-detail-actions .add-to-basket-button {
  flex: 1 1 auto;
}

.product-detail-actions .wishlist-button {
  flex: 0 0 auto;
  margin-top: 0;
}

.product-back-link {
  width: 100%;
}

.product-back-link {
  text-align: center;
  text-decoration: none;
}

.product-recommendations {
  margin-top: 1.75rem;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.recommendation-card {
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 0.8rem;
}

.recommendation-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(244, 183, 194, 0.28), rgba(255, 255, 255, 0.9));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recommendation-card h3,
.recommendation-card p {
  margin: 0;
}

/* Force square, non-rounded image styling on dedicated product detail pages. */
#product-detail-root .shop-image.product-detail-image {
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

#product-detail-root .shop-image.product-detail-image img {
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

#product-detail-root .art-lightbox-image {
  border-radius: 0;
}

.basket-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  top: auto;
  transform: none;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  border: none;
  background: var(--accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: right 0.3s ease;
}

body.nav-open .basket-toggle {
  right: calc(min(280px, 85vw) + 1rem);
}

.basket-toggle.basket-with-menu-open {
  right: calc(min(280px, 85vw) + 1rem);
}

.basket-toggle.basket-with-panel-open {
  right: calc(min(360px, 92vw) + 1rem);
}

.basket-toggle img {
  width: 40px;
  height: 40px;
  display: block;
  background: transparent;
  object-fit: contain;
}

.basket-toggle span {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8e5a6d;
  color: #ffffff;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.basket-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 92vw);
  transform: translateX(110%);
  transition: transform 0.28s ease;
  background: #ffffff;
  box-shadow: -12px 0 50px rgba(0, 0, 0, 0.16);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.basket-panel.open {
  transform: translateX(0);
}

.basket-panel-card {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.basket-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.basket-close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.basket-items {
  display: grid;
  gap: 1rem;
}

.basket-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.basket-item-actions {
  display: grid;
  gap: 0.5rem;
  align-items: flex-end;
  text-align: right;
}

.basket-quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-end;
}

.basket-quantity-change {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(244, 183, 194, 0.8);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.basket-quantity-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.basket-remove {
  border: none;
  border-radius: 12px;
  background: rgba(209, 80, 107, 0.12);
  color: #d1506b;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.basket-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px;
  padding: 1rem;
  background: rgba(244, 183, 194, 0.12);
}

.basket-checkout-button {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(244, 183, 194, 0.55);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.about-panel {
  padding-bottom: 4rem;
}

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-image {
    order: -1;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    gap: 2rem;
  }
}
