/* ===== ROSANO DESIGN SYSTEM ===== */

/* ===== SKIP TO CONTENT (WCAG 2.1) ===== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--text-dark, #4A4036);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-gold, #EFE8D8);
  outline-offset: 2px;
}

:root {
  --bg-cream: #FAF8F5;
  --bg-white: #ffffff;
  --text-dark: #4A4036;
  --text-darker: #342d26;
  --accent-rose: #F4EBE8;
  --accent-green: #E3E8E4;
  --accent-gold: #EFE8D8;
  --accent-tan: #D9CDBF;
  --rose-900: #881337;
  --emerald-900: #064e3b;
  --amber-900: #78350f;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-rose);
  color: var(--text-dark);
}

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

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media(min-width:768px) {
  .container {
    padding: 0 3rem;
  }
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  width: 100%;
  z-index: 50;
  top: 0;
  left: 0;
  background: var(--bg-cream);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--accent-gold);
}

@media(min-width:768px) {
  .nav {
    padding: 1rem 3rem;
  }
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(74, 64, 54, 0.2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo .fallback {
  font-size: 1.25rem;
  position: absolute;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  background: #fff;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media(min-width:768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a:hover {
  color: var(--rose-900);
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-dark);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--text-darker);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

@media(min-width:768px) {
  .nav-cta {
    display: flex;
  }
}

.mobile-toggle {
  display: block;
  background: none;
  color: var(--text-dark);
  padding: 0.25rem;
}

@media(min-width:768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-cream);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--accent-gold);
}

.mobile-menu.active {
  display: flex;
}

@media(min-width:768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.mobile-menu a:hover {
  color: var(--rose-900);
}

.mobile-menu .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--text-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: clamp(480px, 42vw, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2c241e;
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 420px;
    padding: 2rem 0 1.5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  z-index: 3;
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: rgba(244, 235, 232, 0.2);
  mix-blend-mode: overlay;
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #fff;
  font-size: 1.125rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-badge {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 600;
}

@media(min-width:768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero p {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media(min-width:768px) {
  .hero p {
    font-size: 1.25rem;
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--text-dark);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  background: var(--text-darker);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
}

/* ===== FEATURES ===== */
.features {
  background: var(--bg-cream);
  padding: 3rem 0;
  border-bottom: 1px solid var(--accent-gold);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media(min-width:768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.feature-icon.rose {
  background: var(--accent-rose);
  color: var(--rose-900);
}

.feature-icon.green {
  background: var(--accent-green);
  color: var(--emerald-900);
}

.feature-icon.gold {
  background: var(--accent-gold);
  color: var(--amber-900);
}

.feature-item h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: rgba(74, 64, 54, 0.7);
}

/* ===== PRODUCTS ===== */
.products {
  padding: 6rem 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-darker);
}

.section-header p {
  color: rgba(74, 64, 54, 0.8);
  max-width: 36rem;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media(min-width:768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile compact card adjustments */
@media(max-width:767px) {
  .product-card .category-title {
    font-size: 0.9375rem;
    line-height: 1.3;
  }

  .product-card .desc {
    font-size: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  .product-card .image-wrap {
    margin-bottom: 0.75rem;
  }

  .card-price-row {
    font-size: 0.875rem;
  }

  .product-card .view-link {
    font-size: 0.75rem;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .image-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  aspect-ratio: 4/5;
  margin-bottom: 1.5rem;
}

.product-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  transition: transform 0.7s ease;
  mix-blend-mode: multiply;
}

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

.product-card .image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.5s;
}

.product-card:hover .image-overlay {
  background: transparent;
}

.product-card .category-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-darker);
}

/* Price row on card */
.card-price-row {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-darker);
  margin-bottom: 0.5rem;
}

.product-card .desc {
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

#categoryGrid .product-card .desc {
  display: none;
}

.product-card .prices {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.product-card .prices span {
  font-weight: 500;
  color: var(--text-dark);
}

.product-card .view-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--text-dark);
  padding-bottom: 0.25rem;
  transition: var(--transition);
  margin-top: auto;
}

.product-card .view-link:hover {
  color: var(--rose-900);
  border-color: var(--rose-900);
}

.product-card .image-wrap.bg-rose {
  background: var(--accent-rose);
}

.product-card .image-wrap.bg-green {
  background: var(--accent-green);
}

.product-card .image-wrap.bg-gold {
  background: var(--accent-gold);
}

