:root {
  --bg-cream: #f5eee8;         /* Slightly warmer, less bright */
  --bg-blush: #edd6de;         /* A touch more saturated */
  --bg-haze: #ede9f8;
  --bg-sand: #f7efe6;
  --bg-white: #fbf7f1;
  --text-primary: #473634;
  --text-secondary: #735c57;
  --text-muted: rgba(71, 54, 52, 0.68);
  --accent-pink: #efb8c8;
  --accent-rose: #e7a8b4;
  --accent-sage: #c7d8c6;
  --accent-lilac: #dcd4f5;
  --accent-ink: #2d1f1f;
  --shadow-soft: 0 20px 40px rgba(117, 92, 87, 0.12);
  --shadow-elevated: 0 28px 60px rgba(49, 34, 32, 0.16);
  --max-width: min(1120px, 92vw);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --transition: all 0.35s ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-cream);
  background-image: 
    /* Subtle linen texture - CSS pattern (memory efficient) */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(115, 92, 87, 0.015) 2px,
      rgba(115, 92, 87, 0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(115, 92, 87, 0.015) 2px,
      rgba(115, 92, 87, 0.015) 4px
    ),
    /* Softer, warmer gradient with a bit more depth */
    radial-gradient(circle at 20% 30%, rgba(237, 168, 180, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(199, 216, 198, 0.12) 0%, transparent 45%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

.page-shell {
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-width);
  padding: clamp(18px, 5vw, 36px) 0 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 241, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(231, 168, 180, 0.25);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.site-header__inner {
  width: var(--max-width);
  margin: 0 auto;
  padding: 18px clamp(24px, 7vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand__logo {
  height: 40px;
  width: auto;
  display: block;
}

.mobile-toggle {
  display: none;
}

.primary-nav {
  flex-shrink: 0;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.6), rgba(220, 212, 245, 0.6));
  color: var(--accent-ink);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 32px);
  color: var(--text-secondary);
  justify-content: center;
  white-space: nowrap;
  z-index: 20;
  flex-shrink: 0;
}

.primary-nav a {
  pointer-events: auto;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  text-decoration: none;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(231, 168, 180, 0.9);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-actions > .search-bar {
  margin-right: 4px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 42px;
  border-radius: 999px;
  border: 1px solid rgba(231, 168, 180, 0.35);
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(243, 240, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(231, 168, 180, 0.25), var(--shadow-soft);
  position: relative;
  max-width: clamp(300px, 32vw, 420px);
  flex: 0 1 clamp(300px, 32vw, 420px);
}

.search-bar input {
  border: none !important;
  background: transparent !important;
  font: inherit;
  color: var(--text-secondary);
  min-width: clamp(140px, 18vw, 260px);
  flex: 1;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.search-bar input::placeholder {
  color: rgba(115, 92, 87, 0.65);
}

.search-bar input:focus-visible,
.search-bar input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.search-bar .btn {
  padding: 9px 18px;
  background: linear-gradient(135deg, rgba(231, 168, 180, 0.95), rgba(207, 186, 232, 0.95));
  color: var(--accent-ink);
  box-shadow: none;
  border: 1px solid rgba(231, 168, 180, 0.4);
  flex-shrink: 0;
  margin-left: -6px;
}

.search-bar .btn:hover,
.search-bar .btn:focus-visible {
  background: linear-gradient(135deg, rgba(239, 184, 200, 1), rgba(215, 200, 243, 1));
  transform: translateY(-1px);
}

.header-actions .btn--ghost {
  padding: 9px 18px;
}

.search-bar::before,
.search-bar::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.search-bar::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(115, 92, 87, 0.45);
}

.search-bar::after {
  width: 6px;
  height: 2px;
  background: rgba(115, 92, 87, 0.45);
  transform: translate(9px, 4px) rotate(45deg);
  border-radius: 999px;
}

/* Style the native search clear button (X) */
.search-bar input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23735C57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-left: 8px;
}

.search-bar input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-family: inherit;
  padding: 12px 22px;
  font-size: 0.95rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-pink) 100%);
  color: white;
  box-shadow: 
    0 4px 12px rgba(231, 168, 180, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 1.2s ease, height 1.2s ease;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(135deg, #d99aa8 0%, #e7a8b4 100%);
  box-shadow: 0 6px 16px rgba(231, 168, 180, 0.45);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary:disabled,
.btn--primary[disabled] {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.btn--primary:disabled:hover,
.btn--primary[disabled]:hover {
  background: var(--bg-secondary);
  transform: none;
  box-shadow: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text-secondary);
  border: 1px solid rgba(231, 168, 180, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.9);
}

.btn--success-flash {
  background: var(--accent-sage) !important;
  color: white !important;
  animation: successPulse 0.5s ease;
}

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

@keyframes checkPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.3) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

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

@keyframes slideInBounce {
  from {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(2px) scale(1.05);
    opacity: 1;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.user-icon-link {
  text-decoration: none !important;
}

.user-icon-link svg {
  display: block;
  color: var(--text-secondary);
  transition: var(--transition);
}

.user-icon-link:hover svg,
.user-icon-link:focus svg {
  color: var(--accent-rose);
}

/* ==================== Inventory Notice ==================== */

.inventory-notice {
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.08), rgba(220, 212, 245, 0.08));
  border-bottom: 1px solid rgba(231, 168, 180, 0.2);
  text-align: center;
  padding: 12px 20px;
}

.inventory-notice p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: 'Quicksand', sans-serif;
}

.inventory-notice em {
  font-style: italic;
  color: var(--text-primary);
}

/* ==================== Sections ==================== */

.section {
  margin: clamp(48px, 7vw, 96px) auto;
  padding: 0 clamp(24px, 7vw, 48px);
}

.section__eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: rgba(115, 92, 87, 0.3);
}

.section__title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  margin: 16px 0 12px;
  color: var(--text-primary);
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section__header > .btn {
  align-self: center;
}

.hero {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 7vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 7vw, 64px);
  align-items: center;
  box-shadow: var(--shadow-elevated);
}

.hero__title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  margin: 0 0 18px;
}

