/* ========================================
   TOKIN'S ROOTS - MAIN WEBSITE CSS
   ========================================
   
   This is the main stylesheet for the Tokin's Roots website.
   Features include:
   - Responsive design with mobile-first approach
   - Karma font family integration throughout
   - Modern styling with animations and transitions
   - Clone list table styling with sticky headers
   - SEO-optimized typography and spacing
   - Background image integration
   
   EDITING INSTRUCTIONS:
   - Colors: Update CSS custom properties for brand colors
   - Typography: Modify font sizes and weights as needed
   - Layout: Adjust container widths and spacing
   - Animations: Customize transitions and hover effects
   - Clone table: Modify table styling and sticky header behavior
   
   FILE STRUCTURE:
   - Global styles and Karma font application
   - Header and navigation styling
   - Layout and container styles
   - Typography and text styling
   - Clone list table styling
   - Responsive design media queries
   
   Last Updated: [Current Date]
   ======================================== */

/* Refactored tokinsroots_responsive.css
 - Duplicate selectors merged
 - Duplicate properties removed within blocks
 - Original behavior preserved
 - Section headers added
*/

/* Global Karma font application */
* {
  font-family: 'Karma', serif;
}

body {
  font-family: 'Karma', serif;
}

@media (min-width: 900px){

}

@supports not (width: fit-content){

}

/* ===================== Header & Navigation ===================== */

.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-bottom: .75rem;
  padding: 0;
}

.nav a {
  text-decoration: none;
  color: #222;
  padding: .25rem .5rem;
  border-radius: .375rem;
}

.nav a:focus, .nav a:hover {
  background: #f3f4f6;
}

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

/* ===================== Layout & Containers ===================== */

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1rem;
}

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

#main > .inner {
  width: min(var(--page-max), 92vw) !important;
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 64px) clamp(16px, 4vw, 48px) !important;
}

#main > .inner > .full,
#main > .inner > .full.screen,
#main > .inner > * > .full,
#main > .inner > * > .full.screen {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  left: auto !important;
  right: auto !important;
}

.container.style2,
.container.style3 {
  border: none !important;
}

.container.style2 > .wrapper,
.container.style3 > .wrapper {
  max-width: var(--page-max) !important;
  margin: 0 auto !important;
}

.container.style2.columns > .wrapper > .inner,
.container.style3.columns > .wrapper > .inner {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 32px) !important;
  align-items: start;
}

.container.style2.columns > .wrapper > .inner,
  .container.style3.columns > .wrapper > .inner {
  grid-template-columns: 1fr 1fr !important;
}

#container03 .wrapper,
#container03 .wrapper > .inner {
  max-width: var(--page-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#container03 .wrapper > .inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: clamp(16px, 2vw, 32px) !important;
}

/* ===================== Typography ============================== */

section h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.price {
  font-weight: 600;
}

h1.style1, h2.style1, h3.style1, p.style1 {
  font-size: clamp(40px, 3.5vw, 55px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  text-align: center;
  margin-inline: auto;
}

h1.style4, h2.style4, h3.style4, p.style4 {
  font-size: clamp(40px, 3.5vw, 55px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  text-align: center;
  margin-inline: auto;
}

/* Left-align specific section headers */
#text27, #text58, #text24 {
  text-align: left !important;
  margin-inline: 0 !important;
}

/* Override container03 centering ONLY for these specific headers */
#container03 h3#text27,
#container03 h3#text58,
#container03 h3#text24 {
  text-align: left !important;
  margin-inline: 0 !important;
}

p.style2 {
  font-size: clamp(18px, 1.8vw, 24px) !important;
  line-height: 1.6 !important;
  max-width: 65ch;
  margin-inline: auto;
}

#container03 h1, #container03 h2, #container03 h3, #container03 p.style1 {
  text-align: center !important;
  margin-inline: auto !important;
}

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

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

.payment-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  display: block;
  border-radius: 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.878);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.payment-modal img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: calc(1.75rem - 2px);
}

