/*
Theme Name: Nutrition Expert
Theme URI: https://nutritionexperts.co.th
Author: Nutrition Experts Co., Ltd.
Author URI: https://nutritionexperts.co.th
Description: A modern WordPress theme for Nutrition Experts with WooCommerce support
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nutrition-expert
Tags: e-commerce, food-and-drink, health-wellness, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. Reset and Base Styles
   2. Typography Utilities
   3. Header Styles
   4. Hero Section
   5. About Section
   6. Awards Section
   7. Products Section
   8. Partners Section
   9. Footer
   10. Modal Styles
   11. Responsive Design
   12. WooCommerce Compatibility
   13. Product Archive Page Styles
   14. Utility Styles
   15. Print Styles
   ========================================================================== */

/* ==========================================================================
   1. RESET AND BASE STYLES
   ========================================================================== */

:root {
  /* Brand Colors */
  --deep-navy-color: #003758;
  --deep-navy-dark: #003e66;
  --deep-navy-darker: #003d5c;
  --deep-navy-darkest: #002840;
  --pastel-blue-color: #739bb4;
  --primary-color: #0294cf;
  --primary-color-dark: #027ab3;
  --primary-color-light: #0077be;

  /* Background Colors */
  --background-color: #f6f7f8;
  --background-light: #f9f9f9;
  --background-lighter: #f8f9fa;
  --background-lightest: #fbece3;
  --background-blue-light: #c3edff;
  --white-color: #ffffff;
  --white-transparent: rgba(255, 255, 255, 0.15);
  --white-transparent-90: rgba(255, 255, 255, 0.9);

  /* Text Colors */
  --charcoal-color: #1e1e1e;
  --black-color: #0f1113;
  --coal-color: #374151;
  --text-dark: #333;
  --text-medium: #495057;
  --text-light: #666;
  --text-lighter: #6b7280;
  --text-muted: #999999;
  --text-disabled: #aaa;
  --text-blue: #014876;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #e5e7eb;
  --gray-500: #6c757d;
  --gray-600: #2c3e50;
  --gray-light: #f1f1f1;
  --divider-color: #dddddd;

  /* Accent Colors */
  --orange-primary: #ff8c00;
  --orange-dark: #ff6b00;
  --orange-darker: #fc660a;
  --orange-darkest: #ff4500;
  --yellow-primary: #f8bb37;
  --gold-color: #ffd700;
  --black-pure: #000;

  /* Status Colors */
  --success-color: #198754;
  --success-bg: #d1edff;
  --success-border: #bee5eb;
  --success-text: #0c5460;
  --error-color: #dc3545;

  /* Shadow & Overlay */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --overlay-dark: rgba(0, 0, 0, 0.8);
  --overlay-blue: rgba(0, 119, 190, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Prompt",
    "Noto Sans Thai",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif !important;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
  background-color: var(--background-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
.font-script {
  font-family: "Vujahday Script", cursive;
}

/* ==========================================================================
   2. HEADER STYLES
   ========================================================================== */

/* Landing Page Header (Fixed/Transparent) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom {
  background: var(--white-transparent) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 80px;
  padding: 0;
}

.navbar-brand {
  padding: 0;
}

.navbar-logo {
  height: 50px;
  width: auto;
}

.navbar-brand-text {
  color: var(--gray-50);
  font-size: 24px;
  font-weight: 700;
}

/* Navigation Links */
.navbar-nav .nav-link {
  color: var(--gray-50) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  padding: 10px 20px !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > .nav-link {
  color: var(--deep-navy-dark) !important;
}

/* Cart Link */
.cart-link {
  position: relative;
  font-size: 20px !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.cart-link:hover {
  background: none;
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  background: var(--orange-dark);
  color: var(--white-color);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================================
   CART POPUP OFFCANVAS
   ========================================================================== */

/* Offcanvas Container */
.cart-popup {
  width: 461px !important;
  padding: 15px;
  max-width: 100%;
  background-color: #ffffff;
}

.cart-popup .offcanvas-header {
  height: 77px;
  border-bottom: 1px solid #d9e4eb;
  padding: 0;
}

.btn-close-cart-popup {
  position: absolute;
  top: 15px;
  left: 15px;
}

.cart-popup .offcanvas-title {
  font-size: 24px;
  font-weight: 400;
  color: #000;
}

.offcanvas-body {
  padding: 0;
  overflow-y: inherit;
}

.cart-popup .offcanvas-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-popup-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-items-wrapper {
  flex: 1;
  overflow-y: auto;
  border-bottom: 1px solid #d9e4eb;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #d9e4eb;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  flex-shrink: 0;
  width: 151.11px;
  height: 170px;
  overflow: hidden;
  /* border-radius: 8px; */
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #1e1e1e;
  margin: 0 0 10px 0;
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-quantity,
.cart-item-price {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: #1e1e1e;
}

/* Quantity Selector */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 4px 8px;
  width: fit-content;
}

.qty-btn {
  background: none;
  border: none;
  color: #1e1e1e;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  user-select: none;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: #003758;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-btn:disabled {
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.qty-input {
  width: 40px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
  padding: 0;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: none;
}

.cart-item-remove {
  position: absolute;
  bottom: 0;
  right: 0;
  background: none;
  border: none;
  color: #1e1e1e;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  line-height: 1;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #2a2a2a;
}

.cart-item-remove svg {
  display: block;
  width: 20px;
  height: 20px;
}

.cart-item.removing,
.cart-item.updating {
  opacity: 0.6;
  pointer-events: none;
}

/* Cart Empty/Loading States */
.cart-empty,
.cart-loading,
.cart-error {
  padding: 40px 20px;
  text-align: center;
}

.cart-empty p,
.cart-error p {
  color: var(--text-medium);
  margin: 0;
}

/* Cart Popup Footer */
.cart-popup-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 20px;
  background-color: #ffffff;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
}

.cart-total-label {
  color: #1e1e1e;
}

.cart-total-amount {
  color: #1e1e1e;
  font-weight: 500;
}

.cart-popup-actions {
  width: 100%;
  padding: 15px 0;
  border-top: 1px solid #d9e4eb;
}

.cart-popup-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

/* Cart Buttons */
.btn-cart-view,
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 15px;
  border-radius: 29px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #003758;
  white-space: nowrap;
}

.btn-cart-view {
  background-color: transparent;
  color: #003758;
}

.btn-cart-view:hover {
  background-color: #003758;
  color: #ffffff;
}

.btn-checkout {
  background-color: #003758;
  color: #ffffff;
}

.btn-checkout:hover {
  background-color: #002840;
  border-color: #002840;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .cart-popup {
    width: 90vw !important;
  }

  .cart-item-image {
    width: 100px;
    height: 113px;
  }

  .cart-item-name {
    font-size: 18px;
  }

  .cart-item-quantity,
  .cart-item-price {
    font-size: 16px;
  }

  .cart-total {
    font-size: 20px;
  }

  .btn-cart-view,
  .btn-checkout {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .cart-popup {
    width: 100vw !important;
  }

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .cart-popup-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-cart-view,
  .btn-checkout {
    font-size: 14px;
    padding: 12px 15px;
  }
}

/* ==========================================================================
   SHOP NAVBAR (Not Fixed/Sticky - White Background)
   ========================================================================== */

.site-header-shop {
  position: relative;
  background: var(--white-color);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.navbar-shop {
  background: var(--white-color) !important;
  min-height: 80px;
  padding: 0;
}

.navbar-shop .navbar-brand {
  padding: 10px 0;
}

.navbar-logo-shop {
  height: 48.31px;
  width: auto;
  /* max-width: 200px; */
  object-fit: contain;
}

/* Bootstrap utility override for smaller font size */
.fs-7 {
  font-size: 0.75rem !important;
}

/* Shop Navigation Links */
.navbar-shop .navbar-nav .nav-link {
  color: var(--coal-color) !important;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 20px !important;
  transition: all 0.3s ease;
  position: relative;
  text-transform: none;
}

.navbar-shop .navbar-nav .nav-link:hover,
.navbar-shop .navbar-nav .nav-link:focus,
.navbar-shop .navbar-nav .nav-link.active,
.navbar-shop .navbar-nav .current-menu-item > .nav-link,
.navbar-shop .navbar-nav .current-menu-parent > .nav-link {
  color: var(--deep-navy-dark) !important;
}

/* Shop Cart Link */
.navbar-shop .cart-link {
  position: relative;
  font-size: 22px !important;
  color: var(--coal-color) !important;
  padding: 10px 15px !important;
  min-width: 50px;
}

.navbar-shop .cart-link:hover,
.navbar-shop .cart-link:focus {
  color: var(--deep-navy-dark) !important;
}

/* .navbar-shop .cart-count {
  font-size: 10px;
  padding: 2px 6px;
  min-width: 18px;
  height: 18px;
  line-height: 14px;
} */

/* Dropdown Menu for Shop */
.navbar-shop .dropdown-menu {
  background: var(--white-color);
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  margin-top: 8px;
}

.navbar-shop .dropdown-item {
  color: var(--coal-color);
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.navbar-shop .dropdown-item:hover,
.navbar-shop .dropdown-item:focus {
  background-color: var(--gray-100);
  color: var(--deep-navy-dark);
}

/* Mobile Toggler for Shop Navbar */
.navbar-shop .navbar-toggler {
  border-color: rgba(55, 65, 81, 0.3);
  padding: 8px 12px;
}

.navbar-shop .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(55, 65, 81, 0.25);
}

.navbar-shop .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* Responsive for Shop Navbar */
@media (max-width: 991px) {
  .navbar-shop .navbar-collapse {
    background: var(--white-color);
    /* padding: 20px; */
    /* margin-top: 10px; */
    /* border-radius: 8px; */
    /* box-shadow: var(--shadow-md); */
  }

  .navbar-shop .navbar-nav {
    gap: 5px;
  }

  /* .navbar-shop .navbar-nav .nav-link {
    padding: 12px 15px !important;
    border-radius: 6px;
  } */

  .navbar-shop .navbar-nav .nav-link:hover {
    background-color: var(--gray-100);
  }

  .navbar-logo-shop {
    height: 50px;
  }

  .navbar-shop .cart-link {
    justify-content: flex-start !important;
  }
}

@media (max-width: 575px) {
  .navbar-logo-shop {
    height: 45px;
    max-width: 150px;
  }

  .navbar-shop {
    min-height: 70px;
  }
}

/* Mobile Toggle */
.navbar-toggler {
  border-color: var(--gray-50);
  padding: 8px 12px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(249, 250, 251, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */

.hero-section {
  background-image:
    url("./assets/images/bg2.png"), url("./assets/images/bg1.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--white-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 119, 190, 0.3);
  z-index: 1;
}

/* Hero Section Utilities */
.hero-overlay-bg {
  background: var(--overlay-blue);
  z-index: 1;
}

.hero-title {
  font-size: 66px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 62px;
  font-weight: 500;
  color: var(--white-color);
  margin-bottom: 20px;
}

.hero-subtitle span {
  font-weight: 400 !important;
}

.hero-description {
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-100);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 32px;
}

/* Button - Food Randomizer */
.btn-food-randomizer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    180deg,
    var(--yellow-primary) 0%,
    var(--orange-darker) 100%
  );
  color: var(--white-color);
  padding: 15px 30px 15px 15px;

  border-radius: 50px;
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-food-randomizer:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 140, 0, 0.6);
  color: var(--white-color);
  text-decoration: none;
}

/* Hero Image */
.hero-image-hover {
  width: 716.43px;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.hero-image-hover:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */

.about-section {
  background: var(--background-light);
}

/* About Titles */
.about-title-en {
  font-family: "Vujahday Script", cursive;
  font-size: 24px;
  font-weight: lighter;
  color: var(--primary-color);
}

.about-title-th {
  font-size: 38px;
  font-weight: 600;
  color: var(--black-color);
}

.about-subtitle {
  font-size: 28px;
  font-weight: 500;
  color: var(--coal-color);
  margin-bottom: 0;
}

/* About Images */
.about-main-img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: center;
}

.about-icon-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* About Content */
.about-text-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-lighter);
  max-height: 250px;
  overflow-y: auto;
}

/* Custom Scrollbar */
.about-text-content::-webkit-scrollbar {
  width: 5px;
}

.about-text-content::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

.about-text-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.about-text-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-dark);
}

/* About Section Layout Enhancements */
.about-section {
  min-height: 713px;
  display: flex;
  align-items: center;
}

.about-section .container {
  height: 100%;
}

.about-section .row {
  height: 100%;
}

.about-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-image-wrapper img {
  max-height: 500px;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.about-content-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.about-content-image {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.about-text {
  max-height: 300px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
  padding-right: 10px;
}

/* Scrollbar for About Text */
.about-text::-webkit-scrollbar {
  width: 6px;
}

.about-text::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

.about-text::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.about-text::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color-dark);
}

/* ==========================================================================
   5. AWARDS SECTION
   ========================================================================== */

.awards-section {
  padding: 20px 0;
  background: var(--background-color);
}

/* Section Titles (Reusable) */
.section-title {
  text-align: left;
  position: relative;
  /* padding-bottom: 15px; */
}

/* Award Card Utilities */
.award-img {
  max-height: 200px;
  object-fit: contain;
}

.award-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-lighter);
}

