/* ==========================================================================
   WINRO INNO TELECOM SUPPLIES TRADING - CORE SYSTEM STYLING
   Shopee-Inspired Modern Theme | Responsive E-Commerce Single Page App
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --shopee-orange: hsl(10, 85%, 55%);      /* Vibrant Orange-Red: #ee4d2d */
  --shopee-orange-hover: hsl(10, 85%, 48%);
  --shopee-orange-light: hsl(10, 85%, 96%); /* Very soft light orange tint */
  --telecom-blue: hsl(210, 95%, 45%);      /* Professional Network Blue */
  --telecom-blue-hover: hsl(210, 95%, 38%);
  --bg-dark: hsl(222, 47%, 11%);           /* Navy-Slate dark */
  --bg-dark-light: hsl(222, 47%, 16%);
  --bg-light: hsl(210, 40%, 98%);          /* Soft body light grey */
  --card-bg: hsl(0, 0%, 100%);
  --text-main: hsl(217, 33%, 17%);         /* Slate-800 */
  --text-muted: hsl(215, 16%, 47%);        /* Slate-500 */
  --border-color: hsl(214, 32%, 91%);      /* Slate-200 */
  --success: hsl(142, 70%, 45%);           /* Green-600 */
  --success-light: hsl(142, 70%, 95%);
  --warning: hsl(38, 92%, 50%);            /* Amber-500 */
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-main);
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-orange: 0 4px 14px rgba(238, 77, 45, 0.3);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Utilities */
.hidden {
  display: none !important;
}

.success-text {
  color: var(--success) !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   2. BUTTONS & UI CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--shopee-orange);
  color: white;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--shopee-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  color: var(--shopee-orange);
  border-color: var(--shopee-orange);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  background-color: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
}

/* --------------------------------------------------------------------------
   3. STICKY HEADER
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 100;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--shopee-orange), #ff7e5f);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-orange);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-dark), var(--shopee-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--shopee-orange);
}

.nav-link.active {
  color: var(--shopee-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--shopee-orange);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 240px;
}

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

#search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#search-input:focus {
  background-color: white;
  border-color: var(--shopee-orange);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-btn:hover {
  border-color: var(--shopee-orange);
  color: var(--shopee-orange);
  background-color: var(--shopee-orange-light);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background-color: var(--shopee-orange);
  color: white;
  border-radius: var(--radius-round);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  margin-top: var(--header-height);
  padding: 100px 24px;
  background-color: var(--bg-dark);
  background-image: radial-gradient(at top right, var(--bg-dark-light) 0%, var(--bg-dark) 70%);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.badge-since {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.25) 0%, rgba(255, 126, 95, 0.25) 100%);
  color: #ff9f89;
  border: 1px solid rgba(238, 77, 45, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  animation: pulseLight 3s infinite;
}

@keyframes pulseLight {
  0% { border-color: rgba(238, 77, 45, 0.4); }
  50% { border-color: rgba(238, 77, 45, 0.9); }
  100% { border-color: rgba(238, 77, 45, 0.4); }
}

.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #ffe2dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. QUICK INFORMATION COMPONENT
   -------------------------------------------------------------------------- */
.main-content-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.quick-info-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
}

.info-card-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-ph {
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.info-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.info-item:hover {
  border-color: var(--shopee-orange-light);
  background-color: white;
  box-shadow: var(--shadow-md);
}

.info-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-details h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.info-details .phone-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.info-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--shopee-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.info-link:hover {
  color: var(--shopee-orange-hover);
  text-decoration: underline;
}

.info-details-full {
  background-color: var(--bg-dark);
  color: white;
  grid-column: span 1;
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.info-details-full h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #94a3b8;
}

.info-details-full p {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.delivery-guarantee {
  font-size: 0.78rem;
  color: #ff9f89;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   6. CATALOG CONTROLS & GRID
   -------------------------------------------------------------------------- */
.catalog-section {
  margin-bottom: 60px;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--shopee-orange);
  border-radius: 5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  background-color: white;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.tab-btn {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--shopee-orange);
  background-color: var(--shopee-orange-light);
}

.tab-btn.active {
  color: white;
  background-color: var(--shopee-orange);
  box-shadow: var(--shadow-sm);
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.sort-selector label {
  color: var(--text-muted);
  font-weight: 500;
}

#sort-select {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: white;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#sort-select:focus {
  border-color: var(--shopee-orange);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  min-height: 300px;
}

/* --------------------------------------------------------------------------
   7. PRODUCT CARD DESIGN
   -------------------------------------------------------------------------- */
.product-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(238, 77, 45, 0.2);
}

/* Badges */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: white;
}