.payment-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.payment-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===================== Buttons & Links ========================= */

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

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.lead {
  color: #4b5563;
  max-width: 65ch;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card .body {
  padding: .75rem .9rem;
  display: grid;
  gap: .5rem;
}

.btn {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: .6rem;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.btn.outline {
  background: transparent;
  color: #111;
}

.video .frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 1.75rem !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.878) !important;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.video .frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(1.75rem - 1px) !important;
}

.video .frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: all 0.2s ease;
}

.video .frame:hover::after {
  background: rgba(0, 0, 0, 0.6);
}

.video .frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(1.75rem - 1px) !important;
  position: absolute;
  top: 0;
  left: 0;
}

.video.is-active .frame::after {
  display: none;
}

#text02 ~
  #text02 ~ .image.style1 .frame > img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

#text02 ~ .image.style1 {
  display: inline-block;
  vertical-align: top;
  align-items: center;
  margin: 0.5rem;
}

#image03 .frame {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  max-width: var(--page-max);
  margin: 0 auto 1rem auto;
  overflow: hidden;
}

#image03 .frame > img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  object-position: center;
}

.image.style1 .frame {
  border-radius: 1.75rem !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.878) !important;
}

.image .frame > img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: calc(1.75rem - 1px) !important;
}

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

.icons li a {
  align-items: center;
  display: flex;
  justify-content: center;
}

.icons li a svg {
  display: block;
  pointer-events: none;
  position: relative;
}

.icons li a .label {
  display: none;
}

.icons.style1:not(:last-child) {
  margin-bottom: 2.625rem !important;
}

.icons.style1 li a {
  border-radius: 100%;
  height: 2em;
  width: 2em;
  transition: color 0.125s ease, background-color 0.125s ease, border-color 0.125s ease;
}

.icons.style1 li a svg {
  height: 60%;
  width: 60%;
  transition: fill 0.125s ease;
}

.icons.style1 a {
  background-color: #EE765E;
}

.icons.style1 a svg {
  fill: #FFFFFF;
}

.icons.style1 a:hover {
  background-color: #F7826A !important;
}

.image .frame,
.image.style1 .frame {
  width: 100% !important;
  height: auto !important;
  border: none !important;
  border-radius: 1.75rem !important;
  overflow: hidden;
}

.image .frame > img,
img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

#container03 .image.style1 {
  text-align: center !important;
}

#container03 .image.style1 .frame {
  margin-inline: auto !important;
}

#links01 a, #links02 a {
  color: var(--brand-green) !important;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Karma', sans-serif;
}

#links01 a:hover, #links01 a:focus,
#links02 a:hover, #links02 a:focus {
  text-decoration: underline;
}

a[href^="mailto:"] {
  color: #2e7d32 !important;
  text-decoration: none;
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus {
  color: #333333 !important;
  text-decoration: underline;
}

#text02 ~ .image.style1 .frame {
  max-width: 220px;
  margin: 0.5rem auto;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 1.75rem !important;
  overflow: hidden;
}

#text02 ~ .image.style1 .frame > img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
}

#text02 ~ .image.style1 .frame:hover {
  transform: scale(1.05);
}

/* ===================== Media (Images/Video) ==================== */

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

.video {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

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

section {
  padding: 2rem 0;
}

/* ===================== Footer ================================= */

.footer {
  border-top: 1px solid #eee;
  padding: 1rem 0 3rem;
  color: #6b7280;
  font-size: .95rem;
}

/* ===================== Utilities / Helpers ===================== */

.icons.style1 {
  font-size: 1.5em;
  gap: 1.375rem;
}

.icons.style1:not(:first-child) {
  margin-top: 2.625rem !important;
}

/* ===================== Misc / Other ============================= */

:root {
  --page-max: 1100px;
  --brand-green: #000000;
  --background-height: 100vh;
}

html, body {
  min-height: 100%;
}

body {
  position: relative;
  background-image: url('../assets/images/bg.jpg?v=8ca9de4e');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #FFFCFC;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
}

html {
  -webkit-text-size-adjust: 100%;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.center {
  text-align: center;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  letter-spacing: 0;
  padding: 0;
  list-style: none;
}

.icons li {
  position: relative;
  z-index: 1;
}

body::before {
  background-attachment: scroll;
  height: var(--background-height);
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 0;
  background-image: url('assets/images/bg.jpg?v=8ca9de4e');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #FFFCFC;
}

#links01, #links02 {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: .5rem 0 0 0;
  list-style: none;
  padding-left: 0;
  text-align: left;
  font-family: 'Karma', serif;
  font-size: 1.10em;
  font-weight: 600;
}

#links01 li, #links02 li {
  margin: .25rem 0;
  display: inline-block;
  margin-right: 1rem;
}

