/* ===== Hero Section ===== */
.hero-section {
  --hero-radius: 0px;
  padding: 30px 0 12px;
}

/* Inside the editor viewport, hero section padding is handled by hero-frame */
.ds-editor-canvas .hero-section {
  padding: 0;
}

.hero-section.border-sharp {
  --hero-radius: 0px;
}

.hero-section.border-small {
  --hero-radius: 18px;
}

.hero-section.border-big {
  --hero-radius: 32px;
}

.hero-section.border-capsule {
  --hero-radius: 40px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--hero-radius);
  background: var(--paper);
  transition: height 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tray {
  display: flex;
  align-items: flex-start;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}

.hero-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 100px;
  gap: 50px;
  height: 100%;
  min-height: 520px;
  box-sizing: border-box;
}

.hero-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-art-shell {
  line-height: 0;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--hero-radius) !important;
  clip-path: inset(0 round var(--hero-radius));
}

.hero-art {
  width: 100%;
  max-width: 480px;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--hero-radius) !important;
}

.hero-art img {
  border-radius: var(--hero-radius) !important;
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 22px 0 32px;
  max-width: 380px;
  color: #54545b;
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
}

.hero-actions .button {
  padding: 14px 28px;
  font-size: 1.15rem;
  min-height: 52px;
  border-radius: 999px;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 150ms ease, background 150ms ease;
}

.hero-nav-btn:hover {
  background: #f0f0f0;
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-btn.prev {
  left: 24px;
}

.hero-nav-btn.next {
  right: 24px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.hero-dot.active {
  width: 34px;
  background: var(--ink);
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 12px 0 24px;
}

.feature-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: var(--psb-width, 2px) solid var(--feature-border, var(--psb-color, #e2e2e7));
  border-radius: var(--psb-radius, 24px);
  background: var(--paper);
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  overflow: hidden;
  font-size: 20px;
}

.feature-card strong {
  display: block;
  font-size: 0.95rem;
}

.feature-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  background: #f7f7f8;
}

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

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 24px;
  border-top: 3px solid var(--ink);
}

.product-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
}

.product-desc {
  min-height: 40px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 16px;
}

.price {
  font-size: 1.35rem;
  font-weight: 950;
}

/* ===== Redesigned Brand-focused Footer (Layout Rework) ===== */
.site-footer {
  margin-top: 50px;
  border-top: 2px solid #ededf0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  padding: 54px 0 24px;
}

.footer-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-bottom: 40px;
}

.footer-brand-callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 500px;
  text-align: left;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
}

.footer-brand-text {
  font-size: 14px;
  opacity: 0.7;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.footer-newsletter {
  display: flex;
  flex-shrink: 0;
}

.footer-newsletter .footer-form {
  display: flex;
  gap: 10px;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
  height: 42px;
}

.footer-newsletter .footer-form .field {
  width: 300px;
  border: 1.5px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  background: #fff;
  color: var(--ink);
  height: 100%;
  box-sizing: border-box;
}

.footer-newsletter .footer-form .field::placeholder {
  color: #a0a0a9;
  font-weight: 600;
}

.footer-newsletter .footer-form .button {
  width: 120px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink) !important;
  border-radius: 0 !important;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
  height: 100%;
  box-sizing: border-box;
  transform: none !important;
  box-shadow: none !important;
}

.footer-newsletter .footer-form .button:hover {
  background: #252525;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.footer-newsletter .footer-form .button:active {
  transform: scale(0.98);
}

.footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #ededf0;
  margin: 0;
}

.footer-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  padding: 48px 0;
}

.feature-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.site-footer .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink);
  background: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.feature-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-top: 24px;
}

