/* 
 * ADBB - Arch Design by B - Unified Styles System
 * Consolidated from all individual CSS files with variations merged for consistency
 * This file contains semantic classes for consistent styling across the entire website
 */

/* ==========================================================================
   CSS VARIABLES & ROOT STYLES
   ========================================================================== */

:root {
  --primary: #1D1D1B;
  --secondary: #C8A5AD;
  --tertiary: #F5F5F5;
  --accent: #707070;
  --light: #FFFFFF;
  --success: #10B981;
  --error: #EF4444;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-800: #4B5563;
}

/* ==========================================================================
   FOUNDATION & BASE STYLES
   ========================================================================== */

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base body styles - consolidated from all files */
body {
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  color: var(--primary);
  background-color: var(--tertiary);
  line-height: 1.6;
}

/* Site body class */
.site-body {
  background-color: var(--tertiary);
}

/* Container system */
.container-main {
  max-width: 1280px; /* 7xl */
  margin: 0 auto;
  padding: 0 1rem; /* px-4 */
}

.container-main-sm {
  max-width: 1024px; /* 6xl */
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* ==========================================================================
   TYPOGRAPHY SYSTEM
   ========================================================================== */

/* Main headings */
.heading-hero {
  font-size: 3rem; /* text-4xl */
  font-weight: 700; /* font-bold */
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.heading-hero-large {
  font-size: 4rem; /* text-5xl */
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.heading-hero-xl {
  font-size: 6rem; /* text-6xl */
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.heading-section {
  font-size: 2.25rem; /* text-3xl */
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.heading-section-large {
  font-size: 2.5rem; /* text-4xl */
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.heading-card {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 1rem;
}

.heading-small {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Header styles for tools page */
.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.header p {
  font-size: 1.2rem;
  color: var(--accent);
  max-width: 600px;
  margin: 0 auto;
}

/* Body text */
.text-body {
  font-size: 1.125rem; /* text-lg */
  color: var(--accent);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text-body-large {
  font-size: 1.25rem; /* text-xl */
  color: var(--accent);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.text-body-small {
  font-size: 1rem; /* text-base */
  color: var(--accent);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Special text treatments */
.text-highlight {
  color: var(--secondary);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   LAYOUT SECTIONS
   ========================================================================== */

/* Header section */
.header {
  background: var(--light);
  padding: 60px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero sections - consolidated variations */
.hero-section {
  background: linear-gradient(to right, var(--primary), var(--gray-800));
  color: white;
  padding: 4rem 0; /* py-16 */
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Shop-specific hero section */
.shop-hero-section {
  background: linear-gradient(to right, var(--primary), var(--gray-800));
  color: white;
  padding: 4rem 0; /* py-16 */
  padding-top: 6rem; /* Add extra top padding to account for fixed header */
  text-align: center;
}

/* Mobile responsive hero section */
@media (max-width: 768px) {
  .shop-hero-section {
    padding: 2rem 0;
    padding-top: 5rem; /* Less top padding on mobile */
  }
  
  .shop-hero-section .container-main {
    padding: 0 1rem;
  }
}

.shop-hero-section .container-main {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1rem; /* px-4 */
}

@media (min-width: 640px) {
  .shop-hero-section .container-main {
    padding: 0 1.5rem; /* sm:px-6 */
  }
}

@media (min-width: 1024px) {
  .shop-hero-section .container-main {
    padding: 0 2rem; /* lg:px-8 */
  }
}

.shop-hero-title {
  font-size: 2.5rem; /* text-4xl - more reasonable size */
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .shop-hero-title {
    font-size: 3rem; /* text-5xl on larger screens */
  }
}

@media (min-width: 1024px) {
  .shop-hero-title {
    font-size: 3.5rem; /* text-6xl on desktop */
  }
}

.shop-hero-description {
  font-size: 1.25rem; /* text-xl */
  color: #D1D5DB; /* text-gray-300 */
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto 1.5rem auto;
  line-height: 1.7;
  text-align: justify;
}

.hero-section-bg {
  background: 
    linear-gradient(rgba(29,29,27,0.7), rgba(29,29,27,0.7)),
    url('/images/hero1.jpg') no-repeat center center;
  background-size: cover;
  min-height: 60vh;
}

.hero-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 2.5rem 1rem 4rem 1rem;
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
}

.hero-content-top {
  padding-top: 10rem; /* pt-40 */
  padding-bottom: 4rem;
}

/* Content sections */
.section-main {
  padding: 5rem 0; /* py-20 */
  background-color: var(--light);
}

.section-secondary {
  padding: 5rem 0;
  background-color: var(--tertiary);
}

.section-accent {
  padding: 5rem 0;
  background: linear-gradient(to right, var(--primary), var(--gray-800));
  color: white;
}

.tools-section {
  padding: 80px 0;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons - consolidated variations */
.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 2rem; /* py-3 px-8 */
  border-radius: 0.375rem; /* rounded-md */
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: rgba(200, 165, 173, 0.8);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-dark {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  background-color: var(--gray-700);
}

.btn-light {
  background-color: #f3f4f6;
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-300);
  cursor: pointer;
}

.btn-light:hover {
  background-color: #e5e7eb;
}

.explore-btn {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--secondary) 0%, #b8949e 100%);
  color: white;
  border: none;
}

.explore-btn:hover {
  background: linear-gradient(135deg, #b8949e 0%, var(--secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(200, 165, 173, 0.3);
}

/* Cards - consolidated variations */
.card {
  background-color: var(--light);
  border-radius: 0.5rem; /* rounded-lg */
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(29, 29, 27, 0.1), 0 10px 10px -5px rgba(29, 29, 27, 0.04);
}

.card-product {
  background-color: var(--light);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.card-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(29, 29, 27, 0.1), 0 10px 10px -5px rgba(29, 29, 27, 0.04);
}

.card-sticky {
  position: sticky;
  top: 6rem; /* Account for fixed header height */
}

/* Service cards - consolidated hover variations */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px); /* Using the larger transform for consistency */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


/* Package cards */
.package-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary);
}

/* Tool cards */
.tool-card {
  background: var(--light);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(200, 165, 173, 0.1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary) 0%, #B8959D 100%);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: var(--secondary);
}

/* Testimonial cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Dividers */
.divider {
  width: 6rem; /* w-24 */
  height: 0.25rem; /* h-1 */
  background-color: var(--secondary);
  margin: 0 auto;
  margin-bottom: 2rem;
}

.divider-small {
  width: 4rem; /* w-16 */
  height: 0.25rem;
  background-color: var(--secondary);
  margin: 0 auto;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   NAVIGATION & FILTERS
   ========================================================================== */

/* Navigation links - consolidated from all files */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Category filters */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0;
  background-color: var(--light);
  border-bottom: 1px solid #e5e7eb;
}

.filter-link {
  padding: 0.5rem 1.5rem; /* py-2 px-6 */
  border-radius: 9999px; /* rounded-full */
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-link:hover,
.filter-link.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-filter {
  transition: all 0.2s ease;
}

.category-filter:hover {
  background-color: var(--primary);
  color: white;
}

.category-filter.active {
  background-color: var(--primary);
  color: white;
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.alert-notice {
  background-color: rgba(200, 165, 173, 0.1); /* secondary/10 */
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 1rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

.alert-content {
  display: flex;
  align-items: center;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
  color: var(--secondary);
  margin-right: 0.75rem;
}

.alert-text {
  font-size: 0.875rem; /* text-sm */
  color: var(--gray-700);
}

/* ==========================================================================
   CONTACT & ICONS
   ========================================================================== */

/* Contact icons - consolidated from all files */
.contact-icon {
  transition: all 0.3s ease;
}

.contact-icon:hover {
  transform: scale(1.1);
  color: var(--secondary);
}

/* Quote icons */
.quote-icon {
  color: var(--secondary);
  opacity: 0.2;
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* Package icons */
.package-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--light);
  margin: 5% auto;
  padding: 0;
  border-radius: 0.75rem; /* rounded-xl */
  width: 90%;
  max-width: 50rem; /* max-w-3xl */
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-close {
  color: #6b7280;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--gray-700);
  background-color: #f3f4f6;
}

/* Gallery modal */
#gallery-modal-img {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ==========================================================================
   FEATURED BADGES & SPECIAL ELEMENTS
   ========================================================================== */

.featured-badge {
  background-color: var(--secondary);
  color: var(--primary);
}

/* Package features list */
.package-features {
  list-style: none;
  padding: 0;
}

.package-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  padding-left: 1.5rem;
}

.package-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.package-features li:last-child {
  border-bottom: none;
}

/* Milestone due today highlight */
.milestone-due-today {
  background: #f9f1f3;
  border: 2px solid var(--secondary);
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.milestone-due-today .milestone-amount {
  color: var(--secondary);
  font-size: 2rem;
  font-weight: 800;
  display: block;
}

.milestone-due-today .milestone-subtitle {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  display: block;
}

.milestone-due-today .milestone-breakdown {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* ==========================================================================
   BACKGROUND IMAGES
   ========================================================================== */

/* Founder image background - consolidated variations */
.founder-image {
  background-image: url("/images/beatriz.png?v=2");
  background-size: cover;
  background-position: center;
}

/* About image background */
.about-image {
  background-image: url("https://dl.dropboxusercontent.com/scl/fi/cdseaslbjj23vjnpby2cm/beatriztercero.jpg?rlkey=offbn1izlth7ervphpnxjm0hy&raw=1");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary);
}

/* ==========================================================================
   GRID LAYOUTS
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* Text alignment */
.text-center {
  text-align: center;
}

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

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

/* Flexbox utilities */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

/* Layout utilities */
.sidebar-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content-main {
  flex: 1;
}

.sidebar {
  width: 100%;
}

/* Mobile-first responsive styles for shop page */
@media (max-width: 768px) {
  .sidebar-layout {
    flex-direction: column;
    gap: 1rem;
  }
  
  .sidebar {
    width: 100%;
    order: 2; /* Move sidebar below products on mobile */
  }
  
  .content-main {
    width: 100%;
    order: 1; /* Products first on mobile */
  }
  
  .card-sticky {
    position: static; /* Remove sticky behavior on mobile */
    top: auto;
  }
  
  .container-main {
    padding: 1rem;
  }
  
  /* Make filter sections collapsible on mobile */
  .filter-section {
    border-bottom: 1px solid #e5e7eb;
  }
  
  .filter-section:last-child {
    border-bottom: none;
  }
}

/* Spacing utilities */
.mb-section {
  margin-bottom: 4rem; /* mb-16 */
}

.mb-content {
  margin-bottom: 2rem; /* mb-8 */
}

.mb-small {
  margin-bottom: 1rem; /* mb-4 */
}

/* ==========================================================================
   READ PAGE LAYOUT (from styles.css)
   ========================================================================== */

/* Layout for read page */
.read-wrapper {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 32px;
  box-sizing: border-box;
  align-items: stretch; /* Ensures both columns are equal height */
}

.read-left,
.read-right {
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}

.read-left {
  flex: 1 1 50%;
  align-items: center;
  border-right: 1px solid #e0e0e0;
  padding-right: 32px;
  min-width: 0;
}

#post-title {
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 24px;
}

.read-right {
  flex: 1 1 50%;
  padding-left: 32px;
  min-width: 0;
  overflow-y: auto; /* Always allow vertical scroll if needed */
}

.read-right::-webkit-scrollbar {
  width: 8px;
}

.read-right::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 6px;
}

.read-right::-webkit-scrollbar-track {
  background: #f6f6f6;
  border-radius: 6px;
}

.read-right h3 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.3em;
}

/* Enhanced product list styles */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-flow: row dense;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile responsive product grid */
@media (max-width: 640px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .product-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.product-image-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  background: transparent;
  min-height: unset;
  padding: 0;
}

.product-image {
  max-width: 100%;
  max-height: 110px;
  border-radius: 4px;
  background: #ccc;
  width: auto;
  height: auto;
  display: block;
  object-fit: unset;
  background: transparent;
  margin: 0 auto;
}

/* Original Product Card Styles from Olderstylesforshop.html */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(29, 29, 27, 0.1), 0 10px 10px -5px rgba(29, 29, 27, 0.04);
}

.featured-badge {
  background-color: #C8A5AD;
  color: #1D1D1B;
}

/* Product placeholder styling - Original simple style */
.product-placeholder {
  width: 100%;
  height: 304px; /* h-76 equivalent */
  background-color: #e5e7eb; /* bg-gray-200 equivalent */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder-text {
  color: #6b7280; /* text-gray-500 equivalent */
  font-size: 0.875rem; /* text-sm equivalent */
}

@media (max-width: 640px) {
  .product-placeholder {
    height: 256px; /* sm:h-64 equivalent */
  }
}

.product-info {
  width: 100%;
  text-align: center;
}

.product-name {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 1.08em;
}

.product-price {
  color: #7a5c5c;
  margin-bottom: 10px;
  font-size: 1em;
}

.buy-btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 7px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  margin-top: 4px;
}

.buy-btn:hover {
  background: #b08b8b;
}

/* Moodboard styles */
#moodboard > div {
  width: 100% !important;
  max-width: 500px;
  height: auto !important;
  margin: 0 auto;
}

/* Image size utility classes */
.size-small {
  width: auto;
  height: 200px;
}

.size-medium {
  width: auto;
  height: 400px;
}

.size-large {
  width: auto;
  height: 1000px;
}

/* Responsive image and paragraph row */
.img-text-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 1.2em;
}

.img-text-row img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.img-text-row p {
  flex: 1 1 250px;
  min-width: 200px;
  margin: 0;
}

/* Insert image styles */
.insert-image {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin: 40px 0;
  flex-wrap: wrap; /* Allow wrapping */
}

.insert-image img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.insert-image .promo-text {
  flex: 1 1 300px; /* Ensure it can grow and shrink, but never below 300px */
  min-width: 260px;
  line-height: 1.6;
  word-wrap: break-word;
}

/* ==========================================================================
   EDITOR STYLES (from read/editor.php and read/old editor/editor.html)
   ========================================================================== */

/* Editor-specific CSS variables */
:root {
  --hover-secondary: #b8919a;
  --border-color: #e2e2e2;
  --focus-bg: #f9f4f5;
}

/* Editor body styles */
.editor-body {
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  color: var(--primary);
  background-color: var(--light);
  line-height: 1.6;
  padding: 2rem;
  min-width: 100%;
  width: fit-content;
}

/* Editor headings */
.editor-h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

/* Formatting tips */
.formatting-tips {
  background-color: var(--tertiary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.formatting-tips h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.tip {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

code {
  background-color: rgba(200, 165, 173, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Editor table styles */
.editor-table {
  border-collapse: collapse;
  min-width: max-content;
  table-layout: auto;
  overflow: auto;
  display: block;
}

.editor-table thead {
  background-color: var(--secondary);
  color: var(--light);
}

.editor-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.editor-table th, 
.editor-table td {
  border: 1px solid #ccc;
  padding: 0;
  vertical-align: top;
  position: relative;
  resize: horizontal;
  overflow: auto;
}

.editor-table td {
  padding: 0;
  background-color: var(--light);
}

.editor-table tr:nth-child(even) td {
  background-color: rgba(245, 245, 245, 0.5);
}

/* Editor textarea styles */
.editor-textarea {
  width: 100%;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  border: none;
  background: transparent;
  box-sizing: border-box;
  overflow-y: auto;
  line-height: 1.4;
  min-height: 1.4em;
  max-height: 1000px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor-textarea:focus {
  outline: none;
  background: var(--focus-bg);
}

/* Editor actions */
.editor-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-btn-primary {
  background-color: var(--secondary);
  color: var(--light);
}

.editor-btn-primary:hover {
  background-color: var(--hover-secondary);
}

.editor-btn-secondary {
  background-color: var(--tertiary);
  color: var(--primary);
}

.editor-btn-secondary:hover {
  background-color: #e8e8e8;
}

.editor-btn-danger {
  background-color: #dc3545;
  color: white;
}

.editor-btn-danger:hover {
  background-color: #c82333;
}

.editor-btn-danger:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Row selection styles */
.selected-row {
  background-color: #e3f2fd !important;
  border: 2px solid #2196f3 !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.selection-column {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  padding: 8px 4px !important;
  background-color: #f8f9fa;
  border-right: 2px solid #dee2e6;
}

.selection-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.selected-row .selection-indicator {
  background-color: #2196f3;
  border-color: #1976d2;
  color: white;
}

.selected-row .selection-indicator::after {
  content: "✓";
  font-size: 12px;
  font-weight: bold;
}

/* Hover effect for table rows */
.editor-table tbody tr:hover {
  background-color: #f5f5f5 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.editor-table tbody tr.selected-row:hover {
  background-color: #e3f2fd !important;
}

/* Compact table rows */
.editor-table tbody tr {
  height: auto;
  min-height: 40px;
}

.editor-table tbody td {
  height: auto;
  min-height: 40px;
  vertical-align: top;
  padding: 4px 6px;
  word-wrap: break-word;
  word-break: break-word;
}

/* Post content column */
.post-content-cell {
  max-height: 60px;
  overflow: hidden;
  position: relative;
  width: 300px;
  min-width: 200px;
  max-width: 800px;
  resize: horizontal;
}

.post-content-cell .post-content-preview {
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  font-size: 0.85em;
  word-wrap: break-word;
  word-break: break-word;
}

.post-content-cell .see-more-btn {
  position: absolute;
  bottom: 2px;
  right: 5px;
  background: #2196f3;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7em;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.post-content-cell .see-more-btn:hover {
  opacity: 1;
}

/* Expanded post content */
.post-content-cell.expanded {
  max-height: none;
  min-height: 100px;
  width: 600px;
  min-width: 300px;
  max-width: 800px;
  resize: horizontal;
}

.post-content-cell.expanded .post-content-preview {
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: none;
  line-clamp: none;
  -webkit-box-orient: initial;
  font-size: 0.9em;
  line-height: 1.4;
  display: block;
}

.post-content-cell.expanded .see-more-btn {
  position: static;
  margin-top: 5px;
  display: inline-block;
}

/* Editing post content */
.post-content-cell.editing {
  max-height: none;
  min-height: 200px;
  width: 500px;
  min-width: 300px;
  max-width: 800px;
  height: auto;
  overflow: visible;
  resize: horizontal;
}

.post-content-cell.editing .post-content-preview {
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: none;
  line-clamp: none;
  -webkit-box-orient: initial;
}

.post-content-cell.editing textarea {
  height: auto;
  min-height: 200px;
  max-height: none;
  resize: vertical;
  overflow-y: hidden;
  overflow-x: auto;
  box-sizing: border-box;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Row actions */
.row-actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.row-actions button {
  padding: 0.25rem;
  font-size: 0.8rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

.row-actions button:hover {
  color: var(--primary);
}

/* Fixed header */
#fixed-header {
  position: sticky;
  top: 0;
  background: var(--light);
  z-index: 10;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#table-scroll {
  overflow-x: auto;
}

/* Editor responsive styles */
@media (max-width: 768px) {
  .editor-body {
    padding: 1rem;
  }
  
  .editor-h1 {
    font-size: 2rem;
  }
  
  .editor-actions {
    flex-direction: column;
  }
  
  .editor-btn {
    width: 100%;
  }
}

/* ==========================================================================
   JAVASCRIPT GENERATED STYLES (extracted from inline styles)
   ========================================================================== */

/* Shop section header */
.shop-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.shop-title {
  margin: 0;
}

.affiliate-disclaimer-trigger {
  font-size: 0.95em;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
}

/* Post meta styles */
.post-meta {
  font-size: 0.98em;
  color: #888;
  margin-top: 2em;
  margin-bottom: 1.5em;
  text-align: center;
}

/* Moodboard styles */
.moodboard-preview {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moodboard-text {
  margin-top: 1em;
  color: var(--secondary);
}

.moodboard-link {
  color: var(--primary);
  text-decoration: underline;
}

/* Moodboard container */
.moodboard-container {
  max-width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  box-sizing: border-box;
}

.moodboard-wrapper {
  width: auto;
  height: 100%;
  aspect-ratio: 11 / 17;
  box-shadow: 0 2px 8px rgba(63,69,81,0.16);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.moodboard-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.moodboard-center {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.moodboard-image {
  max-width: 700px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moodboard-placeholder {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product card links */
.product-card-link {
  text-decoration: none;
}

/* Affiliate disclaimer modal */
.affiliate-disclaimer-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.affiliate-disclaimer-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 90vw;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow-y: auto;
  max-height: 80vh;
}

.affiliate-disclaimer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.affiliate-disclaimer-title {
  margin-top: 0;
  font-weight: bold;
  color: var(--secondary);
}

.affiliate-disclaimer-text {
  font-size: 1em;
  color: #333;
  text-align: left;
}

/* Background image utilities */
.bg-hero-1 {
  background-image: url('/images/hero1.jpg');
}

.bg-hero-2 {
  background-image: url('/images/hero2.jpg');
}

.bg-hero-3 {
  background-image: url('/images/hero3.jpg');
}

.bg-hero-4 {
  background-image: url('/images/hero4.jpg');
}

/* Utility classes */
.pointer-events-none {
  pointer-events: none;
}

.hidden-seo {
  display: none;
  visibility: hidden;
}

.contact-link {
  color: var(--secondary);
}

/* Progress bar styles for admin analytics */
.progress-bar {
  width: 8rem; /* w-32 */
  background-color: #e5e7eb; /* bg-gray-200 */
  border-radius: 9999px; /* rounded-full */
  height: 0.5rem; /* h-2 */
}

.progress-bar-fill {
  background-color: var(--secondary);
  height: 0.5rem;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Tax dashboard specific styles */
.tax-dashboard-body {
  font-family: "Raleway", sans-serif;
}

.tax-dashboard-serif {
  font-family: "Playfair Display", serif;
}

/* ==========================================================================
   EDITOR SPECIFIC STYLES (from read/originaleditor.php)
   ========================================================================== */

/* Editor-specific CSS variables */
:root {
  --hover-secondary: #b8919a;
  --border-color: #e2e2e2;
  --focus-bg: #f9f4f5;
}

/* Editor body styles */
.editor-body {
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  color: var(--primary);
  background-color: var(--light);
  line-height: 1.6;
  padding: 2rem;
  min-width: 100%;
  width: fit-content;
}

/* Editor formatting tips */
.formatting-tips {
  background-color: var(--tertiary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.formatting-tips h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
}

.tip {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

code {
  background-color: rgba(200, 165, 173, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Editor table styles */
.editor-table {
  border-collapse: collapse;
  min-width: max-content;
  table-layout: auto;
  overflow: auto;
  display: block;
}

.editor-table thead {
  background-color: var(--secondary);
  color: var(--light);
}

.editor-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.editor-table th, 
.editor-table td {
  border: 1px solid #ccc;
  padding: 0;
  vertical-align: top;
  position: relative;
  resize: horizontal;
  overflow: auto;
}

.editor-table td {
  padding: 0;
  background-color: var(--light);
}

.editor-table tr:nth-child(even) td {
  background-color: rgba(245, 245, 245, 0.5);
}

/* Editor textarea styles */
.editor-textarea {
  width: 100%;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  border: none;
  background: transparent;
  box-sizing: border-box;
  overflow-y: auto;
  line-height: 1.4;
  min-height: 1.4em;
  max-height: 1000px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor-textarea:focus {
  outline: none;
  background: var(--focus-bg);
}

/* Editor actions */
.editor-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-actions button {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Editor button styles */
.btn-primary {
  background-color: var(--secondary);
  color: var(--light);
}

.btn-primary:hover {
  background-color: var(--hover-secondary);
}

.btn-secondary {
  background-color: var(--tertiary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #e8e8e8;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-danger:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Row selection styles */
.selected-row {
  background-color: #e3f2fd !important;
  border: 2px solid #2196f3 !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

/* Selection column styles */
.selection-column {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  padding: 8px 4px !important;
  background-color: #f8f9fa;
  border-right: 2px solid #dee2e6;
}

.selection-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 2px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.selected-row .selection-indicator {
  background-color: #2196f3;
  border-color: #1976d2;
  color: white;
}

.selected-row .selection-indicator::after {
  content: "✓";
  font-size: 12px;
  font-weight: bold;
}

/* Hover effect for table rows */
.editor-table tbody tr:hover {
  background-color: #f5f5f5 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.editor-table tbody tr.selected-row:hover {
  background-color: #e3f2fd !important;
}

/* Compact table rows */
.editor-table tbody tr {
  height: auto;
  min-height: 40px;
}

.editor-table tbody td {
  height: auto;
  min-height: 40px;
  vertical-align: top;
  padding: 4px 6px;
  word-wrap: break-word;
  word-break: break-word;
}

/* Post content column - compact by default */
.post-content-cell {
  max-height: 60px;
  overflow: hidden;
  position: relative;
  width: 300px;
  min-width: 200px;
  max-width: 800px;
  resize: horizontal;
}

.post-content-cell .post-content-preview {
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.2;
  font-size: 0.85em;
  word-wrap: break-word;
  word-break: break-word;
}

.post-content-cell .see-more-btn {
  position: absolute;
  bottom: 2px;
  right: 5px;
  background: #2196f3;
  color: white;
  border: none;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7em;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.post-content-cell .see-more-btn:hover {
  opacity: 1;
}

/* When expanded, show full content */
.post-content-cell.expanded {
  max-height: none;
  min-height: 100px;
  width: 600px;
  min-width: 300px;
  max-width: 800px;
  resize: horizontal;
}

.post-content-cell.expanded .post-content-preview {
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: none;
  line-clamp: none;
  -webkit-box-orient: initial;
  font-size: 0.9em;
  line-height: 1.4;
  display: block;
}

.post-content-cell.expanded .see-more-btn {
  position: static;
  margin-top: 5px;
  display: inline-block;
}

/* When editing post content, expand the cell to show raw HTML */
.post-content-cell.editing {
  max-height: none;
  min-height: 200px;
  width: 500px;
  min-width: 300px;
  max-width: 800px;
  height: auto;
  overflow: visible;
  resize: horizontal;
}

.post-content-cell.editing .post-content-preview {
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: none;
  line-clamp: none;
  -webkit-box-orient: initial;
}

.post-content-cell.editing textarea {
  height: auto;
  min-height: 200px;
  max-height: none;
  resize: vertical;
  overflow-y: hidden;
  overflow-x: auto;
  box-sizing: border-box;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Row actions */
.row-actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

.row-actions button {
  padding: 0.25rem;
  font-size: 0.8rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

.row-actions button:hover {
  color: var(--primary);
}

/* Editor fixed header */
.editor-fixed-header {
  position: sticky;
  top: 0;
  background: var(--light);
  z-index: 10;
  padding-top: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.editor-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.editor-table-container {
  min-width: 800px;
  max-width: 100%;
}

/* Responsive preview for post_content column */
.post-content-preview {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

@media (max-width: 900px) {
  .post-content-preview {
    max-width: 100vw;
    padding: 0 8px;
  }
}

@media (max-width: 700px) {
  /* Stack image above text for flex rows inside post_content preview on mobile */
  .post-content-preview > div[style*="display:flex"],
  .post-content-preview > .img-text-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .post-content-preview img,
  .post-content-preview p {
    width: 100% !important;
    max-width: 100% !important;
  }
  .post-content-preview .img-text-row img,
  .mobile-post-content-preview .img-text-row img {
    display: block !important;
    margin: 1.2em auto !important;
    max-width: 90% !important;
    height: auto !important;
    float: none !important;
  }
  .post-content-preview .size-small,
  .mobile-post-content-preview .size-small {
    width: 100% !important;
    max-width: 90vw !important;
    height: auto !important;
    margin: 1.2em auto !important;
    display: block !important;
  }
  .post-content-preview .size-medium,
  .mobile-post-content-preview .size-medium {
    width: 100% !important;
    max-width: 90vw !important;
    height: auto !important;
    margin: 1.2em auto !important;
    display: block !important;
  }
  .post-content-preview .size-large,
  .mobile-post-content-preview .size-large {
    width: 100% !important;
    max-width: 90vw !important;
    height: auto !important;
    margin: 1.2em auto !important;
    display: block !important;
  }
}

/* Center image and text vertically for desktop */
.post-content-preview .img-text-row,
.mobile-post-content-preview .img-text-row,
.img-text-row {
  align-items: center;
}

/* Mobile preview simulation for post_content */
.mobile-post-content-preview {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  font-size: 1.05em;
  line-height: 1.6;
  background: #fafafa;
}

@media (max-width: 700px) {
  .mobile-post-content-preview > div[style*="display:flex"],
  .mobile-post-content-preview > .img-text-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .mobile-post-content-preview img,
  .mobile-post-content-preview p {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Always stack image above text in mobile preview modal */
.mobile-post-content-preview .img-text-row {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-top: 1.2em !important;
}

.mobile-post-content-preview .img-text-row p {
   text-align: left !important;
}

.selected-post-content-cell {
  outline: 2px solid #C8A5AD;
  box-shadow: 0 0 0 2px #f5e6ea;
  border-radius: 6px;
  transition: outline 0.2s;
}

/* Editor responsive styles */
@media (max-width: 768px) {
  .editor-body {
    padding: 1rem;
  }
  
  .editor-actions {
    flex-direction: column;
  }
  
  .editor-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   POST EDITOR SPECIFIC STYLES (from read/post-editor.php)
   ========================================================================== */

/* Post selector styles */
.post-selector {
  margin-bottom: 1rem;
}

.post-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.add-new-post-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}


.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  margin-top: 0;
}

/* Content type selection */
.content-type-section {
  margin-bottom: 1.5rem;
}

.content-type-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.content-type-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.content-type-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-type-option input {
  margin: 0;
}

/* Form sections */
.form-section {
  margin-bottom: 1rem;
}

.form-label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
}

.form-input.large {
  padding: 8px;
}

.form-textarea {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
  min-height: 60px;
}

.form-textarea.large {
  padding: 8px;
  min-height: 80px;
}

.form-select {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
}

/* Warning and hint text */
.warning-text {
  color: #b00;
  font-size: 0.95em;
  display: none;
  margin-top: 2px;
}

.warning-text.show {
  display: block;
}

.hint-text {
  font-size: 0.95em;
  color: #555;
  margin-top: 2px;
}

/* Generated HTML output */
.html-output {
  width: 100%;
  min-height: 90px;
  padding: 6px;
  font-family: monospace;
}

/* Button groups */
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.button-group.end {
  justify-content: flex-end;
}

.insert-content-btn {
  padding: 8px 16px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.copy-html-btn {
  padding: 8px 16px;
  background-color: var(--tertiary);
  color: var(--primary);
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Draft status info */
.draft-status-info {
  margin-bottom: 1rem;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #ffc107;
}

.draft-status-title {
  font-weight: 600;
  color: #856404;
  margin-bottom: 4px;
}

.draft-status-text {
  font-size: 0.9em;
  color: #856404;
}

/* Hidden content */
.hidden-content {
  display: none;
}

/* Image styles for content generation */
.content-image {
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-image.block {
  display: block;
  margin: 1em 0;
}

/* AOS animation wrapper */
.aos-wrapper {
  display: flex;
  justify-content: center;
  margin: 2em 0;
}

/* ==========================================================================
   ADDITIONAL EDITOR STYLES (from read/editor.php)
   ========================================================================== */

/* Editor header styles */
.editor-header-title {
  margin-bottom: 0;
}

.editor-header-btn {
  margin-bottom: 0.5rem;
}

.editor-header-link {
  text-decoration: none;
}

/* Mobile preview modal styles */
.modal-content.mobile-preview-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 400px;
  width: 90vw;
  padding: 1.5rem 0.5rem 2rem 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-preview-title {
  margin-top: 0;
  font-size: 1.1rem;
  text-align: center;
}

.mobile-preview-frame {
  width: 375px;
  max-width: 100vw;
  min-height: 600px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 1rem;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-preview-description {
  margin-top: 1rem;
  color: #888;
  font-size: 0.95em;
  text-align: center;
}

/* Product management modal styles */
.modal-content.product-management-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 95vw;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.product-management-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.product-search-filter {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.product-search-input {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.category-filter-select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.clear-filters-btn {
  padding: 8px 16px;
}

.selected-products-summary {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  display: none;
}

.selected-products-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.selected-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
}

.product-management-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Pagination styles */
.pagination-controls {
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-label {
  font-weight: 600;
}

.pagination-select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.pagination-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
}

.pagination-page-info {
  font-weight: 600;
  min-width: 120px;
  text-align: center;
}

.pagination-stats {
  color: #666;
  font-size: 0.9rem;
}

/* Underline text utility */
.underline-text {
  text-decoration: underline;
}

/* Selected product chip styles */
.selected-product-chip {
  background: var(--secondary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chip-remove-btn {
  cursor: pointer;
  font-weight: bold;
}

/* ==========================================================================
   POST EDITOR ADDITIONAL STYLES (from read/post-editor.php)
   ========================================================================== */

/* Post editor body styles */
body {
  font-family: "Raleway", sans-serif;
  scroll-behavior: smooth;
  color: #1d1d1b;
}

/* Founder image */
.founder-image {
  background-image: url("images/beatriz.png?v=2");
  background-size: cover;
  background-position: center;
}

/* Service card styles */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation link styles */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #C8A5AD;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Contact icon styles */
.contact-icon {
  transition: all 0.3s ease;
}

.contact-icon:hover {
  transform: scale(1.1);
  color: #C8A5AD;
}

/* FAQ styles */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #C8A5AD;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Testimonial card styles */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Quote icon styles */
.quote-icon {
  color: #C8A5AD;
  opacity: 0.2;
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* Animation styles */
.animate-pulse-slow {
  animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Background pattern */
.bg-pattern {
  background-image: radial-gradient(#C8A5AD 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: #F5F5F5;
  opacity: 0.3;
}

/* Editor field styles */
.editor-field {
  margin-bottom: 1.5rem;
}

.editor-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(200, 165, 173, 0.2);
}

.editor-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Editor actions */
.editor-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--hover-secondary, #b8919a);
}

.btn-secondary {
  background-color: var(--tertiary);
  color: var(--primary);
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #e8e8e8;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-danger:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Post selector styles */
.post-selector {
  margin-bottom: 2rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-selector label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.post-selector select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Editor mode indicator */
.editor-mode-indicator {
  background: linear-gradient(135deg, #C8A5AD, #b8919a);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.editor-mode-indicator::before {
  content: "✏️";
  font-size: 1rem;
}

/* WYSIWYG Editor Styles */
.wysiwyg-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  flex-wrap: wrap;
}

.toolbar-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.toolbar-btn:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.toolbar-btn.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: #ddd;
  margin: 0 0.25rem;
}

.wysiwyg-container {
  border: 1px solid #ddd;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.wysiwyg-editor {
  min-height: 300px;
  padding: 1rem;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--primary);
  background: white;
  outline: none;
  overflow-y: auto;
}

.wysiwyg-editor:focus {
  box-shadow: inset 0 0 0 2px rgba(200, 165, 173, 0.2);
}

.wysiwyg-editor h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: var(--primary);
  font-family: "Playfair Display", serif;
}

.wysiwyg-editor h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem 0;
  color: var(--primary);
  font-family: "Playfair Display", serif;
}

.wysiwyg-editor ul, .wysiwyg-editor ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.wysiwyg-editor li {
  margin: 0.5rem 0;
}

.wysiwyg-editor p {
  margin: 1rem 0;
  text-align: justify;
}

.wysiwyg-editor a {
  color: var(--secondary);
  text-decoration: underline;
}

.wysiwyg-editor a:hover {
  color: var(--hover-secondary, #b8919a);
}

.wysiwyg-editor strong {
  font-weight: 600;
}

.wysiwyg-editor em {
  font-style: italic;
}

.wysiwyg-editor u {
  text-decoration: underline;
}

/* Source mode styles */
.wysiwyg-editor.source-mode {
  font-family: monospace;
  font-size: 12px;
  background: #f8f9fa;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Source mode with rendered formatting */
.wysiwyg-editor.source-mode strong,
.wysiwyg-editor.source-mode b {
  font-weight: bold;
}

.wysiwyg-editor.source-mode em,
.wysiwyg-editor.source-mode i {
  font-style: italic;
}

.wysiwyg-editor.source-mode u {
  text-decoration: underline;
}

/* Allow inline styles to work in source mode */
/* .wysiwyg-editor.source-mode * - Empty rule removed */

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile first approach - base styles are mobile */
@media (min-width: 640px) {
  .heading-hero {
    font-size: 3.5rem;
  }
  
  .heading-hero-large {
    font-size: 4.5rem;
  }
  
  .container-main {
    padding: 0 1.5rem; /* sm:px-6 */
  }
  
  .hero-content {
    padding: 2rem 1.5rem 4rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .heading-hero {
    font-size: 4rem;
  }
  
  .heading-hero-large {
    font-size: 5rem;
  }
  
  .heading-hero-xl {
    font-size: 6rem;
  }
  
  .container-main {
    padding: 0 2rem; /* md:px-8 */
  }
  
  .hero-content {
    padding: 1.75rem 2rem 4rem 2rem;
  }
  
  .hero-content-top {
    padding-top: 8rem; /* md:pt-32 */
  }
  
  /* Gallery modal touch-friendly buttons */
  #gallery-modal-prev,
  #gallery-modal-next {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

@media (min-width: 1024px) {
  .hero-content-top {
    padding-top: 7rem; /* lg:pt-28 */
  }
  
  .sidebar-layout {
    flex-direction: row;
  }
  
  .sidebar {
    width: 25%; /* lg:w-1/4 */
  }
  
  .content-main {
    width: 75%; /* lg:w-3/4 */
  }
}

@media (min-width: 1200px) {
  .hero-content-top {
    padding-top: 5rem; /* xl:pt-20 */
  }
  
  .hero-section-bg {
    background: 
      linear-gradient(rgba(29,29,27,0.7), rgba(29,29,27,0.7)),
      url('/images/hero1.jpg') no-repeat center center fixed;
    background-size: cover;
  }
}

/* Responsive adjustments for about image */
@media (max-width: 1024px) {
  .hero-section-bg {
    background: 
      linear-gradient(rgba(29,29,27,0.7), rgba(29,29,27,0.7)),
      url('/images/hero1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}

@media (max-width: 768px) {
  .about-image {
    background-position: top center;
    background-size: cover;
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .about-image {
    background-position: top center;
    background-size: cover;
    min-height: 100vh;
  }
}

/* Read page responsive styles */
@media (max-width: 1100px) {
  .read-wrapper {
    max-width: 98vw;
    padding: 16px;
  }
  .read-left, .read-right {
    padding: 0;
  }
}

@media (max-width: 900px) {
  .read-wrapper {
    flex-direction: column;
    padding: 10px;
    gap: 18px;
  }
  .read-left {
    border: none;
    padding: 0;
    margin-bottom: 24px;
  }
  .read-right {
    padding: 0;
    margin-top: 0;
    overflow-y: visible;
  }
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
  #moodboard > div {
    max-width: 100vw;
  }
}

@media (max-width: 700px) {
  .img-text-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .img-text-row img,
  .img-text-row p {
    width: 100%;
    max-width: 100%;
  }
  .img-text-row p {
    text-align: left !important;
    min-height: unset;
    display: block;
    justify-content: unset;
  }
  .img-text-row img {
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 600px) {
  .read-wrapper {
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
  }
  #post-title {
    font-size: 1.2em;
    margin-bottom: 12px;
  }
  .product-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #moodboard > div {
    max-width: 100vw;
    padding: 0;
  }
  
  .insert-image {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .insert-image .promo-text {
    width: 100%;
  }
}