@font-face {
  font-family: 'fraunces';
  src: url('/static/fonts/fraunces.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('/static/fonts/dm_sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Minimal layout and basic UX */
:root {
  color: #0a0a0a;
  --bg-page: #fefefe;
  font-family: system-ui, -apple-system, sans-serif;
  --accent-color: #111;
  --bg-surface: #ffffff;
  --btn-radius: 10px;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --layout-max-width: 1400px;
  --color-brand-red: #e64c66;
}
.white {
  color:white;
}

* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
  color: inherit;
}
.mb-3 {
  margin-bottom: 3rem;
}

body {
  margin: 0;
  background: var(--bg-page);
  font-family: "DM Sans", "Nunito", Arial, sans-serif;
  color:#2a476f;
  font-optical-sizing: auto;
  font-size:1.25rem;
  line-height: 1.75rem;
}

:root {
  --btn-primary: #ff8b7f;
  --btn-primary-foreground: #ffffff;
  --btn-coral-dark: #e25e63;
  --btn-secondary: #eef2f7;
  --btn-secondary-foreground: #1f2937;
  --btn-muted: #f6f6f6;
  --btn-gold-1: #f7c948;
  --btn-gold-2: #f4a261;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  max-width:fit-content
}

.btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-sm { height: 2.25rem; padding: 0 1rem; border-radius: 10px; }
.btn { height: 2.5rem; padding: 0 1.25rem; } /* default */
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; border-radius: 14px; }
.btn-xl { height: 3.5rem; padding: 0 2.5rem; font-size: 1.05rem; border-radius: 18px; }
.btn-icon { height: 2.5rem; width: 2.5rem; padding: 0; }

.btn-default {
  background: var(--btn-primary);
  color: var(--btn-primary-foreground);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-default:hover {
  background: var(--btn-coral-dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

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

.btn-ghost {
  background: transparent;
  color: inherit;
}
.btn-ghost:hover {
  background: var(--btn-muted);
}

.btn-link {
  background: transparent;
  color: var(--btn-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.btn-hero {
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 139, 127, 0.45);
  background-image: linear-gradient(135deg, rgb(230, 77, 102) 0%, rgb(242, 140, 90) 100%);
  min-width: -webkit-fill-available;
}
.btn-hero:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 34px rgba(255, 139, 127, 0.5);
}
.btn-white {
  color: var(--btn-primary);
  background: #ffffffc1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: fit-content;
}
.btn-white:hover {
  background-color: white;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 34px rgba(255, 139, 127, 0.5);
}
.btn-shop {
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 139, 127, 0.45);
  background-image: linear-gradient(135deg, rgb(230, 77, 102) 0%, rgb(242, 140, 90) 100%);
  min-width: fit-content;
}
.btn-shop:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 34px rgba(255, 139, 127, 0.5);
}

.btn-soft {
  background: #ffe7df;
  color: #c24a5a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.btn-soft:hover {
  background: #ffcfc5;
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--btn-gold-1) 0%, var(--btn-gold-2) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.btn-gold:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

h1, h2, h3 {
  font-family: "fraunces", "DM Sans", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  color: #2a476f;
  margin-block-start: 0em;
  margin-block-end: 0em;
  font-weight: 600;
}
h1 {
font-size: clamp(2.5rem, 5vw, 4.5rem);
line-height: 1;
}

.page-admin-home h1, .page-admin-home h2, .page-admin-home h3, .page-admin-home h4 {
  font-family: Arial, Helvetica, sans-serif
}
.page-admin-home {
  max-width: 1024px;
  margin: 0 auto;
}
.page-admin-home .card {
  margin-bottom:5px
}
main {
  width: 100%;
  min-height: 80vh;
}
.width-48-rem {
  max-width: 48rem;
  margin: 0 auto;
}
.width-1400-px {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
} 

@media (max-width: 768px) {
  .width-1400-px {
    padding: 1.5rem;
  }
}

.page-home main,
.page-vertical main {
  margin: 0;
  max-width: none;
  padding: 0;
  display: block;
}

.site-header {
  --nav-height: 72px;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .nav-bar {
    padding: 1.25rem;
  }
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: #111;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  font-family: "fraunces", serif;
  color: #24456d;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 30px;
  }
}

.nav-links {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.nav-links-main {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: #4b6c8d;
}

.nav-links-main a {
  text-decoration: none;
  color: inherit;
  font-size: 1.05rem;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
}

.nav-links-main a:hover {
  color: #233b5b;
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a {
  text-decoration: none;
  color: #4b6c8d;
  font-weight: 400;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  display: block;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-toggle {
  display: inline-grid;
  background: none;
  border: unset;
  width: 35px;
  justify-self: end;
  cursor: pointer;
  border-radius: 10px;
  outline: none;
  place-items: center;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #4b6c8d;
  margin: 2px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.cart-link {
  position: relative;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
}

.cart-link .cart-icon {
  display: inline-block;
}

.cart-badge {
  position: absolute;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e64c66;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  line-height: 20px;
  top:-5px;
  right:-5px;
}

.cart-badge.active {
  opacity: 1;
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  padding: 0.35rem 0.9rem;
}

.nav-spacer {
  width: 100%;
}

.nav-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-height, 72px);
  height: calc(100vh - var(--nav-height, 72px));
  pointer-events: none;
  z-index: 20;
}

.nav-drawer,
.nav-drawer * {
  box-sizing: border-box;
}

.nav-drawer .drawer-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer .drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: calc(100vh - var(--nav-height, 72px));
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transform: translateY(calc(-100% - 12px));
  transition: transform 0.3s ease;
  display: grid;
  grid-template-rows: auto 1fr;
}

.nav-drawer.open {
  pointer-events: auto;
}

.nav-drawer.open .drawer-overlay {
  opacity: 1;
}

.nav-drawer.open .drawer-panel {
  transform: translateY(0);
}

.nav-drawer.hidden-desktop {
  display: none;
}

.nav-drawer .drawer-body {
  padding: 1rem;
  overflow-y: auto;
}

.nav-drawer .nav-links {
  display: grid;
  gap: 0.75rem;
}

.drawer-header {
  place-content: flex-end;
}

@media (min-width: 960px) {
  .nav-links-main {
    display: inline-flex;
  }
  .nav-actions {
    display: inline-flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none;
  }
}
.cart-empty {
  text-align: center;
  gap: 0.75rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.cart-drawer .drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-drawer .drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 90vw);
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-drawer.open .drawer-overlay {
  opacity: 1;
}

.cart-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header, .drawer-footer {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.drawer-footer {
  border-top: 1px solid #eee;
  border-bottom: none;
}

.drawer-body {
  padding: 1rem;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
  place-content:flex-start;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  background: #f4f4f4;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.cart-title {
  font-weight: 600;
  font-size: medium;
}

.cart-copy {
  display: grid;
  gap: 0.35rem;
  line-height: 1;
}

.cart-variant {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-price {
  font-weight: 600;
  font-size: small;
}

.cart-total {
  font-weight: 700;
}

.cart-qty {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
}




/* Products loading in art section */
.products-loading {
  max-width: 600px;
  padding: 5px;
  text-align: center;
}

#products-loading {
  place-self:center;
}


.products-loading.hidden {
  display: none;
}

.products-loading .products-progress {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.products-loading .progress-bar-container,
.art-generation-progress .progress-bar-container {
  position: relative;
  width: 100%;
  height: 12px;
  background: #fff;
  border: 2px solid #de7456;
  border-radius: 999px;
  overflow: hidden;
}

.products-loading .progress-bar-fill,
.art-generation-progress .progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--btn-coral-dark);
  border-radius: 999px;
  transition: width 0.3s ease-out;
  transition: width 0.3s ease-out;
}

.art-generation-progress {
  margin-top: 2rem;
  text-align: center;
}

.art-generation-progress .progress-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #4B6CFA;
  font-weight: 500;
}

.art-progress-text {
  position: static;
  font-size: 1.3rem;
  color: white;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  z-index: 10;
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  margin: 0;
}