#links01 li a, #links02 li a {
  color: #19191A;
  text-decoration: underline;
  font-family: 'Karma', serif;
  font-size: 1.5em;
  font-weight: 600;
}

#links01 li a:hover, #links02 li a:hover {
  text-decoration: none;
}

/* ===================== Clone List Section ========================= */
/* 
   CLONE TABLE STYLING
   ===================
   
   This section styles the dynamic clone list table that displays
   clone inventory data from the admin panel.
   
   FEATURES:
   - Sticky headers that remain visible when scrolling
   - Scrollable container with fixed height (6 rows visible)
   - Hover effects and alternating row colors
   - Responsive design with horizontal scroll on mobile
   - Special styling for cost and description columns
   
   EDITING INSTRUCTIONS:
   - max-height: Change to show more/fewer rows (currently 640px for 6 rows)
   - Colors: Update background, border, and text colors
   - Spacing: Modify padding and margins as needed
   - Sticky behavior: Adjust z-index and backdrop-filter for header
   
   TECHNICAL NOTES:
   - Uses position: sticky for header behavior
   - backdrop-filter creates blur effect behind sticky header
   - overflow-y: auto enables vertical scrolling
   - overflow-x: auto enables horizontal scrolling on mobile
   ======================================== */

.clone-table-container {
  margin: 2rem 0;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Scrollable table - shows exactly 6 rows, then scrolls */
  max-height: 640px; /* Height for exactly 6 rows (doubled from 320px) */
  overflow-y: auto;
  position: relative;
}

.clone-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Karma', serif;
  font-size: 1em;
  color: #19191A;
}

.clone-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.clone-table th {
  background: rgba(15, 41, 7, 0.95);
  color: white;
  padding: 1rem 0.75rem;
  text-align: left;
  font-family: 'Karma', serif;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.clone-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  font-family: 'Karma', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

.clone-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.clone-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.clone-table .cost {
  font-family: 'Karma', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0E2907;
}

.clone-table .description {
  max-width: 300px;
  line-height: 1.5;
  font-family: 'Karma', serif;
  font-weight: 400;
}

.clone-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(15, 41, 7, 0.1);
  border-radius: 8px;
  border-left: 4px solid #0E2907;
}

.clone-info p {
  margin: 0;
  font-family: 'Karma', serif;
  font-size: 1.1em;
  line-height: 1.6;
}

/* ===================== Mobile Responsive Clone Table ========================= */
/* 
   MOBILE CARD LAYOUT
   ==================
   
   On smaller screens, transform the table into a card-based layout
   for better mobile user experience.
   
   BREAKPOINTS:
   - Tablet: 768px and below - Horizontal scroll with smaller fonts
   - Mobile: 480px and below - Card layout instead of table
   
   ======================================== */

/* Tablet styles - smaller fonts and horizontal scroll */
@media screen and (max-width: 768px) {
  .clone-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .clone-table th {
    font-size: 0.9rem;
    padding: 0.8rem 0.6rem;
  }
  
  .clone-table td {
    font-size: 1rem;
    padding: 0.8rem 0.6rem;
  }
  
  .clone-table .cost {
    font-size: 1.1rem;
  }
  
  .clone-table .description {
    max-width: 200px;
    font-size: 0.95rem;
  }
}

/* Removed conflicting mobile card styles - using the unified responsive system below */

.clone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(14, 41, 7, 0.3);
}

.clone-card-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0E2907;
  margin: 0;
}