.hero__text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4; /* Vertical portrait format */
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop image to fill container without distortion */
  object-position: center; /* Center the image in the crop */
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 31, 31, 0.2), rgba(45, 31, 31, 0));
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(18px, 4vw, 32px);
  margin-top: clamp(28px, 4vw, 52px);
}

.product-grid.featured-carousel {
  display: block;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(115, 92, 87, 0.08),
    0 4px 16px rgba(231, 168, 180, 0.1),
    0 0 0 1px rgba(231, 168, 180, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 12px 40px rgba(231, 168, 180, 0.25),
    0 4px 16px rgba(115, 92, 87, 0.12),
    0 0 0 1px rgba(231, 168, 180, 0.15);
  border-radius: var(--radius-md);
}

.product-card__image {
  position: relative;
  padding-bottom: 120%;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.35), rgba(220, 212, 245, 0.35));
  overflow: hidden;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__body {
  padding: 18px clamp(16px, 3vw, 22px) 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  margin-top: auto;
}

.product-detail {
  background: rgba(255, 252, 248, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 52px);
  align-items: center;
  box-shadow: var(--shadow-elevated);
}

.product-detail__media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.35), rgba(220, 212, 245, 0.35));
}

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

.product-detail__content {
  display: grid;
  gap: 12px;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  color: var(--text-secondary);
}