/* ===== REELS ===== */
.reels {
  padding: 6rem 0;
  background: rgba(244, 235, 232, 0.5);
}

.reels-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media(min-width:768px) {
  .reels-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.reels-header .text h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-darker);
}

.reels-header .text p {
  color: rgba(74, 64, 54, 0.8);
  max-width: 36rem;
}

.reels-header .ig-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.reels-header .ig-link:hover {
  color: var(--rose-900);
}

@media(min-width:768px) {
  .reels-header .ig-link {
    display: flex;
  }
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.reels-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.reels-load-btn {
  min-width: 240px;
  justify-content: center;
}

.reels-note {
  color: rgba(74, 64, 54, 0.72);
  font-size: 0.9rem;
  text-align: center;
}

.curator-feed-shell {
  margin-top: 2rem;
}

@media(min-width:768px) {
  .reels-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.reel-card {
  position: relative;
  aspect-ratio: 9/16;
  background: #e5e7eb;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.reel-card:hover {
  box-shadow: var(--shadow-lg);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

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

.reel-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-card .play-icon {
  color: #fff;
  width: 48px;
  height: 48px;
  opacity: 0.8;
  transition: var(--transition);
}

.reel-card:hover .play-icon {
  opacity: 1;
  transform: scale(1.1);
}

.reel-card .label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.reel-card.desktop-only {
  display: none;
}

@media(min-width:768px) {
  .reel-card.desktop-only {
    display: block;
  }
}

/* ===== STORY ===== */
.story {
  padding: 6rem 0;
  background: #fff;
}

.story-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media(min-width:768px) {
  .story-inner {
    flex-direction: row;
    gap: 6rem;
  }
}

.story-image {
  width: 100%;
  position: relative;
}

@media(min-width:768px) {
  .story-image {
    width: 50%;
  }
}

.story-image .arch {
  aspect-ratio: 4/5;
  border-radius: 50% 50% 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent-rose);
}

.story-image .arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image .badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  overflow: hidden;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image .badge .fallback {
  font-size: 2.25rem;
  position: absolute;
}

.story-image .badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  background: #fff;
}

.story-text {
  width: 100%;
}

@media(min-width:768px) {
  .story-text {
    width: 50%;
  }
}

.story-text h2 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-darker);
}

.story-text .paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: rgba(74, 64, 54, 0.8);
  font-weight: 300;
  line-height: 1.7;
}

.story-text .signature {
  margin-top: 2.5rem;
}

.story-text .signature .name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-darker);
}

.story-text .signature .role {
  font-size: 0.875rem;
  color: rgba(74, 64, 54, 0.6);
  margin-top: 0.25rem;
}

/* ===== SIZING ===== */
.sizing {
  padding: 6rem 0;
  background: var(--bg-cream);
}

.sizing .hint {
  color: rgba(74, 64, 54, 0.8);
  background: rgba(239, 232, 216, 0.5);
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  margin-top: 1rem;
  border: 1px solid var(--accent-gold);
  font-size: 0.875rem;
}

.size-table {
  background: #fff;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-gold);
  max-width: 56rem;
  margin: 0 auto;
}

.size-table table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

.size-table thead tr {
  background: var(--accent-tan);
  color: var(--text-darker);
}

.size-table th {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
}

.size-table th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.size-table tbody tr {
  border-top: 1px solid var(--accent-gold);
  transition: var(--transition);
}

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

.size-table tbody tr:nth-child(even) {
  background: rgba(244, 235, 232, 0.2);
}

.size-table tbody tr:nth-child(even):hover {
  background: var(--bg-cream);
}

.size-table td {
  padding: 1rem 1.5rem;
}

.size-table td:first-child {
  font-weight: 500;
}

.size-table td:last-child {
  color: rgba(74, 64, 54, 0.8);
}

/* ===== HOW TO USE ===== */
.how-to-use {
  padding: 6rem 0;
  background: var(--bg-cream);
}

.how-to-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
}

@media(min-width: 992px) {
  .how-to-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.how-to-text {
  flex: 1;
}

.how-to-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-dark);
  font-family: var(--font-serif);
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--accent-rose);
}

.how-to-video {
  flex: 1.2;
  width: 100%;
}

.video-container {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== CONTACT ===== */
.contact {
  padding: 6rem 0;
  background: #fff;
  border-top: 1px solid var(--accent-gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media(min-width:1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
  }
}

.social-proof .header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.social-proof .header svg {
  color: var(--rose-900);
  width: 24px;
  height: 24px;
}

.social-proof .header h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--text-darker);
}

