:root {
  --primary: #FF6A00;
  --primary-dark: #E55C00;
  --primary-light: #FF8A33;
  --secondary: #0066FF;
  --secondary-dark: #0052CC;
  --secondary-light: #3385FF;
  --background: #F5F6FA;
  --card: #FFFFFF;
  --text: #222222;
  --text-muted: #666666;
  --border: #E8E8E8;
  --success: #2ECC71;
  --danger: #E74C3C;
  --warning: #F1C40F;
  
  --radius-card: 12px;
  --radius-button: 10px;
  --radius-input: 10px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
}

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

body {
  font-family: 'Prompt', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.header {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.navbar {
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-size: 1.75rem;
  font-weight: 700;
}

.search-box {
  display: flex;
  gap: var(--spacing-sm);
  background: var(--background);
  border-radius: var(--radius-input);
  padding: var(--spacing-xs);
}

.search-input {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: var(--spacing-sm) var(--spacing-md);
}

.search-input:focus {
  box-shadow: none;
  background: transparent;
}

.search-btn {
  border-radius: var(--radius-button);
  padding: var(--spacing-sm) var(--spacing-lg);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

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

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.7rem;
}

.sub-header {
  border-top: 1px solid var(--border);
  padding: var(--spacing-sm) 0;
}

.sub-header .nav-link {
  padding: var(--spacing-sm) var(--spacing-md);
  transition: color 0.3s;
}

.sub-header .nav-link:hover {
  color: var(--primary);
}

.mega-menu {
  width: 800px;
  padding: var(--spacing-lg);
}

.hero-section .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.flash-countdown {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.countdown-item {
  background: var(--danger);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-button);
  font-weight: 600;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.product-card {
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  transition: transform 0.3s ease;
}

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

.discount-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--danger);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-button);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.price-current {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.price-original {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.85rem;
}

.product-sold {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.category-card {
  border: none;
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-card);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-sm);
  overflow: hidden;
}

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

.brand-card {
  border: none;
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

.brand-card:hover {
  box-shadow: var(--shadow-md);
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  overflow: hidden;
  border: 2px solid var(--border);
}

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

.promo-card {
  border: none;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.promo-card img {
  height: 200px;
  object-fit: cover;
}

.footer {
  background: var(--card);
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-2xl);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--primary);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary);
  color: white;
}

.download-btn {
  display: flex;
  align-items: center;
  background: var(--text);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: all 0.3s;
}

.download-btn:hover {
  background: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.floating-btn {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
}

.floating-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-button);
}

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

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: var(--radius-button);
}

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

.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
  border-radius: var(--radius-button);
}

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

.form-control, .form-select {
  border-radius: var(--radius-input);
  border-color: var(--border);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.15);
}

.sidebar {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
}

.sidebar-menu .nav-link {
  color: var(--text);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-button);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  background: var(--background);
  color: var(--primary);
}

.stats-card {
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
}

.stats-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stats-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.stats-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.table thead th {
  background: var(--background);
  border: none;
  font-weight: 600;
}

.table tbody td {
  vertical-align: middle;
}

.badge {
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-button);
}

.page-header {
  background: var(--card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-card);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.toolbar {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.review-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.coupon-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  color: white;
}

@media (max-width: 1400px) {
  .hero-section .carousel-item img {
    height: 350px;
  }
}

@media (max-width: 992px) {
  .hero-section .carousel-item img {
    height: 280px;
  }
  
  .mega-menu {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero-section .carousel-item img {
    height: 200px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .price-current {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-section .carousel-item img {
    height: 160px;
  }
  
  .category-icon {
    width: 50px;
    height: 50px;
  }
  
  .brand-logo {
    width: 60px;
    height: 60px;
  }
  
  .floating-btn {
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
  }
}

/* เมนูมือถือสไลด์จากด้านขวาและจัดเนื้อหาชิดขวา */
@media (max-width: 992px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    transition: 0.4s ease;
    z-index: 1050;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: block !important;
    text-align: right;
  }
  
  .navbar-collapse.show {
    right: 0;
  }

  .navbar-collapse .navbar-nav {
    align-items: flex-end;
  }
}

.navbar-collapse-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.navbar-collapse.show ~ .navbar-collapse-overlay {
  display: block;
}

/* ==========================================================================
   King Watsadu Modern E-Commerce Storefront Styles
   ========================================================================== */

/* Trust Bar / Service Guarantee */
.trust-bar-section {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 12px 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.trust-item:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.trust-item h6 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #1e293b;
}

.trust-item p {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.2;
}

/* Hero Section & Side Promo Cards */
.hero-slider-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.hero-slider-card .carousel-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.side-promo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 200px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  text-decoration: none;
}

.side-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  color: #ffffff;
}

.side-promo-card .promo-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.side-promo-card:hover .promo-bg-img {
  transform: scale(1.06);
}

.side-promo-card .promo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(15,23,42,0.85) 100%);
}