.art-progress-text.fade-in {
  animation: fadeInFromTop 0.5s ease forwards;
}

.art-progress-text.fade-out {
  animation: fadeOutToBottom 0.4s ease forwards;
}

#share-generating-preview {
  min-height: 300px;
}

#share-step-generating .card {
  text-align: center;
}

#share-step-generating h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2a476f;
}

#products-progress-text {
  font-size: 1.1rem;
  color: #666;
  margin-top: 0.5rem;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#products-progress-text.fade-in {
  animation: fadeInFromTop 0.5s ease forwards;
}

#products-progress-text.fade-out {
  animation: fadeOutToBottom 0.4s ease forwards;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 0.5rem;
  }
}

.hero,
.card,
.list-row,
.result-card,
.theme-card {
  display: grid;
  gap: 0.5rem;
}
.hero-wrapper {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}


.center {
  text-align: center;
}
.color-coral {
  color: var(--btn-primary);
}
.color-red {
  color: #e64c66;
}
.color-green {
  color: #3a7d44;
}
.color-blue {
  color: #2a476f;
} 
.color-white {
  color: #ffffff;
} 

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.hero-preview {
  position: relative;
}
.hero-heart {
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 10;
    background: #fdede2;
    padding: 1.05rem;
    line-height: 0;
    border-radius: 1.05rem;
    box-shadow: 0 4px 20px -4px hsl(350 40% 50% / 0.8);
}
.hero-heart svg {
  fill:#e64c66;
  stroke:#e64c66;
}
.hero-artists {
  animation: gentle-sway 3s ease-in-out infinite;
  position: absolute;
  left: -10px;
  bottom: -10px;
  z-index: 10;
  background: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 1.05rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem;
  place-items: center;
  box-shadow: 0 4px 20px -4px hsl(350 40% 50% / 0.8);
}

@keyframes gentle-sway {
  0%, 100% {
  transform: translateY(0px) rotate(0deg);
  }
  50% {
  transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes upload-bounce {
  0%, 82%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  62% {
    transform: translateY(-1px);
  }
}

.hero-artists .artist-proof {
display: grid;
grid-template-rows: 1fr;
gap: 0.25rem;
}
.hero-artists .artist-icon {
  line-height: 0;
  background:#f9e1e8;
  padding: 5px;
  border-radius: 25px;
}
.hero-artists .artist-proof-header {
  font-size:12px;
  line-height:1;
}
.hero-artists .artist-proof-text {
  font-size:10px;
  line-height:1;
}

#upload-trigger {
  animation: upload-bounce 2.8s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #upload-trigger {
    animation: none;
  }
}

.hero-preview .carousell {
  position: relative;
  overflow: hidden;

}
.hero-preview .carousell img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.hero-preview .carousell.vertical-carousel {
  position: relative;
  width: 100%;
}
.hero-preview .carousell.vertical-carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.hero-preview .carousell.vertical-carousel img.active {
  opacity: 1;
  position: relative;
}

@media (min-width: 700px) {
  .hero-preview {
    min-height: 400px;
  }
  .hero-preview .carousell,
  .hero-preview .carousell img {
    min-height: 400px;
  }
}

@media (min-width: 1024px) {
  .hero-preview {
    min-height: 450px;
  }
  .hero-preview .carousell,
  .hero-preview .carousell img {
    min-height: 450px;
  }
}
.preview-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: min(90vw, 480px);
}
.preview-controls {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 450px;
}
.preview-controls label {
  width: 100%;
}
.preview-controls input,
.preview-controls button {
  width: 100%;
}
.preview-figure .upload-retry-btn {
  position: absolute;
  top: 0.75rem;
  right: 1.75rem;
  background: #4b6bfab8;
  color: #fff;
  border: none;
  padding: 0.45rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  z-index: 2;
  width: fit-content;
}
.upload-retry-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.upload-retry-btn.hidden {
  display: none;
}

.upload-progress {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}
.upload-progress .progress-bar-container {
  position: relative;
  width: 100%;
  height: 12px;
  background: #fff;
  border: 2px solid #fcd1d1;
  border-radius: 999px;
  overflow: hidden;
}
.upload-progress .progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--btn-coral-dark);
  border-radius: 999px;
  transition: width 0.2s ease-out;
}
.upload-progress #upload-progress-text {
  text-align: center;
}
.upload-progress.hidden {
  display: none;
}

@keyframes progress-slide-bg {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.hero-action {
  width: 100%;
}
.hero-features {
  display: grid;
  grid-template-rows: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.hero-features span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-optical-sizing: auto;
}
.card {
  background:none;
  width: -webkit-fill-available;
}
.card.preview-card .form-grid {
  place-items: center;
}

#gen-results {
  place-content:center;
}


.card.art-result {
  display: grid;
  place-content: center;
  max-width: 450px;
}
.card.art-result .card-header {
  display: grid;;
}
.result-card {
  width: 100%;
  height:auto;
  max-width: 400px;
  ;
}

.shop-header-content {
  display: grid;
  place-items: center;
  grid-template-rows: 1fr;
  gap: 1rem;
  transition: all 0.5s ease;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  padding: 2rem;
  min-height: 500px!important;
  background-position: center top;
  box-shadow:rgba(0, 0, 0, 0.08) 0px 4px 14px;
}

@media (max-width: 768px) {
  .shop-header-content {
    min-height: 250px!important;
    padding:0.5rem;
  }
    .shop-header-content h1 {
    place-self: end;
    font-size:medium;
  }
}


.shop-header-content h1
{
  position: relative;
  z-index: 1;
  place-self: end;
}

.shop-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.shop-header-meta .share-btn,
.shop-header-meta .urgency-banner {
  position: relative;
  z-index: 1;
}

.shop-pet-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 0px 5px;
}

@media (min-width: 700px) {
  .shop-pet-avatar {
    width: 100px;
    height: 100px;
  }
}

.form-grid {
  display: grid;
  gap: 0.5rem;
}

.form-grid label {
  display: grid;
  gap: 0.25rem;
  width: 100%;
}

.form-grid input,
.form-grid textarea,
.form-grid select
 {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--btn-radius, 10px);
  font-size: 1rem;
  width: 100%;
}

.form-grid button,
.btn-primary,
.btn-secondary {
  cursor: pointer;
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1rem;
  border-radius: var(--btn-radius, 10px);
  border: 1px solid #ccc;
  background: #fff;
}

.upload-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.btn-primary {
  background: #0a0a0a;
  color: #fff;
  border-color: #000000;
}

.btn-primary.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn-primary.added {
  animation: cart-pop 0.4s ease;
}

@keyframes cart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.btn-secondary {
  background: #f4f4f4;
}

.guidelines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 250px));
  gap: 0.5rem;
  place-content: center;
}

.guideline-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px dashed #ccc;
  border-radius: 6px;
}

.guideline-img.placeholder {
  background: #f2f2f2;
}

.list {
  display: grid;
  gap: 0.5rem;
}