.award-title {
  font-size: 24px;
  font-weight: 400;
  color: var(--black-color);
}

.award-year {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Hero Container */
.hero-container {
  z-index: 2;
}

/* Products Section Utilities */
.products-btn-container {
  text-align: center;
  margin-top: 40px;
}

/* Modal Utilities */
.modal-hidden {
  display: none;
}
.section-title-en {
  font-family: "Vujahday Script", cursive;
  font-size: 24px;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 0;
}

.section-title-th {
  font-size: 38px;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 0;
}

/* Award Item - Using Bootstrap Cards (Minimal Custom) */
.letter-spacing-1 {
  letter-spacing: 1px;
}

/* ==========================================================================
   6. PRODUCTS SECTION
   ========================================================================== */

.products-section {
  padding: 50px 0;
  background: var(--background-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* Products Carousel Controls */
.products-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.products-section .position-relative:hover .products-carousel-control {
  opacity: 1;
}

.products-carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev.products-carousel-control {
  left: -25px;
}

.carousel-control-next.products-carousel-control {
  right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 24px;
  height: 24px;
  background-size: 100% 100%;
  filter: brightness(0) invert(1);
}

/* Carousel Transition */
#productsCarousel .carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* Fix shadow clipping - add padding to carousel inner */
/* #productsCarousel .carousel-inner { */
/* overflow: visible; */
/* padding: 10px 5px; */
/* margin: -10px -5px; */
/* } */

#productsCarousel {
  overflow: hidden;
  /* padding: 0 10px; */
  /* margin: 0 -10px; */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .carousel-control-prev.products-carousel-control {
    left: 10px;
  }

  .carousel-control-next.products-carousel-control {
    right: 10px;
  }

  .products-carousel-control {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}

/* Product Card */

.product-card {
  height: 100%;
  width: 100%;
  background: var(--background-color);
  border: none;
  border-radius: 0;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.product-card .product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 317px;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-card .price {
  font-size: 16px;
  color: var(--charcoal-color);
  font-weight: 500;
}

/* Product Card Title & Price */
.product-card-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal-color);
}

.product-card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
}

/* WooCommerce Sale Price Formatting */
.product-card-price del,
.product-card-price del .amount,
.product-card-price del .woocommerce-Price-amount {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 8px;
}

.product-card-price ins,
.product-card-price ins .amount,
.product-card-price ins .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
  text-decoration: none;
}

.product-card-price .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
}

/* Product Card Title & Price */
.product-card-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal-color);
}

.product-card-price {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
}

/* WooCommerce Sale Price Formatting */
.product-card-price del,
.product-card-price del .amount,
.product-card-price del .woocommerce-Price-amount {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 8px;
}

.product-card-price ins,
.product-card-price ins .amount,
.product-card-price ins .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
  text-decoration: none;
}

.product-card-price .woocommerce-Price-amount {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal-color);
}

/* ==========================================================================
   7. PARTNERS SECTION
   ========================================================================== */

.partners-section {
  padding: 60px 0;
  background: var(--background-color);
}

.partners-container {
  background: var(--background-lightest);
  /* min-height: 224px;
  border-radius: 0; */
}

.partner-logo {
  padding: 10px;
}