.side-promo-card .promo-content {
  position: relative;
  z-index: 3;
}

/* Quick Action Bar (Contractor / Service / Catalog) */
.quick-action-strip {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #334155;
  text-decoration: none;
  background: #f8fafc;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.quick-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.quick-action-btn.highlight {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.quick-action-btn.highlight:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
}

/* Category Grid & Modern Category Pills */
.category-bubble-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.category-bubble-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.07);
  border-color: #f59e0b;
  color: #d97706;
}

.category-bubble-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.category-bubble-card:hover .category-bubble-icon {
  transform: scale(1.1);
}

.category-bubble-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2px;
}

.category-bubble-count {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Flash Sale Header & Container */
.flash-sale-container {
  background: linear-gradient(135deg, #fff5f5 0%, #fffbf0 100%);
  border-radius: 18px;
  border: 1px solid #fed7aa;
  padding: 24px;
}

.flash-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  padding: 4px 10px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 0.85rem;
}

.flash-time-digit {
  background: #ef4444;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Product Card - Professional Modern E-Commerce */
.pro-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.pro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
}

.pro-badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  display: inline-block;
  text-transform: uppercase;
}

.badge-discount {
  background: #ef4444;
  color: #ffffff;
}

.badge-freeship {
  background: #10b981;
  color: #ffffff;
}

.badge-best {
  background: #f59e0b;
  color: #ffffff;
}

.badge-official {
  background: #3b82f6;
  color: #ffffff;
}

.pro-thumb-link {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 90%;
  overflow: hidden;
  background: #f8fafc;
}

.pro-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s ease;
}

.pro-card:hover .pro-thumb-img {
  transform: scale(1.07);
}

.pro-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pro-category-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 4px;
}

.pro-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.2s;
}

.pro-name:hover {
  color: #f59e0b;
}

.pro-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #f59e0b;
  margin-bottom: 8px;
}

.pro-rating .reviews-count {
  color: #94a3b8;
}

.pro-price-block {
  margin-top: auto;
  margin-bottom: 10px;
}

.pro-price-current {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ef4444;
  line-height: 1;
}

.pro-price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}