/* Homepage Hero */
.hero-home {
  text-align: center;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0 0 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-trust {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Benefits Section */
.benefits-section {
  padding: 3rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/*about*/
.started-img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  
  margin-bottom:3rem;
}


.benefit-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.benefit-item p {
  margin: 0.5rem 0 0;
  color: #666;
  line-height: 1.6;
}

/* How It Works Preview */
.how-it-works-preview {
  text-align: center;
  padding: 3rem 0;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 2rem 0;
}

.how-it-works-preview h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.section-subtitle {
  color: #666;
  margin: 0 0 2.5rem;
  font-size: 1.1rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.step-preview-item {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-preview-item h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.step-preview-item p {
  margin: 0.5rem 0 0;
  color: #666;
  line-height: 1.6;
}

.cta-center {
  margin-top: 2rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: var(--btn-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
}
.product-cta-title {
  padding: 1rem 3rem;
}
.sub-cta-title {
  display: grid;
}

@media (max-width: 700px) {
  .product-cta-title {
    padding: 1rem;
  }
}

.vertical-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  margin-top:3rem;
}

@media (min-width: 600px) {
  .vertical-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .vertical-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .vertical-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vertical-link {
  position:relative;
  border-radius: 3rem;
  text-decoration: none;
  background: var(--vertical-accent, #fafafa);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  align-items: center;
  box-shadow:0px 0px 12px rgba(0, 0, 0, 0.12)
}

.vertical-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.vertical-name {
  font-weight: 700;
  font-size:20px;
}
.vertical-desc {
  color:white;
  font-size:14px;
  line-height: 1rem;
}
.vertical-desc span, .vertical-name span {
  color:white!important
}

.step-section {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.step-section.completed {
  min-height: auto;
  align-content: start;
}

.step-header {
  display: grid;
  gap: 0.25rem;
}

.step-section .card {
  margin: 0 auto;
}

.upload-card.collapsed form,
.upload-card.collapsed .guidelines {
  display: none;
}

.upload-card.collapsed .upload-headings {
  display: none;
}

.upload-complete .upload-headings {
  display: none;
}

.hero.collapsed {
  display: none;
}

.step-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.step-nav .step-btn {
  border: 1px solid #ccc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-nav .step-btn.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.step-nav .step-btn.completed {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  color: #166534;
  cursor: pointer;
}

.step-nav .step-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.step-nav .step-btn:not(.disabled):hover {
  transform: translateY(-1px);
}

.vertical-copy {
  display: grid;
  gap: 0.25rem;
  position:absolute;
  width: 100%;
  padding: 2rem;
  bottom:0rem;
  background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);  
  padding-top:5rem;
  border-radius: 0px 0px 3rem 3rem;
}

.vertical-hero {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
}
.btn-start {
    width: 100%;
    color: #2a476f;
    display: grid;
    max-width: unset;
}

.vertical-carousel {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3rem;
  background-color: #f0f0f0;
  border: 1px solid #e5e5e5;
  position: relative;
  overflow: hidden;
      min-height: 220px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

@media (min-width: 700px) {
  .vertical-link {
    grid-template-columns: 1fr;
  }

  .vertical-hero,
  .vertical-carousel {
    aspect-ratio: 1;
    width: auto;
    min-height: 220px;
  }
}

.list-row {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.muted {
  color: #2a476f;
  font-size: 0.95rem;
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.2rem;
  display: grid;

}

.site-footer {
  position: relative;
  padding: 3.5rem 1.5rem 2rem;
  background: #24456d;

  color: #e5e7eb;
}



.footer-inner {
  max-width: var(--layout-max-width, 1024px);
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }
}

.footer-section {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-family: "Fraunces", "Nunito", serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
}

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

.footer-social-btn {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

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

.footer-heading {
  font-family: "Fraunces", "Nunito", serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #e5e7eb;
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-bottom {
  max-width: var(--layout-max-width, 1024px);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e1;
}

@media (min-width: 700px) {
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .footer-copyright {
    text-align: right;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 700px) {
  .footer-legal {
    justify-content: flex-start;
  }
}

.footer-legal a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #fff;
}

.themes-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 700px) {
  .themes-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.products-cta {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.products-cta-subheader, .howto-cta-subheader, .usertesto-cta-subheader {
  font-size: 1rem;
  margin-top: 0.5rem;
  text-align: center;
}
.products-cta-wrapper, .howto-cta-wrapper, .usertesto-cta-wrapper {
  display:grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap:1rem;
}
.products-cta-grid, .howto-cta-gridwrapper {
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  display: grid;
  margin-top:3rem;
}
.usertesto-cta-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  display: grid;
  margin-top:3rem;
}
.usertesto-cta-user {
  display: grid;
  grid-template-columns:1fr 1fr;
  align-items: center;
  border-top: #f1f1f1 1px solid;
  padding-top: 0.5rem;
}
.usertesto-cta-user span {
  line-height: 1;
}
.usertesto-cta-user .username {
  font-size:medium
}

.usertesto-cta-user .cat-name {
  place-self:end;
}

@media (max-width: 1024px) {
  .products-cta-grid, .howto-cta-gridwrapper, .usertesto-cta-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .products-cta-grid, .howto-cta-gridwrapper, .usertesto-cta-grid{
    grid-template-columns: 1fr;
  }
}


.howto-cta, .usertesto-cta {
  background: white;
  padding: 5rem 1rem;
}
.howto-cta-grid-item {
  display: grid;
  place-items:center;
  gap: 1rem;
}
.howto-cta-icon{
  height: 6rem;
  width: 6rem;
  border-radius: 2rem;
  line-height: 1;
  transition: transform 0.3s ease;
  position: relative;
  display: grid;
  place-content: center;
}
.howto-cta-icon img {
  height:2.5rem;
  width:2.5rem;
}
.howto-cta-icon span {
  position:absolute;
  background:#e54d66;
  color:white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  right: -10px;
  top: -10px;
  display: grid;
  place-content: center;
}
.howto-cta-icon.one {
  background:#fdede2
}
.howto-cta-icon.two {
  background:#dbf0eb
}
.howto-cta-icon.three {
  background:#f7d797
}
.howto-cta-icon.four {
  background:#f17e92
}
.howto-cta-title {
  font-size:1.25rem;
  font-family: "Fraunces", serif;
  line-height: 1;
}


.products-cta-item, .usertesto-cta-item {
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.12);
  border-radius: 2rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.products-cta-item:hover .products-cta-image {
  transform: scale(1.1);
}


.products-cta-pill, .howto-cta-pill, .usertesto-cta-pill {
  background:#f7d5d7;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 15px;
}
.products-cta-image, .usertesto-cta-image {
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.products-cta-header, .howto-cta-header{
  font-family: "Fraunces", serif;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.product-cta-header {
  display: grid;
  gap: 0.5rem;
  place-items: center start;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  grid-template-columns: auto 1fr;
}

.product-cta-icon {
  background:#fdede2;
  padding: 0.5rem;
  border-radius: 8px;
  line-height: 1;
  transition: transform 0.3s ease;
}
/* cat */
.cat .products-cta-image.item-one, .page-home .products-cta-image.item-one {
  background: url(/static/images/products-cta/product1.webp);
    background-size: cover;
  background-position: center;
}
.cat .products-cta-image.item-two {
  background: url(/static/images/products-cta/product2.webp);
    background-size: cover;
  background-position: center;
}
.cat .products-cta-image.item-three, .page-home .products-cta-image.item-three  {
  background: url(/static/images/products-cta/product3.webp);
    background-size: cover;
  background-position: center;
}
.cat .products-cta-image.item-four {
  background: url(/static/images/products-cta/product4.webp);
    background-size: cover;
  background-position: center;
}

/* cat testamonials */
.cat .usertesto-cta-image.item-one {
  background: url(/static/images/testo/user-testo-one.webp);
  background-size: cover;
  background-position: center;
}
.cat .usertesto-cta-image.item-two {
  background: url(/static/images/testo/user-testo-two.webp);
    background-size: cover;
  background-position: center;
}
.cat .usertesto-cta-image.item-three {
  background: url(/static/images/testo/user-testo-three.webp  );
    background-size: cover;
  background-position: center;
}

/* dog */
.dog .products-cta-image.item-one {
  background: url(/static/images/products-cta/dog1.webp);
    background-size: cover;
  background-position: center;
}
.dog .products-cta-image.item-two, .page-home .products-cta-image.item-two  {
  background: url(/static/images/products-cta/dog3.webp);
    background-size: cover;
  background-position: center;
}
.dog .products-cta-image.item-three {
  background: url(/static/images/products-cta/dog2.webp);
    background-size: cover;
  background-position: center;
}
.dog .products-cta-image.item-four, .page-home .products-cta-image.item-four  {
  background: url(/static/images/products-cta/dog4.webp);
    background-size: cover;
  background-position: center;
}

/* dog testamonials */
.dog .usertesto-cta-image.item-one, .page-home .usertesto-cta-image.item-one {
  background: url(/static/images/testo/user-testo-one.webp);
  background-size: cover;
  background-position: center;
}
.dog .usertesto-cta-image.item-two, .page-home .usertesto-cta-image.item-two {
  background: url(/static/images/testo/user-testo-two.webp);
    background-size: cover;
  background-position: center;
}
.dog .usertesto-cta-image.item-three, .page-home .usertesto-cta-image.item-three {
  background: url(/static/images/testo/user-testo-three.webp  );
    background-size: cover;
  background-position: center;
}


/* cars */
.cars .products-cta-image.item-one {
  background: url(/static/images/products-cta/car_canvas.webp);
    background-size: cover;
  background-position: center;
}
.cars .products-cta-image.item-two  {
  background: url(/static/images/products-cta/car_mug.webp);
    background-size: cover;
  background-position: center;
}
.cars .products-cta-image.item-three {
  background: url(/static/images/products-cta/car_shirt.webp);
    background-size: cover;
  background-position: center;
}
.cars .products-cta-image.item-four {
  background: url(/static/images/products-cta/car_tote.webp);
    background-size: cover;
  background-position: center;
}

/* cars testamonials */
.cars .usertesto-cta-image.item-one {
  background: url(/static/images/testo/car_testo_1.webp);
  background-size: cover;
  background-position: center;
}
.cars .usertesto-cta-image.item-two {
  background: url(/static/images/testo/car_testo_2.webp);
    background-size: cover;
  background-position: center;
}
.cars .usertesto-cta-image.item-three {
  background: url(/static/images/testo/car_testo_3.webp);
  background-size: cover;
  background-position: center;
}



.products-cta-meta, .usertesto-cta-meta {
  padding: 1rem;
  text-align: left;
  display: grid;
  gap:0.5rem;
  background: white;
  position: relative;
  z-index: 2;
}
.products-cta-price {
  font-weight: 600;
  font-size: 15px;
}





.upload-cta {
  position: relative;
  margin: 0;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 3.5rem);
  background: linear-gradient(135deg, rgb(230, 77, 102) 0%, rgb(242, 140, 90) 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.upload-cta-inner {
  width: 100%;
  display: grid;
  gap: 1rem;
  text-align: center;
}


.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin: 0 auto 0.5rem;
}

.cta-badge-icon {
  font-size: 1rem;
}
.cta-badge.vertical {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin-top:1rem;
}

.cta-title {
  font-family: "Fraunces", "Nunito", serif;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin: 0;
}

.cta-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: grid;
  place-items: center;
  margin-top: 0.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: #fff;
  color: #d24f62;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn-icon {
  font-size: 1.05rem;
}

.cta-footnote {
  margin: 0.25rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.cta-decor {
  position: absolute;
  opacity: 0.16;
  user-select: none;
}

.cta-decor-1 {
  top: 12%;
  right: 14%;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
}

.cta-decor-2 {
  bottom: 12%;
  left: 8%;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
}

.cta-decor-3 {
  bottom: 14%;
  right: 8%;
  font-size: clamp(2.8rem, 6vw, 3.6rem);
}



#upload-form {
  place-content:flex-start;
  grid-template-columns: 1fr;
}

@media (max-width: 768px) {
  #upload-form {
    place-content: center;
  }
}

.theme-card {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: left;
  display: grid;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.theme-card.thumb-only {
  padding: 0;
  border: none;
  border-radius: 12px;
}

.theme-card.active {
  border-color: #111;
}

.theme-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

 .theme-preview-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-admin-home .theme-preview-thumb {
    max-width: 125px;
}

.theme-preview-thumb.placeholder {
  background: #eee;
}

.thumb-only .theme-preview-thumb {
  border: none;
  border-radius: 12px;
  min-height: 200px;
  position: relative;
}

.theme-name {
  position: absolute;
  left: 0;
  bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 0px 5px 5px 0px;
  font-weight: 700;
}

.theme-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.theme-row {
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.75rem;
}

.progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 80px;
}

.progress.hidden {
  display: none;
}

.progress-bar {
  display: none; /* Hide the loading bar */
}

#progress-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0px 0px 7px rgba(0,0,0,1);
}

#progress-text.fade-in {
  animation: fadeInFromTop 0.5s ease forwards;
}

#progress-text.fade-out {
  animation: fadeOutToBottom 0.4s ease forwards;
}

@keyframes fadeInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutToBottom {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.results-grid {
  display: grid;
  gap: 0.5rem;
  place-content:center;
}

.result-placeholder {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: var(--placeholder-aspect, 1 / 1);
  border-radius: 1.05rem;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 0.4s ease, opacity 0.4s ease;
}

.result-placeholder > * {
  position: relative;
  z-index: 2;
}

.result-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  opacity: 0;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

.result-placeholder button.btn-primary {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: fit-content;
  width: fit-content;
}


.card.preview-card .form-grid {
  place-items: center;
  gap: 1rem;
} 

#share-pet-name {
  animation: pulse-border 2s ease-in-out infinite;
  border-width:2px;
  height: 3.5rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  border-radius: 18px;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: #ccc;
  }
  50% {
    border-color: var(--btn-coral-dark);
  }
}

#to-themes-btn {
    display: grid;
    place-items: center;
    background: #4B6CFA;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: 6px solid #D1D8FC;
    border-radius: 24px;
    box-shadow: none;
    padding: 1.1rem 2rem;
    width: 100%;
    letter-spacing: 0.02em;
    margin: 0.5rem 0 0.5rem 0;
    transition: background 0.2s;
}
#to-themes-btn:hover {
    background: #3B5DE0;
    transform: translateY(-1px);
}

.result-placeholder.is-upload::before {
  opacity: 1;
  filter: blur(6px);
  transform: scale(1.03);
}

.result-placeholder.scanning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(17,17,17,0.08), rgba(0,0,0,0));
  animation: scan 1.2s linear infinite;
  z-index: 3;
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.products-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.shop-progress-note {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

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

.product-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  pointer-events: none;
}

.product-drawer.active {
  pointer-events: auto;
  z-index: 50;
}

.drawer-overlay {
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.product-drawer.active .drawer-overlay {
  opacity: 1;
}

.drawer-panel {
  background: #fff;
  width: min(520px, 95vw);
  margin-left: auto;
  height: 100%;
  border-left: 1px solid #ddd;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow-y: auto;
}

.product-drawer.active .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.75rem;
  cursor: pointer;
  justify-self: end;
}

.drawer-body {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1.25rem 1rem;
  grid-template-rows: auto 1fr;
}

.drawer-media {
  display: grid;
  gap: 0.75rem;
}

.drawer-media .product-thumb {
  max-height: none;
}

.drawer-media .product-thumb:not(.product-carousel) {
  aspect-ratio: 3 / 4;
}

.drawer-media .product-carousel {
  aspect-ratio: unset;
  display: contents;
}

.drawer-media .product-carousel .carousel-main-img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.drawer-info {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.drawer-meta {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.5rem;
  align-items: center;
}

.drawer-options {
  display: grid;
  gap: 0.35rem;
}

.drawer-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
}

.drawer-option strong {
  font-weight: 600;
}

.drawer-option .muted {
  text-align: right;
}

.drawer-select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d7dce3;
  background: #f8fafc;
  color: #0b1624;
  font-size: 14px;
}

.product-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0.5rem 0;
}