.product-detail__price {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.85) 0%, rgba(231, 168, 180, 0.85) 100%);
  backdrop-filter: blur(8px);
  color: white;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 2px 8px rgba(231, 168, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge--featured {
  background: linear-gradient(135deg, rgba(199, 216, 198, 0.9) 0%, rgba(179, 206, 178, 0.9) 100%);
  color: var(--accent-ink);
  box-shadow: 
    0 4px 12px rgba(199, 216, 198, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
  background: var(--bg-white);
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.lookbook {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(14px, 4vw, 28px);
  margin-top: clamp(28px, 5vw, 48px);
  align-items: start;
}

.lookbook__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.lookbook__item img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  top: -1px;
  margin-bottom: -7px;
}

.lookbook__item::after {
  content: attr(data-caption);
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 4vw, 32px);
  margin-top: clamp(24px, 4vw, 40px);
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.newsletter {
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.32), rgba(199, 216, 198, 0.32));
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

.newsletter__form {
  display: grid;
  gap: 12px;
}

.newsletter__form input {
  border-radius: 999px;
  border: 1px solid rgba(231, 168, 180, 0.45);
  background: rgba(255, 252, 248, 0.9);
  padding: 14px 20px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.newsletter__form input:focus-visible {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(231, 168, 180, 0.25);
}

.site-footer {
  margin: clamp(48px, 8vw, 96px) auto 24px;
  padding: 0 clamp(24px, 7vw, 48px);
  text-align: center;
  color: rgba(71, 54, 52, 0.65);
  font-size: 0.9rem;
}

.site-footer nav {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: rgba(255, 252, 248, 0.98);
  box-shadow: -20px 0 40px rgba(49, 34, 32, 0.18);
  transform: translateX(110%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.cart-panel[data-open="true"] {
  transform: translateX(0);
}

.cart-panel__header,
.cart-panel__footer {
  padding: 24px clamp(18px, 4vw, 28px);
  border-bottom: 1px solid rgba(231, 168, 180, 0.25);
}

.cart-panel__footer {
  border-bottom: none;
  border-top: 1px solid rgba(231, 168, 180, 0.25);
}

.cart-panel__items {
  flex: 1;
  overflow-y: auto;
  padding: 24px clamp(18px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-content: flex-start;
}

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.cart-line:hover {
  background-color: rgba(239, 184, 200, 0.05);
}

.cart-line img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-line__details {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(231, 168, 180, 0.35);
  border-radius: 999px;
  padding: 6px 12px;
}

.cart-line__qty button {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--sage);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cart-line__qty button:hover {
  color: var(--text-primary);
}

.cart-line > button[data-remove-line] {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 50%;
}

.cart-line > button[data-remove-line]:hover {
  color: var(--blush);
  background: rgba(231, 168, 180, 0.1);
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cart-empty::before {
  content: '';
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(231, 168, 180, 0.1), rgba(255, 182, 193, 0.1));
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a8b4' stroke-width='1.5'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  background-size: 50px;
  background-repeat: no-repeat;
  background-position: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  z-index: 30;
}

@media (max-width: 960px) {
  .hero,
  .newsletter,
  .story {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .product-detail__media {
    min-height: 320px;
  }

  .site-header__inner {
    padding: 16px clamp(18px, 6vw, 28px);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .header-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 16px;
  }

  .search-bar {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .search-bar input {
    min-width: 0;
    flex: 1;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    right: clamp(18px, 6vw, 28px);
    background: rgba(255, 252, 248, 0.96);
    box-shadow: var(--shadow-soft);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    display: grid;
    gap: 16px;
    transform-origin: top right;
    transform: scale(0.9) translateX(100%); /* Move completely off-screen when closed */
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 25;
    visibility: hidden; /* Additional layer to ensure it's truly hidden */
  }

  .primary-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateX(0); /* Bring back to normal position when open */
    visibility: visible;
  }
  
  /* Ensure bag button is always clickable when nav is closed */
  .primary-nav:not([data-open="true"]) {
    pointer-events: none !important;
    visibility: hidden !important;
    transform: scale(0.9) translateX(100%) !important; /* Force off-screen */
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    position: relative; /* Ensure proper stacking context */
  }

  .brand {
    flex: 1 1 auto;
  }

  .mobile-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    z-index: 5;
    position: relative;
  }

  .primary-nav {
    order: 4;
  }

  .header-actions {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    position: relative; /* Ensure proper stacking */
    z-index: 2;
  }

  .header-actions .search-bar {
    flex: 1 1 100%;
    max-width: none;
    padding: 6px 14px 6px 40px;
    gap: 6px;
  }

  .header-actions .search-bar input {
    min-width: 0;
    font-size: 0.95rem;
  }

  .header-actions .search-bar .btn {
    padding: 8px 14px;
    margin-left: -4px;
  }

  .header-actions .btn--ghost {
    flex: 0 0 auto;
    padding: 8px 16px;
    position: relative;
    z-index: 5;
    min-height: 44px; /* Ensure minimum touch target size */
    min-width: 44px;
    touch-action: manipulation; /* Improve touch responsiveness */
  }
  
  /* Specific styles for cart button on mobile */
  .header-actions button[data-cart-open] {
    position: relative;
    z-index: 15; /* Higher than mobile toggle (5) and nav menu (25 when closed) */
    pointer-events: auto;
    touch-action: manipulation;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(231, 168, 180, 0.3);
  }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
  .header-actions {
    gap: 8px;
  }
  
  .header-actions .btn--ghost {
    padding: 10px 12px;
    min-height: 48px; /* Larger touch target for small screens */
    font-size: 0.9rem;
  }
  
  .header-actions button[data-cart-open] {
    background: rgba(231, 168, 180, 0.1);
    border: 2px solid rgba(231, 168, 180, 0.4);
    z-index: 30; /* Higher than nav menu (25) to ensure it's always clickable */
  }
  
  /* Ensure no overlapping elements */
  .header-actions > * {
    pointer-events: auto;
  }
}

/*************************
 * Admin dashboard styles
 *************************/

.page--admin body,
body.page--admin {
  background: linear-gradient(135deg, var(--bg-cream), var(--bg-haze));
}

.admin-shell {
  width: min(1240px, 95vw);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 52px) 0 clamp(72px, 8vw, 96px);
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.admin-title {
  margin: 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.admin-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.admin-tab {
  border: 1px solid rgba(231, 168, 180, 0.4);
  border-radius: 999px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab[aria-selected="true"] {
  background: var(--accent-rose);
  color: var(--accent-ink);
  box-shadow: var(--shadow-soft);
}

.admin-card {
  background: rgba(255, 252, 248, 0.92);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.admin-card:last-of-type {
  margin-bottom: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table thead {
  background: rgba(231, 168, 180, 0.25);
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(231, 168, 180, 0.25);
}

.table tbody tr:hover {
  background: rgba(239, 184, 200, 0.18);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status-pill[data-state="new"] {
  background: rgba(231, 168, 180, 0.25);
  color: var(--text-secondary);
}

.status-pill[data-state="processing"] {
  background: rgba(199, 216, 198, 0.25);
  color: #3f5940;
}

.status-pill[data-state="shipped"] {
  background: rgba(220, 212, 245, 0.35);
  color: #483c83;
}

.status-pill[data-state="fulfilled"] {
  background: rgba(203, 233, 206, 0.4);
  color: #305c36;
}

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

.form-grid label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(231, 168, 180, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 252, 248, 0.9);
  padding: 12px 14px;
  font: inherit;
  transition: var(--transition);
  resize: vertical;
}

.form-grid select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.96), rgba(243, 240, 255, 0.92)),
              url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l4.5 4L10 1.5' stroke='%23735C57' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 7px;
}

.form-grid select::-ms-expand {
  display: none;
}

.form-grid textarea {
  min-height: 120px;
}

.form-grid input:focus-visible,
.form-grid textarea:focus-visible,
.form-grid select:focus-visible {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(231, 168, 180, 0.24);
}

.form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 168, 180, 0.35);
  background: rgba(255, 252, 248, 0.92);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.form-toggle:hover,
.form-toggle:focus-within {
  border-color: var(--accent-rose);
  box-shadow: 0 8px 20px rgba(117, 92, 87, 0.12);
}

.form-toggle input {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 28px;
  background: rgba(231, 168, 180, 0.2);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(231, 168, 180, 0.3);
  margin: 0;
  flex-shrink: 0;
}

.form-toggle input::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-white);
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-toggle input:checked {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}

.form-toggle input:checked::before {
  transform: translateX(24px);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: linear-gradient(135deg, rgba(248, 230, 235, 0.25) 0%, rgba(247, 239, 230, 0.25) 100%);
  border: 2px dashed rgba(231, 168, 180, 0.25);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  font-style: italic;
}

/* Section divider */
.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  margin: 64px auto;
  border-radius: 2px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.metrics-strip .metric {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}

.metric.metric--filter {
  padding: 18px 22px;
}

.metric--filter .metric__label {
  margin-bottom: 8px;
}

.metric-month-select {
  padding: 10px 32px 10px 14px;
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23735C57' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.metric-month-select:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.15);
}

.metric-month-select:hover {
  border-color: var(--accent-rose);
}

.metric__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Admin product row styles */
.product-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-row:hover {
  background-color: rgba(231, 168, 180, 0.05);
}

.category-header {
  cursor: pointer !important;
  user-select: none;
  transition: background-color 0.2s ease;
}

.category-header:hover {
  background-color: rgba(190, 214, 198, 0.6) !important;
}

.category-arrow {
  display: inline-block;
  margin-right: 8px;
  font-size: 0.75em;
  transition: transform 0.2s ease;
  color: var(--text-secondary);
}

.category-toggle {
  display: flex;
  align-items: center;
}

.product-edit-row {
  background: var(--cream-light);
}

.btn--danger {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn--danger:hover {
  background-color: #c82333;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
  transform: translateY(-1px);
}

/* Styled select dropdowns */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bg-white);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e7a8b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
  cursor: pointer;
  font-weight: 500;
}

select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.metric__value {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.75rem;
}

@media (max-width: 720px) {
  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }

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

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

/* ========================================
   Admin Panel Enhanced Styling
   ======================================== */

/* Inline edit form inputs */
.product-edit-row input[type="text"],
.product-edit-row input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-edit-row input[type="text"]:focus,
.product-edit-row input[type="number"]:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.15);
}

/* Featured toggle checkbox styling */
.product-edit-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 26px;
  background: rgba(231, 168, 180, 0.2);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(231, 168, 180, 0.3);
}

.product-edit-row input[type="checkbox"]:checked {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}

.product-edit-row input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-white);
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.product-edit-row input[type="checkbox"]:checked::before {
  transform: translateX(22px);
}