.clone-card-cost {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0E2907;
  background: rgba(14, 41, 7, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.clone-card-details {
  display: grid;
  gap: 0.8rem;
}

.clone-card-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.clone-card-label {
  font-weight: 600;
  color: #0E2907;
  min-width: 100px;
  font-size: 0.95rem;
}

.clone-card-value {
  text-align: right;
  flex: 1;
  margin-left: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.clone-card-description {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clone-card-description .clone-card-label {
  margin-bottom: 0.5rem;
  display: block;
}

.clone-card-description .clone-card-value {
  text-align: left;
  margin-left: 0;
  font-style: italic;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* ===================== Payment Methods Responsive ========================= */
/* 
   PAYMENT METHODS MOBILE LAYOUT
   ==============================
   
   On mobile and tablet, stack payment method images vertically
   and center them instead of the inline layout used on desktop.
   
   ======================================== */

/* Tablet and Mobile - Stack payment images vertically */
@media screen and (max-width: 768px) {
  #text02 ~ .image.style1 {
    display: block !important;
    text-align: center !important;
    margin: 1rem auto !important;
    width: 100% !important;
  }
  
  #text02 ~ .image.style1 .frame {
    max-width: 200px !important;
    margin: 0 auto !important;
  }
}

/* Mobile - Smaller payment images */
@media screen and (max-width: 480px) {
  #text02 ~ .image.style1 .frame {
    max-width: 180px !important;
  }
}

.clone-info a {
  color: #0E2907;
  text-decoration: underline;
}

.clone-info a:hover {
  text-decoration: none;
}

/* === HTML Usage Map (class/id counts) ===
  .style1: 11
  .frame: 11
  .image: 8
  .style2: 5
  .p: 5
  .style4: 5
  .inner: 4
  .container: 3
  .full: 3
  .screen: 3
  .wrapper: 3
  .n01: 3
  .label: 3
  .video: 3
  .with-overlay: 3
  .player: 3
  .thumbnail: 3
  .default: 2
  .__cf_email__: 2
  .n02: 2
  .n03: 2
  .links: 2
  .is-loading: 1
  .style3: 1
  .columns: 1
  .icons: 1
  .payment-modal: 1
  .payment-modal-content: 1
  .payment-modal-close: 1
  #icon-85976685de3e4af37529a1ce5d57d2a7: 1
  #icon-c3c8e1063e3b7f84f6b54712741de139: 1
  #wrapper: 1
  #main: 1
  #home-section: 1
  #image03: 1
  #text21: 1
  #text53: 1
  #divider01: 1
  #container14: 1
  #text50: 1
  #image07: 1
  #text51: 1
  #container03: 1
  #text10: 1
  #image01: 1
  #text11: 1
  #icons02: 1
  #icons02-icon-1-title: 1
  #icons02-icon-2-title: 1
  #icons02-icon-3-title: 1
  #text02: 1
  #image08: 1
  #image02: 1
  #image04: 1
  #image05: 1
  #text27: 1
  #links01: 1
  #text58: 1
  #links02: 1
  #text24: 1
  #video01: 1
  #video02: 1
  #video03: 1
  #container11: 1
  #image10: 1
  #done-section: 1
  #paymentModal: 1
  #modalImage: 1
*/
/*
 ===================== Dynamic Table Styles ===================== */

/* Clone and Product Table Container */
.clone-table-container, .product-table-container {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
}

/* ========================================
   SCROLLABLE TABLE CONFIGURATION
   ========================================
   This controls when tables become scrollable.
   The JavaScript adds the 'scrollable' class when there are more items
   than the SCROLL_THRESHOLD (currently set to 3).
   
   To adjust the scroll height:
   - Change max-height value below
   - 400px shows approximately 4-5 rows
   - 600px shows approximately 6-7 rows
   ======================================== */

/* Scrollable table when more than SCROLL_THRESHOLD items */
.clone-table-container.scrollable, .product-table-container.scrollable {
  max-height: 400px; /* <-- EDIT THIS TO CHANGE SCROLL HEIGHT */
  overflow-y: auto;
  /* Removed border and box-shadow to match product table styling */
}

/* Enhanced scrollbar styling for scrollable tables */
.clone-table-container.scrollable::-webkit-scrollbar, 
.product-table-container.scrollable::-webkit-scrollbar {
  width: 12px;
}

.clone-table-container.scrollable::-webkit-scrollbar-track, 
.product-table-container.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

.clone-table-container.scrollable::-webkit-scrollbar-thumb, 
.product-table-container.scrollable::-webkit-scrollbar-thumb {
  background: #0E2907;
  border-radius: 6px;
}

.clone-table-container.scrollable::-webkit-scrollbar-thumb:hover, 
.product-table-container.scrollable::-webkit-scrollbar-thumb:hover {
  background: #1a4a0f;
}

/* Table styling */
.clone-table, #plant-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Karma', serif;
  background: #fff;
}

/* Table headers - ensure perfect alignment with cells */
.clone-table th, #plant-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 1rem; /* Match cell padding exactly */
  text-align: left;
  border-bottom: 2px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 5;
  box-sizing: border-box; /* Ensure consistent box model */
  vertical-align: top; /* Match cell alignment */
}

