/* ==========================================================================
   1. TABLE CONTAINER LAYOUT & SPACE ADJUSTMENT
   ========================================================================== */

/* Acts as an invisible cushion that separates card boxes within table columns */
.table-col-spacer {
  padding: 0 15px; /* Adds 15px space on the left and right of every card (Total gap = 30px) */
  box-sizing: border-box;
}

/* Provides enough top clearance for the absolute position Best Seller badge */
table[width="100%"] {
  padding-top: 20px; 
  box-sizing: border-box;
}

/* ==========================================================================
   2. PRODUCT CARD BASE STYLING
   ========================================================================== */
.product-card {
  width: 100% !important; /* Forces cards to follow column width after spacer padding is deducted */
  background: #ffffff;
  border: 2px solid #008080; /* Teal border accent */
  border-radius: 12px;
  overflow: visible; /* CRITICAL: Allows absolute top badges to display without clipping */
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 35px !important; 
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  z-index: 3; /* Brings the hovered card to the absolute front layer */
}

/* ==========================================================================
   3. BEST SELLER HIGHLIGHT EXTENSION
   ========================================================================== */
.best-seller-card {
  border: 3px solid #f39c12; /* Golden orange accent border for visual emphasis */
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.15);
}

.best-seller-card:hover {
  transform: translateY(-8px); /* Lifts the highlighted card slightly higher on hover */
}

/* Top ribbon badge layout for the Best Seller option */
.badge-best-seller {
  position: absolute;
  top: -16px; 
  left: 50%;
  transform: translateX(-50%);
  background: #f39c12;
  color: #fff;
  font-weight: bold;
  padding: 5px 20px; 
  border-radius: 20px;
  font-size: 0.85rem; /* UNCHANGED: Preserves original text scale */
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. CARD IMAGE FRAME (COMPACT HEIGHT)
   ========================================================================== */
.card-image-wrapper {
  width: 100%;
  height: 140px; /* SHRUNK: Directly shortens the layout box height by reducing the photo frame */
  overflow: hidden;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Removes baseline whitespace tracking gaps below images */
}

/* ==========================================================================
   5. CARD INNER CONTENT & TYPOGRAPHY
   ========================================================================== */
.card-content {
  padding: 16px; /* COMPACT: Shaves internal empty padding to keep the box slim and tight */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.card-title {
  font-size: 2rem; /* UNCHANGED */
  color: #2c3e50;
  margin: 0 0 10px 0; 
  font-weight: 700;
  min-height: 54px; /* Keeps headers aligned across varying dynamic content length strings */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Price Layout Area */
.card-price-section {
  margin-bottom: 12px; 
}

.currency {
  font-size: 1.6rem; /* UNCHANGED */
  font-weight: 700;
  color: #d32f2f;
  vertical-align: top;
  position: relative;
  top: 4px;
}

.price-prod-amount {
  font-size: 2.8rem; /* UNCHANGED */
  font-weight: 800;
  color: #d32f2f;
}

.price-period {
  font-size: 0.9rem; /* UNCHANGED */
  color: #7f8c8d;
}

.price-tax {
  font-size: 0.85rem; /* UNCHANGED */
  color: #7f8c8d;
  margin-top: 2px;
  font-weight: 500;
}

/* ==========================================================================
   6. LIST FEATURES (CHECKMARKS)
   ========================================================================== */
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0; 
  text-align: left;
  flex-grow: 1;
}

.card-features li {
  position: relative;
  padding-left: 28px; 
  margin-bottom: 8px; /* Tightened individual margin line gaps */
  color: #34495e;
  font-size: 1.5rem; /* UNCHANGED */
  line-height: 1.3;
}

/* Automated dynamic green checkmark injections */
.card-features li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: -1px;
  color: #27ae60;
  font-weight: 900;
  font-size: 1.1rem; /* UNCHANGED */
}

.card-features li.highlight-feature {
  font-weight: bold;
  color: #2c3e50;
}

/* ==========================================================================
   7. CALL TO ACTION BUTTONS
   ========================================================================== */
.btn-card {
  display: block;
  width: 100%;
  padding: 10px 0; /* Slimmed down button thickness padding */
  background: #008080;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.05rem; /* UNCHANGED */
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.btn-card:hover {
  background: #006666;
}

/* High-Converting WhatsApp CTA Styling override */
.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #1ebd58;
}

/* Trust Metric Footer Elements */
.card-rating {
  margin-top: 8px; 
  font-size: 0.9rem; /* UNCHANGED */
  font-weight: 700;
  color: #f39c12;
}

.review-count {
  color: #7f8c8d;
  font-weight: normal;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINT FOR MOBILE DEVICES
   ========================================================================== */
@media (max-width: 768px) {
  /* Forces legacy table rows and columns to stack vertically cleanly on smartphone viewports */
  table[width="100%"] tr, 
  table[width="100%"] td {
    display: block !important;
    width: 100% !important;
    float: none !important;
  }
  
  .table-col-spacer {
    padding: 0 0 35px 0; /* Replaces desktop side spaces with clean gaps between cards when stacked vertically */
  }
  
  .product-card {
    max-width: 400px;
    margin: 0 auto;
    transform: none !important; /* Disables lift translations on touch tracking layers to keep interface fluid */
  }

  .best-seller-card:hover {
    transform: none !important; 
  }
}

/* ==========================================================================
   FORCED SIDE-BY-SIDE BUTTON CONTAINER STYLES
   ========================================================================== */

.card-btn-container {
  /* Using CSS Grid bypasses link blocks and forces a strict two-column layout */
  display: grid !important;
  grid-template-columns: 1fr 1fr !important; 
  column-gap: 8px !important; /* Forces a clean, narrow space gap between them */
  
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 12px !important; /* Keeps button edges away from the card boundary lines */
  margin: 15px 0 0 0 !important; 
  box-sizing: border-box !important;
  clear: both !important;
}

/* Base button styling shared by both links */
.btn-base {
  display: block !important; /* Grid manages row behavior, buttons just fill their grid cell slot */
  width: 100% !important; 
  max-width: 100% !important;
  padding: 10px 0 !important; /* Balanced vertical breathing room */
  
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 1.2rem !important; /* Safeguards small monitors from text line wraps */
  font-weight: 700 !important;
  text-decoration: none !important;
  text-align: center !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important; /* Keeps the label text strictly on one horizontal line */
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

/* 1. TEAL "BOOK NOW" STYLING RULES */
.btn-book-now {
  background-color: #008080 !important; 
  color: #ffffff !important;
  border: 1px solid #006666 !important;
  float: none !important; /* Erases any lingering layout drifts */
}

.btn-book-now:hover {
  background-color: #006666 !important; 
}

/* 2. WHITE/GREEN "WHATSAPP" STYLING RULES */
.btn-whatsapp-cta {
  background-color: #ffffff !important; 
  color: #25D366 !important; 
  border: 2px solid #25D366 !important; 
  float: none !important;
}

.btn-whatsapp-cta:hover {
  background-color: #25D366 !important; 
  color: #ffffff !important;
}

/* Clean, balanced alignment rule for the WhatsApp phone symbol */
.wa-icon {
  margin-right: 4px !important; 
  font-size: 0.95rem !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Micro click animation for touch interaction feedback */
.btn-base:active {
  transform: scale(0.97) !important;
}


