/* ================================
   BASE
   ================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f2ed;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.header {
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d6d3cc;
  position: sticky;
  top: 0;
  background: rgba(244, 242, 237, 0.93);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img {
  width: 120px;
  height: auto;
  display: block;
}

.header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  flex: 1;
}

.header nav a {
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.header nav a:hover {
  opacity: 0.55;
}

.cart-btn {
  flex: 0 0 auto;
  border: 0;
  background: #111;
  color: #fff;
  padding: 10px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  min-height: min(680px, calc(100vh - 76px));
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  background: #ff6000;
}

.hero-content {
  min-width: 0;
}

.hero-logo {
  margin-bottom: 25px;
}

.hero-logo img {
  width: min(500px, 75%);
  height: auto;
  display: block;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.84;
  letter-spacing: clamp(-6px, -0.45vw, -3px);
  margin: 25px 0;
  max-width: 900px;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: clamp(-5px, -0.35vw, -2px);
}

.hero-copy {
  max-width: 480px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: #444;
}

.button {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 0;
  padding: 15px 24px;
  margin-top: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.hero-card {
  position: relative;
  width: 100%;
  height: clamp(420px, 55vw, 620px);
  overflow: hidden;
}

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

.hero-card-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), transparent 30%, transparent 70%, rgba(0,0,0,.18));
}

.hero-card-overlay span,
.hero-card-overlay strong {
  color: #fff;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #666;
}

.shop-section {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -2px;
  margin: 8px 0 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter {
  border: 1px solid #aaa;
  background: transparent;
  padding: 10px 15px;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: #111;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.product {
  cursor: pointer;
  min-width: 0;
}

.product-image {
  position: relative;
  width: 100%;
  height: clamp(260px, 30vw, 420px);
  overflow: hidden;
  background: #f5f5f5;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}

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

.product-image span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  background: #fff;
  padding: 6px 8px;
  font-size: 10px;
}

.product h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 14px 0 5px;
}

.product p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.banner {
  min-height: 520px;
  background: #151515;
  color: #fff;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.banner h2 {
  font-size: clamp(55px, 8vw, 110px);
  line-height: .85;
  letter-spacing: -5px;
  margin: 15px 0 0;
}

.banner .eyebrow {
  color: #aaa;
}

.about {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(160px, .3fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
}

.about > p:last-child {
  font: normal clamp(30px, 3.2vw, 48px)/1.15 Georgia, serif;
  max-width: 900px;
  margin: 0;
}

footer {
  padding: 25px clamp(20px, 5vw, 80px);
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #666;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(440px, 100vw);
  height: 100dvh;
  background: #f4f2ed;
  z-index: 70;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 28px;
  box-shadow: -10px 0 40px #0001;
  overflow-y: auto;
}

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

#overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 60;
  display: none;
}

#overlay.show {
  display: block;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.cart-head button {
  font-size: 28px;
  border: 0;
  background: none;
  cursor: pointer;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #ccc;
}

.cart-item span {
  overflow-wrap: anywhere;
}

.cart-item button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 25px 0;
}

.full {
  width: 100%;
}

.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

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

.payment-box {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #f4f2ed;
  padding: 35px;
  text-align: center;
  border-radius: 12px;
}

.payment-box h2 {
  margin: 8px 0 15px;
  font-size: 32px;
}

.payment-total {
  margin-bottom: 20px;
  font-size: 16px;
}

.esewa-qr {
  width: 260px;
  height: 260px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px;
}

.payment-note {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.payment-close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

/* ================================
   TABLETS
   ================================ */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .75fr);
  }

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

/* ================================
   MOBILE / SMALL TABLETS
   ================================ */
@media (max-width: 800px) {
  .header {
    min-height: 65px;
    padding: 0 20px;
  }

  .header nav {
    display: none;
  }

  .logo img {
    width: 100px;
  }

  .hero {
    min-height: auto;
    padding: 60px 20px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-logo img {
    width: min(280px, 80vw);
  }

  .hero h1 {
    font-size: clamp(50px, 14vw, 75px);
    letter-spacing: -3px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-card {
    display: block;
    margin-top: 40px;
    height: min(400px, 100vw);
  }

  .shop-section {
    padding: 60px 20px;
  }

  .section-heading {
    display: block;
    margin-bottom: 25px;
  }

  .filters {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: auto;
    aspect-ratio: 1 / 1.12;
  }

  .product h3 {
    font-size: 13px;
  }

  .banner {
    min-height: 400px;
    padding: 60px 20px;
  }

  .about {
    padding: 60px 20px;
    grid-template-columns: 1fr;
  }

  .about > p:last-child {
    font-size: 28px;
  }

  footer {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
  }
}

/* ================================
   VERY SMALL PHONES
   ================================ */
@media (max-width: 480px) {
  .header {
    padding: 0 15px;
  }

  .logo img {
    width: 90px;
  }

  .cart-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 45px 15px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: .9;
    letter-spacing: -2px;
  }

  .hero-card {
    height: 320px;
  }

  .hero-logo img {
    width: 220px;
  }

  .shop-section {
    padding: 45px 15px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image {
    aspect-ratio: 1 / 1.1;
  }

  .product h3 {
    font-size: 12px;
    line-height: 1.3;
  }

  .product p {
    font-size: 12px;
  }

  .filter {
    padding: 8px 10px;
    font-size: 12px;
  }

  .cart-panel {
    width: 100%;
    padding: 20px;
  }

  .payment-box {
    padding: 25px 18px;
  }

  .esewa-qr {
    width: 220px;
    height: 220px;
  }
}