/* File upload button styling */
input[type="file"] {
  display: none;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
  color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(231, 168, 180, 0.3);
  width: 100%;
  justify-content: center;
}

.file-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 168, 180, 0.4);
}

.file-upload-label::before {
  content: '📁';
  font-size: 1.2rem;
}

/* Number input spinner buttons */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  position: relative;
  padding-right: 40px;
}

/* Custom number input controls */
.number-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.number-controls {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.number-btn {
  width: 28px;
  height: 18px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.number-btn:hover {
  opacity: 0.8;
}

.number-btn.up {
  border-radius: 0 8px 0 0;
}

.number-btn.down {
  border-radius: 0 0 8px 0;
}

.number-btn::before {
  content: '▲';
}

.number-btn.down::before {
  content: '▼';
}

/* Form field inputs get proper styling */
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="url"]:focus,
.form-field input[type="tel"]:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.15);
}

/* Featured product checkbox in main form */
.form-field input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 28px;
  background: rgba(231, 168, 180, 0.2);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(231, 168, 180, 0.3);
  margin: 0;
}

.form-field input[type="checkbox"]:checked {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}

.form-field input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-white);
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-field input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}

/* Search input styling */
#product-search {
  padding: 12px 16px;
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

#product-search:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.15);
}

#product-search::placeholder {
  color: var(--text-muted);
}

/* Image preview styling */
#image-preview {
  margin-top: 12px;
  padding: 16px;
  background: rgba(239, 184, 200, 0.1);
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(231, 168, 180, 0.4);
}

#preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

#remove-image-btn {
  padding: 8px 16px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#remove-image-btn:hover {
  background: rgba(231, 168, 180, 0.1);
  border-color: var(--accent-rose);
  color: var(--text-primary);
}

/* Enhanced button styling for admin */
.btn--primary,
#create-new-listing-btn {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
  box-shadow: 0 4px 12px rgba(231, 168, 180, 0.3);
}

.btn--primary:hover,
#create-new-listing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(231, 168, 180, 0.4);
}

/* Admin panel labels */
.form-field label,
.product-edit-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ========================================
   Modal Styling
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 31, 31, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 
    0 8px 32px rgba(115, 92, 87, 0.15),
    0 16px 48px rgba(231, 168, 180, 0.2),
    0 0 0 1px rgba(231, 168, 180, 0.08);
  animation: slideUp 0.3s ease;
  z-index: 1001;
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 2px solid rgba(231, 168, 180, 0.2);
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.08), rgba(220, 212, 245, 0.08));
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--accent-rose);
  transform: rotate(90deg);
}

.modal-form {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
}

/* Custom scrollbar for modal */
.modal-form::-webkit-scrollbar {
  width: 8px;
}

.modal-form::-webkit-scrollbar-track {
  background: rgba(231, 168, 180, 0.1);
  border-radius: 4px;
}

.modal-form::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
  border-radius: 4px;
  transition: background 0.3s ease;
}

.modal-form::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--accent-rose), #c77a8e);
}

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

.form-help-text {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.image-preview-container {
  margin-top: 12px;
  display: none;
  padding: 16px;
  background: rgba(239, 184, 200, 0.08);
  border-radius: var(--radius-sm);
  border: 2px dashed rgba(231, 168, 180, 0.3);
}

.image-preview-container.show {
  display: block;
}

.image-preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  display: block;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 2px solid rgba(231, 168, 180, 0.15);
  margin-top: 8px;
}

@media (max-width: 720px) {
  .modal-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ==================== Checkout Page Styles ==================== */

.page--checkout .section {
  padding: 60px 20px;
}

.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  
  /* Make order summary non-sticky on mobile to allow proper scrolling */
  .checkout-summary {
    position: static !important;
    top: auto !important;
    order: -1; /* Move summary to top on mobile */
  }
}

/* Additional tablet breakpoint to ensure sticky is removed */
@media (max-width: 768px) {
  .checkout-summary {
    position: static !important;
    top: auto !important;
  }
}

.checkout-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(231, 168, 180, 0.3);
}

.checkout-subsection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 32px 0 16px 0;
  grid-column: 1 / -1;
}

/* Order Summary */
.checkout-summary {
  background: var(--bg-white);
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  position: sticky;
  top: 20px;
}

.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.checkout-items::-webkit-scrollbar {
  width: 6px;
}

.checkout-items::-webkit-scrollbar-track {
  background: rgba(231, 168, 180, 0.1);
  border-radius: 3px;
}

.checkout-items::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
  border-radius: 3px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(231, 168, 180, 0.2);
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item__image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 168, 180, 0.2);
}

.checkout-item__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-item__name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-item__price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkout-item__total {
  font-size: 1rem;
  color: var(--text-primary);
  text-align: right;
}

.checkout-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid rgba(231, 168, 180, 0.3);
}

.checkout-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checkout-total-line--final {
  font-size: 1.3rem;
  color: var(--text-primary);
  font-weight: 700;
  padding-top: 8px;
}

/* Checkout Form */
.checkout-form-wrapper {
  background: var(--bg-white);
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
}

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

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

.form-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .checkout-form {
    grid-template-columns: 1fr;
  }
  
  .form-field-group {
    grid-template-columns: 1fr;
  }
  
  /* Adjust checkout page padding for mobile */
  .page--checkout .section {
    padding: 40px 16px;
  }
  
  .checkout-title {
    font-size: 2rem;
    margin-bottom: 24px;
  }
  
  /* Ensure checkout summary has proper spacing on mobile and is not sticky */
  .checkout-summary {
    position: static !important;
    top: auto !important;
    margin-bottom: 32px;
    padding: 24px;
  }
  
  /* Ensure PayPal container maintains proper z-index on mobile */
  #paypal-button-container {
    z-index: 1 !important;
  }
  
  #paypal-button-container > div,
  #paypal-button-container iframe {
    z-index: 1 !important;
  }
}

.checkout-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.checkout-actions .btn {
  flex: 1;
}

.checkout-notice {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.15), rgba(220, 212, 245, 0.15));
  border-left: 4px solid var(--accent-rose);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
}