/* Table cells - ensure perfect alignment with headers */
.clone-table td, #plant-table td {
  padding: 1rem; /* Match header padding exactly */
  border-bottom: 1px solid #e9ecef;
  color: #555;
  vertical-align: top;
  box-sizing: border-box; /* Ensure consistent box model */
  text-align: left; /* Match header alignment */
}

/* Table rows */
.clone-table tr, #plant-table tr {
  transition: background-color 0.2s ease;
}

.clone-table tr:hover, #plant-table tr:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Special cell styling */
.clone-table .loading, .clone-table .error, .clone-table .empty,
#plant-table .loading, #plant-table .error, #plant-table .empty {
  text-align: center;
  padding: 2rem;
  font-style: italic;
  color: #666;
}

.clone-table .error, #plant-table .error {
  color: #dc3545;
}

/* ===================== Item Detail Modal Styles ===================== */

/* Modal overlay */
.item-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* Modal content - styled to match mobile cards */
.item-modal-content {
  background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%);
  border-radius: 1.75rem; /* Match site's rounded corners */
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid #e9ecef;
  font-family: 'Karma', serif;
}

.item-modal.show .item-modal-content {
  transform: scale(1);
}

/* Add top accent bar like mobile cards */
.item-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0E2907, #4caf50, #0E2907);
  border-radius: 1.75rem 1.75rem 0 0;
}

/* Modal close button */
.item-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e9ecef;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.item-modal-close:hover {
  background: #0E2907;
  color: #fff;
  border-color: #0E2907;
  transform: scale(1.1);
}

/* Modal body */
.item-modal-body {
  padding: 2.5rem;
  padding-top: 3rem; /* Extra space for accent bar */
}

.item-modal-body h3 {
  margin: 0 0 2rem 0;
  color: #0E2907;
  font-size: 1.8rem;
  font-weight: 700;
  padding-right: 3rem; /* Space for close button */
  text-align: center;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 1rem;
}

/* Modal detail rows - styled like mobile cards */
.modal-item-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  border: 1px solid rgba(14, 41, 7, 0.1);
  transition: all 0.2s ease;
}

.modal-detail-row:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 41, 7, 0.2);
  transform: translateX(5px);
}