.social-proof>p {
  color: rgba(74, 64, 54, 0.8);
  margin-bottom: 2rem;
  font-weight: 300;
}

.social-proof>p a {
  font-weight: 500;
  transition: var(--transition);
}

.social-proof>p a:hover {
  color: var(--rose-900);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.social-grid .social-item {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.social-grid .social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.social-grid .social-item:hover img {
  transform: scale(1.1);
}

.social-grid .social-item .heart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-grid .social-item:hover .heart-overlay {
  opacity: 1;
}

.social-grid .social-item .heart-overlay svg {
  color: #fff;
  fill: #fff;
  width: 24px;
  height: 24px;
}

.contact-form-wrap {
  background: var(--bg-cream);
  padding: 2rem;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-gold);
}

@media(min-width:768px) {
  .contact-form-wrap {
    padding: 2.5rem;
  }
}

.contact-form-wrap h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-darker);
}

.contact-form-wrap>p {
  color: rgba(74, 64, 54, 0.7);
  margin-bottom: 2rem;
  font-weight: 300;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  outline: none;
  transition: var(--transition);
  font-size: 0.9375rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.1);
  border-color: rgba(136, 19, 55, 0.3);
}

.form-group textarea {
  resize: none;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4036' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  padding: 0.5rem;
}

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

@media(min-width:768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--text-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-submit:hover {
  background: var(--text-darker);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 64, 54, 0.3);
}

.btn-submit:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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


/* ===== FOOTER ===== */
.footer {
  background: var(--text-darker);
  color: var(--accent-gold);
  padding: 4rem 1.5rem;
}

@media(min-width:768px) {
  .footer {
    padding: 4rem 3rem;
  }
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(239, 232, 216, 0.2);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

@media(min-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.5rem;
}

.footer-logo .fallback {
  font-size: 1.875rem;
  position: absolute;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  background: #fff;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(239, 232, 216, 0.7);
  transition: var(--transition);
  width: fit-content;
}

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

.footer-col p {
  color: rgba(239, 232, 216, 0.7);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239, 232, 216, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--rose-900);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(239, 232, 216, 0.5);
  font-weight: 300;
}

@media(min-width:768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom .links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom .links a {
  color: rgba(239, 232, 216, 0.5);
  transition: var(--transition);
}

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

.footer-desc {
  color: rgba(239, 232, 216, 0.7);
  font-weight: 300;
  max-width: 24rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--accent-gold);
  padding: 0.75rem 1.5rem;
  position: relative;
  z-index: 10;
}

@media(min-width:768px) {
  .breadcrumb-bar {
    padding: 0.75rem 3rem;
  }
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(74, 64, 54, 0.6);
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumb-bar a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.breadcrumb-bar a:hover {
  color: var(--rose-900);
  text-decoration: underline;
}

.breadcrumb-bar .sep {
  color: rgba(74, 64, 54, 0.3);
  user-select: none;
}

/* ===== CATEGORY HERO ===== */
.category-hero {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--bg-cream);
  overflow: hidden;
}

/* Banner background image layer */
.category-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay for text contrast when banner is present */
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
  transition: background 0.3s ease;
}

/* When banner is active */
.category-hero.has-banner {
  padding: 6rem 1.5rem;
  min-height: clamp(280px, 25vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .category-hero.has-banner {
    min-height: 240px;
    padding: 4rem 1.5rem;
  }
}

.category-hero.has-banner .category-hero-overlay {
  background: linear-gradient(to bottom,
      rgba(52, 45, 38, 0.45) 0%,
      rgba(52, 45, 38, 0.6) 100%);
}

.category-hero.has-banner h1,
.category-hero.has-banner p {
  color: #fff;
}

.category-hero.has-banner .category-hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.category-hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #fff;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.category-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-darker);
  margin-bottom: 0.75rem;
}

.category-hero p {
  color: rgba(74, 64, 54, 0.7);
  max-width: 32rem;
  margin: 0 auto;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--accent-gold);
}

.tabs-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.tab-btn:hover {
  background: var(--bg-cream);
}

.tab-btn.active {
  background: var(--text-darker);
  color: #fff;
  border-color: var(--text-darker);
}