.partner-logo-img {
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-logo:hover .partner-logo-img {
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive adjustments */
/* Small screens (xs, sm) - responsive scaling */
@media (max-width: 767px) {
  .partner-logo-img {
    max-height: 80px;
  }
}

/* Medium and Large screens (md, lg) - Bootstrap 5.3 breakpoints */
@media (min-width: 768px) {
  .partner-logo-img {
    height: 105px;
    width: auto;
  }
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.site-footer {
  color: #ffffff;
  padding: 0;
  margin: 0;
}

/* Footer Top Section - Social & Navigation */
.footer-top {
  background-color: #014876;
  height: 135px;
  display: flex;
  align-items: center;
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social a {
  color: #ffffff;
  font-size: 24px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.footer-social a i {
  color: #ffffff;
}

/* Footer Navigation */
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
}

.footer-nav a:hover {
  opacity: 0.8;
}

/* Footer Copyright */
.footer-copyright {
  background-color: #002035;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copyright.footer-shop {
  background-color: #d5e3ef !important;
}

.footer-copyright-text {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  margin: 0;
}

.footer-shop .footer-copyright-text {
  color: #1f2937 !important;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .footer-top {
    height: auto;
    min-height: 135px;
    padding: 20px 0;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 15px;
  }

  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 20px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-copyright {
    height: auto;
    min-height: 48px;
    padding: 10px 15px;
  }

  .footer-copyright p {
    text-align: center;
    font-size: 11px;
  }
}

/* ==========================================================================
   9. MODAL STYLES
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: var(--overlay-dark);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white-color);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: var(--text-disabled);
  float: right;
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--black-pure);
}

/* Product Detail Modal Styles */
#productDetailModal .modal-content {
  max-width: 900px;
  border-radius: 0;
  padding: 0;
}

#productDetailModal .close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 10;
  background: var(--white-transparent-90);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#productDetailModal .close-modal:hover {
  background: var(--white-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#productDetailModal .close-modal svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dark);
  transition: stroke 0.3s ease;
}

#productDetailModal .close-modal:hover svg {
  stroke: var(--black-pure);
}

#modalProductImage {
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

#modalProductDescription {
  font-size: 14px;
  line-height: 1.6;
}

#productDetailModal .quantity-btn {
  min-width: 40px;
}

#modalProductQty {
  max-width: 80px;
}

.payment-icon {
  height: 24px;
  object-fit: contain;
}

.payment-label {
  font-size: 12px;
}

.shipping-info {
  font-size: 13px;
}

.shipping-link {
  cursor: pointer;
}

/* Modal Content Styling */
#randomFoodContent {
  text-align: center;
  padding: 20px 0;
}

#randomFoodContent .loading {
  font-size: 24px;
  color: var(--primary-color-light);
}

#randomFoodContent .loading i {
  font-size: 48px;
  margin-bottom: 20px;
}

#randomFoodContent img {
  max-width: 100%;
  border-radius: 15px;
  margin: 20px auto;
}

#randomFoodContent h2 {
  color: var(--primary-color-light);
  margin: 20px 0;
}

#randomFoodContent .price {
  font-size: 28px;
  color: var(--orange-primary);
  font-weight: bold;
  margin: 15px 0;
}

#randomFoodContent .excerpt {
  color: var(--text-light);
  line-height: 1.8;
  margin: 15px 0;
}

#randomFoodContent .view-product {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--orange-primary) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: 25px;
  margin-top: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#randomFoodContent .view-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile - Max 991px */
@media (max-width: 991px) {
  /* Navbar Mobile */
  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .cart-badge {
    right: 1rem;
  }

  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  /* About Section */
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-section {
    height: auto;
    min-height: 713px;
    padding: 60px 0;
  }

  .about-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }

  .about-image-wrapper img {
    max-height: 400px;
  }

  .about-content-wrapper {
    padding-top: 0;
  }

  /* Products */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Footer */
  .footer-nav ul {
    flex-direction: column;
    gap: 15px;
  }
}

/* Mobile Small - Max 768px */
@media (max-width: 768px) {
  .about-section {
    min-height: auto;
    padding: 40px 0;
  }

  .about-image-wrapper img {
    max-height: 300px;
  }

  .about-content-image {
    max-height: 80px;
  }

  .about-text {
    max-height: 250px;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section h3 {
    font-size: 1.25rem;
  }

  .about-section h4 {
    font-size: 1rem;
  }
}

/* Mobile Extra Small - Max 480px */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 28px;
  }

  .modal-content {
    margin: 10% 20px;
    padding: 20px;
  }
}

/* Tablet and Up - Min 992px */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

/* ==========================================================================
   11. UTILITY STYLES
   ========================================================================== */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility - Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   12. WOOCOMMERCE COMPATIBILITY
   ========================================================================== */

.woocommerce div.product {
  padding: 0px 0px !important;
  margin-bottom: 0;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product a img {
  border-radius: 10px;
}

.woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  color: #fff;
  border-radius: 25px;
}

.woocommerce ul.products li.product .button:hover {
  background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
}

.divider {
  color: var(--divider-color);
}

/* ==========================================================================
   PRODUCT ARCHIVE PAGE CUSTOM STYLES
   ========================================================================== */

/* Hero Banner Section */
.product-archive-hero {
  position: relative;
  width: 100%;
  height: 350px;
  background: linear-gradient(90deg, #f8eec3 27.88%, #a6d0c7 87.02%);
  overflow: hidden;
}

.product-banner {
  position: absolute;
  top: 0;
  height: 350px;
  width: auto;
  z-index: 1;
}

.product-banner-left {
  left: 0;
}
.product-banner-right {
  right: 0;
}

.min-vh-50 {
  min-height: 50vh;
}

.hero-products-showcase {
  perspective: 1000px;
}

.hero-product-item {
  width: 150px;
  height: 150px;
  transition: transform 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 10px;
}

.hero-product-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.hero-product-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Shop Sidebar */
.shop-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  margin-bottom: 24px;
  /* background: white; */
  /* padding: 20px; */
  /* border-radius: 10px; */
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

.widget-title {
  color: #003758;
  font-size: 24px;
  font-weight: 400;
}

.categories-list {
  display: flex;
  flex-direction: column;
}

.category-item {
  font-size: 20px;
  font-weight: 400;
  text-decoration: none;
  color: var(--pastel-blue-color);
  /* border-left: 3px solid transparent; */
  transition: color 0.3s ease;
}

.category-item:hover {
  /* background-color: #f8f9fa; */
  /* border-left-color: #007bff; */
  color: var(--deep-navy-color);
}

.category-item.active {
  color: #43677e;
  font-weight: 500;
}

.category-item .badge {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Price Filter */
.price-filter .form-range {
  cursor: pointer;
}

.price-filter .form-range::-webkit-slider-thumb {
  background: #007bff;
  cursor: pointer;
}

.price-filter .form-range::-moz-range-thumb {
  background: #007bff;
  cursor: pointer;
}

/* Products Grid */
.products-grid {
  margin-bottom: 30px;
}

/* .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
} */

.product-card .product-image {
  overflow: hidden;
  background: #f8f9fa;
  /* aspect-ratio: 1/1; */
}

.product-card .product-image img {
  width: 100%;
  height: 317px;
  object-fit: cover;
  object-position: center;
}

.product-card .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
  font-weight: 600;
}

.product-title {
  font-size: 20px;
  font-weight: 500;
  color: #1e1e1e;
}

.product-price span {
  font-size: 16px;
  font-weight: 400;
  color: #1e1e1e;
}

.product-actions .btn {
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 10px 20px;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Products Count and Sorting */
.products-count {
  color: #666;
}

.woocommerce-result-count {
  margin: 0;
  font-size: 0.95rem;
}

.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select {
  border-radius: 5px;
  border: 1px solid #dee2e6;
  padding: 8px 35px 8px 12px;
  font-size: 0.95rem;
  background-color: white;
  cursor: pointer;
}

/* Pagination */
.woocommerce-pagination {
  margin-top: 40px;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 5px;
  list-style: none;
  padding: 0;
}

.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .product-archive-hero {
    padding: 60px 0;
    min-height: 380px;
  }

  .hero-product-item {
    width: 120px;
    height: 120px;
  }

  .shop-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .product-archive-hero {
    padding: 40px 0;
    min-height: 320px;
  }

  .hero-products-showcase {
    flex-direction: column !important;
  }

  .hero-product-item {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .product-archive-hero {
    min-height: 280px;
    padding: 30px 0;
  }

  .product-archive-hero h1 {
    font-size: 1.75rem;
  }
}

/* Fix for WooCommerce default styles override */
.woocommerce .products-grid ul.products,
.woocommerce-page .products-grid ul.products {
  display: contents;
}

.woocommerce .products-grid ul.products li.product,
.woocommerce-page .products-grid ul.products li.product {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.woocommerce div.product form.cart .button {
  background: #007bff;
  color: white;
}

.woocommerce div.product form.cart .button:hover {
  background: #0056b3;
}

/* ==========================================================================
   13. CONTACT US PAGE STYLES
   ========================================================================== */

/* Contact Page Specific Styles */
.contact-info-title-en {
  font-size: 24px;
  font-weight: 400;
  color: var(--primary-color);
  line-height: 44px;
  margin-bottom: 0;
}

.contact-info-title-th {
  font-size: 38px;
  font-weight: 600;
  color: var(--black-color);
  line-height: 44px;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--white-color);
  border-radius: 15px;
  border: 1px solid var(--gray-200);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-title {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 1.5rem;
}

.contact-item h6 {
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-medium);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Social Links */
.social-links h6 {
  color: var(--gray-500);
  font-weight: 500;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--background-lighter);
  color: var(--gray-500);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

/* Product Showcase */
.product-showcase img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.image-placeholder {
  border: 2px dashed var(--gray-300);
  background: var(--background-lighter);
}

/* Contact Form */
.contact-form-wrapper {
  padding: 2rem;
}

.contact-form-title {
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 1rem;
}

.thai-title {
  color: var(--text-medium);
  font-weight: 500;
  font-size: 1.5rem;
}

.contact-form .form-label {
  color: var(--text-medium);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-form .form-control {
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.1);
}

.contact-form .btn-primary {
  background: #007bff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Form validation styles */
.was-validated .form-control:valid {
  border-color: #198754;
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
}

/* Success message */
.alert-success {
  background-color: #d1edff;
  border-color: #bee5eb;
  color: #0c5460;
  border-radius: 8px;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Contact Page Responsive Design */
@media (max-width: 768px) {
  .contact-info-card {
    margin-bottom: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
    margin: 0 15px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .thai-title {
    font-size: 1.3rem;
  }
}

.contact-info-section {
  background-image: url("./assets/images/contact-us-footer.png");
  background-position: bottom center;
  background-size: contain;
  background-repeat: no-repeat;
  padding-bottom: 20px !important;
  margin-bottom: -20px !important;
  border-bottom: none;
  position: relative;
  z-index: 1;
}

.card-contact-us {
  max-width: 1128px;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
  border: 1px solid var(--gray-200) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--white-color);
}

.card-contact-us .card-body {
  padding: 0 !important;
}

/* Contact Info Content (Left Column) */
.contact-info-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white-color);
}

/* Company Name */
.contact-company-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 2rem;
}

/* Contact Info Items */
.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 0.5rem;
}

.contact-info-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--coal-color);
  line-height: 1.6;
}