.product-desc.hidden {
  display: none;
}

/* Carousel thumbnails in drawer */
.carousel-main-img {
  display: block;
  border-radius: 8px;
}

.carousel-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.carousel-thumbnail:hover {
  border-color: #ddd;
}

.carousel-thumbnail.active {
  border-color: var(--primary-color, #4F46E5);
}

.drawer-open {
  overflow: hidden;
}


.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 24px rgba(6, 6, 6, 0.15);
}
.product-card.scanning::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(17,17,17,0.08), rgba(0,0,0,0));
  animation: scan 1.2s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px 8px 0 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.product-thumb.xerox-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(17,17,17,0.08), rgba(0,0,0,0));
  animation: scan 1.2s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.product-progress-line {
  width: 100%;
  height: 2px;
  background: #e9edf3;
  position: relative;
  overflow: hidden;
}

.product-progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg, transparent, rgba(60, 87, 200, 0.6), transparent);
  opacity: 0;
}

.product-progress-line.is-active::after {
  opacity: 1;
  animation: progress-sweep 1.4s ease-in-out infinite;
}

.product-progress-line.is-complete::after {
  opacity: 0;
  animation: none;
}

.product-progress-line.is-placeholder::after {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  animation: progress-sweep 1.6s ease-in-out infinite;
}