/* ===== ADMIN PANEL ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

.admin-sidebar {
  width: 260px;
  background: var(--text-darker);
  color: #fff;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.admin-sidebar.active {
  transform: translateX(0);
}

@media(min-width:1024px) {
  .admin-sidebar {
    transform: translateX(0);
  }
}

.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.admin-sidebar .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-sidebar .brand h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.admin-sidebar .brand span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-nav a.active {
  background: var(--rose-900);
  color: #fff;
}

.sidebar-nav a svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.admin-main {
  flex: 1;
  margin-left: 0;
  padding: 2rem 1.5rem;
}

@media(min-width:1024px) {
  .admin-main {
    margin-left: 260px;
    padding: 2rem 3rem;
  }
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-topbar h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--text-darker);
}

.admin-topbar .actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.sidebar-toggle {
  display: flex;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

@media(min-width:1024px) {
  .sidebar-toggle {
    display: none;
  }
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
}

.admin-overlay.active {
  display: block;
}

@media(min-width:1024px) {
  .admin-overlay {
    display: none !important;
  }
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.stat-card .label {
  font-size: 0.875rem;
  color: rgba(74, 64, 54, 0.6);
  margin-bottom: 0.25rem;
}

.stat-card .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-darker);
}

/* Admin sections */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* Product Table */
.table-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  font-size: 0.875rem;
  min-width: 200px;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--rose-900);
  box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-dark);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--text-darker);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--text-dark);
  padding: 0.375rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(74, 64, 54, 0.5);
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table .product-thumb {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--accent-rose);
}

.admin-table .product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-table .actions-cell {
  display: flex;
  gap: 0.5rem;
}

.admin-table .category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.cat-sizin {
  background: var(--accent-rose);
  color: var(--rose-900);
}

.cat-dostunuz {
  background: var(--accent-green);
  color: var(--emerald-900);
}

.cat-kombin {
  background: var(--accent-gold);
  color: var(--amber-900);
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-darker);
}

.modal-close {
  background: none;
  color: var(--text-dark);
  padding: 0.25rem;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.img-preview {
  width: 100%;
  height: 120px;
  border-radius: 0.5rem;
  border: 2px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0.5rem;
  background: #f8fafc;
  color: rgba(74, 64, 54, 0.4);
  font-size: 0.875rem;
}

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

/* Content Editor */
.content-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.content-card h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text-darker);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.content-card .form-group {
  margin-bottom: 1rem;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #059669;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-save:hover {
  background: #047857;
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  background: var(--text-darker);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  max-width: 320px;
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  background: #059669;
}

.toast.error {
  background: #dc2626;
}

/* Data tools */
.data-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Responsive table */
@media(max-width:768px) {

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) {
    display: none;
  }
}

/* Confirm dialog */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-overlay.active {
  display: flex;
}

.confirm-box {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.confirm-box h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.confirm-box p {
  color: rgba(74, 64, 54, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== SOLID NAV (for inner pages) ===== */
.nav.nav-solid {
  position: relative;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--accent-gold);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--bg-cream);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(239, 232, 216, 0.5);
  font-size: 0.8125rem;
  color: rgba(74, 64, 54, 0.6);
}

.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-bar a {
  color: rgba(74, 64, 54, 0.6);
  transition: var(--transition);
}

.breadcrumb-bar a:hover {
  color: var(--rose-900);
}

.breadcrumb-bar .sep {
  color: rgba(74, 64, 54, 0.3);
}

/* ===== CATEGORY HERO ===== */
.category-hero {
  padding: 4rem 0 3rem;
  background: var(--bg-cream);
  text-align: center;
  border-bottom: 1px solid var(--accent-gold);
}

.category-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--text-darker);
  margin-bottom: 0.75rem;
}

@media(min-width:768px) {
  .category-hero h1 {
    font-size: 3rem;
  }
}

.category-hero p {
  color: rgba(74, 64, 54, 0.8);
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 300;
}

.category-hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--accent-gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cat-hero-rose {
  background: linear-gradient(135deg, var(--accent-rose), var(--bg-cream));
}

.cat-hero-green {
  background: linear-gradient(135deg, var(--accent-green), var(--bg-cream));
}

.cat-hero-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--bg-cream));
}

/* Banner mobile responsiveness */
@media (max-width: 767px) {
  .category-hero.has-banner {
    padding: 4rem 1rem;
    min-height: 200px;
  }

  .category-hero.has-banner h1 {
    font-size: 1.75rem;
  }

  .category-hero.has-banner p {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .category-hero.has-banner {
    padding: 7rem 2rem;
    min-height: 340px;
  }
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  background: #fff;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tabs-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--text-dark);
  transition: var(--transition);
}

.tab-btn:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

.tab-btn.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}