.modal-label {
  font-weight: 700;
  color: #0E2907;
  min-width: 120px;
  flex-shrink: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-detail-row span:last-child {
  color: #333;
  flex: 1;
  font-weight: 500;
  line-height: 1.6;
}

/* Special styling for cost in modal */
.modal-detail-row:has(.modal-label:contains("Cost")) span:last-child,
.modal-detail-row span:last-child:contains("$") {
  font-weight: 700;
  color: #0E2907;
  font-size: 1.2rem;
}

/* ===================== Payment Modal Styles ===================== */

/* Payment method modal */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.payment-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.payment-modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.payment-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

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

/* ===================== Mobile Responsive Styles ===================== */

@media (max-width: 768px) {
  /* Mobile cards - NO SCROLLING, full display */
  .clone-table-container, .product-table-container {
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 1rem auto; /* Center the container */
    max-width: 100%;
    width: 100%;
    max-height: none !important; /* Remove any height restrictions */
    overflow: visible !important; /* No scrolling on mobile */
  }
  
  /* Remove scrollable class effects on mobile */
  .clone-table-container.scrollable, .product-table-container.scrollable {
    max-height: none !important;
    overflow: visible !important;
    /* Border and box-shadow already removed from desktop scrollable styling */
  }
  
  /* Hide table headers on mobile */
  .clone-table thead, #plant-table thead {
    display: none;
  }
  
  /* Convert table structure to card layout */
  .clone-table, #plant-table {
    display: block;
    width: 100%;
    background: transparent;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .clone-table tbody, #plant-table tbody {
    display: block;
    gap: 1rem;
    max-height: none !important;
    overflow: visible !important;
  }
  
  /* Create beautiful wider mobile cards with better sizing and centering */
  .clone-table tbody tr, #plant-table tbody tr {
    display: block !important;
    background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 1rem !important;
    margin: 0 auto 1rem auto !important; /* Center the cards */
    padding: 1.5rem !important; /* Increased padding for wider cards */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(100% - 1rem) !important; /* Wider cards with less margin */
    max-width: calc(100% - 1rem) !important;
    box-sizing: border-box;
    font-family: 'Karma', serif;
    position: relative;
    overflow: hidden;
  }
  
  /* Ensure ALL mobile cards have consistent styling regardless of position */
  .clone-table tbody tr:nth-child(1), #plant-table tbody tr:nth-child(1),
  .clone-table tbody tr:nth-child(2), #plant-table tbody tr:nth-child(2),
  .clone-table tbody tr:nth-child(3), #plant-table tbody tr:nth-child(3),
  .clone-table tbody tr:nth-child(4), #plant-table tbody tr:nth-child(4),
  .clone-table tbody tr:nth-child(5), #plant-table tbody tr:nth-child(5),
  .clone-table tbody tr:nth-child(n) {
    background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
  }
  
  /* Add subtle pattern overlay */
  .clone-table tbody tr::before, #plant-table tbody tr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0E2907, #4caf50, #0E2907);
    opacity: 0.8;
  }
  
  .clone-table tbody tr:hover, #plant-table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(14, 41, 7, 0.15);
    border-color: #0E2907;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
  }
  
  .clone-table td, #plant-table td {
    display: block !important;
    padding: 0.5rem 0; /* Reduced padding for mobile */
    border: none;
    text-align: left;
    width: 100%;
    line-height: 1.5;
    word-wrap: break-word; /* Handle long text better */
  }
  
  /* Style the field labels */
  .clone-table td::before, #plant-table td::before {
    content: attr(data-label) ': ';
    font-weight: 700;
    color: #0E2907;
    display: inline-block;
    min-width: 120px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Style the field values */
  .clone-table td, #plant-table td {
    color: #333;
    font-weight: 500;
  }
  
  /* Special styling for cost fields */
  .clone-table td[data-label*="Cost"], #plant-table td[data-label*="Cost"] {
    font-weight: 700;
    color: #0E2907;
    font-size: 1.1rem;
  }
  
  /* Special styling for name/title fields */
  .clone-table td:first-child, #plant-table td:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0E2907;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .clone-table td:first-child::before, #plant-table td:first-child::before {
    display: none; /* Hide label for title field */
  }
  
  /* Hide table headers on mobile */
  .clone-table thead, #plant-table thead {
    display: none;
  }
  
  /* Modal adjustments for mobile */
  .item-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .item-modal-body {
    padding: 1.5rem;
  }
  
  .modal-detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .modal-label {
    min-width: auto;
    font-size: 0.9rem;
  }
  
  /* Payment modal mobile adjustments */
  .payment-modal-content {
    max-width: 95%;
    max-height: 85%;
  }
}

/* ===================== Header Text Alignment ===================== */

/* Main section headers (style1) should be centered */
.style1 {
  text-align: center !important;
}

/* Clone Menu header should be centered like other main section headers */
#clone-list-header {
  text-align: center !important;
}

/* Subsection headers (style4) should be left-aligned */
.style4 {
  text-align: left !important;
}

/* IMPORTANT: These rules must come AFTER the container03 rule to override it */
/* Override container03's center alignment for specific headers that should be left-aligned */
#container03 h3#text27,
#container03 h3#text58, 
#container03 h3#text24 {
  text-align: left !important;
}