.checkout-notice strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* PayPal Button Container */
#paypal-button-container {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  z-index: 1; /* Ensure PayPal buttons stay below site header (z-index: 10) */
}

#paypal-button-container > div,
#paypal-button-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  z-index: 1;
}

/* ==================== Order Confirmation Page Styles ==================== */

.page--confirmation .section {
  padding: 60px 20px;
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.08), rgba(220, 212, 245, 0.08));
}

.confirmation-page {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 24px;
}

.confirmation-container {
  max-width: 800px;
  margin: 0 auto;
}

.confirmation-success {
  text-align: center;
  margin-bottom: 32px;
}

.confirmation-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(231, 168, 180, 0.3);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.confirmation-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.confirmation-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.confirmation-card {
  background: var(--bg-white);
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.confirmation-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(231, 168, 180, 0.2);
}

.confirmation-section:first-child {
  padding-top: 0;
}

.confirmation-section:last-of-type {
  border-bottom: none;
}

.confirmation-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.confirmation-order-id {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-rose);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.confirmation-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.confirmation-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}

.confirmation-step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.confirmation-step-content {
  padding-top: 4px;
}

.confirmation-step-content strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.confirmation-step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirmation-customer,
.confirmation-items,
.confirmation-total {
  padding: 12px 16px;
  background: rgba(239, 184, 200, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.8;
}

.confirmation-items-list {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.confirmation-items-list li {
  margin-bottom: 4px;
}

.confirmation-total {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(239, 184, 200, 0.15), rgba(220, 212, 245, 0.15));
  border: 2px solid rgba(231, 168, 180, 0.3);
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.confirmation-actions .btn {
  flex: 1;
}

.confirmation-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(231, 168, 180, 0.2);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.confirmation-footer a {
  color: var(--accent-rose);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 600px) {
  .confirmation-card {
    padding: 24px;
  }
  
  .confirmation-title {
    font-size: 2rem;
  }
  
  .confirmation-actions {
    flex-direction: column;
  }
}

/* ========================================
   PRODUCT IMAGE GALLERY
   ======================================== */

/* Admin Panel Image Gallery */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.image-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  background-color: var(--bg-secondary);
}

.image-gallery-item:hover {
  border-color: var(--accent-rose);
}

.image-gallery-item.primary {
  border-color: var(--accent-pink);
  box-shadow: 0 4px 12px rgba(239, 184, 200, 0.4);
}

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

.image-gallery-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-gallery-item:hover .image-gallery-actions {
  opacity: 1;
}

.image-gallery-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-gallery-btn:hover {
  background: var(--accent-pink);
  transform: scale(1.1);
}

.image-gallery-btn svg {
  stroke: var(--text-primary);
}

.primary-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--accent-pink);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product Detail Page Thumbnails */
.product-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-pink) transparent;
}

.product-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
  background: rgba(231, 168, 180, 0.1);
  border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent-pink);
  border-radius: 3px;
}

.product-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  padding: 0;
}

.product-thumbnail:hover {
  border-color: var(--accent-rose);
  transform: translateY(-2px);
}

.product-thumbnail.active {
  border-color: var(--accent-pink);
  box-shadow: 0 4px 12px rgba(239, 184, 200, 0.4);
}

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

@media (max-width: 768px) {
  .image-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .product-thumbnail {
    width: 60px;
    height: 60px;
  }
}

/* ========================================
   PRODUCT CARD NAVIGATION ARROWS
   ======================================== */

.product-card__image {
  position: relative;
}

.product-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.product-card__image:hover .product-card__nav {
  opacity: 1;
}

.product-card__nav:hover {
  background: var(--accent-pink);
  transform: translateY(-50%) scale(1.1);
}

.product-card__nav--prev {
  left: 8px;
}

.product-card__nav--next {
  right: 8px;
}

.product-card__nav svg {
  stroke: var(--text-primary);
  pointer-events: none;
}

.product-card__nav svg * {
  pointer-events: none;
}

.product-card__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card__dot.active {
  background: var(--accent-pink);
  width: 20px;
  border-radius: 3px;
}

/* ========================================
   PRODUCT DETAIL PAGE NAVIGATION
   ======================================== */

.product-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-detail-nav:hover {
  background: var(--accent-pink);
  transform: translateY(-50%) scale(1.1);
}

.product-detail-nav--prev {
  left: 16px;
}

.product-detail-nav--next {
  right: 16px;
}

.product-detail-nav svg {
  stroke: var(--text-primary);
}

/* ========================================
   FEATURED PRODUCTS CAROUSEL
   ======================================== */

.featured-carousel {
  position: relative;
  margin-top: clamp(28px, 4vw, 52px);
}

.featured-carousel__wrapper {
  overflow: hidden;
  width: 100%;
  padding-top: 10px;
  margin-top: -10px;
}

.featured-carousel__track {
  display: flex;
  gap: clamp(18px, 4vw, 32px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-carousel__item {
  flex: 0 0 calc((100% - (clamp(18px, 4vw, 32px) * 2)) / 3);
  min-width: 0;
}

.featured-carousel__item .product-card {
  height: 100%;
  overflow: hidden;
}

.featured-carousel__item .product-card__image {
  overflow: hidden;
}

.featured-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid var(--accent-pink);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: 0 6px 20px rgba(231, 168, 180, 0.4);
}

.featured-carousel__nav:hover:not(:disabled) {
  background: var(--accent-pink);
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(231, 168, 180, 0.6);
}

.featured-carousel__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured-carousel__nav--prev {
  left: -70px;
}

.featured-carousel__nav--next {
  right: -70px;
}

.featured-carousel__nav svg {
  stroke: var(--text-primary);
}

@media (max-width: 1024px) {
  .featured-carousel__item {
    flex: 0 0 calc((100% - clamp(18px, 4vw, 32px)) / 2);
  }
  
  .featured-carousel__nav {
    width: 48px;
    height: 48px;
  }
  
  .featured-carousel__nav svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .featured-carousel__item {
    flex: 0 0 100%;
  }
  
  .featured-carousel__nav {
    width: 40px;
    height: 40px;
  }
  
  .featured-carousel__nav--prev {
    left: -50px;
  }

  .featured-carousel__nav--next {
    right: -50px;
  }
  
  .featured-carousel__nav svg {
    width: 20px;
    height: 20px;
  }
  
  .product-card__nav {
    width: 32px;
    height: 32px;
  }
  
  .product-card__nav svg {
    width: 16px;
    height: 16px;
  }
  
  .product-detail-nav {
    width: 40px;
    height: 40px;
  }
  
  .product-detail-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .featured-carousel__item {
    flex: 0 0 100%;
  }
  
  .featured-carousel {
    padding: 0 40px;
  }
}

/* ============================================
   IMAGE GALLERY (Admin)
   ============================================ */

.image-gallery,
.edit-images-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  gap: 12px;
  padding: 12px;
  background: rgba(231, 168, 180, 0.05);
  border: 1px solid rgba(231, 168, 180, 0.2);
  border-radius: 8px;
  max-height: 450px;
  overflow-y: auto;
  justify-content: start;
}

