/* ===================================================================
   AD LASER ART - TransAsia / TAC E-Commerce Theme
   Clean, Modern White & Royal Blue Professional Store Styling
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0e64d2;
  --primary-dark: #094ba4;
  --primary-light: #e8f1fd;
  --secondary: #ff6a00;
  --accent: #22c55e;
  --dark: #1e293b;
  --gray-dark: #334155;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --gray-border: #e2e8f0;
  --white: #ffffff;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 12px 28px rgba(14, 100, 210, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f7f9fc;
  color: #1e293b;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Base Utility Classes */
a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Top Utility Bar */
.top-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-border);
  font-size: 12.5px;
  color: #64748b;
}

/* Main Header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.search-box-container {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 9999px;
  background: #ffffff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.search-box-container:focus-within {
  box-shadow: 0 0 0 3px rgba(14, 100, 210, 0.2);
}

.search-category-select {
  border: none;
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  border-right: 1px solid var(--gray-border);
  outline: none;
  cursor: pointer;
}

.search-input {
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 13.5px;
  width: 100%;
  color: #1e293b;
}

.search-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

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

/* Navigation Bar */
.nav-bar-container {
  background-color: var(--primary);
  color: #ffffff;
}

.categories-trigger-btn {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 270px;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.categories-trigger-btn:hover {
  background-color: #063980;
}

.nav-link-item {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 18px;
  display: inline-block;
  letter-spacing: 0.3px;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link-item:hover,
.nav-link-item.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Category Sidebar */
.category-sidebar {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

.category-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10.5px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  cursor: pointer;
}

.category-menu-item:last-child {
  border-bottom: none;
}

.category-menu-item:hover {
  background-color: #f8fafc;
  color: var(--primary);
  padding-left: 22px;
}

.category-menu-item i.cat-icon {
  width: 20px;
  color: #64748b;
  margin-right: 10px;
  font-size: 13px;
  transition: color 0.15s ease;
}

.category-menu-item:hover i.cat-icon {
  color: var(--primary);
}

/* Hero Carousel */
.hero-slider-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 440px;
  background: linear-gradient(135deg, #0f2b46 0%, #153c63 50%, #0d2138 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
}

.slide-content {
  z-index: 2;
  max-width: 540px;
}

.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.slide-btn {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(14, 100, 210, 0.4);
}

.slide-btn:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

.slide-btn.orange-btn {
  background-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4);
}

.slide-btn.orange-btn:hover {
  background-color: #ffffff;
  color: var(--secondary);
}

/* Promo Cards (4-column row under Hero) */
.promo-banner-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--card-shadow);
}

.promo-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
  border-color: #bfdbfe;
}

.promo-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

/* Tabs Section */
.tab-button {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Product Card - Clean TransAsia / TAC Store Style */
.product-card {
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
}

.product-image-container {
  position: relative;
  height: 190px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.product-image-container img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  z-index: 2;
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
}

.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  transition: color 0.15s ease;
}

.product-title:hover {
  color: var(--primary);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.product-current-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.product-old-price {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

.add-to-cart-btn {
  background-color: #f1f5f9;
  color: var(--primary);
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Wide Promotional Banner */
.wide-promo-strip {
  background: linear-gradient(90deg, #052449 0%, #0e64d2 60%, #1e40af 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 38px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(14, 100, 210, 0.2);
}

/* Interactive Dropdown Cart */
.cart-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 370px;
  max-width: 92vw;
  background: #ffffff;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16);
  z-index: 50;
  margin-top: 6px;
}

/* Invisible hover bridge to eliminate gap so mouse movement never loses hover */
.cart-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.cart-widget:hover .cart-dropdown-panel,
.cart-dropdown-panel.open,
.cart-dropdown-panel.show {
  display: block !important;
  animation: fadeInDown 0.18s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Checkout View - Clean TransAsia Layout (Video 00:21 - 00:28) */
.checkout-container {
  display: none;
}

.checkout-container.active {
  display: block;
}

.form-input-control {
  width: 100%;
  border: 1px solid var(--gray-border);
  background-color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 100, 210, 0.12);
}

.order-review-table {
  width: 100%;
  border-collapse: collapse;
}

.order-review-table th,
.order-review-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.order-review-table th {
  text-align: left;
  font-weight: 700;
  color: #475569;
  background-color: #f8fafc;
}

.bank-details-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #334155;
  margin-top: 10px;
}

/* Footer */
.footer-container {
  background-color: #ffffff;
  border-top: 1px solid var(--gray-border);
  color: #475569;
}

.footer-hotline-box {
  background-color: #f8fafc;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-whatsapp:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #1e293b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .categories-desktop-col {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-slider-card {
    min-height: 340px;
  }
  .slide-title {
    font-size: 26px;
  }
  .search-box-container {
    border-radius: var(--radius-md);
  }
  .search-category-select {
    display: none;
  }
}

/* Customized Badge */
.bg-teal-600 { background-color: #0d9488 !important; }