/* Additional specificity for left-aligned headers */
h3#text27, h3#text58, h3#text24 {
  text-align: left !important;
}

/* ===================== Scrollbar Styling ===================== */

/* Custom scrollbar for table containers */
.clone-table-container::-webkit-scrollbar, 
.product-table-container::-webkit-scrollbar {
  width: 8px;
}

.clone-table-container::-webkit-scrollbar-track, 
.product-table-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.clone-table-container::-webkit-scrollbar-thumb, 
.product-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.clone-table-container::-webkit-scrollbar-thumb:hover, 
.product-table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ===================== Loading and Error States ===================== */

/* Loading animation */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Error styling */
.error {
  background-color: #f8d7da !important;
  color: #721c24 !important;
  border-left: 4px solid #dc3545 !important;
}

/* Empty state styling */
.empty {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  font-style: italic;
}

/* ===================== Accessibility Improvements ===================== */

/* Focus styles for keyboard navigation */
.clone-table tr:focus, #plant-table tr:focus,
.item-modal-close:focus, .payment-modal-close:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .clone-table, #plant-table {
    border: 2px solid #000;
  }
  
  .clone-table th, #plant-table th {
    background: #000;
    color: #fff;
  }
  
  .clone-table td, #plant-table td {
    border-bottom: 1px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .item-modal, .payment-modal,
  .item-modal-content, .payment-modal-content,
  .clone-table tr, #plant-table tr {
    transition: none;
  }
  
  .loading {
    animation: none;
  }
}
/*
 ===================== FINAL OVERRIDE - LEFT ALIGN HEADERS ===================== */
/* This rule MUST be at the end of the file to override all other rules */

/* Force left alignment for specific headers - FINAL OVERRIDE */
#text27,
#text58, 
#text24,
h3#text27,
h3#text58,
h3#text24,
#container03 #text27,
#container03 #text58,
#container03 #text24,
#container03 h3#text27,
#container03 h3#text58,
#container03 h3#text24 {
  text-align: left !important;
}

/* Additional nuclear option - target by content */
/* Note: :contains() is not a valid CSS selector, removed */
/* NUCLEAR OPTION - Use attribute selectors for maximum specificity */
h3[id="text27"],
h3[id="text58"],
h3[id="text24"] {
  text-align: left !important;
}

/* Even more nuclear - combine everything */
#container03 h3[id="text27"],
#container03 h3[id="text58"],
#container03 h3[id="text24"] {
  text-align: left !important;
}
/* Mobile layout should work with original theme */

/* ==================== FORCE LEFT ALIGN CLASS ===================== */
/* Added by JavaScript for headers that must be left-aligned */
.force-left-align,
h3.force-left-align,
#container03 .force-left-align,
#container03 h3.force-left-align {
  text-align: left !important;
}

/* Desktop layout should work with original theme *//*
 ===================== MOBILE CARD BACKGROUND FIX ===================== */
/* Aggressive fix for mobile card background consistency */

@media (max-width: 768px) {
  /* Force consistent background for mobile cards - include all table selectors */
  .clone-table tbody tr,
  #plant-table tbody tr,
  .product-table-container tbody tr {
    background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%) !important;
    background-color: #FFFCFC !important;
  }
  
  /* Override any alternating row colors or hover states that might interfere */
  .clone-table tbody tr:nth-child(even),
  #plant-table tbody tr:nth-child(even),
  .product-table-container tbody tr:nth-child(even),
  .clone-table tbody tr:nth-child(odd),
  #plant-table tbody tr:nth-child(odd),
  .product-table-container tbody tr:nth-child(odd) {
    background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%) !important;
    background-color: #FFFCFC !important;
  }
  
  /* Ensure hover states still work but maintain background */
  .clone-table tbody tr:hover,
  #plant-table tbody tr:hover,
  .product-table-container tbody tr:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%) !important;
  }
}

/* ===================== FINAL TARGETED HEADER FIX ===================== */
/* This rule targets ONLY the 3 specific headers and overrides ALL other rules */

