/* ============================================================
   ASIA MALL — style.css  (enhanced edition)
   Design: dark-gold luxury e-commerce portal
   Fonts: Cinzel (display) + Raleway (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;
  --gold-bright:  #F5D978;
  --gold-dark:    #8B6914;
  --gold-deep:    #5C4508;
  --gold-muted:   #b89840;
  --charcoal:     #1a1a1a;
  --dark:         #0e0e0e;
  --mid-dark:     #2a2a2a;
  --page-bg:      #edeae3;
  --card-bg:      #ffffff;
  --text-body:    #444444;
  --text-light:   #888888;
  --border:       #d5cfc4;
  --nav-divider:  #e0dbd2;
  --shadow-sm:    0 2px 12px rgba(0,0,0,0.09);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.14);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.22);
  --gold-glow:    0 4px 20px rgba(201,168,76,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background-color: var(--page-bg);
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  background: linear-gradient(90deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 32px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #555;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: 'Raleway', sans-serif;
}

.social-icons a:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.06);
}

.icon-linkedin { font-family: Georgia, serif; font-size: 13px; }
.icon-twitter  { font-size: 14px; }
.icon-facebook { font-family: Georgia, serif; font-size: 14px; }
.icon-rss      { font-size: 15px; }

/* ── LANGUAGE SELECTOR ── */
.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-label {
  font-size: 16px;
  opacity: 0.45;
  line-height: 1;
}

.lang-links {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.lang-link {
  display: inline-block;
  padding: 5px 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #666;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.lang-link:hover { color: #bbb; background: rgba(255,255,255,0.06); }

.lang-link.active {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: #1a0f00;
  box-shadow: 0 2px 8px rgba(139,105,20,0.4);
}

/* ══════════════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════════════ */
.hero-banner {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #100d04;
  position: relative;
}

/* subtle vignette over the hero */
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    transparent       40%,
    transparent       60%,
    rgba(0,0,0,0.35) 100%
  );
  pointer-events: none;
}

