/* WhiMarket — Standard E-Commerce Country Gateway Stylesheet */
:root {
  --primary-purple: #4F26A6;
  --primary-purple-hover: #3E1D85;
  --primary-purple-light: #F3EEFF;
  --primary-purple-border: #D8B4FE;
  
  --green-active: #059669;
  --green-light: #ECFDF5;
  
  --amber-accent: #D97706;
  --amber-light: #FEF3C7;
  
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-disabled: #F9FAFB;
  
  --border-color: #E5E7EB;
  --border-disabled: #E5E7EB;
  
  --text-main: #111827;
  --text-muted: #6B7280;
  --text-disabled: #9CA3AF;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 16px 36px -6px rgba(79, 38, 166, 0.14), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Header */
.ecommerce-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
/* Main */
.ecommerce-main {
  flex: 1;
  padding: 56px 20px 72px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Hero Section */
.portal-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.portal-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 14px;
}

.portal-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 3-Column Country Grid */
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

/* Country Card Base */
.country-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 36px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

/* Flag Box */
.card-flag-box {
  width: 96px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  background: #FFFFFF;
}

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

/* Card Info */
.card-info {
  width: 100%;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.country-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.country-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.country-domain {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 10px;
}

.currency-tag {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Status Pills */
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill-active {
  background: var(--green-light);
  color: var(--green-active);
}

.pill-gray {
  background: #E5E7EB;
  color: #6B7280;
}

/* Card CTA */
.card-cta {
  width: 100%;
  margin-top: auto;
}

/* Active Card (Indonesia) */
.active-card {
  border: 2px solid var(--primary-purple-border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.active-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-hover);
}

.btn-shop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-purple);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.active-card:hover .btn-shop {
  background: var(--primary-purple-hover);
}

.cta-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.active-card:hover .cta-arrow {
  transform: translateX(4px);
}

/* Disabled Cards (Malaysia & Thailand - Warna Abu-Abu) */
.disabled-card {
  background: var(--bg-disabled);
  border: 1.5px solid var(--border-disabled);
  box-shadow: var(--shadow-sm);
  cursor: not-allowed;
  user-select: none;
  opacity: 0.92;
}

.flag-muted {
  filter: grayscale(100%) opacity(0.55);
}

.title-muted {
  color: var(--text-disabled);
}

.domain-muted {
  color: #9CA3AF;
}

.tag-muted {
  color: #9CA3AF;
}

.btn-disabled {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E5E7EB;
  color: #9CA3AF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
}

/* Trust Bar */
.trust-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-3d-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}

.trust-item:hover .icon-3d-img {
  transform: translateY(-3px) scale(1.08);
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .country-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .country-card {
    padding: 28px 18px 24px;
  }
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 22px 24px;
  }
  .trust-item {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .country-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto 40px;
  }
  .portal-hero {
    margin-bottom: 36px;
  }
  .ecommerce-main {
    padding: 36px 16px 56px;
  }
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 20px;
    max-width: 440px;
    margin: 0 auto;
  }
  .trust-item {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }
  .brand-logo {
    height: 32px;
  }
  .trust-bar {
    padding: 16px 16px;
    gap: 16px;
  }
}
