/* ==========================================================================
   KENAFY x BDSHOP ADVANCED UI SYSTEM
   Color Palette: BDShop Royal Blue (#1C4ED8), Warm Yellow (#F59E0B), Clean White (#FFFFFF), Slate (#0F172A)
   ========================================================================== */

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

:root {
  --bd-blue: #1C4ED8;
  --bd-blue-hover: #1E40AF;
  --bd-blue-light: #EFF6FF;
  --bd-yellow: #F59E0B;
  --bd-yellow-gold: #D97706;
  --bd-green: #10B981;
  --bd-red: #EF4444;
  --bd-dark: #0F172A;
  
  --bg-main: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-light: #E2E8F0;
  --border-dark: #CBD5E1;
  
  --text-main: #1E293B;
  --text-muted: #475569;
  --text-light: #64748B;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  --font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- FULL SCREEN SECTION --- */
.full-screen-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

/* --- Top Announcement Bar --- */
.top-announcement {
  background-color: #0F172A;
  color: #CBD5E1;
  font-size: 13px;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1E293B;
}

.top-announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-announcement-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* --- Main Header --- */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: var(--bd-yellow-gold);
}

.brand-logo span.logo-blue { color: var(--bd-blue); }

.header-search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  outline: none;
}

.header-search input:focus {
  background: var(--bg-white);
  border-color: var(--bd-blue);
}

.header-search .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-header-pill {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bg-white);
  cursor: pointer;
  border: none;
}

.btn-group-buy { background-color: var(--bd-blue); }
.btn-partner { background-color: var(--bd-green); }

.header-user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
}

.account-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 200;
}

.account-dropdown-menu.active { display: flex; }

.account-dropdown-menu a {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}

/* --- Navigation Bar --- */
.nav-bar {
  background-color: var(--bd-blue);
  color: var(--bg-white);
}

.nav-inner { display: flex; align-items: center; }

.category-dropdown-trigger {
  background-color: #153EAF;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.nav-menu { display: flex; align-items: center; margin-left: 0.5rem; }

.nav-menu a {
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #DBEAFE;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.12);
}

/* --- Category Mega Menu Flyout --- */
.category-mega-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-height: 380px;
}

.category-side-menu {
  background: #F8FAFC;
  border-right: 1px solid var(--border-light);
  padding: 0.5rem 0;
}

.category-item-link {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.category-item-link:hover, .category-item-link.active {
  background: var(--bg-white);
  color: var(--bd-blue);
}

.mega-content-panel { padding: 1.5rem; }
.mega-content-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border-light);
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}

.subcategory-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- ATTACHED BANNER SLIDER & VIDEO CONTAINER (SEAMLESS ATTACHED LAYOUT) --- */
.hero-attached-banner-video {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .hero-attached-banner-video { grid-template-columns: 1fr; }
}

/* Automatic Image Banner Carousel Slider */
.banner-carousel-slider {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

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

.banner-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.banner-dot.active {
  background: var(--bd-blue);
  width: 24px;
  border-radius: 5px;
}

/* Attached Video Stream Box */
.attached-video-box {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-sm);
}

.attached-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- HERO POSTER CARDS --- */
.hero-compact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-promo-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  height: 180px;
  box-shadow: var(--shadow-sm);
}

.hero-promo-card img { width: 100%; height: 100%; object-fit: cover; }

/* --- Section Heading --- */
.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.75rem 0 1rem 0;
}

.section-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header-title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--bd-blue);
  border-radius: 2px;
}

.see-more-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bd-blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- ENHANCED TALL PRODUCT CARDS & IMAGE UI (LOMBA & BEAUTIFUL IMAGES) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-compact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-compact-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  min-height: 330px; /* Taller Lomba Card Format */
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--bd-blue);
  box-shadow: var(--shadow-md);
}

.card-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--bd-red);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  z-index: 2;
}

/* Taller High Quality Image Frame (180px Height) */
.product-thumb {
  width: 100%;
  height: 180px; /* Increased Height for Product Image UI */
  background-color: #FFFFFF;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid #F1F5F9;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.stock-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background-color: rgba(16, 185, 129, 0.95);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.price-row { margin-top: auto; margin-bottom: 0.6rem; }
.current-price { font-size: 1.1rem; font-weight: 800; color: var(--bd-blue); font-family:'Plus Jakarta Sans',sans-serif; }
.old-price { font-size: 0.82rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.4rem; }

.btn-add-order {
  width: 100%;
  background-color: var(--bd-blue);
  color: var(--bg-white);
  border: none;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-add-order:hover {
  background-color: var(--bd-blue-hover);
}

/* --- Footer --- */
.main-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem 0;
  margin-top: 3.5rem;
  border-top: 3px solid var(--bd-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title { color: var(--bg-white); font-size: 1rem; font-weight: 800; margin-bottom: 1.1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: #94A3B8; }
.footer-links a:hover { color: var(--bd-yellow); }
.footer-bottom { text-align: center; font-size: 0.82rem; border-top: 1px solid #1E293B; padding-top: 1.5rem; }

/* AI Floating Drawer */
.ai-widget-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: var(--bd-blue);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.ai-chat-drawer {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 360px;
  height: 460px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 999;
  overflow: hidden;
}

.ai-chat-drawer.active { display: flex; }
.ai-chat-header {
  background: var(--bd-blue);
  color: var(--bg-white);
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
