/* =========================
   Basic Reset
   - Browser default margin/padding ဖျက်
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Body အခြေခံ style */
body {
  font-family: 'Inter', sans-serif;
  background: #0b0b0b;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden; /* အလျားလိုက် scroll မပေါ်အောင် */
}

/* modal ဖွင့်ထားတဲ့အချိန် website နောက်ခံကို scroll မဖြစ်အောင် */
body.modal-open {
  overflow: hidden;
}

/* ပုံတွေ responsive ဖြစ်အောင် */
img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

/* =========================
   Color Variables
   ========================= */
:root {
  --bg: #0b0b0b;
  --card: #151515;
  --card-2: #1c1c1c;
  --text: #fff;
  --muted: #a3a3a3;
  --red: #ff3b30;
  --red-dark: #d82e24;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 12px 35px rgba(0,0,0,0.35);
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 7%;
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--red);
}

.cart-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.cart-btn span {
  background: #fff;
  color: #111;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 80px 7%;
  background:
    linear-gradient(to right, rgba(0,0,0,0.78), rgba(0,0,0,0.3)),
    url('https://images.unsplash.com/photo-1515955656352-a1fa3ffcd111?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--red);
}

.hero-sub {
  color: #e2e2e2;
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =========================
   COMMON BUTTONS
   ========================= */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

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

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #111;
}

.full-btn {
  width: 100%;
}

/* =========================
   SECTION COMMON
   ========================= */
.highlights-section,
.products-section {
  padding: 90px 7%;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
}

/* =========================
   HIGHLIGHT CARDS
   ========================= */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: 0.3s;
}

.highlight-card:hover {
  transform: translateY(-7px);
}

.highlight-card img {
  height: 270px;
  object-fit: cover;
}

.highlight-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--red);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.highlight-badge.new {
  background: #2563eb;
}

.highlight-badge.limited {
  background: #9333ea;
}

.highlight-info {
  padding: 22px;
}

.highlight-info h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.highlight-info p {
  color: var(--muted);
  margin-bottom: 18px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price-row span {
  font-size: 1.2rem;
  font-weight: 800;
}

/* =========================
   PRODUCTS GRID
   ========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--card-2);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s;
}

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

.product-image {
  height: 220px;
  overflow: hidden;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

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

.product-content {
  padding: 20px;
}

.product-category {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-content h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.product-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 15px;
  min-height: 48px;
}

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

.product-price {
  font-weight: 800;
  font-size: 1.1rem;
}

.add-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background: var(--red-dark);
}

/* =========================
   PROMO BANNER
   ========================= */
.promo-banner {
  margin: 10px 7% 80px;
  background: linear-gradient(135deg, #ff3b30, #8b0000);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
}

.promo-text h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 8px;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  text-align: center;
  padding: 40px 7%;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer h3 {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.footer-copy {
  margin-top: 8px;
}

/* =========================
   CART OVERLAY
   ========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 150;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* =========================
   CART DRAWER
   ========================= */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: 0.35s ease;
}

.cart-drawer.show {
  right: 0;
}

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

.cart-header h3 {
  font-size: 1.3rem;
}

.close-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-title {
  font-weight: 700;
}

.cart-item-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
}

.remove-btn {
  margin-top: 8px;
  border: none;
  background: transparent;
  color: #ff6b6b;
  cursor: pointer;
  padding: 0;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* =========================
   MODAL
   - checkout form / success popup
   ========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 250;
  overflow-y: auto; /* modal overlay ကိုယ်တိုင် scroll ရအောင် */
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-height: 90vh; /* screen အမြင့်ထက် မကျော်အောင် */
  overflow-y: auto; /* modal အတွင်းပဲ scroll ဖြစ်အောင် */
  -webkit-overflow-scrolling: touch;
}

.success-box {
  width: 100%;
  max-width: 460px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  font-weight: 800;
}

.success-box h3 {
  margin-bottom: 10px;
}

.success-box p {
  color: var(--muted);
  margin-bottom: 18px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .highlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .highlight-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 80vh;
    padding: 70px 7%;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-start; /* mobile မှာ အပေါ်ကနေ modal စ */
  }

  .modal-box {
    max-height: 88vh;
    padding: 18px;
    margin-top: 10px;
  }
}