.footer-copyright {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.footer-nav,
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-nav a,
.footer-social a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-nav a:hover,
.footer-social a:hover {
  color: #666;
}

.footer-bullet {
  color: #d1d1d6;
  font-size: 0.75rem;
  user-select: none;
}

/* Responsive Footer overrides */
@media (max-width: 992px) {
  .footer-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-newsletter {
    width: 100%;
  }
  .footer-newsletter .footer-form {
    width: 100%;
    max-width: 420px;
  }
  .footer-newsletter .footer-form .field {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0 40px;
    padding-top: 24px;
  }
  .footer-copyright {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 10px;
  }
  .footer-nav {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .footer-social {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-top: 0;
    width: auto;
  }
  .footer-social a {
    display: block;
    width: auto;
    text-align: right;
  }
  .footer-social .footer-bullet {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer-features {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-bottom {
    gap: 0 24px;
  }
  .footer-copyright {
    margin-bottom: 6px;
  }
  .footer-social {
    gap: 8px;
  }
}

/* ===== Studio Page ===== */
.studio-hero {
  padding: 34px 0 20px;
}

.studio-title-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
}

.studio-title-row h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
}

.stat-card {
  min-height: 116px;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 950;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.studio-card {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 32px;
  background: var(--paper);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.studio-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.studio-card .product-media {
  border-bottom: 3px solid var(--ink);
}

.studio-card-body {
  padding: 18px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.image-preview-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.image-chip {
  position: relative;
  width: 74px;
  height: 74px;
  border: 2px solid #d8d8df;
  border-radius: 14px;
  background: #f7f7f8;
  overflow: hidden;
}

.image-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-chip button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 900;
}

.order-card {
  padding: 16px;
  border: 2px solid #d8d8df;
  border-radius: 16px;
  background: var(--paper);
  margin-bottom: 14px;
}

.order-card h3 {
  margin: 0;
  font-size: 1rem;
}

.order-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-detail {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* ================================================================================
   PAC.CO PORTFOLIO — BENTO GRID SYSTEM
   ================================================================================ */

/* ── Bento grid wrapper ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 0 24px;
}

/* ── Card base ── */
.bento-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* NO height. NO min-height. Ever. */
}

/* ── Ratio variants ── */
/* Width from col-span. Height derives from aspect-ratio. */
.bento-card[data-ratio="hero"] {
  grid-column: span 8;
  aspect-ratio: 4/3;
}

.bento-card[data-ratio="square"] {
  grid-column: span 4;
  aspect-ratio: 1/1;
}

.bento-card[data-ratio="wide"] {
  grid-column: span 8;
  aspect-ratio: 16/9;
}

.bento-card[data-ratio="tall"] {
  grid-column: span 4;
  aspect-ratio: 3/4;
}

.bento-card[data-ratio="ui"] {
  grid-column: span 4;
  aspect-ratio: 2/1;
}

/* ── Inner media fills the card ── */
.bento-card img,
.bento-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ── Premium Hero Header ── */
.portfolio-hero-header {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-main-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-subtext {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-card-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-btn.primary {
  background: var(--ink);
  color: var(--paper);
}

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

.pill-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ── Bento Card Overlay System ── */
.bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
  transition: background 0.4s ease;
}

.bento-card:hover .bento-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%);
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bento-tag {
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bento-corner-btn {
  width: 40px;
  height: 40px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bento-card:hover .bento-corner-btn {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
}

.bento-bottom {
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.bento-card:hover .bento-bottom {
  transform: translateY(0);
}

.bento-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.bento-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  max-width: 80%;
}

/* ── Dark Theme Overrides ── */
.bento-card.is-dark .bento-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.bento-card.is-dark .bento-corner-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.bento-card.is-dark .bento-title {
  color: white;
}

.bento-card.is-dark .bento-text {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Media Zoom Effect ── */
.bento-media {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.bento-card:hover .bento-media {
  transform: scale(1.05);
}

.hero-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 auto 24px;
}

/* ── Showcase Card (Product Grid inside Bento) ── */
.bento-card.is-showcase {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: white;
  grid-column: span 8;
}

.showcase-header {
  margin-bottom: 24px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
}

.showcase-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: #f8f8fa;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.showcase-item:hover {
  background: #fff;
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.showcase-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
}

.showcase-item strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  display: block;
}

.showcase-item p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.item-price {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  margin-top: auto;
  margin-bottom: 16px;
}

.showcase-btn {
  width: 100%;
  padding: 10px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-btn.sold-out {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}

.showcase-btn:not(.sold-out):hover {
  background: #333;
}

.item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.item-badge.yellow {
  background: #FFD600;
  color: #000;
}

.item-badge.red {
  background: #FF4D4D;
  color: #fff;
}

.item-badge.dark {
  background: #111;
  color: #fff;
}

.item-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.showcase-footer {
  margin-top: 24px;
  text-align: center;
}

.load-more-btn {
  padding: 12px 32px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: #333;
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .bento-card.is-showcase {
    grid-column: span 12;
  }

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

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

  .bento-card.is-showcase {
    padding: 16px;
  }
}