/* Maximum specificity for the 3 specific headers only */
#container03 h3#text27,
#container03 h3#text58,
#container03 h3#text24 {
  text-align: left !important;
  margin-inline: 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}/* ====
================= RESTORED ORIGINAL LAYOUT BEHAVIOR ===================== */
/* All layout overrides removed - original theme should handle centering *//* 
===================== MOBILE CENTERING AND ALIGNMENT FIX ===================== */
@media (max-width: 768px) {
  /* Fix mobile page centering and prevent right bleed */
  body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  #main > .inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }
  
  /* Ensure main containers are properly centered on mobile - more specific */
  .style2.container, .style3.container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Don't add extra padding to table containers */
  .clone-table-container, .product-table-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Specific fix for container03 on mobile */
  #container03 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  #container03 .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
  }
  
  #container03 .inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  
  /* Ensure product table containers are properly aligned */
  .product-table-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Make both clone and product cards wider and identical */
  .clone-table tbody tr, 
  #plant-table tbody tr,
  .product-table-container tbody tr,
  .product-table-container .clone-table tbody tr,
  .product-table-container #plant-table tbody tr {
    display: block !important;
    background: linear-gradient(135deg, #FFFCFC 0%, #f8f9fa 100%) !important;
    border: 2px solid #e9ecef !important;
    border-radius: 1rem !important;
    margin: 0 auto 1rem auto !important;
    padding: 1.5rem !important; /* Increased padding for wider cards */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
    width: calc(100% - 1rem) !important; /* Wider cards with less margin */
    max-width: calc(100% - 1rem) !important;
    box-sizing: border-box !important;
    font-family: 'Karma', serif;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  /* Ensure table cells in both clone and product cards are styled consistently */
  .clone-table td, 
  #plant-table td,
  .product-table-container td {
    display: block !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    text-align: left !important;
    width: 100% !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
  }
  
  /* Style the field labels consistently */
  .clone-table td::before, 
  #plant-table td::before,
  .product-table-container td::before {
    content: attr(data-label) ': ' !important;
    font-weight: 700 !important;
    color: #0E2907 !important;
    display: inline-block !important;
    min-width: 120px !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }
  /* Add accent bar to both clone and product cards */
  .clone-table tbody tr::before, 
  #plant-table tbody tr::before,
  .product-table-container tbody tr::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #0E2907, #4caf50, #0E2907) !important;
    opacity: 0.8 !important;
  }
  
  /* Hover effects for both clone and product cards */
  .clone-table tbody tr:hover, 
  #plant-table tbody tr:hover,
  .product-table-container tbody tr:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 30px rgba(14, 41, 7, 0.15) !important;
    border-color: #0E2907 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%) !important;
  }
  
  /* Special styling for cost fields in both tables */
  .clone-table td[data-label*="Cost"], 
  #plant-table td[data-label*="Cost"],
  .product-table-container td[data-label*="Cost"] {
    font-weight: 700 !important;
    color: #0E2907 !important;
    font-size: 1.1rem !important;
  }
  
  /* Special styling for name/title fields in both tables */
  .clone-table td:first-child, 
  #plant-table td:first-child,
  .product-table-container td:first-child {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0E2907 !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid #e9ecef !important;
  }
  
  .clone-table td:first-child::before, 
  #plant-table td:first-child::before,
  .product-table-container td:first-child::before {
    display: none !important; /* Hide label for title field */
  }
}

/* ===================== DESKTOP TABLE ALIGNMENT FIX ===================== */
@media (min-width: 769px) {
  /* Ensure perfect header and cell alignment on desktop */
  .clone-table, #plant-table {
    table-layout: auto; /* Let columns size naturally based on content */
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
  }
  
  /* Ensure headers and cells have identical styling */
  .clone-table th, #plant-table th,
  .clone-table td, #plant-table td {
    padding: 1rem;
    text-align: left; /* All columns left-aligned */
    vertical-align: top;
    box-sizing: border-box;
    border: none;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ensure table containers don't interfere with alignment */
  .clone-table-container, .product-table-container {
    width: 100%;
    overflow-x: auto;
    border-collapse: separate;
  }
  
  /* Remove any potential spacing issues */
  .clone-table thead tr, #plant-table thead tr,
  .clone-table tbody tr, #plant-table tbody tr {
    margin: 0;
    padding: 0;
  }
}