.hero-full-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-overlay-text {
  position: absolute;
  bottom: 22px;
  right: 36px;
  z-index: 2;
  pointer-events: none;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  color: rgba(232,201,106,0.65);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   MAIN NAV
══════════════════════════════════════════════════════════ */
.main-nav {
  background: #ffffff;
  border-bottom: 2px solid var(--nav-divider);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav ul::-webkit-scrollbar { display: none; }

.main-nav ul li {
  border-right: 1px solid var(--nav-divider);
  flex-shrink: 0;
}
.main-nav ul li:first-child { border-left: 1px solid var(--nav-divider); }

.main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 17px 24px;
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}

.main-nav ul li a:hover {
  color: var(--gold-dark);
  background: linear-gradient(180deg, #fffdf7 0%, #fdf6e8 100%);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { transform: scaleX(1); }

.main-nav ul li a.active {
  color: var(--gold-dark);
  background: linear-gradient(180deg, #fffdf7 0%, #fdf6e8 100%);
}

/* ══════════════════════════════════════════════════════════
   ADMIN TOGGLE BAR
══════════════════════════════════════════════════════════ */
.admin-toggle-bar {
  background: #f7f4ef;
  border-bottom: 1px solid #e8e2d8;
  padding: 10px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.admin-toggle-btn {
  background: none;
  border: 1px solid rgba(139,105,20,0.4);
  color: var(--gold-dark);
  padding: 7px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.admin-toggle-btn:hover {
  background: var(--gold-dark);
  color: #fff8e6;
  border-color: var(--gold-dark);
  box-shadow: 0 3px 12px rgba(139,105,20,0.3);
}

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════════════ */
.admin-panel {
  background: linear-gradient(135deg, #120e02 0%, #1e1600 60%, #0f0c00 100%);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

/* decorative corner accent */
.admin-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 300px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.admin-panel::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 2px;
  background: linear-gradient(270deg, var(--gold), transparent);
}

.admin-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.admin-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.admin-section-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: 2px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-row {
  display: flex;
  gap: 10px;
}

.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  color: #e0d8c8;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.admin-input::placeholder { color: #4a4030; }
.admin-input:focus {
  border-color: rgba(201,168,76,0.55);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.admin-input-sm { min-width: 100px; flex-shrink: 0; }

select.admin-input option { background: #1a1200; color: #e0d8c8; }

/* ── CATEGORY CHIPS ── */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.4px;
  transition: background 0.2s;
}

.cat-chip:hover { background: rgba(201,168,76,0.13); }

.del-cat-btn {
  background: none;
  border: none;
  color: rgba(201,168,76,0.4);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.del-cat-btn:hover { color: #e05555; }

/* ══════════════════════════════════════════════════════════
   CONTENT AREA
══════════════════════════════════════════════════════════ */
.content-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── SECTION TITLE ── */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 44px 0 28px;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 400;
  color: #8a8075;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.section-title::before,
.section-title::after {
  content: '';
  display: block;
  height: 1px;
  flex: 1;
  max-width: 140px;
}
.section-title::before {
  background: linear-gradient(90deg, transparent, rgba(184,168,130,0.7));
}
.section-title::after {
  background: linear-gradient(270deg, transparent, rgba(184,168,130,0.7));
}

/* ══════════════════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════════════════ */
.mega-mall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ── MALL CARD ── */
.mall-card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2,0,0,1), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}

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

/* gold shimmer line at top on hover */
.mall-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 3;
}
.mall-card:hover::before { transform: scaleX(1); }

/* ── CARD IMAGE ── */
.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #0f0d06 0%, #1c1709 50%, #0a0800 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2,0,0,1);
}

.mall-card:hover .card-image img { transform: scale(1.07); }

/* gradient overlay on image bottom */
.card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0,0,0,0.28));
  pointer-events: none;
}

.img-placeholder {
  font-size: 52px;
  opacity: 0.22;
  user-select: none;
  filter: grayscale(0.3);
}

/* ── CARD BODY ── */
.card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e1a10;
  margin-bottom: 8px;
  letter-spacing: 0.6px;
  line-height: 1.3;
}

.card-body p {
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  color: #888;
  line-height: 1.7;
  flex: 1;
}

.product-price {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 10px;
}

/* ── CARD FOOTER ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f2efe8;
}

.cat-badge {
  font-family: 'Raleway', sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: linear-gradient(135deg, #fdf6e3, #f5ead0);
  border: 1px solid rgba(139,105,20,0.2);
  padding: 3px 9px;
  border-radius: 3px;
}

/* ── CARD DELETE BTN ── */
.card-del-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 5;
  backdrop-filter: blur(4px);
}

.mall-card:hover .card-del-btn { display: flex; }
.card-del-btn:hover { background: #c0392b; transform: scale(1.1); }

/* ══════════════════════════════════════════════════════════
   GOLD BUTTON
══════════════════════════════════════════════════════════ */
.gold-btn {
  background: linear-gradient(135deg, #f7d96a 0%, #c9a84c 45%, #8b6914 100%);
  color: #1a0f00;
  border: none;
  padding: 9px 22px;
  font-family: 'Raleway', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(139,105,20,0.35);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* shimmer sweep on hover */
.gold-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.gold-btn:hover::after { left: 150%; }
.gold-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139,105,20,0.5);
}
.gold-btn:active { transform: translateY(0) scale(0.98); }

/* ══════════════════════════════════════════════════════════
   EMPTY / LOADING STATES
══════════════════════════════════════════════════════════ */
.empty-state,
.loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #b0a890;
}

.empty-state::before {
  content: '◆';
  display: block;
  font-size: 24px;
  color: rgba(184,168,130,0.3);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1200;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 13px 28px;
  border-radius: 5px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(192,57,43,0.5);
  color: #e07070;
}

/* ══════════════════════════════════════════════════════════
   REGIONAL FOOTER
══════════════════════════════════════════════════════════ */
.regional-footer {
  background: linear-gradient(135deg, #2e2200 0%, #1a1200 25%, #120d00 75%, #2e2200 100%);
  padding: 36px 24px 32px;
  margin-top: 16px;
  border-top: 1px solid rgba(201,168,76,0.15);
  position: relative;
}

/* top accent line */
.regional-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.regions-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0;
  flex-wrap: wrap;
}

.region-column {
  flex: 1;
  min-width: 180px;
  padding: 0 24px;
  border-right: 1px solid rgba(201,168,76,0.1);
  text-align: center;
}
.region-column:last-child { border-right: none; }

.region-column h4 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

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

.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.country-item:hover { transform: translateY(-3px); }

.country-item img {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.2s;
}

.country-item:hover img {
  box-shadow: 0 4px 16px rgba(201,168,76,0.25);
}

.country-item span {
  font-family: 'Raleway', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.6px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ── BOTTOM BAR ── */
.bottom-dark-bar {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  margin-top: 28px;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .mega-mall-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .mega-mall-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-inner    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar        { padding: 8px 16px; }
  .section-title  { font-size: 16px; letter-spacing: 3px; }
  .region-column  { min-width: 130px; padding: 0 12px; }
  .hero-banner    { height: 200px; }
  .content-container { padding: 0 16px 32px; }
  .admin-panel    { padding: 20px 16px; }
}

@media (max-width: 600px) {
  .mega-mall-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .regions-container { flex-direction: column; gap: 28px; }
  .region-column     { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); padding-bottom: 24px; }
  .region-column:last-child { border-bottom: none; }
  .hero-banner       { height: 140px; }
  .admin-row         { flex-direction: column; }
}

@media (max-width: 400px) {
  .mega-mall-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