.image-gallery-item {
  position: relative;
  width: 180px;
  height: 180px;
  background-color: var(--bg-sand);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.image-gallery-item:hover {
  border-color: var(--accent-rose);
  box-shadow: 0 4px 12px rgba(231, 168, 180, 0.3);
}

.image-gallery-item img {
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.image-gallery-actions {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.image-gallery-item:hover .image-gallery-actions {
  opacity: 1;
  pointer-events: auto;
}

.featured-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(231, 168, 180, 0.5);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.image-gallery-item:hover .featured-badge {
  opacity: 1;
  pointer-events: auto;
}

.btn-icon {
  width: 26px;
  height: 26px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(231, 168, 180, 0.3);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-white);
  border-color: var(--accent-rose);
  transform: scale(1.05);
}

/* Override for gallery buttons - no scale on hover */
.image-gallery-actions .btn-icon,
.edit-images-gallery .btn-icon {
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.image-gallery-actions .btn-icon:hover,
.edit-images-gallery .btn-icon:hover {
  transform: none;
}

.btn-icon.btn-danger {
  color: #c53030;
}

.btn-icon.btn-danger:hover {
  background: var(--bg-white);
  border-color: #c53030;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* Responsive gallery */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(156px, 156px));
    gap: 10px;
    max-height: 360px;
  }
  
  .image-gallery-item {
    width: 156px;
    height: 156px;
  }
  
  .btn-icon {
    width: 24px;
    height: 24px;
    padding: 2px;
  }
  
  .btn-icon svg {
    width: 14px;
    height: 14px;
  }
  
  .featured-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
  }
}

/* ============================================
   PRODUCT DETAIL - Multiple Images
   ============================================ */

.product-detail__main-image {
  position: relative;
}

.product-detail__thumbnails {
  display: flex;
  gap: 12px;
  padding: 10px 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.product-detail__thumbnails::-webkit-scrollbar {
  height: 6px;
}

.product-detail__thumbnails::-webkit-scrollbar-track {
  background: rgba(231, 168, 180, 0.1);
  border-radius: 3px;
}

.product-detail__thumbnails::-webkit-scrollbar-thumb {
  background: var(--accent-rose);
  border-radius: 3px;
}

.product-detail__thumbnail {
  flex: 0 0 80px;
  height: 80px;
  padding: 0;
  background: var(--bg-white);
  border: 2px solid rgba(231, 168, 180, 0.2);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-detail__thumbnail:hover {
  border-color: var(--accent-rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 168, 180, 0.3);
}

.product-detail__thumbnail.active {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px var(--bg-cream), 0 0 0 4px var(--accent-rose);
}

.product-detail__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Product card navigation */
.product-card__image {
  position: relative;
}

.product-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(231, 168, 180, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.product-card__image:hover .product-card__nav {
  opacity: 1;
}

.product-card__image[data-has-multiple] .product-card__nav {
  display: flex;
}

.product-card__nav--prev {
  left: 8px;
}

.product-card__nav--next {
  right: 8px;
}

.product-card__nav:hover {
  background: var(--bg-white);
  border-color: var(--accent-rose);
  transform: translateY(-50%) scale(1.1);
}

.product-card__nav svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.product-card__nav svg * {
  pointer-events: none;
}

.product-card__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card__dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(231, 168, 180, 0.4);
}

.product-card__dot:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.product-card__dot.active {
  background: var(--bg-white);
  transform: scale(1.3);
  box-shadow: 0 0 0 2px var(--accent-rose);
}

/* Product detail page navigation */
.product-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(231, 168, 180, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.product-detail-nav--prev {
  left: 16px;
}

.product-detail-nav--next {
  right: 16px;
}

.product-detail-nav:hover {
  background: var(--bg-white);
  border-color: var(--accent-rose);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(231, 168, 180, 0.3);
}

.product-detail-nav svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   MEDIA LIBRARY GRID
   ============================================ */

#media-grid {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Custom scrollbar for media grid */
#media-grid::-webkit-scrollbar {
  width: 12px;
}

#media-grid::-webkit-scrollbar-track {
  background: var(--bg-blush);
  border-radius: 6px;
  margin: 4px 0;
}

#media-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #efb8c8, #e7a8b4);
  border-radius: 6px;
  border: 2px solid var(--bg-blush);
  transition: all 0.3s ease;
}

#media-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e7a8b4, #d89aa6);
  border-color: rgba(231, 168, 180, 0.3);
  box-shadow: 0 0 6px rgba(231, 168, 180, 0.4);
}

/* Firefox scrollbar */
#media-grid {
  scrollbar-width: thin;
  scrollbar-color: #e7a8b4 var(--bg-blush);
}

/* Media card fade-in animation */
@keyframes mediaCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.media-card-entering {
  animation: mediaCardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Media card delete animation */
@keyframes mediaCardFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(0.85);
    filter: blur(2px);
  }
}

.media-card-deleting {
  animation: mediaCardFadeOut 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
  pointer-events: none;
}

/* ========================================
   PRODUCT VARIANTS STYLES
   ======================================== */

#variants-section {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 8px;
}