.tab-count {
  opacity: 0.65;
  font-weight: 400;
  font-size: 0.8125rem;
}

.tab-btn.active .tab-count {
  opacity: 0.8;
}

/* Category products spacing */
.category-products {
  padding: 4rem 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
  color: rgba(74, 64, 54, 0.6);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-darker);
  text-align: center;
  margin-bottom: 3rem;
}

/* ===== PDP (Product Detail Page) ===== */
.pdp {
  padding: 3rem 0 4rem;
  background: #fff;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media(min-width:768px) {
  .pdp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.pdp-main-image {
  aspect-ratio: 1;
  background: var(--bg-cream);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-gold);
  position: relative;
}

.pdp-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.pdp-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-darker);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media(min-width:768px) {
  .pdp-title {
    font-size: 2.5rem;
  }
}

.pdp-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pdp-limited-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(146, 64, 14, 0.15);
}

.pdp-handmade-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--accent-rose), #f5e6e0);
  color: var(--rose-900);
  border: 1px solid rgba(136, 19, 55, 0.12);
}

.pdp-description {
  color: rgba(74, 64, 54, 0.8);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Structured description (bullet format) */
.pdp-desc-intro {
  margin-bottom: 0.75rem;
  font-style: italic;
  color: rgba(74, 64, 54, 0.85);
}

.pdp-desc-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdp-desc-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: rgba(74, 64, 54, 0.75);
  line-height: 1.5;
}

.pdp-desc-bullets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--rose-900);
  font-weight: 700;
}

/* Price box */
.pdp-price-box {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--accent-gold);
  margin-bottom: 1.5rem;
}

.pdp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.pdp-price-row:not(:last-child) {
  border-bottom: 1px solid rgba(239, 232, 216, 0.5);
}

.pdp-price-name {
  font-weight: 400;
  color: var(--text-dark);
  font-size: 0.9375rem;
}

.pdp-price-value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-darker);
}

/* Size picker */
.pdp-size-section {
  margin-bottom: 1.5rem;
}

.pdp-size-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pdp-size-label span {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.pdp-size-chart-link {
  font-size: 0.8125rem;
  color: var(--rose-900);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.pdp-size-chart-link:hover {
  color: var(--text-darker);
}

.size-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-xl);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: var(--text-dark);
  background: var(--bg-cream);
}

.size-btn.active {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}

/* Size Chart Modal (Global) */
#sizeChartModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

#sizeChartModal.active {
  display: flex;
}

#sizeChartModal .scm-box {
  background: #fff;
  border-radius: var(--radius-2xl, 16px);
  max-width: 640px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#sizeChartModal .scm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  transition: color .2s;
}

#sizeChartModal .scm-close:hover {
  color: #333;
}

#sizeChartModal h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark, #342d26);
}

#sizeChartModal .scm-sub {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

#sizeChartModal table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  box-shadow: none;
  border: none;
}

#sizeChartModal .scm-section td {
  padding: 1.25rem 0.75rem 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark, #342d26);
  border-bottom: none;
  background: transparent;
}

#sizeChartModal .scm-header th {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 2px solid var(--border, #e0d8cf);
  background: var(--bg-cream, #f9f6f2);
  font-weight: 600;
  color: var(--text-dark, #342d26);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#sizeChartModal td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border, #e0d8cf);
  color: var(--text-dark, #4a4036);
  line-height: 1.4;
}

#sizeChartModal tbody:last-of-type tr:last-child td {
  border-bottom: 2px solid var(--border, #e0d8cf);
}

#sizeChartModal tbody tr:hover:not(.scm-section):not(.scm-header) td {
  background: var(--bg-cream, #f9f6f2);
}

#sizeChartModal .scm-tip {
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.5rem;
}

#sizeChartModal .scm-tip a {
  color: var(--rose-800, #c17878);
}

/* Buy button */
.pdp-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--text-dark);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.025em;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.pdp-buy-btn:hover {
  background: var(--rose-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pdp-buy-btn svg {
  width: 20px;
  height: 20px;
}

/* CTA subtext */
.pdp-buy-subtext {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(74, 64, 54, 0.5);
  margin-top: -1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* Bundle CTA – secondary, not visually dominant */
.pdp-bundle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--accent-tan);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.pdp-bundle-btn:hover {
  background: var(--bg-cream);
  border-color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Multi-purchase hint – soft, supportive */
.pdp-multi-purchase-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.625rem 0.875rem;
  background: rgba(239, 232, 216, 0.35);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  color: rgba(74, 64, 54, 0.6);
  line-height: 1.5;
  font-weight: 300;
}

.pdp-multi-purchase-hint span:first-child {
  font-size: 0.875rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* PDP features */
.pdp-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-gold);
}

.pdp-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 400;
}