.contact-link {
  color: var(--coal-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color);
}

/* Social Icons */
.contact-social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--coal-color);
  border: none;
  border-radius: 0;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-social-icon:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Contact Image Wrapper (Right Column) */
.contact-image-wrapper {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.contact-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .contact-company-name {
    font-size: 20px;
  }

  .contact-info-label {
    font-size: 14px;
  }

  .contact-info-text {
    font-size: 14px;
  }

  .contact-social-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .contact-image-wrapper {
    min-height: 300px;
  }

  .contact-image {
    min-height: 300px;
  }

  .contact-info-content {
    padding: 2rem 1.5rem !important;
  }
}

@media (min-width: 768px) {
  .contact-image-wrapper {
    min-height: 500px;
  }

  .contact-image {
    min-height: 500px;
  }
}

@media (min-width: 992px) {
  .contact-image-wrapper {
    min-height: 600px;
  }

  .contact-image {
    min-height: 600px;
  }
}

.contact-form-section {
  background: var(--background-blue-light);
  padding-top: 20px !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 0;
}

.contact-form-title-en {
  font-size: 24px;
  font-weight: 400;
  color: var(--primary-color);
}

.contact-form-title-th {
  font-size: 38px;
  font-weight: 600;
  color: var(--black-color);
  line-height: 44px;
}

.contact-form-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--coal-color);
  line-height: 24px;
  margin-bottom: 1.5rem;
}

/**
  Randomizer Food Style
*/

.randomizer-product-item {
  background-color: var(--background-blue-light);
  width: 1128px;
  border-radius: 30px;
  overflow: hidden;
}

.randomizer-product .card-body {
  padding: 0;
  margin: 0;
}

.randomizer-product-img {
  width: 551px;
  height: 593px;
  object-fit: cover;
  object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-info-section {
    background-size: auto 100px;
    background-position: center bottom;
  }
}

@media (max-width: 480px) {
  .contact-info-section {
    background-size: auto 80px;
  }
}

/* ==========================================================================
   13. FOOD RANDOMIZER PAGE
   ========================================================================== */

/* ==========================================
   13.1 Base Page Container
   ========================================== */
.randomizer-page {
  background-color: #f6f7f8;
  min-height: 100vh;
  padding: 55px 0;
  background-image: url("./assets/images/food-randomizer-bg.png");
  background-position: top right;
  background-size: 64% 40%;
  background-repeat: no-repeat;
  position: relative;
}

/* ==========================================
   13.2 Hero Section - Layout
   ========================================== */
.randomizer-hero {
  margin-bottom: 40px;
}

/* ==========================================
   13.3 Hero Section - Left Content
   ========================================== */
.randomizer-left {
  padding: 20px;
}

.randomizer-left h1 {
  font-size: 36px;
  font-weight: 600;
  color: var(--black-color);
  line-height: 44px;
}

.randomizer-left h2 {
  font-size: 36px;
  font-weight: 500;
  color: var(--black-color);
  line-height: 44px;
}

.randomizer-left p {
  font-size: 16px;
  color: var(--text-lighter);
  margin-bottom: 30px;
}

/* ==========================================
   13.4 Hero Section - Random Button
   ========================================== */
.btn-random {
  background-color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-blue);
  border: 1px solid #fff;
  border-radius: 39px;
  padding: 16px 76px;
  cursor: pointer;
  box-shadow: 0px 5px 8px 0px #00000040;
  transition:
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.btn-random:hover {
  box-shadow: 0px 8px 15px 0px #00000060;
  color: var(--text-blue);
}

/* ==========================================
   13.5 Hero Section - Right Content (Wheel Area)
   ========================================== */
.randomizer-right {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.randomizer-img {
  width: 100%;
  max-width: 650px;
  height: auto;
  object-fit: contain;
}

/* ==========================================
   13.6 Result Section - Container & Card
   ========================================== */
.result-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.result-card {
  background: #ffffff;
  border-radius: 30px;
  overflow: hidden;
  width: 100%;
  max-width: 1128px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-section:not([style*="display: none"]) .result-card {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   13.7 Result Section - Image
   ========================================== */
.result-img-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.result-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

/* ==========================================
   13.8 Result Section - Content Area
   ========================================== */
.result-content {
  background-color: #c3edff;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================
   13.9 Result Section - Header & Badge
   ========================================== */
.result-header h2 {
  font-size: 40px;
  color: #014876;
  line-height: 52px;
  font-weight: 600;
}

.result-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #111827;
  line-height: 36px;
  margin-bottom: 15px;
  display: block;
}

.kcal-badge {
  display: inline-block;
  background-color: #00b38d;
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 25px;
}

/* ==========================================
   13.10 Result Section - Nutrition Box
   ========================================== */
.nutrition-box {
  background-color: white;
  border-radius: 15px;
  padding: 25px 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nutri-item {
  text-align: left;
  padding: 0 15px;
  border-right: 1px solid #eee;
}

.nutri-item:last-child {
  border-right: none;
}

.nutri-value {
  color: #00b38d;
  font-size: 18px;
  font-weight: 400;
  display: block;
  margin-bottom: 5px;
}

.nutri-label {
  color: #374151;
  font-size: 15px;
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}

/* ==========================================
   13.11 Result Section - Progress Bars
   ========================================== */
.progress-bar-bg {
  background-color: #f0f0f0;
  height: 6px;
  border-radius: 3px;
  width: 100%;
  overflow: hidden;
}

.progress-bar-fill {
  background-color: #00bfae;
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-bar-carb {
  background-color: #f38642 !important;
}

.progress-bar-fat {
  background-color: #4d89ff !important;
}

/* ==========================================
   13.12 Result Section - Info List
   ========================================== */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.5;
  gap: 16px;
}

.info-item svg {
  margin-right: 10px !important;
}

.info-item .remaining-kcal-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 14px;
  color: #1f2937;
  margin-bottom: 0;
}

.info-item .kcal-saved-text {
  font-size: 15px;
  font-weight: 400;
  color: #ff1c1c;
}

.info-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.highlight-text {
  color: #00b38d;
  font-weight: 500;
}

/* ==========================================
   13.13 Result Section - Action Button
   ========================================== */
.action-btn {
  background-color: #014876;
  color: white;
  border: none;
  padding: 10px 10px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: background-color 0.3s ease;
}

.action-btn:hover {
  background-color: #003855;
}

.action-btn i {
  font-size: 1.1rem;
}

/* ========================================
           WHEEL SECTION
======================================== */
.wheel-container {
  position: relative;
  width: 600px;
  height: 600px;
  flex-shrink: 0;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 5px 7px 14.7px 0px #00000040;
  background: repeating-conic-gradient(
    #c3edff 0deg 22.5deg,
    #ffffff 22.5deg 45deg
  );
}

.wheel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-origin: center;
}

.wheel-content {
  position: absolute;
  transform: translate(-50%, -280px);
  text-align: center;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-content img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wheel-content span {
  font-size: 14px;
  font-weight: 600;
  color: #014876;
  margin-bottom: 2px;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
  /* จำกัดให้แสดงแค่ 2 บรรทัด */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  height: 2.4em; /* 1.2 * 2 = ความสูงคงที่ 2 บรรทัด */
  word-break: break-word;
}
.center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.center-hub img.pointer-bg {
  width: 117.07px;
  height: auto;
  transform: translateY(-20px);
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.2));
  z-index: 11;
}

.center-hub img.food-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 10px));
  width: 93.37px;
  height: 93.37px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 12;
}