#variants-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.variants-table-wrapper {
  overflow-x: auto;
  margin-bottom: 16px;
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.variants-table thead tr {
  background: var(--bg-blush);
  border-bottom: 2px solid var(--border-color);
}

.variants-table th {
  text-align: left;
  padding: 12px 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.variants-table th:last-child {
  text-align: center;
  width: 80px;
}

.variants-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.variants-table tbody tr:hover {
  background: var(--bg-cream);
}

.variants-table td {
  padding: 10px 8px;
  vertical-align: middle;
}

.variant-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.variant-input:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.1);
}

.variant-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.variant-remove-btn {
  background: transparent;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variant-remove-btn:hover {
  background: rgba(211, 47, 47, 0.1);
  color: #b71c1c;
}

.variant-remove-btn svg {
  width: 18px;
  height: 18px;
}

#total-variant-inventory {
  font-size: 1.2rem;
  color: var(--accent-rose);
  font-weight: 700;
}

.variants-quick-add {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.variants-quick-add span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 4px;
}

.variants-quick-add .btn {
  padding: 4px 12px;
  font-size: 0.85rem;
}

/* Mobile responsiveness for variants table */
@media (max-width: 768px) {
  .variants-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
  
  .variants-table {
    font-size: 0.85rem;
    min-width: 550px;
  }
  
  .variants-table th,
  .variants-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  
  .variant-input {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 10px 8px;
    min-width: 70px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .variant-remove-btn {
    min-width: 40px;
    min-height: 40px;
  }
  
  /* Form toggle adjustments */
  .form-toggle {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .form-toggle input {
    width: 44px;
    height: 24px;
  }
}

/* ========================================
   STOREFRONT SIZE SELECTOR
   ======================================== */

.product-size-selector {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.product-size-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

#product-size {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23735c57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

#product-size:hover {
  border-color: var(--accent-rose);
  background-color: var(--bg-cream);
}

#product-size:focus {
  outline: none;
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(231, 168, 180, 0.15);
  background-color: white;
}

#product-size option:disabled {
  color: #999;
  font-style: italic;
}

.size-availability {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.3em;
  transition: color 0.2s ease;
}