.pdp-feature svg {
  color: var(--emerald-900);
  flex-shrink: 0;
}

/* Complete the Look */
.complete-look {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-gold);
}

.complete-look-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.complete-look-header h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--text-darker);
}

.complete-look-header svg {
  color: var(--rose-900);
}

.complete-look-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.complete-look-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  border: 1px solid var(--accent-gold);
  transition: var(--transition);
  cursor: pointer;
}

.complete-look-card:hover {
  border-color: var(--rose-900);
  box-shadow: var(--shadow-sm);
}

.complete-look-card img {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--accent-rose);
  flex-shrink: 0;
}

.complete-look-card .card-info {
  flex: 1;
  min-width: 0;
}

.complete-look-card .card-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-darker);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.complete-look-card .card-info span {
  font-size: 0.75rem;
  color: rgba(74, 64, 54, 0.6);
}

.complete-look-card .card-price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-darker);
  white-space: nowrap;
}

/* Related products */
.related-products {
  padding: 4rem 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--accent-gold);
}

/* ===== PDP MOBILE FIXES ===== */
@media (max-width: 767px) {
  .pdp {
    overflow: hidden;
  }

  .pdp-gallery {
    width: 100%;
    max-width: 100%;
  }

  .pdp-main-image {
    width: 100%;
    max-width: 100%;
    max-height: 55vh;
    aspect-ratio: auto;
  }

  .pdp-main-image img {
    padding: 0.75rem;
  }

  .pdp-info {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .pdp-title {
    font-size: 1.625rem;
    word-wrap: break-word;
  }

  .pdp-description {
    font-size: 0.875rem;
  }

  .pdp-price-box {
    padding: 1rem 1.25rem;
  }

  .pdp-buy-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .complete-look {
    padding: 1.25rem;
    overflow: hidden;
  }

  .complete-look-card {
    gap: 0.75rem;
    padding: 0.625rem;
  }

  .complete-look-card img {
    width: 48px;
    height: 48px;
  }

  .complete-look-card .card-info h4 {
    font-size: 0.8125rem;
  }

  .complete-look-card .card-price {
    font-size: 0.8125rem;
  }

  .pdp-features {
    padding: 1rem 1.25rem;
  }

  .related-products .products-grid {
    gap: 2rem;
  }

  .pdp-grid {
    gap: 2rem;
  }
}

/* ===== HERO SLIDESHOW ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right center;
  /* Focus on the right side where the subjects are */
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  will-change: opacity;
  background-image: var(--bg-desktop) !important;
}

@media (max-width: 767px) {
  .hero-slide {
    background-position: 85% center;
    background-image: var(--bg-mobile) !important;
  }
}

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

/* Dot navigation */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  width: 22px;
}

/* ===== ADMIN HERO IMAGES MANAGER ===== */
.hero-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-image-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--accent-rose);
  border: 2px solid var(--accent-tan);
}

.hero-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-thumb .thumb-actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-image-thumb:hover .thumb-actions {
  opacity: 1;
}

.thumb-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0.35rem;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-darker);
  transition: background 0.2s;
}

.thumb-btn:hover {
  background: #fff;
}

.thumb-btn.danger {
  color: #b91c1c;
}

/* ===== PRODUCT PAGE SLIDESHOW ===== */
.product-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #f4ebe8;
  border-radius: inherit;
  overflow: hidden;
}

.product-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  will-change: opacity;
}

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

.product-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 0.4rem;
  z-index: 5;
}

.product-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(44, 36, 30, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.product-dot.active {
  background: var(--text-dark, #2c241e);
  width: 18px;
}

/* Admin product image thumb */
.product-image-thumb {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--accent-rose);
  border: 2px solid var(--accent-tan);
}

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

.product-image-thumb .thumb-actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-image-thumb:hover .thumb-actions {
  opacity: 1;
}

.product-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