/* Flash sale stock progress */
.flash-progress-bar {
  background: #fee2e2;
  border-radius: 10px;
  height: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.flash-progress-fill {
  background: linear-gradient(90deg, #f87171, #ef4444);
  height: 100%;
  border-radius: 10px;
}

.flash-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0.65rem;
  font-weight: 600;
  color: #7f1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-btn-buy {
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 7px 10px;
  width: 100%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.pro-card:hover .pro-btn-buy {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
}

/* Category Pillar Section Header & Banner */
.pillar-section-banner {
  border-radius: 14px;
  padding: 24px 30px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.pillar-banner-construction {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

.pillar-banner-furniture {
  background: linear-gradient(135deg, #854d0e 0%, #a16207 50%, #ca8a04 100%);
}

.pillar-banner-appliance {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
}

.pillar-banner-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-banner-desc {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.pillar-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pillar-filter-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.pillar-filter-pill:hover,
.pillar-filter-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}

/* Brand Partners Showcase Grid */
.brand-partner-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  text-decoration: none;
}

.brand-partner-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.brand-partner-img {
  max-width: 100%;
  max-height: 55px;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.25s ease;
}

.brand-partner-card:hover .brand-partner-img {
  filter: grayscale(0%);
}

/* Home Service / ช่างคิงส์ */
.service-feature-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-feature-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.service-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.service-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}

.service-feature-desc {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 14px;
  line-height: 1.4;
}

.service-btn {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
}

/* Mid Campaign Banners */
.campaign-banner-box {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s ease;
}

.campaign-banner-box:hover {
  transform: translateY(-4px);
}

.campaign-banner-box img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-slider-card .carousel-item img {
    height: 300px;
  }
  .side-promo-card {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .hero-slider-card .carousel-item img {
    height: 220px;
  }
  .trust-bar-section {
    padding: 8px 0;
  }
  .pillar-banner-title {
    font-size: 1.2rem;
  }
  .category-bubble-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
  .pro-card-body {
    padding: 10px;
  }
  .pro-name {
    font-size: 0.82rem;
  }
  .pro-price-current {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Thai Watsadu / HomePro Theme (#4D4D4D Charcoal & #FFC107 Yellow Gold)
   ========================================================================== */

/* Category Sidebar (HomePro / Thai Watsadu Style) */
.kw-category-sidebar {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  height: 100%;
}

.kw-cat-header {
  background: #4D4D4D;
  color: #FFC107;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #FFC107;
}

.kw-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kw-cat-item {
  border-bottom: 1px solid #f1f5f9;
}

.kw-cat-item:last-child {
  border-bottom: none;
}

.kw-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kw-cat-link:hover {
  background: #fffdf5;
  color: #b45309;
  padding-left: 20px;
}

.kw-cat-icon {
  width: 28px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Thai Watsadu / HomePro Section Bar Header */
.kw-section-header {
  background: #4D4D4D;
  border-left: 6px solid #FFC107;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kw-section-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kw-section-title i {
  color: #FFC107;
  font-size: 1.4rem;
}

.kw-section-subtitle {
  color: #d1d5db;
  font-size: 0.82rem;
  margin-left: 36px;
  margin-bottom: 0;
}

.kw-section-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.kw-pill-link {
  background: rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kw-pill-link:hover,
.kw-pill-link.active {
  background: #FFC107;
  color: #1e293b;
  font-weight: 600;
  border-color: #FFC107;
}

.kw-btn-all {
  background: #FFC107;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
}

.kw-btn-all:hover {
  background: #e6a100;
  color: #0f172a;
}

/* HomePro / Thai Watsadu Shock Price Banner */
.kw-shock-header {
  background: linear-gradient(90deg, #4D4D4D 0%, #b91c1c 65%, #dc2626 100%);
  border-left: 6px solid #FFC107;
}

/* Daily Promo Cards (Right Column) */
.kw-deal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  height: calc(50% - 6px);
  min-height: 195px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
}

.kw-deal-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.kw-deal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kw-deal-box:hover .kw-deal-bg {
  transform: scale(1.05);
}

.kw-deal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(77,77,77,0.15) 0%, rgba(30,30,30,0.88) 100%);
}

.kw-deal-body {
  position: relative;
  z-index: 3;
  color: #ffffff;
}

.kw-badge-yellow {
  background: #FFC107;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* Thai Watsadu Product Card Details */
.kw-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.kw-card:hover {
  border-color: #FFC107;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.kw-badge-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.kw-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: #f8fafc;
  overflow: hidden;
}

.kw-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.35s ease;
}

.kw-card:hover .kw-card-thumb img {
  transform: scale(1.06);
}

.kw-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kw-pro-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  text-decoration: none;
}

.kw-pro-name:hover {
  color: #d97706;
}

.kw-price-row {
  margin-top: auto;
  margin-bottom: 8px;
}

.kw-price-now {
  font-size: 1.15rem;
  font-weight: 700;
  color: #dc2626;
}

.kw-price-was {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 6px;
}

.kw-btn-cart {
  background: #4D4D4D;
  color: #FFC107;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.kw-card:hover .kw-btn-cart {
  background: #FFC107;
  color: #1e293b;
}

/* Trust Bar Charcoal */
.kw-trust-bar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.kw-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kw-trust-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 8px;
  background: #4D4D4D;
  color: #FFC107;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}