/* ========================================
   ADMIN PAGE MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 768px) {
  /* Admin shell container */
  .admin-shell {
    width: 100%;
    padding: 20px 0 48px;
  }
  
  /* Admin header stacking */
  .admin-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  /* Add scroll hint for tables */
  .table-scroll::before {
    content: '← Swipe to see more →';
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px;
    background: rgba(231, 168, 180, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
    font-style: italic;
  }
  
  /* Admin title smaller on mobile */
  .admin-title {
    font-size: 1.8rem;
  }
  
  /* Section lead text smaller */
  .section__lead {
    font-size: 0.9rem;
  }
  
  /* Admin tabs wrap and stack */
  .admin-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .admin-tab {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  
  /* Admin cards reduced padding */
  .admin-card {
    padding: 16px;
    gap: 16px;
  }
  
  /* Metrics strip single column */
  .metrics-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .metrics-strip .metric {
    padding: 14px 16px;
  }
  
  /* Table scroll container - horizontal scroll for tables */
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
    position: relative;
    background: white;
    border-radius: 8px;
  }
  
  /* Scroll indicator for tables */
  .table-scroll::before {
    content: '← Swipe to see all →';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(231, 168, 180, 0.15);
    margin-bottom: 6px;
    border-radius: 4px;
    font-style: italic;
    font-weight: 500;
  }
  
  /* Table styling adjustments */
  .table {
    width: 100%;
    min-width: 600px;
    font-size: 0.85rem;
    margin: 0;
  }
  
  .table th,
  .table td {
    padding: 10px 8px;
    white-space: nowrap;
  }
  
  /* Status pills smaller */
  .status-pill {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
  
  /* Form fields - inputs and textareas */
  .form-field input,
  .form-field textarea,
  .form-field select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 12px;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Search and filter controls stacking */
  .admin-card header > div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  /* Product search full width */
  #product-search {
    width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }
  
  /* Category filter full width */
  #category-filter {
    width: 100% !important;
    font-size: 16px !important;
    box-sizing: border-box;
  }
  
  /* Buttons in headers stack */
  .admin-card header > div > div[style*="flex"] {
    flex-direction: column !important;
    width: 100%;
  }
  
  .admin-card header > div > div[style*="flex"] .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Hero form adjustments */
  #hero-form-container input,
  #hero-form-container textarea,
  #hero-form-container select {
    font-size: 16px !important;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Hero image controls stack */
  #hero-form-container > form > div[class="form-field"] > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  #hero-form-container > form > div[class="form-field"] > div[style*="flex"] .btn {
    width: 100%;
  }
  
  /* Media library grid */
  #media-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Features form inputs */
  #features-form-container input,
  #features-form-container textarea {
    font-size: 16px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Variants section on tablet */
  #variants-section .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  #add-variant-btn {
    width: 100%;
  }
  
  /* Modal content adjustments for tablets */
  .modal-content {
    width: 95vw;
    max-width: 95vw;
  }
  
  .modal-form {
    padding: 24px;
  }
  
  /* Ensure all modal inputs fit */
  .modal-form input,
  .modal-form textarea,
  .modal-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  /* Modal adjustments for small screens */
  .modal-content {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .modal-header {
    padding: 16px;
    flex-wrap: wrap;
  }
  
  .modal-title {
    font-size: 1.3rem;
    max-width: calc(100% - 50px);
    word-wrap: break-word;
  }
  
  .modal-close {
    flex-shrink: 0;
  }
  
  .modal-form {
    padding: 16px;
    grid-template-columns: 1fr !important;
    gap: 16px;
    max-height: none;
    overflow-y: visible;
  }
  
  /* All form fields in modals */
  .modal-form input,
  .modal-form textarea,
  .modal-form select {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .modal-form label {
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
  }
  
  /* Form field containers */
  .form-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .form-field input,
  .form-field textarea,
  .form-field select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Product modal image selection buttons stack */
  .modal-form .form-field > div[style*="flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  
  .modal-form .form-field > div[style*="flex"] .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  
  .modal-form .form-field > div[style*="flex"] span {
    display: none; /* Hide "or" text on mobile */
  }
  
  /* Modal actions full width buttons */
  .modal-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
  
  /* Variants section */
  #variants-section {
    overflow-x: hidden;
  }
  
  #variants-section h3 {
    font-size: 1rem;
  }
  
  /* Quick add buttons wrap */
  #variants-section > div[style*="flex"] {
    flex-wrap: wrap !important;
  }
  
  #variants-section > div[style*="flex"] .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 0.8rem;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  #variants-section > div[style*="flex"] span {
    width: 100%;
    margin-bottom: 6px;
  }
  
  /* Variants table responsive */
  .variants-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px 16px -16px;
    padding: 0;
    position: relative;
    background: white;
    border-radius: 8px;
  }
  
  /* Scroll indicator for variants table - positioned better */
  .variants-table-wrapper::before {
    content: '← Swipe to see all →';
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(231, 168, 180, 0.15);
    margin: 0 16px 6px 16px;
    border-radius: 4px;
    font-style: italic;
    font-weight: 500;
  }
  
  .variants-table {
    width: 100%;
    min-width: 550px;
    font-size: 0.85rem;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
  }
  
  /* Remove gradient overlay - it causes the broken look */
  .variants-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-blush);
    z-index: 2;
  }
  
  /* First column sticky for context while scrolling */
  .variants-table th:first-child,
  .variants-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg-blush);
  }
  
  .variants-table thead th:first-child {
    z-index: 3;
  }
  
  .variants-table tbody td:first-child {
    background: white;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  }
  
  .variants-table tbody tr:hover td:first-child {
    background: var(--bg-cream);
  }
  
  /* Variant inputs on mobile - critical for iOS */
  .variants-table .variant-input {
    font-size: 16px !important; /* Prevents iOS zoom */
    padding: 10px 8px;
    min-width: 70px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
  }
  
  .variants-table th,
  .variants-table td {
    padding: 10px 8px;
  }
  
  /* Make delete button more tappable */
  .variant-remove-btn {
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
  }
  
  /* Add variant button full width */
  #add-variant-btn {
    width: 100%;
    margin-bottom: 16px;
  }
  
  /* Total inventory display */
  #total-variant-inventory {
    font-size: 1.3rem;
  }
  
  /* Media library modal body */
  .modal-body {
    padding: 16px !important;
  }
  
  /* Media library header controls stack */
  .modal-body > div[style*="flex"] {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  
  .modal-body > div[style*="flex"] > p {
    width: 100%;
    margin: 0 0 8px 0 !important;
  }
  
  .modal-body > div[style*="flex"] > div {
    width: 100%;
  }
  
  .modal-body > div[style*="flex"] label {
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Media grid single column on very small screens */
  #media-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Site header adjustments */
  .site-header__inner {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .primary-nav {
    font-size: 0.9rem;
    gap: 12px !important;
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  /* Brand logo smaller */
  .brand__logo {
    max-width: 160px;
    height: auto;
  }
  
  /* Header actions */
  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  /* Categories table */
  .admin-card[data-panel="categories"] .table {
    min-width: 700px;
  }
  
  /* Category form inputs */
  #category-modal input,
  #category-modal textarea {
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Image gallery in product modal */
  .image-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* Hero selected image display */
  #hero-selected-image > div[style*="flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  
  #hero-selected-thumb {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }
  
  /* Inline product edit forms */
  .product-edit-row input[type="text"],
  .product-edit-row input[type="number"],
  .product-edit-row textarea,
  .product-edit-row select {
    font-size: 16px !important;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Form toggle better sizing */
  .form-toggle {
    font-size: 0.85rem;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .form-toggle input {
    width: 44px !important;
    height: 24px !important;
    flex-shrink: 0;
  }
  
  .form-toggle input::before {
    width: 18px !important;
    height: 18px !important;
    top: 1px !important;
    left: 1px !important;
  }
  
  .form-toggle input:checked::before {
    transform: translateX(20px) !important;
  }
  
  .form-toggle span {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  /* Small text helper */
  small,
  .form-help-text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  /* Even more compact on very small screens */
  .admin-shell {
    padding: 16px 0 32px;
  }
  
  .admin-title {
    font-size: 1.5rem;
  }
  
  .section__title {
    font-size: 1.4rem !important;
  }
  
  .admin-tab {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  /* Smaller metrics */
  .metric__value {
    font-size: 1.4rem;
  }
  
  .metric__label {
    font-size: 0.75rem;
  }
  
  /* Table even more compact */
  .table {
    font-size: 0.8rem;
  }
  
  .table th,
  .table td {
    padding: 8px 6px;
  }
  
  /* Buttons smaller padding */
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Modal close button */
  .modal-close {
    font-size: 2rem;
    width: 32px;
    height: 32px;
  }
}

/* ========================================
   INVENTORY MODAL STYLES
   ======================================== */

#inventory-modal-name {
  background: #f5f5f5 !important;
  color: #666 !important;
}

#inventory-simple-fields,
#inventory-variants-fields {
  width: 100%;
}

#inventory-variants-list {
  max-height: calc(100vh - 400px);
  overflow-y: auto;
  padding: 4px;
}

#inventory-variants-list::-webkit-scrollbar {
  width: 6px;
}

#inventory-variants-list::-webkit-scrollbar-track {
  background: rgba(231, 168, 180, 0.1);
  border-radius: 3px;
}

#inventory-variants-list::-webkit-scrollbar-thumb {
  background: var(--accent-rose);
  border-radius: 3px;
}

.variant-inventory-input {
  -webkit-appearance: none;
  appearance: none;
}

/* Mobile-specific inventory modal styles */
@media (max-width: 768px) {
  #inventory-modal .modal-content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  #inventory-modal .modal-form {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  
  #inventory-variants-list {
    max-height: none;
    flex: 1;
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  #inventory-modal .modal-content {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
  
  #inventory-modal .modal-header {
    flex-shrink: 0;
  }
  
  #inventory-modal .modal-actions {
    flex-shrink: 0;
  }
  
  #inventory-variants-list > div {
    margin-bottom: 12px;
  }
}