@keyframes progress-sweep {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(160%); }
}

.product-thumb.product-carousel {
  background: #f5f5f5;
}
.product-thumb.placeholder {
  display: grid;
  place-items: center;
  background: #f8f8f8;
  color: #666;
  text-align: center;
  padding: 0.5rem;
  gap: 0.35rem;
}

.product-thumb.placeholder span {
  position: relative;
  z-index: 2;
}
.product-thumb.scanning::after {
  display: none;
}
.product-thumb .progress {
  width: 100%;
}

.product-meta {
  display: grid;
  gap: 0.5rem;
  text-align: center;
  padding: 0.75em 0.5em;
}

.product-card.is-placeholder {
  border: none;
  background: #fbfcfe;
  box-shadow: none;
  pointer-events: none;
}

.product-card.is-placeholder:hover {
  transform: none;
  box-shadow: none;
}

.product-card.is-placeholder .product-thumb {
  background: #f1f4f9;
  border-radius: 8px 8px 0 0;
}

.product-meta.placeholder-meta {
  gap: 0.6rem;
}

.product-placeholder-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7, #f7f9fc, #eef2f7);
  background-size: 200% 100%;
  animation: placeholder-shimmer 1.6s ease-in-out infinite;
}

.product-placeholder-line.long {
  width: 80%;
  margin: 0 auto;
}

.product-placeholder-line.short {
  width: 60%;
  margin: 0 auto;
}

@keyframes placeholder-shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.product-card.is-placeholder .btn-add-to-cart {
  pointer-events: none;
  opacity: 0.6;
  background: #e5e8ee;
  color: #9aa4b2;
  border-color: #e5e8ee;
}

.product-name {
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.5em;
  font-family:"fraunces", "DM Sans", serif;
}

.product-brand {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1;
  width: fit-content;
  margin: 0 auto;
  padding: 3px 6px;
  border-radius: 3px;
}

.product-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-brand-red);
  text-align: right;
}

.btn-block {
  width: 100%;
}



.result-card img,
#preview-img, #result-placeholder {
  width: 100%;
  height: auto;
  border-radius: 0px;
  border: 8px solid black;
  box-shadow: 0px 0px 17px -1px;
}
.result-placeholder.has-preview,
.result-placeholder.has-result {
  border-style: unset;
  border-color: #ddd;
}