/* ==========================================
   13.14 Responsive Breakpoints
   ========================================== */

/* Large Tablet & Below (< 992px) */
@media (max-width: 991px) {
  .randomizer-page {
    background-size: 0;
    padding: 40px 0;
  }

  .randomizer-hero {
    margin-bottom: 30px;
  }

  .randomizer-left {
    padding: 15px;
  }

  .randomizer-right {
    padding: 15px;
  }

  .wheel-container {
    width: 450px;
    height: 450px;
  }

  .wheel-content {
    transform: translate(-50%, -210px);
    width: 70px;
  }

  .wheel-content img {
    width: 40px;
    height: 40px;
  }

  .wheel-content span {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: none;
  }

  .center-hub img.pointer-bg {
    width: 80px;
    transform: translateY(-17px);
  }

  .center-hub img.food-center {
    width: 70px;
    height: 70px;
  }

  /* Result Section Responsive */
  .result-content {
    padding: 35px;
  }

  .result-header h2 {
    font-size: 2rem;
  }
}

/* Tablet (< 768px) */
@media (max-width: 767px) {
  .randomizer-page {
    background-size: 0;
    padding: 30px 0;
  }

  .randomizer-left h1 {
    font-size: 30px;
  }

  .randomizer-left h2 {
    font-size: 26px;
  }

  .btn-random {
    padding: 14px 50px;
    font-size: 20px;
  }

  .wheel-container {
    width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .wheel-content {
    transform: translate(-50%, -185px);
    width: 60px;
  }

  .wheel-content img {
    width: 35px;
    height: 35px;
  }

  .wheel-content span {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: none;
  }

  .center-hub img.pointer-bg {
    width: 65px;
    transform: translateY(-13px);
  }

  .center-hub img.food-center {
    width: 50px;
    height: 50px;
    transform: translate(-50%, calc(-50% - 8px));
  }

  /* Result Section Mobile */
  .result-img {
    min-height: 300px;
  }

  .result-content {
    padding: 25px;
  }

  .result-header h2 {
    font-size: 1.75rem;
  }

  .result-subtitle {
    font-size: 1rem;
  }

  .nutrition-box {
    padding: 20px 10px;
  }

  .nutri-item {
    padding: 0 10px;
  }

  .nutri-value {
    font-size: 1.1rem;
  }

  .nutri-label {
    font-size: 0.8rem;
  }

  .info-item {
    font-size: 0.95rem;
  }

  .action-btn {
    font-size: 1.1rem;
    padding: 16px 25px;
  }
}

/* Small Mobile (< 576px) */
@media (max-width: 575px) {
  .randomizer-page {
    padding: 30px 0;
    background-size: 0;
  }

  .randomizer-hero {
    margin-bottom: 20px;
  }

  .randomizer-left {
    padding: 10px;
  }

  .randomizer-right {
    padding: 10px;
  }

  .randomizer-left h1 {
    font-size: 26px;
    line-height: 36px;
  }

  .randomizer-left h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .randomizer-left p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .btn-random {
    padding: 12px 40px;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
  }

  .wheel-container {
    width: 350px;
    height: 350px;
  }
  .wheel-content {
    transform: translate(-50%, -160px);
    width: 50px;
  }

  .wheel-content span {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 0;
    text-shadow: none;
  }

  .wheel-content img {
    width: 30px;
    height: 30px;
  }

  .center-hub img.pointer-bg {
    width: 65px;
    transform: translateY(-10px);
  }

  .center-hub img.food-center {
    width: 55px;
    height: 55px;
    transform: translate(-51%, calc(-50% - 4px));
  }

  .randomizer-img {
    max-width: 320px;
  }

  /* Result Section Small Mobile */
  .result-img {
    min-height: 250px;
  }

  .result-content {
    padding: 20px;
  }

  .result-header h2 {
    font-size: 1.5rem;
  }

  .result-subtitle {
    font-size: 0.95rem;
  }

  .kcal-badge {
    font-size: 0.9rem;
    padding: 6px 16px;
  }

  .nutrition-box {
    padding: 15px 5px;
  }

  .nutri-item {
    padding: 0 8px;
  }

  .nutri-value {
    font-size: 1rem;
  }

  .nutri-label {
    font-size: 0.75rem;
  }

  .info-item {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .info-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 15px;
  }

  .action-btn {
    font-size: 1rem;
    padding: 14px 20px;
  }
}

/* Extra Small Mobile (< 380px) */
@media (max-width: 379.98px) {
  .wheel-container {
    max-width: 280px;
  }

  .wheel-content {
    transform: translate(-50%, -140px);
    width: 55px;
  }

  .wheel-content span {
    font-size: 10px;
  }

  .wheel-content img {
    width: 32px;
    height: 32px;
  }

  .center-hub img.pointer-bg {
    width: 75px;
  }

  .center-hub img.food-center {
    width: 60px;
    height: 60px;
  }

  .btn-random {
    font-size: 16px;
    padding: 10px 30px;
  }
}

/* ==========================================================================
   15. PERSONAL WEIGHT LOSS PLAN PAGE
   ========================================================================== */

.personal-weight-loss-plan-page {
  background-color: #f6f7f8;
  min-height: 100vh;
  padding: 60px 0;
}

.plan-form-card {
  background-color: #c3edff;
  max-width: 1128px;
  margin: 0 auto;
  padding: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Form Header */
.form-header {
  margin-bottom: 40px;
}

.form-title-en {
  font-family: "Vujahday Script", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 44px;
  color: #0294cf;
}

.form-title-th {
  font-size: 38px;
  font-weight: 600;
  line-height: 44px;
  color: #0f1113;
  margin: 0;
}

/* Form Labels */
.weight-loss-form .form-label {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

/* Form Controls */
.weight-loss-form .form-control {
  border-radius: 16px;
  border: 1px solid #d1d5db;
  padding: 12px 16px;
  font-size: 14px;
  background-color: #ffffff;
  /* transition: border-color 0.2s; */
}

.weight-loss-form .form-control:focus {
  /* border-color: #014876; */
  box-shadow: 0 0 0 0.2rem rgba(1, 72, 118, 0.15);
}

.weight-loss-form .form-control::placeholder {
  color: #9ca3af;
}

/* Gender Options */
.btn-gender {
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 31px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.btn-gender svg {
  width: 20px;
  height: 20px;
}

.btn-gender:hover {
  background-color: #014876 !important;
  border-color: #014876 !important;
  color: #ffffff !important;
}

.btn-gender:hover svg path[fill="#0294CF"],
.btn-gender:hover svg path[fill="#FF2D55"] {
  fill: #ffffff !important;
}

.btn-gender:hover svg path[stroke] {
  stroke: #ffffff !important;
}

.btn-check:checked + .btn-gender {
  background-color: #014876;
  border-color: #014876;
  color: #ffffff;
}

.btn-check:checked + .btn-gender svg path[fill="#0294CF"],
.btn-check:checked + .btn-gender svg path[fill="#FF2D55"] {
  fill: #ffffff !important;
}

.btn-check:checked + .btn-gender svg path[stroke] {
  stroke: #ffffff !important;
}

/* Activity Options */
.btn-activity {
  background-color: #ffffff;
  background-image: url("./assets/icons/jigsaw-sky-icon.png");
  background-position: top right;
  background-repeat: no-repeat;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  padding: 0 16px;
  min-height: 90px;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: all 0.3s;
}

.activity-text {
  flex: 1;
  transition: color 0.3s ease;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 5px;
  line-height: 1.4;
}

.activity-multiplier {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
}

/* Activity: Hover State */
.btn-activity:hover {
  background-color: #0294cf !important;
  border-color: #0294cf !important;
}

.btn-activity:hover .activity-title,
.btn-activity:hover .activity-multiplier {
  color: #ffffff !important;
}

.btn-activity:hover svg path[fill="#0294CF"] {
  fill: #ffffff !important;
}

.btn-activity:hover svg path[stroke] {
  stroke: #ffffff !important;
}

/* Activity: Checked State */
.btn-check:checked + .btn-activity {
  background-color: #0294cf !important;
  border-color: #0294cf !important;
}

.btn-check:checked + .btn-activity .activity-title,
.btn-check:checked + .btn-activity .activity-multiplier {
  color: #ffffff;
}

.btn-check:checked + .btn-activity svg path[fill="#0294CF"] {
  fill: #ffffff !important;
}

.btn-check:checked + .btn-activity svg path[stroke] {
  stroke: #ffffff !important;
}

/* Frequency Options */
.btn-frequency {
  background-color: #ffffff;
  background-image: url("./assets/icons/goal-icon.png");
  background-position: top right;
  background-repeat: no-repeat;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  padding: 0 16px;
  text-align: left;
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.frequency-text {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
}

/* Frequency: Hover State */
.btn-frequency:hover {
  background-color: #0294cf !important;
  border-color: #0294cf !important;
}

.btn-frequency:hover .frequency-text {
  color: #ffffff !important;
}

.btn-frequency:hover svg path[stroke] {
  stroke: #ffffff !important;
}

.btn-frequency:hover svg path[fill="#0294CF"] {
  fill: #ffffff !important;
}

/* Frequency: Checked State */
.btn-check:checked + .btn-frequency {
  background-color: #0294cf;
  border-color: #0294cf;
}

.btn-check:checked + .btn-frequency .frequency-text {
  color: #ffffff !important;
}

.btn-check:checked + .btn-frequency svg path[stroke] {
  stroke: #ffffff !important;
}

.btn-check:checked + .btn-frequency svg path[fill="#0294CF"] {
  fill: #ffffff !important;
}

/* Checkbox */
.weight-loss-form .form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-top: 0;
}

.weight-loss-form .form-check-input:checked {
  background-color: #014876;
  border-color: #014876;
}

.weight-loss-form .form-check-label {
  font-size: 14px;
  color: #111827;
  margin-left: 8px;
}

/* Action Buttons */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.btn-calculate {
  flex: 1;
  background-color: #014876;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-calculate:hover {
  background-color: #003855;
  color: #ffffff;
}

.btn-request-plan {
  flex: 1;
  background-color: #0294cf;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0px 4px 6px -2px #00000008;
  transition: background-color 0.3s;
}

.btn-request-plan svg {
  width: 24px;
  height: 20px;
}

.btn-request-plan:hover {
  /* #0294CF 50% */
  background-color: #0280b2;
  color: #fff;
}

.btn-request-plan:disabled {
  background-color: #d1d5db;
  color: #fff;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
  .plan-form-card {
    padding: 40px 30px;
  }

  .form-title-en {
    font-size: 20px;
  }

  .form-title-th {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .personal-weight-loss-plan-page {
    padding: 40px 0;
  }

  .plan-form-card {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .form-title-en {
    font-size: 18px;
  }

  .form-title-th {
    font-size: 24px;
  }

  .btn-activity {
    min-height: auto;
    padding: 12px;
  }

  .activity-title {
    font-size: 13px;
  }

  .activity-multiplier {
    font-size: 11px;
  }

  .btn-frequency {
    min-height: auto;
    padding: 12px;
  }

  .frequency-text {
    font-size: 12px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-calculate,
  .btn-request-plan {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .plan-form-card {
    padding: 25px 15px;
  }

  .form-title-en {
    font-size: 16px;
  }

  .form-title-th {
    font-size: 22px;
  }

  .btn-gender {
    padding: 14px 16px;
    font-size: 15px;
  }

  .btn-activity {
    padding: 10px;
  }

  .activity-title {
    font-size: 12px;
  }

  .activity-multiplier {
    font-size: 10px;
  }

  .btn-calculate,
  .btn-request-plan {
    padding: 14px 25px;
    font-size: 15px;
  }
}

/* Energy Analysis & Weight Loss Prediction */
.energy-analysis-result {
  margin-top: 50px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  scroll-margin-top: 100px;
}

.energy-analysis-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.energy-analysis {
  max-width: 1128px;
  margin: 0 auto;
}

.energy-analysis__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #1f2937;
}

.energy-analysis__subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

/* Screen Reader Only - for accessibility and SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.energy-card {
  max-height: 185px;
  border: none;
  border-radius: 20px;
  padding: 8px;
  min-height: 180px;
  box-shadow: 0px 4px 6px -2px #00000008;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.energy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 16px -4px #00000014;
}

.energy-card--bmr {
  background-color: #a5fe87;
  background-image:
    linear-gradient(
      to bottom,
      rgba(165, 254, 135, 0.2),
      rgba(165, 254, 135, 0.2)
    ),
    url("./assets/images/bmr_bg.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 30%;
}

.energy-card--bmr .energy-card__desc {
  color: #00795f;
}

.energy-card--tdee {
  background: #e3beff;
  background-image:
    linear-gradient(
      to bottom,
      rgba(227, 190, 255, 0.2),
      rgba(227, 190, 255, 0.2)
    ),
    url("./assets/images/bmr_bg.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 30%;
}

.energy-card--tdee .energy-card__desc {
  color: #8b16e4;
}

.energy-card--target {
  background: #ffb1b1;
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 177, 177, 0.2),
      rgba(255, 177, 177, 0.2)
    ),
    url("./assets/images/bmr_bg.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 30%;
}

.energy-card--target .energy-card__desc {
  color: #ff5959;
}

.energy-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.energy-card__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b6e99;
  margin-bottom: 4px;
}

.energy-card__value {
  font-size: 30px;
  font-weight: 700;
  color: #0f1113;
  line-height: 38px;
}

/* .energy-card__unit {
  font-size: 14px;
  color: #6b7280;
  margin-left: 4px;
} */

.energy-card__desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.energy-plan-summary__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.energy-plan-summary__header h4 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.plan-summary-list {
  list-style: inside;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}

.plan-summary-list__item {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

.plan-summary-list__item:last-child {
  border-bottom: none;
}

.plan-summary-list__text {
  color: #000000;
}

.plan-summary-list__item strong {
  color: #00b38d;
}

.energy-macro-recommendation {
  /* background-color: #f8fafc; */
  /* border-radius: 24px; */
  padding: 28px 0;
}

.energy-macro-recommendation__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.energy-macro-recommendation__header h4 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.macro-recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.macro-recommendation-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.macro-recommendation-list__item:last-child {
  border-bottom: none;
}

.macro-recommendation-list__item--divider {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 2px solid #cbd5e1;
}

.macro-recommendation-list__label {
  color: #4b5563;
  font-weight: 500;
}

.macro-recommendation-list__value {
  color: #0b2f43;
  font-weight: 600;
  font-size: 16px;
}

.energy-macro-recommendation-card {
  max-height: 185px;
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.2);
  padding: 10px;
  background-color: #ffffff;
  box-shadow: 0px 4px 6px -2px #00000008;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.energy-macro-recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 16px -4px #00000014;
}

.energy-macro-recommendation-card__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
  color: #0f1113;
}

.energy-macro-recommendation-card__desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #4b5563;
}

.energy-macro-recommendation-badge {
  max-height: 32px;
  padding: 0 15px;
  background: #00b38d;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 60px;
}

.energy-macro-recommendation-card-protein {
  background-image: url("./assets/images/product-containing-proteins.png");
  background-repeat: no-repeat;
  background-position: 210px 65px;
  background-size: 50%;
}

.energy-macro-recommendation-card-meals {
  background-image: url("./assets/images/grilled-chicken-salad.png");
  background-repeat: no-repeat;
  background-position: 195px 70px;
  background-size: 70%;
}

.energy-macro-recommendation-card-target {
  background-image: url("./assets/images/papaya-salad.png");
  background-repeat: no-repeat;
  background-position: 230px 72px;
  background-size: 40%;
}

.energy-macro-recommendation-card-protein-grams {
  background-image: url("./assets/images/high-angle-view-salad-plate.png");
  background-repeat: no-repeat;
  background-position: 230px 72px;
  background-size: 40%;
}

.energy-macro-recommendation-card-fat-grams {
  background-image: url("./assets/images/healthy-keto-diet-foods-with-fresh-salmon-avocado.png");
  background-repeat: no-repeat;
  background-position: 220px 95px;
  background-size: 40%;
}

.energy-macro-recommendation-card-carb-grams {
  background-image: url("./assets/images/carbohydrates-loaf-potatoes-groats-isolated-white.png");
  background-repeat: no-repeat;
  background-position: 220px 85px;
  background-size: 40%;
}

.energy-summary-plan {
  border: 1px solid #e5e9ec;
  padding: 20px;
  border-radius: 20px;
  min-height: 132px;
}

.energy-summary-plan__title {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #00b38d;
  margin-bottom: 12px;
}

.energy-summary-plan__content {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  margin: 0;
}

.energy-summary-plan__content strong {
  font-weight: 600;
}

.energy-chart {
  /* background-color: #f9fafb;
  border-radius: 24px; */
  padding: 24px 0;
}
.energy-chart__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.energy-chart__header h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #1f2937;
  margin: 0;
}

.energy-chart__canvas {
  height: 571px;
  padding: 30px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1px solid rgba(229, 233, 236, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.energy-chart__canvas canvas {
  max-width: 100%;
  max-height: 100%;
  height: auto !important;
  width: 100% !important;
}

.energy-chart__canvas__title {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 24px;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .energy-analysis {
    padding: 30px;
  }

  .energy-card__value {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .energy-analysis {
    padding: 24px;
  }

  .energy-analysis__title {
    font-size: 22px;
  }

  .energy-chart__canvas {
    height: 400px;
    padding: 20px;
  }

  .energy-summary-plan {
    padding: 16px;
    min-height: auto;
  }

  .energy-summary-plan__title {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 10px;
  }

  .energy-summary-plan__content {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ==========================================================================
   16. PRODUCT DETAIL MODAL STYLES
   ========================================================================== */

/* Modal Dialog */
.product-detail-modal .modal-dialog {
  max-width: 936px;
}

.product-detail-modal .modal-content {
  border: none;
  border-radius: 0;
}

/* Close Button */
.product-detail-modal .btn-close {
  background: transparent;
  border: none;
  padding: 0;
  opacity: 1;
  width: 24px;
  height: 24px;
}

.product-detail-modal .btn-close:hover {
  opacity: 0.7;
}

/* Product Gallery (Left Column) */
.product-modal-gallery {
  background-color: #f9f9f9;
  min-height: 542px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-modal-gallery .carousel {
  width: 100%;
  height: 100%;
}

.product-modal-gallery .carousel-inner {
  height: 100%;
}

.product-modal-gallery .carousel-item {
  height: 100%;
}

.product-modal-gallery .carousel-control-prev,
.product-modal-gallery .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-modal-gallery:hover .carousel-control-prev,
.product-modal-gallery:hover .carousel-control-next {
  opacity: 1;
}

.product-modal-gallery .carousel-control-prev:hover,
.product-modal-gallery .carousel-control-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Product Details (Right Column) */
.product-modal-details {
  background-color: #ffffff;
}

.product-modal-title {
  font-size: 20px;
  font-weight: 500;
  color: #1e1e1e;
  line-height: 1.4;
}

.product-modal-price {
  font-size: 20px;
  font-weight: 500;
  color: #1e1e1e;
}

.product-modal-description {
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
}

/* Quantity Input */
.product-modal-form .quantity-wrapper {
  font-size: 16px;
  font-weight: 500;
  color: #1e1e1e;
}

.product-modal-form .quantity-input {
  width: 100%;
  text-align: center;
  border: 1px solid var(--100, #d9e4eb);
  border-radius: 29px;
  padding: 8px 12px;
  font-size: 16px;
}

.product-modal-form .quantity-input:focus {
  outline: none;
  border-color: var(--700, #003758);
  box-shadow: 0 0 0 0.2rem rgba(0, 55, 88, 0.15);
}

/* Action Buttons */
.btn-modal-add-to-cart {
  background-color: #003758;
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
  padding: 8.5px 42px;
  border-radius: 29px;
  border: none;
  transition: all 0.3s ease;
}

.btn-modal-add-to-cart:hover {
  background-color: #002840;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 55, 88, 0.3);
}

.btn-modal-buy-now {
  background-color: transparent;
  color: #003758;
  font-size: 18px;
  font-weight: 500;
  padding: 7.5px 42px;
  border-radius: 29px;
  border: 1px solid #003758;
  width: 100%;
  max-width: 416px;
  transition: all 0.3s ease;
}

.btn-modal-buy-now:hover {
  background-color: #003758;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 55, 88, 0.3);
}

/* Payment Info Section */
.payment-info-section {
  background-color: #f3f4f6;
  padding: 15px;
}

.payment-info-text {
  font-size: 16px;
  font-weight: 400;
  color: #6b7280;
  text-align: center;
}

.payment-icon {
  height: 25px;
  width: auto;
  object-fit: contain;
}

/* Shipping Info Section */
.shipping-info-section {
  padding: 15px 0;
}

.shipping-info-text {
  font-size: 16px;
  font-weight: 400;
  color: #6b7280;
  line-height: 24px;
}

.shipping-link {
  color: #003758;
  text-decoration: underline;
  font-weight: 500;
}

.shipping-link:hover {
  color: #002840;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-detail-modal .modal-dialog {
    max-width: 100%;
    margin: 0.5rem;
  }

  .product-modal-image,
  .product-modal-gallery .carousel-item {
    height: 300px;
  }

  .product-modal-gallery {
    min-height: 300px;
  }

  .product-modal-details {
    padding: 1.5rem !important;
  }

  .product-modal-title {
    font-size: 18px;
  }

  .product-modal-price {
    font-size: 18px;
  }

  .product-modal-description {
    font-size: 14px;
  }

  .btn-modal-add-to-cart,
  .btn-modal-buy-now {
    font-size: 16px;
    padding: 12px 30px;
  }

  .btn-modal-buy-now {
    max-width: 100%;
  }

  .product-modal-gallery .carousel-control-prev,
  .product-modal-gallery .carousel-control-next {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   17. CUSTOM CART PAGE STYLES
   ========================================================================== */

.custom-cart-page {
  padding-top: 40px;
  padding-bottom: 60px;
}

.cart-page-title {
  font-size: 32px;
  font-weight: 400;
  color: #000b12;
}

/* Cart Items List - Column 1 */
.cart-table-wrapper {
  background: transparent;
  border-radius: 30px;
  border: 1px solid #d9e4eb;
  overflow: hidden;
  margin-bottom: 20px;
}

.cart-items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.cart-items-table thead {
  background: #f8f9fa;
}

.cart-items-table thead th {
  padding: 20px 16px;
  font-size: 16px;
  font-weight: 400;
  color: #000b12;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.cart-items-table thead th.product-column {
  padding-left: 30px;
}

.cart-items-table thead th.price-column,
.cart-items-table thead th.quantity-column,
.cart-items-table thead th.total-column {
  text-align: center;
}

.cart-items-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.cart-items-table tbody tr:last-child {
  border-bottom: none;
}

.cart-items-table tbody td {
  padding: 20px 16px;
  vertical-align: middle;
}

/* Table Footer */
.cart-items-table tfoot td {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.cart-footer-cell {
  background: transparent;
}

/* Product Info Column */
.product-info {
  padding-left: 30px !important;
}

.product-info-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: #000b12;
  margin-bottom: 4px;
}

.product-name a {
  color: #000b12;
  text-decoration: none;
}

.product-name a:hover {
  color: #003758;
}

/* Quantity Column */
.product-quantity {
  text-align: center;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quantity-controls .quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e4eb;
  border-radius: 27px;
  padding: 8px 12px;
  background: #fff;
}

.quantity-controls input[type="number"] {
  width: 50px;
  padding: 4px 8px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  -moz-appearance: textfield;
  background: transparent;
}

.quantity-controls input[type="number"]::-webkit-outer-spin-button,
.quantity-controls input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-controls input[type="number"]:focus {
  outline: none;
}

.quantity-controls button {
  background: transparent;
  border: none;
  color: #000b12;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.quantity-controls button:hover {
  color: #003758;
}

/* Total Column */
.product-subtotal {
  text-align: center;
}

.subtotal-with-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.subtotal-amount {
  font-size: 16px;
  font-weight: 500;
  color: #000b12;
}

.product-remove a {
  font-size: 24px;
  color: #999;
  text-decoration: none;
  line-height: 1;
  font-weight: 300;
  transition: color 0.3s ease;
  display: inline-block;
}

.product-remove a:hover {
  color: #dc3545;
}

.btn-add-more {
  width: 246px;
  height: 58px;
  font-size: 20px;
  font-weight: 400;
  color: #003758 !important;
  background: transparent;
  border: 1px solid #003758 !important;
  border-radius: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-add-more:hover {
  background: #003758 !important;
  color: #ffffff !important;
}

/* Order Summary - Column 2 */
.order-summary-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px 10px;
  position: sticky;
  top: 100px;
}

.order-summary-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #0f1113;
  margin-bottom: 24px;
}

.order-summary-content {
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
}

.summary-value {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
}

.summary-total {
  margin-top: 12px;
  padding-top: 20px;
}

.summary-total .summary-label {
  font-weight: 700;
}

.summary-total .total-value {
  font-weight: 700;
  font-size: 20px;
  color: #000000;
}

/* Coupon Form */
.coupon-form {
  margin: 24px 0;
}

.coupon-input-group {
  position: relative;
  width: 312px;
  max-width: 100%;
}

.coupon-input {
  width: 100%;
  height: 50px;
  padding: 12px 60px 12px 20px;
  border: 1px solid #d9e4eb !important;
  border-radius: 27px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.coupon-input:focus {
  border-color: #003758 !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 55, 88, 0.15);
}

.btn-coupon {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 51.77px;
  height: 40px;
  background: #003758;
  border: none;
  border-radius: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.btn-coupon:hover {
  background: #002840;
}

.btn-coupon svg {
  color: #ffffff;
  width: 20px;
  height: 20px;
}

/* Checkout Button */
.checkout-button-wrapper {
  margin-top: 24px;
}

.btn-checkout {
  max-width: 100%;
  color: #d9e4eb !important;
  background: #003758;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  background: #002840;
  color: #ffffff !important;
}

/* WooCommerce Notices */
.custom-cart-page .woocommerce-message,
.custom-cart-page .woocommerce-error,
.custom-cart-page .woocommerce-info {
  margin-bottom: 20px;
  border-radius: 8px;
  padding: 15px 20px;
}

.custom-cart-page .woocommerce-message {
  background: #d4edda;
  border-left: 4px solid #28a745;
  color: #155724;
}

.custom-cart-page .woocommerce-error {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.custom-cart-page .woocommerce-info {
  background: #d1ecf1;
  border-left: 4px solid #17a2b8;
  color: #0c5460;
}

/* Coupon Row in Summary */
.coupon-row {
  background: #e8f4f8;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 10px 0;
}

.coupon-row .summary-label {
  font-weight: 600;
  color: #003758;
}

.coupon-row .summary-value {
  font-weight: 600;
  color: #28a745;
}

/* Responsive Design */
@media (max-width: 991px) {
  .order-summary-box {
    position: static;
    margin-top: 30px;
  }

  .cart-page-title {
    font-size: 28px;
  }

  .cart-items-table thead {
    display: none;
  }

  .cart-items-table,
  .cart-items-table tbody,
  .cart-items-table tfoot,
  .cart-items-table tr,
  .cart-items-table td {
    display: block;
  }

  .cart-items-table tfoot td {
    text-align: center;
    padding: 20px;
  }

  .btn-add-more {
    width: 100%;
    max-width: 100%;
  }

  .cart-items-table tbody tr {
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
  }

  .cart-items-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .cart-items-table tbody td:last-child {
    border-bottom: none;
  }

  .product-info {
    padding-left: 20px !important;
  }

  .product-info-inner {
    flex-direction: row;
  }

  .product-thumbnail {
    width: 80px;
    height: 80px;
  }

  .product-price,
  .product-quantity,
  .product-subtotal {
    text-align: left !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .product-price::before,
  .product-quantity::before,
  .product-subtotal::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }

  .subtotal-with-remove {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .cart-page-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .cart-table-wrapper {
    border-radius: 20px;
  }

  .product-thumbnail {
    width: 70px;
    height: 70px;
  }

  .product-name {
    font-size: 14px;
  }

  .btn-add-more {
    width: 100%;
    max-width: 100%;
  }

  .coupon-input-group,
  .btn-checkout {
    width: 100%;
  }

  .order-summary-box {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .custom-cart-page {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .product-info-inner {
    gap: 12px;
  }

  .product-thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price,
  .subtotal-amount {
    font-size: 16px;
  }

  .summary-label,
  .summary-value {
    font-size: 16px;
  }

  .summary-total .total-value {
    font-size: 20px;
  }

  .hero-section .hero-container .hero-title {
    font-size: 42px;
    text-align: center;
  }

  .hero-section .hero-container .hero-subtitle {
    font-size: 32px;
    text-align: center;
  }
  .hero-section .hero-container .hero-description {
    text-align: center;
  }

  .hero-section .hero-container .hero-content-left {
    order: 2;
  }

  .hero-section .hero-container .hero-content-right {
    order: 1;
  }

  .hero-section .hero-container .hero-content-right img {
    width: 320px;
    height: auto;
  }

  .hero-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .btn-food-randomizer {
    font-size: 18px !important;
    padding: 8px 30px 8px 8px !important;
  }
}

.offcanvas-header .btn-close {
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

/* ==========================================================================
   18. PRINT STYLES
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .site-navigation,
  .btn-food-randomizer,
  .scroll-to-top {
    display: none;
  }
}

/* ==========================================================================   
   19. THAI ADDRESS CHECKOUT FIELDS
   ========================================================================== */

/* Custom input styling for Thai address fields */
.thai-input-field input[type="text"],
.thai-input-field input[type="email"],
.thai-input-field input[type="tel"],
.thai-input-field select,
.woocommerce-billing-fields .form-row input[type="text"],
.woocommerce-billing-fields .form-row input[type="email"],
.woocommerce-billing-fields .form-row input[type="tel"],
.woocommerce-billing-fields .form-row select,
.woocommerce-shipping-fields .form-row input[type="text"],
.woocommerce-shipping-fields .form-row input[type="email"],
.woocommerce-shipping-fields .form-row input[type="tel"],
.woocommerce-shipping-fields .form-row select {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  font-size: 16px;
  font-weight: 400;
  color: #111827;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

/* Textarea styling - no height restriction */
.thai-input-field textarea,
.woocommerce-billing-fields .form-row textarea,
.woocommerce-shipping-fields .form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  font-size: 16px;
  font-weight: 400;
  color: #111827;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: none !important;
  resize: vertical;
}

.thai-input-field input[type="text"]:focus,
.thai-input-field input[type="email"]:focus,
.thai-input-field input[type="tel"]:focus,
.thai-input-field select:focus,
.thai-input-field textarea:focus,
.woocommerce-billing-fields .form-row input[type="text"]:focus,
.woocommerce-billing-fields .form-row input[type="email"]:focus,
.woocommerce-billing-fields .form-row input[type="tel"]:focus,
.woocommerce-billing-fields .form-row select:focus,
.woocommerce-billing-fields .form-row textarea:focus,
.woocommerce-shipping-fields .form-row input[type="text"]:focus,
.woocommerce-shipping-fields .form-row input[type="email"]:focus,
.woocommerce-shipping-fields .form-row input[type="tel"]:focus,
.woocommerce-shipping-fields .form-row select:focus,
.woocommerce-shipping-fields .form-row textarea:focus {
  border-color: #014876 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 72, 118, 0.1) !important;
}

/* Form row layout - 2 columns max */
.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row {
  margin-bottom: 20px;
  clear: none;
}

.woocommerce-billing-fields .form-row-first,
.woocommerce-shipping-fields .form-row-first {
  width: 100%;
  float: left;
  clear: both;
  margin-right: 4%;
}

.woocommerce-billing-fields .form-row-last,
.woocommerce-shipping-fields .form-row-last {
  width: 100%;
  float: right;
  clear: none;
}

.woocommerce-billing-fields .form-row-wide,
.woocommerce-shipping-fields .form-row-wide {
  width: 100%;
  clear: both;
}

/* Label styling */
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label,
.billing-fields-wrapper label,
.shipping-fields-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.woocommerce-billing-fields label .required,
.woocommerce-shipping-fields label .required,
.billing-fields-wrapper label .required,
.shipping-fields-wrapper label .required {
  color: #dc3545;
  text-decoration: none;
}

/* Clear floats */
.woocommerce-billing-fields::after,
.woocommerce-shipping-fields::after,
.billing-fields-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Dropdown specific styling */
.thai-province-field select,
.thai-district-field select,
.thai-subdistrict-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230f1113' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.site-main {
  min-height: calc(100vh - 268px);
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {
  .woocommerce-billing-fields .form-row-first,
  .woocommerce-billing-fields .form-row-last,
  .woocommerce-shipping-fields .form-row-first,
  .woocommerce-shipping-fields .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    clear: both !important;
  }

  .thai-input-field input[type="text"],
  .thai-input-field input[type="email"],
  .thai-input-field input[type="tel"],
  .thai-input-field select,
  .woocommerce-billing-fields .form-row input,
  .woocommerce-billing-fields .form-row select,
  .woocommerce-shipping-fields .form-row input,
  .woocommerce-shipping-fields .form-row select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 991.98px) {
  .woocommerce-billing-fields .form-row-first,
  .woocommerce-billing-fields .form-row-last,
  .woocommerce-shipping-fields .form-row-first,
  .woocommerce-shipping-fields .form-row-last {
    width: 48%;
  }
}

.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.8);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 9999;

  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.page-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loading-text {
  color: #ffffff;
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.page-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-loading-spinner {
  border-color: #fff !important;
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}