.tag-stock { background-color: var(--success); }
.tag-promo { background-color: var(--warning); }
.tag-telecom { background-color: var(--telecom-blue); }

/* Card Image Area */
.product-image-container {
  height: 200px;
  width: 100%;
  background-color: #fafafa;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

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

/* Details Section */
.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.stars {
  color: var(--warning);
}

.reviews-count {
  color: var(--text-muted);
}

.card-divider {
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 14px;
}

.product-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-currency {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--shopee-orange);
  line-height: 1.1;
}

.add-cart-btn {
  width: 40px;
  height: 40px;
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.add-cart-btn:hover {
  background-color: var(--shopee-orange);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(238, 77, 45, 0.2);
}

.add-cart-btn:active {
  transform: scale(0.95);
}

/* Loading & Empty state */
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-state i {
  font-size: 2.2rem;
  color: var(--shopee-orange);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   8. BRAND ABOUT / DETAILS BLOCK
   -------------------------------------------------------------------------- */
.details-text-section {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.details-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.details-branding h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.details-branding .established {
  color: var(--shopee-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.brand-divider {
  width: 80px;
  height: 3px;
  background-color: var(--shopee-orange);
  margin-bottom: 20px;
}

.brand-text {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.details-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.details-subcard {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

.subcard-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.details-subcard h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.details-subcard p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. CART DRAWER (SLIDING FROM RIGHT)
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background-color: white;
  z-index: 200;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Items Area */
.cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-cart-state {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
}

.empty-cart-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.empty-cart-state p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* Selected Cart Item Card */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  position: relative;
  transition: all 0.2s ease;
}

.cart-item:hover {
  background-color: white;
  border-color: rgba(238, 77, 45, 0.2);
}

.cart-item-img-box {
  width: 60px;
  height: 60px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--shopee-orange);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.quantity-spin {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  overflow: hidden;
}

.spin-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--text-muted);
}

.spin-btn:hover {
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
}

.spin-val {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.item-delete-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-delete-btn:hover {
  color: var(--shopee-orange);
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.02);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.price-amount {
  color: var(--shopee-orange);
  font-size: 1.3rem;
  font-weight: 800;
}

.cart-shipping-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.cart-shipping-note i {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   10. CHECKOUT MODAL & FORMS
   -------------------------------------------------------------------------- */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: 90%;
  max-width: 980px;
  height: 85%;
  max-height: 750px;
  background-color: white;
  z-index: 300;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-body {
  flex-grow: 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.checkout-form {
  padding: 24px;
  overflow-y: auto;
  height: 100%;
}

.form-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--shopee-orange);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.required {
  color: var(--shopee-orange);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  border-color: var(--shopee-orange);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}

.country-prefix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.input-with-icon input[id="checkout-mobile"] {
  padding-left: 48px;
}

.field-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.error-msg {
  color: var(--shopee-orange);
  font-size: 0.72rem;
  font-weight: 600;
  display: none;
  margin-top: 4px;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-group.invalid input {
  border-color: var(--shopee-orange) !important;
  background-color: var(--shopee-orange-light);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.form-group select,
.form-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--shopee-orange);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}

.mt-4 { margin-top: 24px; }
.mr-4 { margin-right: 24px; }

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.payment-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  transition: all 0.2s ease;
}

.payment-card input {
  margin-top: 4px;
  accent-color: var(--shopee-orange);
}

.payment-card-content {
  display: flex;
  gap: 16px;
}

.payment-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.payment-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.3;
}

.payment-card:hover {
  background-color: var(--bg-light);
  border-color: rgba(238, 77, 45, 0.2);
}

.payment-card.active {
  border-color: var(--shopee-orange);
  background-color: var(--shopee-orange-light);
}

.payment-card.active .payment-icon {
  color: var(--shopee-orange);
}

.payment-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--bg-light);
  border-color: var(--border-color);
}

.payment-card.disabled:hover {
  background-color: var(--bg-light) !important;
  border-color: var(--border-color) !important;
}

/* Checkout Summary Column (Right) */
.checkout-summary-col {
  background-color: var(--bg-light);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.checkout-summary-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.checkout-items-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 4px;
}

.checkout-sum-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.sum-item-name {
  color: var(--text-main);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 220px;
}

.sum-item-qty {
  color: var(--text-muted);
  font-weight: 600;
}

.sum-item-price {
  font-weight: 700;
  color: var(--text-main);
}

.summary-totals {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-row span:last-child {
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 12px 0;
}

.grand-total {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0;
}

.grand-total span:first-child {
  color: var(--text-main) !important;
  font-weight: 700;
}

.grand-total span:last-child {
  color: var(--shopee-orange);
  font-size: 1.2rem;
  font-weight: 800;
}

.checkout-assurance {
  margin-top: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.checkout-assurance i {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   11. SUCCESS SCREEN OVERLAY & INVOICE
   -------------------------------------------------------------------------- */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 24px;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background-color: white;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  text-align: center;
  margin: auto;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.active .success-card {
  transform: translateY(0);
}

.success-icon-animate {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.success-checkmark {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-round);
  background-color: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 0 10px rgba(74, 222, 128, 0.1);
  animation: scaleInCheck 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleInCheck {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.success-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Invoice Box Styling */
.invoice-box {
  background-color: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin-bottom: 28px;
  position: relative;
}

/* Receipt Jagged Edge visual */
.invoice-box::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  background-image: linear-gradient(135deg, white 25%, transparent 25%), 
                    linear-gradient(225deg, white 25%, transparent 25%);
  background-size: 12px 12px;
  background-repeat: repeat-x;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  border-bottom: 2px dashed var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.invoice-header strong {
  letter-spacing: 0.5px;
  color: var(--text-main);
}

#invoice-id {
  color: var(--shopee-orange);
  font-weight: 700;
}

.invoice-body {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.invoice-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.invoice-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
}

.text-right-aligned {
  text-align: right;
  max-width: 260px;
}

.uppercase { text-transform: uppercase; }

.invoice-divider {
  height: 1px;
  border-top: 1px dashed var(--border-color);
  margin: 10px 0;
}

.invoice-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.invoice-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.invoice-item-row span:first-child {
  color: var(--text-main);
  max-width: 240px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.invoice-item-row span:last-child {
  font-weight: 700;
}

.invoice-grand-total {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
}

.invoice-grand-total span:first-child {
  color: var(--text-main) !important;
}

.invoice-grand-total span:last-child {
  color: var(--shopee-orange);
  font-size: 1.15rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   12. INTERACTIVE FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  border-top: 1px solid var(--bg-dark-light);
  padding: 60px 24px 0 24px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

.brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.footer-logo i {
  color: var(--shopee-orange);
  font-size: 1.3rem;
}

.footer-logo h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-about {
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-note {
  color: #ff9f89;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.links-col h4,
.address-col h4 {
  font-family: var(--font-heading);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}

.links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}

.links-col a:hover {
  color: var(--shopee-orange);
  padding-left: 4px;
}

.address-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
}

.address-col p i {
  color: var(--shopee-orange);
  margin-right: 8px;
}

.footer-address {
  line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--bg-dark-light);
  padding: 24px 0;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-badges {
  display: flex;
  gap: 16px;
}

.footer-badges .badge {
  background-color: var(--bg-dark-light);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE VIEWS & MEDIA QUERIES
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-details-full {
    grid-column: span 2;
  }
  .details-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .checkout-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .checkout-summary-col {
    border-left: none;
    border-top: 1px solid var(--border-color);
    height: auto;
  }
  .checkout-modal {
    height: 90%;
    max-height: none;
  }
}

@media (max-width: 768px) {
  /* Typography scales */
  .hero-content h2 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .main-header {
    height: 70px;
  }
  .nav-menu {
    display: none; /* Mobile Hamburger details omitted for clean desktop first header scale */
  }
  .search-box {
    display: none; /* Hide on small screen header to avoid overlap */
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-details-full {
    grid-column: span 1;
  }
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cart-drawer {
    width: 100%;
  }
  .success-card {
    padding: 24px;
  }
}