.result-placeholder.scanning .gen-overlay,
.result-placeholder.is-upload .gen-overlay {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.gen-overlay-content {
  padding: 2rem;
  max-width: 90%;
}

.gen-overlay-headline {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gen-overlay-text {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 1rem 0 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gen-overlay .progress-bar-container.in-frame {
  position: relative;
  width: min(300px, 90%);
  height: 12px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.gen-overlay .progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4bffa5, #60c8ff);
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

.gen-overlay .art-progress-text {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  align-self: center;
}

.products-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.products-loading-overlay.hidden {
  display: none;
}

.products-loading-content {
  text-align: center;
  padding: 1rem;
  max-width: 100%;
}

.products-loading-headline {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.products-loading-text {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-top: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.products-loading-overlay .progress-bar-container.in-frame {
  position: relative;
  width: min(300px, 90%);
  height: 12px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.products-loading-overlay .progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition: width 0.3s ease-out;
}

.art-critique {
  text-align: center;
  font-style: italic;
  color: #444;
  margin: 0.5rem auto 0;
  max-width: 540px;
}

.selected-preview {
  aspect-ratio: 3 / 4;
  width: 100%;
  height: auto;
  border-radius: 1.05rem;
  box-shadow: 0px 0px 17px -1px;
  max-width: 450px;
  background-size: cover;
  background-position: center;
  min-width: 220px;
  min-height: 260px;
}

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

.hidden {
  display: none;
}

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

.toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #1f1f1f;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.checkout-card {
  display: grid;
  gap: 0.75rem;
}
.checkout-success-message {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}
.checkout-success-message p {
  margin: 0;
}
.order-items-inline {
  font-weight: 600;
}

.order-meta {
  text-align:right;
}
.checkout-signoff {
  margin-top: 0.25rem;
  font-weight: 600;
}
.checkout-share {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #f9f4ee;
  margin-bottom: 1.5rem;
  text-align: center;
}
.checkout-share-copy h2 {
  margin: 0 0 0.5rem;
}
.checkout-share-copy p {
  margin: 0 0 0.75rem;
}
.checkout-share-media {
  display: grid;
}
.checkout-share-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.checkout-card.cancel h1 { color: #9a1c1c; }
.checkout-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.checkout-actions .btn-secondary {
  background: #f5f5f5;
  color: #333;
}
.checkout-actions .btn-secondary:hover {
  background: #e8e8e8;
}
.order-summary {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  font-size:16px;
}
.order-items {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.order-item-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .checkout-share {
    grid-template-columns: 1fr;
  }
}

.card.login-admin {
  display: grid;
  grid-template-rows:min-content min-content;
  max-height: fit-content;
}
.card.login-admin .form-grid {
  grid-template-rows: min-content min-content min-content;
}


.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.95rem;
}
.admin-table th {
  background: #f8f8f8;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.slideout {
  justify-content: end;
  align-items: stretch;
  padding: 0;
}

.modal.slideout .modal-content {
  width: 80vw;
  max-width: 900px;
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  border-radius: 0;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.modal.nested {
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(90vw, 480px);
  max-height: 90vh;
  overflow: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Share button in header */
.share-btn {
  background: var(--color-brand-red);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  display: grid;
  color:white;
  border-radius: 8px;
  border:unset;
  padding: 5px 5px;
  box-shadow:var(--btn-coral-dark);
}

.share-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--btn-shadow);
}



/* Share modal specific styles */
.share-modal-content {
  max-width: 520px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #f0f0f0;
}

.modal-body {
  display: grid;
  gap: 1rem;
}

.share-modal-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.share-modal-warning .urgency-icon {
  font-size: 1.25rem;
}

.share-link-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.share-link-container input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #f8f8f8;
  font-family: monospace;
}

.share-link-container .btn-primary {
  white-space: nowrap;
  padding: 0.75rem 1.25rem;
}

.share-modal-hint {
  margin: 0;
  text-align: center;
}

/* ============================================
   ADMIN DARK MODE STYLING
   Modern dark interface for /admin pages
   ============================================ */

/* Dark mode color palette */
.page-admin-login,
.page-admin-home {
  --admin-bg-primary: #0f0f0f;
  --admin-bg-secondary: #1a1a1a;
  --admin-bg-tertiary: #242424;
  --admin-border: #2d2d2d;
  --admin-border-hover: #3d3d3d;
  --admin-text-primary: #e5e5e5;
  --admin-text-secondary: #a0a0a0;
  --admin-text-muted: #707070;
  --admin-accent: #4f9bff;
  --admin-accent-hover: #6aabff;
  --admin-success: #4ade80;
  --admin-warning: #fbbf24;
  --admin-danger: #ef4444;
  --admin-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  --admin-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --admin-radius: 12px;
  --admin-radius-sm: 8px;
}

/* Base admin layout */
.page-admin-login,
.page-admin-home {
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  min-height: 100vh;
}

.page-admin-login main,
.page-admin-home main {
  background: var(--admin-bg-primary);
}

/* Admin headings */
.page-admin-home h1,
.page-admin-home h2,
.page-admin-home h3,
.page-admin-home h4,
.page-admin-login h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: var(--admin-text-primary);
  letter-spacing: -0.02em;
}

.page-admin-home h1,
.page-admin-login h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-admin-home h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.page-admin-home h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.page-admin-home .muted,
.page-admin-login .muted {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
}

/* Admin cards */
.page-admin-home .card,
.page-admin-login .card {
  background: var(--admin-bg-secondary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  box-shadow: var(--admin-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-admin-home .card:hover {
  border-color: var(--admin-border-hover);
}

.page-admin-home .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--admin-border);
}

/* Admin forms */
.page-admin-home .form-grid,
.page-admin-login form {
  display: grid;
  gap: 1rem;
}

.page-admin-login .error-message {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.page-admin-home .form-grid label,
.page-admin-login label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--admin-text-secondary);
}

.page-admin-home .form-grid label > span {
  display: block;
  margin-bottom: 0.5rem;
}

.page-admin-home .form-grid input,
.page-admin-home .form-grid textarea,
.page-admin-home .form-grid select,
.page-admin-login input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--admin-bg-tertiary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.page-admin-home .form-grid input:focus,
.page-admin-home .form-grid textarea:focus,
.page-admin-home .form-grid select:focus,
.page-admin-login input:focus {
  outline: none;
  border-color: var(--admin-accent);
  background: var(--admin-bg-secondary);
}

.page-admin-home .form-grid input::placeholder,
.page-admin-home .form-grid textarea::placeholder,
.page-admin-login input::placeholder {
  color: var(--admin-text-muted);
}

/* Admin buttons */
.page-admin-home .btn-primary,
.page-admin-home .btn-secondary,
.page-admin-home button[type="submit"],
.page-admin-home button:not([type]):not(.drawer-close):not(.qty-btn):not(.nav-toggle),
.page-admin-login button[type="submit"] {
  padding: 0.65rem 1.25rem;
  border-radius: var(--admin-radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  border: none;
}

.page-admin-home .btn-primary,
.page-admin-home button[type="submit"],
.page-admin-home button:not([type]):not(.drawer-close):not(.qty-btn):not(.nav-toggle):not([data-action="delete"]),
.page-admin-login button[type="submit"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.page-admin-home .btn-primary:hover,
.page-admin-home button[type="submit"]:hover,
.page-admin-home button:not([type]):not(.drawer-close):not(.qty-btn):not(.nav-toggle):not([data-action="delete"]):hover,
.page-admin-login button[type="submit"]:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.page-admin-home .btn-primary:active,
.page-admin-home button[type="submit"]:active,
.page-admin-home button:not([type]):not(.drawer-close):not(.qty-btn):not(.nav-toggle):active {
  transform: translateY(0);
}

.page-admin-home .btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.page-admin-home .btn-secondary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.page-admin-home button[data-action="delete"],
.page-admin-home .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.page-admin-home button[data-action="delete"]:hover,
.page-admin-home .btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
}

/* Admin lists */
.page-admin-home .list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-admin-home .list-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--admin-bg-tertiary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-admin-home .list-row:hover {
  background: var(--admin-bg-secondary);
  border-color: var(--admin-border-hover);
}

.page-admin-home .list-actions {
  display: flex;
  place-content: end;
  gap: 0.5rem;
}

.page-admin-home .btn-delete {
  background: #ef4444 !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  min-width: 80px;
}

.page-admin-home .btn-delete:hover {
  background-color: #dc2626 !important;
}

.page-admin-home .list-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-admin-home .list-actions button {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

/* Admin table */
.page-admin-home .admin-table {
  background: var(--admin-bg-secondary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  overflow: hidden;
}

.page-admin-home .admin-table th {
  background: var(--admin-bg-tertiary);
  color: var(--admin-text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-color: var(--admin-border);
}

.page-admin-home .admin-table td {
  color: var(--admin-text-primary);
  border-color: var(--admin-border);
}

.page-admin-home .admin-table tr:hover td {
  background: var(--admin-bg-tertiary);
}

/* Admin modal/slideout */
.page-admin-home .modal {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.page-admin-home .modal-content {
  background: var(--admin-bg-secondary);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-lg);
  display: grid;
  grid-template-rows: max-content max-content;
}

.page-admin-home .modal.slideout .modal-content {
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.8);
  border-left: 2px solid var(--admin-accent);
}

/* Admin status indicators */
.page-admin-home .status-active {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(74, 222, 128, 0.15);
  color: var(--admin-success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.page-admin-home .status-inactive {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(160, 160, 160, 0.15);
  color: var(--admin-text-muted);
  border: 1px solid rgba(160, 160, 160, 0.3);
}

/* Admin login page specific */
.page-admin-login {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.page-admin-login main {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

.page-admin-login .card {
  padding: 2rem;
}

.page-admin-login h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.page-admin-login form {
  margin-top: 1.5rem;
}

/* Admin responsive adjustments */
@media (max-width: 768px) {
  .page-admin-home .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-admin-home .list-row {
    grid-template-columns: 1fr;
  }

  .page-admin-home .list-actions {
    justify-content: flex-start;
  }

  .page-admin-home .modal.slideout .modal-content {
    width: 95vw;
  }
}

/* Admin scrollbar styling */
.page-admin-home ::-webkit-scrollbar,
.page-admin-login ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.page-admin-home ::-webkit-scrollbar-track,
.page-admin-login ::-webkit-scrollbar-track {
  background: var(--admin-bg-primary);
}

.page-admin-home ::-webkit-scrollbar-thumb,
.page-admin-login ::-webkit-scrollbar-thumb {
  background: var(--admin-bg-tertiary);
  border-radius: 5px;
}

.page-admin-home ::-webkit-scrollbar-thumb:hover,
.page-admin-login ::-webkit-scrollbar-thumb:hover {
  background: var(--admin-border-hover);
}

/* Admin utility classes */
.page-admin-home .text-success {
  color: var(--admin-success);
}

.page-admin-home .text-warning {
  color: var(--admin-warning);
}

.page-admin-home .text-danger {
  color: var(--admin-danger);
}

.page-admin-home .divider {
  height: 1px;
  background: var(--admin-border);
  margin: 1.5rem 0;
}

/* Admin Order Stats */
.page-admin-home .order-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.page-admin-home .stat-box {
  background: var(--admin-bg-tertiary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-admin-home .stat-box:hover {
  border-color: var(--admin-border-hover);
  transform: translateY(-2px);
}

.page-admin-home .stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-admin-home .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--admin-accent);
  line-height: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-admin-home .stat-subvalue {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--admin-text-secondary);
  margin-top: 0.5rem;
}

/* Admin Orders Styling */
.page-admin-home .orders-container {
  margin-top: 1rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.page-admin-home .orders-list {
  display: grid;
  gap: 1rem;
}

.page-admin-home .order-card {
  background: var(--admin-bg-tertiary);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.page-admin-home .order-card:hover {
  border-color: var(--admin-border-hover);
}

.page-admin-home .order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--admin-bg-secondary);
  border-bottom: 1px solid var(--admin-border);
}

.page-admin-home .order-id {
  font-weight: 600;
  font-size: 1rem;
  color: var(--admin-text-primary);
}

.page-admin-home .order-date {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-top: 0.25rem;
}

.page-admin-home .order-status {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-admin-home .order-status.status-complete,
.page-admin-home .order-status.status-paid,
.page-admin-home .status-badge.status-paid,
.page-admin-home .status-badge.status-draft {
  background: rgba(74, 222, 128, 0.15);
  color: var(--admin-success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.page-admin-home .order-status.status-pending,
.page-admin-home .status-badge.status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--admin-warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.page-admin-home .order-status.status-failed,
.page-admin-home .order-status.status-canceled,
.page-admin-home .status-badge.status-failed,
.page-admin-home .status-badge.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--admin-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.page-admin-home .status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.page-admin-home .order-body {
  padding: 1rem;
}

.page-admin-home .order-details {
  display: grid;
  gap: 0.75rem;
}

.page-admin-home .order-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.page-admin-home .detail-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--admin-text-secondary);
}

.page-admin-home .detail-value {
  font-size: 0.9rem;
  color: var(--admin-text-primary);
}

.page-admin-home .detail-value.mono {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

.page-admin-home .order-items {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--admin-border);
}

.page-admin-home .order-items ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.page-admin-home .order-items li {
  font-size: 0.9rem;
  color: var(--admin-text-primary);
  padding-left: 1.25rem;
  position: relative;
}

.page-admin-home .order-items li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--admin-accent);
}

.page-admin-home .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.page-admin-home .modal-header h3 {
  margin: 0;
}

/* =================================================================
   Content Pages - Unified Structure
   ================================================================= */

.page-how .howto-cta {
  background:unset;
  padding: 0rem 1rem;
  padding-bottom:3rem;
}
.page-how .good-and-bad-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  place-items:center;
}

@media (max-width: 700px) {
  .page-how .good-and-bad-examples {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.page-how .example.bad-example {
  background: url(/static/images/bad_cat.webp);
  background-size: cover;
  background-position: center;
  border-radius: 2rem;
  box-shadow: 0px 0px 17px -1px;
  aspect-ratio: 1/1;
  width: 100%;
}
.page-how .example.good-example {
  background: url(/static/images/good_cat.webp);
  background-size: cover;
  background-position: center;
  border-radius: 2rem;
  box-shadow: 0px 0px 17px -1px;
  aspect-ratio: 1/1;
  width: 100%;;
}
.page-how .example-container {
  display: grid;
  gap:20px;
  width: 100%;
}
.page-how .example-container h2 {
  font-weight: 600;
  text-align: center;
}

.content-page {
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.content-body {
  margin-top: 3rem;
}

.slug-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.slug-card {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 3rem;
}

.slug-image.before {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.slug-image.after {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.slug-progress {
  white-space: pre-line;
}

.before-after {
 position: relative;
}

.before-after-card {
  display: grid;
  gap: 0.5rem;
}
.before-after-card.before {
  position:absolute;
  bottom:5%;
  max-width: 30%;
  place-self: start;
}
.before-after-card.after {
  max-width: 95%;
  place-self: end;
}




.before-after-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: #fff;
  background: #2a476f;
  padding: 0.2rem 0.3rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: fit-content;
  line-height: 1;
}

@media (min-width: 900px) {
  .slug-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
  .before-after-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.content-body p.lead {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-list {
  margin: 1.5rem 0;
  padding-left: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text, #333);
}

.content-list li {
  margin-bottom: 1rem;
}

.link-primary {
  color: var(--color-primary, #4a90e2);
  text-decoration: none;
  font-weight: bold;
}

.link-primary:hover {
  text-decoration: underline;
}

/* Contact Box (About page) */
.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
}
.contact-box span {
  display: block;
  margin-bottom: 0.75rem;
}

.inverted-link {
  background:var(--btn-coral-dark);
  color:white;
  padding:2px 4px;
  border-radius:3px;
  text-decoration:none;
  width: fit-content;
}

.contact-box p {
  margin: 0.5rem 0;
}

.signature {
  margin-top: 1.5rem;
}

/* Steps List (How It Works page) */
.steps-list {
  display: grid;
  gap: 2rem;
  margin-top: 0;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-bg, #f5f5f5);
  border-radius: 8px;
}

.step-card .step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.step-content p {
  margin: 0.5rem 0;
  color: var(--color-muted, #666);
  font-size: 1rem;
}

/* Tips Box (How It Works page) */
.tips-box {
  margin-top: 3rem;
  padding: 2rem;
  background: #fffbf0;
  border-radius: 8px;
  border-left: 4px solid #ffb700;
}

.tips-box h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.tips-list {
  list-style: none;
  padding-left: 0;
  color: var(--color-muted, #666);
  line-height: 1.8;
  margin: 1rem 0;
}

.tips-list li {
  margin-bottom: 0.5rem;
}

/* FAQ Styling */
.faq-container {
  display: grid;
  gap: 1rem;
  margin-top: 0;
}

.faq-item {
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.2s ease;  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 139, 127, 0.45);
  background-image: linear-gradient(135deg, rgb(230, 77, 102) 0%, rgb(242, 140, 90) 100%);
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text, #fff);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::marker {
  content: '';
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted, #fff);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.faq-answer a {
  color: var(--color-primary, #fff);

}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Cart Empty State */
.cart-empty .content-body {
  padding: 2rem 0;
}

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

/* Mobile Responsiveness */



  .content-subtitle {
    font-size: 0.95rem;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin: 0 auto;
  }

  .step-content {
    text-align: center;
  }

  .tips-box {
    padding: 1.5rem;
  }


/* Share page styles */
.share-page {
  max-width: var(--layout-max-width, 1024px);
  width: 100%;
  margin: 0 auto;
  padding-bottom: 5rem; /* Space for step nav */
  padding:1.25rem;
}

.share-page .step-section {
  animation: fadeIn 0.3s ease;
  padding:0px;
}

.share-art-card {
  text-align: center;
  min-height: auto;
  display: block;
}

.share-art-card .result-placeholder,
#share-generating-preview {
  width: 100%;
  max-width: 450px;
  margin: 0 auto 1.5rem;
  aspect-ratio: var(--placeholder-aspect, 1 / 1);
  border-radius: 1.05rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0px 0px 17px -1px;
  position: relative;
  overflow: hidden;
}

.share-art-title {
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.share-art-card .art-critique {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-muted, #666);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.share-art-card .products-loading {
  margin: 1.5rem 0;
}

.shop-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.urgency-banner {
  color: black;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 5;
}

.urgency-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.share-art-frame {
  position: relative;
  display: inline-block;
}

.share-art-frame .result-placeholder {
  margin-bottom: 0;
}

.result-placeholder.art-crossfade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--upload-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
  z-index: 1;
  animation: crossfadeOut 1.2s ease-in-out 0.3s forwards;
}

@keyframes crossfadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.share-expiry-pill {
  position: absolute;
  right: 16%;
  bottom: 5%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.share-expiry-pill .urgency-icon {
  margin-right: 0;
  font-size: 0.9rem;
}

.share-art-actions-row {
  display: none;
  grid-template-columns: auto max-content max-content;
  gap: 0.75rem;
  align-items: stretch;
  margin: auto 0;
  max-width: 540px;
}

.share-art-actions-row .icon-btn.expiry {
  background: unset;
  box-shadow: none;
  pointer-events: none;
  color: #000;
}

.share-art-actions-row .icon-btn .expiry-icon {
  width: 18px;
  height: 18px;
}

.share-art-actions-row .icon-btn {
  width: fit-content;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-art-actions-row .icon-btn img {
  width: 20px;
  height: 20px;
}

.share-art-actions-row .icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.share-art-actions-row .icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.share-header {
  text-align: center;
  margin-bottom: 3rem;
}

.share-header h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  color: #2c3e50;
}

.critique {
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.artwork-display {
  text-align: center;
  margin-bottom: 3rem;
}

.share-artwork {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.share-products {
  margin: 3rem 0;
}

.share-products h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.products-intro {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  place-items: center;
}

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

.product-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.product-description {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
  margin: 0.5rem 0;
  padding: 0 0.5rem;
  text-align: center;
  max-width: 280px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-brand-red);
}

.btn-add-to-cart {
 
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;;
  max-width:fit-content;
  place-self: center;
}


.share-cta {
  text-align: center;
  margin: 4rem 0 2rem;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 3.5rem);
  background: linear-gradient(135deg, rgb(230, 77, 102) 0%, rgb(242, 140, 90) 100%);
  border-radius: 16px;
  color: white;
}

.share-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.share-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

/* Expired page styles */
.share-expired {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.expired-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.expired-message {
  margin: 2rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.expired-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.create-own-section {
  margin-top: 3rem;
}

.create-own-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.share-section {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  text-align: center;
}

.share-section.hidden {
  display: none;
}

.share-header h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.share-expires {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.share-link-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.share-url-input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
}

#copy-share-btn {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.feature-icon {
  font-size: 1.5rem;
}

@media (max-width: 700px) {
  .share-header h1 {
    font-size: 1.8rem;
  }

  .critique {
    font-size: 1rem;
  }

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

  .share-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .share-header h3 {
    font-size: 1.25rem;
  }

  .share-link-container {
    flex-direction: column;
  }

  .share-url-input {
    font-size: 0.85rem;
  }

  #copy-share-btn {
    width: 100%;
  }

  .share-cta {
    padding: 2rem 1.5rem;
  }

  .share-cta h2 {
    font-size: 1.5rem;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CART PAGE - FULL PAGE LAYOUT
   ======================================== */

.cart-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cart-page h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Cart Items Section */
.cart-items-section {
  margin-bottom: 2rem;
}

.cart-items-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.cart-items-list {
  display: grid;
  gap: 1rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  background: #f4f4f4;
}

.cart-item-details {
  display: grid;
  gap: 0.25rem;
}

.cart-item-title {
  font-weight: 600;
  font-size: 1rem;
}

.cart-item-variant {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-item-price {
  font-weight: 600;
  color: var(--primary);
}

.cart-item-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.cart-qty-controls {
  display: inline-grid;
  grid-template-columns: 32px auto 32px;
  align-items: center;
  gap: 0.5rem;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 0.25rem;
}

.cart-qty-controls button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.2s;
}

.cart-qty-controls button:hover {
  background: var(--primary);
  color: #fff;
}

.cart-qty-controls span {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cart-remove-btn:hover {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.3);
}

/* Shipping Section */
.shipping-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.shipping-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.cart-shipping-form {
  display: grid;
  gap: 1.5rem;
}

.shipping-form {
  display: grid;
  gap: 1rem;
}
.shipping-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.shipping-fields input, .shipping-fields select {
  width: 100%;
 padding:10px;
 border-radius: 5px;
 border:1px solid #ccc; 
}

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

.form-group {
  display: grid;
  gap: 0.35rem;
}

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

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-color);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.calculate-shipping-btn {
  padding: 0.875rem 1.5rem;
  background: var(--secondary, #6c757d);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.calculate-shipping-btn:hover:not(:disabled) {
  background: var(--secondary-dark, #5a6268);
  transform: translateY(-1px);
}

.calculate-shipping-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Shipping Options */
.shipping-options {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color, #e0e0e0);
}

.shipping-options h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.shipping-options-list {
  display: grid;
  gap: 0.75rem;
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  align-items: center;
  font-size:16px;
}

.shipping-option.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.shipping-option input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.shipping-option-details {
  display: grid;
  gap: 0.15rem;
}

.shipping-option-name {
  font-weight: 600;
}

.shipping-option-delivery {
  font-size: 0.85rem;
  color: var(--text-light);
}

.shipping-option-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.shipping-error {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Order Summary */
.order-summary {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.order-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.summary-row.total {
  border-top: 2px solid var(--border-color, #e0e0e0);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 1.5rem;
}

.checkout-btn:hover:not(:disabled) {
  background: var(--primary-dark, #5558e3);
  transform: translateY(-1px);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-note {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.75rem;
}

/* Cart Page Mobile */
@media (max-width: 600px) {
  .cart-page {
    padding: 1rem;
  }
  
  .cart-page h1 {
    font-size: 1.5rem;
  }
  
  .cart-item-card {
    grid-template-columns: 80px 1fr auto;
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  
  .cart-remove-btn {
    align-self: start;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .shipping-option {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  
  .shipping-option-price {
    grid-column: 2;
  }
}

/* Checkout Success Toast */
.checkout-success-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: linear-gradient(135deg, #1f7a1f, #2d8a2d);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(31, 122, 31, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-weight: 500;
  max-width: 90vw;
  text-align: center;
}
.checkout-success-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Product carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev {
  left: 8px;
}
.carousel-next {
  right: 8px;
}
.carousel-counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}
.carousel-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(0, 0, 0, 0.5);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Gallery */
.gallery-hero {
  display: grid;
  gap: 0.75rem;
  place-items: center;
  padding: 2.5rem 1.5rem 1rem;
}

.gallery-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #ffe7df;
  color: #c24a5a;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  width: fit-content;
}

.gallery-hero-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-filter {
  display: grid;
  gap: 0.5rem;
  max-width: 560px;
  width: 100%;
}

.gallery-filter-label {
  font-weight: 600;
  color: #2a476f;
}

.gallery-filter-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 0.4fr));
  gap: 0.5rem;
  justify-content: start;
  width: 100%;
}

.gallery-filter-pill {
  display: inline-grid;
  place-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #2a476f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gallery-filter-pill:hover {
  background: #f3f6fb;
  border-color: #c8d3e7;
}

.gallery-filter-pill.is-active {
  background: #ffe7df;
  border-color: #f2c4b6;
  color: #c24a5a;
  box-shadow: 0 6px 16px rgba(194, 74, 90, 0.18);
}

.gallery-count {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: #f3f6fb;
  border-radius: 999px;
  font-weight: 600;
  color: #2a476f;
}

.gallery-section {
  padding: 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-card {
  display: grid;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-card-link {
  display: grid;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.gallery-card-link:hover {
  text-decoration: none;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f6f7fb;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-vertical {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  color: #2a476f;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(230, 76, 102, 0.9);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 0 6px 16px rgba(230, 76, 102, 0.3);
}

.gallery-info {
  padding: 0 0.9rem 0.4rem;
  display: grid;
  gap: 0.25rem;
}

.gallery-title {
  font-weight: 700;
  color: #1f2f46;
}

.gallery-sub {
  color: #5b6c84;
  font-size: 0.95rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-gallery-item .gallery-sub {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.gallery-vibes {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b97ac;
  margin-top: 0.35rem;
}

.gallery-vibes img {
  width: 16px;
  height: 16px;
}

.comments {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.comments-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: #8b97ac;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  border-top:1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}

.comments-title img {
  width: 14px;
  height: 14px;
  color: #2a476f;
  font-size: 0.95rem;
  font-family: "Nunito", sans-serif;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.comment {
  position: relative;
  background: #f6f8ff;
  border: 1px solid #d9e4f5;
  border-radius: 16px;
  padding: 0.55rem 0.7rem;
  color: #2b3d5b;
  max-width: 92%;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  animation: chat-pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1.25) forwards;
}

.comment p {
  margin: 0;
}

.comment::after {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #f6f8ff;
  border-left: 1px solid #d9e4f5;
  border-bottom: 1px solid #d9e4f5;
  transform: rotate(-45deg);
}

.comment:nth-child(even) {
  justify-self: end;
  background: #fff4f5;
  border-color: #f1c3c8;
}

.comment:nth-child(even)::after {
  left: auto;
  right: 1rem;
  background: #fff4f5;
  border-left: 0;
  border-bottom: 1px solid #f1c3c8;
  border-right: 1px solid #f1c3c8;
  transform: rotate(45deg);
}

.comment:nth-child(1) { animation-delay: 0.1s; }
.comment:nth-child(2) { animation-delay: 0.6s; }
.comment:nth-child(3) { animation-delay: 1.1s; }

@keyframes chat-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .comment {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.community-vibes-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8b97ac;
}

.community-vibes-list {
  display: grid;
  gap: 0.35rem;
}

.community-vibe {
  background: #f7f8fc;
  border: 1px solid #e6ecf6;
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  color: #384a66;
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Gallery item page */
.gallery-item-hero {
  display: grid;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem 1.25rem;
  text-align: center;
}

.gallery-item-card {
  padding: 1.25rem;
}

.gallery-item-nav {
  padding: 1.5rem 1.5rem 0;
}

.gallery-back {
  font-weight: 600;
  color: #2a476f;
}

.gallery-item-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-item-media .gallery-thumb {
  border-radius: 16px;
  border: 1px solid #e5e9f2;
}

.gallery-item-body {
  display: grid;
  gap: 0.75rem;
}

.gallery-item-body .gallery-title {
  font-size: inherit;
  margin: 0;
}

.gallery-item-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .gallery-item-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.gallery-card-cta {
  padding: 0 0.9rem 0.9rem;
}

.gallery-cta {
  justify-self: start;
  margin-top: 0.25rem;
}

.empty-gallery {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 720px) {
  .gallery-filter {
    gap: 0.75rem;
  }
}
