/* ===== ROOT ===== */
:root {
  --primary-dark: #0f172a;
  --secondary-dark: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #cbd5f5;
  --accent: #d4a017;
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--primary-dark);
  color: var(--text-light);
  padding-top: 80px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;

  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--accent);
}

.logo-img {
  height: 55px;
  transform: scale(1.1);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
}

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

/* ===== HERO ===== */
.hero {
  height: 80vh;
  background: url("mountain.jpg") center/cover no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero h1,
.hero p,
.hero button {
  position: relative;
  z-index: 2;
}

/* ===== BUTTON ===== */
button {
  background: var(--accent);
  color: black;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  transform: scale(1.05);
}

/* ===== PRODUCTS ===== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
  justify-content: center;
  gap: 30px;
  padding: 30px;
}

.card {
  background: var(--secondary-dark);
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.img-box {
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price {
  color: var(--accent);
  font-weight: bold;
}

/* ===== BUTTON GROUP ===== */
.btn-group {
  display: flex;
  gap: 10px;
}

.add-btn {
  background: #2e7d32;
  color: white;
}

.buy-btn {
  background: #ff9800;
  color: white;
}

/* ===== FILTER ===== */
.filters {
  text-align: center;
  margin: 20px 0;
}

.filter-btn {
  background: #333;
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
}

.filter-btn.active {
  background: var(--accent);
  color: black;
}

/* ===== WHY ===== */
.why-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px;
}

.why-card {
  background: var(--secondary-dark);
  padding: 20px;
  border-radius: 12px;
}

/* ===== ABOUT ===== */
.about {
  padding: 60px 40px;
  background: var(--secondary-dark);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: var(--secondary-dark);
  padding: 20px;
  border-radius: 12px;
}

/* ===== AUTH MODAL ===== */
.auth-modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.auth-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 15px;
}

.auth-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
}

/* ===== CART ===== */
.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 40px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  align-items: center;
  padding: 18px;
}

.cart-item h3 {
  font-size: 18px;
}

.cart-item .price {
  font-size: 16px;
}

.cart-item img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== CHECKOUT ===== */
.checkout-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  padding: 40px;
}

.summary-box {
  background: var(--secondary-dark);
  padding: 20px;
  border-radius: 12px;
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* ===== ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE ===== */
@media(max-width:768px) {

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

  .cart-container,
  .checkout-container {
    grid-template-columns: 1fr;
  }

}

/* ===== GLOBAL FIX ===== */

.product-page,
.about,
.why-section,
.products,
.recommended-list {
  background: var(--primary-dark);
}

/* ===== CENTER ALIGN FIX ===== */
.products,
.recommended-list,
.product-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== PRODUCT PAGE ALIGNMENT ===== */
.product-page {
  display: flex;
  gap: 60px;
  padding: 40px;
  align-items: flex-start;
}

/* ===== DESCRIPTION FIX ===== */
.description,
.desc {
  color: var(--text-muted) !important;
}

/* ===== MODAL FIX ===== */
.modal-box {
  background: var(--secondary-dark) !important;
  color: var(--text-light) !important;
}

/* ===== WHITE CARD OVERRIDE FIX ===== */
.card {
  background: var(--secondary-dark) !important;
  color: var(--text-light) !important;
}

/* ===== RECOMMENDED TEXT FIX ===== */
.recommended-list .card p {
  color: #cbd5f5;
  height: auto;              /* FIX hidden text */
  overflow: visible;         /* FIX cut text */
}

/* ===== BUTTON VISIBILITY ===== */
button {
  color: black;
}

/* ===== IMAGE CONTAINER FIX ===== */
.img-box {
  background: #1e293b;
}

/* ===== HERO TEXT VISIBILITY ===== */
.hero h1 {
  color: #ffffff;
}

.hero p {
  color: #cbd5f5;
}

/* ===== PREVENT RIGHT SHIFT BUG ===== */
body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  max-width: 1200px;
  margin: 60px auto 20px;
  padding: 0 20px;
  text-align: center;   /* keeps it neat */
}

.product-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.product-page p {
  color: var(--text-muted);
}

.auth-modal {
  display: none; /* VERY IMPORTANT */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.6);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.hero-content h1 {
  font-size: 48px;        /* 🔥 bigger heading */
  font-weight: 600;
  margin-bottom: 15px;    /* space below heading */
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;        /* slightly bigger */
  color: #e0e0e0;
  margin-bottom: 25px;    /* space before button */
  line-height: 1.6;       /* better readability */
}

.hero-content button {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 8px;
  background: #facc15;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.hero-content button:hover {
  background: #eab308;
  transform: translateY(-2px);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 90vh; /* slightly more breathing */
  padding: 0 20px;
}

.section-title {
  font-size: 32px;   /* bigger */
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.why-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}

.why-card {
  background: #1e293b;
  padding: 20px;
  border-radius: 14px;
  text-align: left;
  transition: 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  background: #273449;
}

.why-card h3 {
  font-size: 18px;   /* bigger */
  margin: 10px 0;
}

.why-card p {
  font-size: 14px;
  color: #cbd5e1;
}

.filters {
  text-align: center;
  margin: 30px 0;
}

.category-btn {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.category-btn:hover {
  background: #334155;
}

.category-btn.active {
  background: #facc15;   /* highlight */
  color: #000;
  font-weight: 500;
}

.card {
  background: #1e293b;
  padding: 15px;
  border-radius: 16px;
  text-align: center;
}

.btn-group {
  display: flex;
  justify-content: center;   /* center buttons */
  gap: 10px;
  margin-top: 10px;
}

.add-btn {
  background: #22c55e;   /* green */
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background: #16a34a;
}

.buy-btn {
  background: #facc15;   /* yellow */
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  color: black;
  cursor: pointer;
  transition: 0.3s;
}

.buy-btn:hover {
  background: #eab308;
}

.price {
  font-size: 18px;
  font-weight: 600;
  color: #facc15;
  margin: 8px 0;
}

.why-card h3 {
  font-size: 20px;        /* ⬆️ bigger */
  font-weight: 600;
  margin: 12px 0 6px;
}

.why-card p {
  font-size: 15px;        /* ⬆️ bigger */
  color: #cbd5e1;
  line-height: 1.6;
}

.why-card .icon {
  font-size: 22px;
}

.why-card {
  padding: 24px;   /* slightly more breathing */
}

.floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.product-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 8%;
}

.product-image img {
  width: 100%;
  max-height: 420px;   /* 🔥 controls the size */
  object-fit: cover;
  border-radius: 16px;
}

.product-details h1 {
  font-size: 2.6rem;
  font-weight: 700;
}

.product-price {
  font-size: 1.7rem;
  margin: 10px 0;
}

.product-details p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.product-details ul {
  margin-top: 10px;
}

.product-details li {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.description,
.desc {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  margin-top: 50px;
  color: #e2e8f0 !important;
  line-height: 1.8;
  backdrop-filter: blur(12px);
}

.description h2,
.desc h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.description p,
.description li,
.desc p,
.desc li {
  font-size: 1.1rem;   /* ⬅️ bigger */
  color: #cbd5e1;
}

.product-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.product-actions button {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.add-btn {
  background: #22c55e;
  color: white;
}

.buy-btn {
  background: #facc15;
  color: #111;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* 🔥 KEY FIX */
  border-radius: 12px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-top: 10px;
}

.product-card p {
  font-size: 1rem;
  color: #cbd5e1;
}

/* 🔥 FORCE FIX PRODUCT IMAGE SIZE */
.product-image img,
.product-img,
#productImage {
  width: 100% !important;
  max-width: 600px !important;   /* ⬅️ increased from 500 */
  height: 420px !important;      /* ⬅️ increased from 350 */
  object-fit: cover !important;
  border-radius: 14px;
  display: block;
}

.product-image {
  max-width: 600px;   /* match your image size */
  width: 100%;
}

.product-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* slightly more space for image */
  gap: 60px;
  align-items: center;
}

.product-image img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.description,
.desc {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 30px !important;
}

#whyText {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

#whyText li {
  margin-bottom: 8px;
}

.why-section {
  max-width: 1100px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 2fr;  /* left small, right bigger */
  gap: 40px;
  align-items: start;
}

.why-section h2 {
  font-size: 28px;
  font-weight: 600;
}

#whyText {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

#whyText ul {
  margin-top: 10px;
  padding-left: 20px;
}

#whyText li {
  margin-bottom: 8px;
}

.why-section {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 16px;
}

.why-section {
  max-width: 1100px;
  margin: 60px auto;
}

.why-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 30px;
}

.why-content {
  display: flex;
  justify-content: center;
}

#whyText {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.recommended-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.recommended-list .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.recommended-list .add-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #22c55e;
  color: white;
  border: none;
  cursor: pointer;
}

.recommended-list .add-btn:hover {
  background: #16a34a;
}

/* ===== CHECKOUT FORM ===== */
.form-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
}

.checkout-left h2 {
  margin-bottom: 20px;
}

.checkout-left input,
.checkout-left textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
  font-size: 14px;
}

.checkout-left input::placeholder,
.checkout-left textarea::placeholder {
  color: #94a3b8;
}

.checkout-left textarea {
  min-height: 80px;
  resize: none;
}

.checkout-left input:focus,
.checkout-left textarea:focus {
  outline: none;
  border-color: #facc15;
}

.summary-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
}

.summary-box h2 {
  margin-bottom: 15px;
}

.price-breakdown {
  margin-top: 15px;
  line-height: 1.8;
}

.price-breakdown p {
  font-size: 15px;
}

.price-breakdown h2 {
  margin-top: 10px;
  color: #facc15;
}

/* PAYMENT */
#payment {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
}

/* PLACE ORDER BUTTON */
.summary-box button {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  background: #facc15;
  font-weight: 600;
}

.summary-box button:hover {
  background: #eab308;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
}

/* ===== FINAL CHECKOUT FIX ===== */

.checkout-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 40px auto;
  align-items: start;
}

/* LEFT BOX */
.form-box {
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 16px;
}

/* GRID INSIDE FORM */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

/* INPUTS */
.checkout-left input,
.checkout-left textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: white;
  font-size: 15px;
}

/* ADDRESS FULL WIDTH */
.checkout-left textarea {
  grid-column: span 2;
  min-height: 90px;
}

/* RIGHT SIDE */
.checkout-right {
  position: sticky;
  top: 100px;
}

/* SUMMARY BOX UPGRADE */
.summary-box {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 16px;
}

/* TEXT IMPROVEMENT */
#orderItems p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #cbd5e1;
}

/* TOTAL */
.price-breakdown h2 {
  font-size: 24px;
  color: #facc15;
}

/* BUTTON */
.summary-box button {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
}

h1 {
  font-size: 36px;
  margin-bottom: 30px;
}

.product-why {
  max-width: 1100px;
  margin: 60px auto;
  background: rgba(255,255,255,0.04);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.product-why .why-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.product-why .why-content {
  display: flex;
  justify-content: center;
}

.product-why #whyText {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.product-why li {
  margin-bottom: 8px;
}

.why-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}
#productDesc {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.7;
}
.product-page {
  display: flex;
  gap: 50px;
  align-items: center;
}

.why-card .icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.why-card {
  padding: 28px;
  border-radius: 16px;
  background: #1e293b;
  transition: 0.3s;
}

.why-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.why-card p {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
}

.why-card:hover {
  transform: translateY(-6px);
  background: #273449;
}

.why-card {
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ===== MOBILE ONLY (SAFE) ===== */


/* ===== ORDERS PAGE ===== */

#ordersContainer {
  max-width: 900px;
  margin: 40px auto;
}

/* CARD */
.order-card {
  background: var(--secondary-dark);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.order-card:hover {
  transform: translateY(-4px);
}

/* HEADER */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.order-name {
  font-size: 18px;
  font-weight: 600;
}

.order-phone {
  font-size: 14px;
  color: var(--text-muted);
}

/* RIGHT SIDE */
.order-meta {
  text-align: right;
}

.order-total {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

.order-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ITEMS */
.order-items {
  border-top: 1px solid #334155;
  padding-top: 10px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: #cbd5e1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* space between icon & logo */
}

.icon-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

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

/* round icon */
.icon-img {
  height: 55px;   /* increase */
  width: 55px;
  object-fit: cover;
  border-radius: 50%; /* keeps it circular */
}

/* text logo */
.logo-img {
  height: 45px;   /* increase for clarity */
  width: auto;
  object-fit: contain;
}

.icon-img {
  height: 65px;
  width: 65px;
}

.logo-img {
  height: 80px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
}

.machine-title {
  margin-top: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.machine-caption {
  font-size: 13px;
  color: #aaa;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .logo {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

.hero h1 {
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  padding: 0 10px;
}

/* ===== FINAL MOBILE FIX (CLEAN & CONTROLLED) ===== */
@media (max-width: 768px) {

  /* ===== NAVBAR ===== */
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .logo {
    justify-content: center;
  }

  .icon-img {
    height: 40px;
    width: 40px;
  }

  .logo-img {
    height: 45px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }

  .nav-links a {
    font-size: 13px;
  }

  /* ===== HERO ===== */
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  /* ===== PRODUCTS GRID ===== */
  .products {
    grid-template-columns: 1fr;
  }

  /* ===== PRODUCT PAGE ===== */
  .product-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .product-image img {
    width: 100%;
    max-width: 280px;
    height: auto !important;
  }

  .product-details h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 18px;
  }

  .product-details p {
    font-size: 14px;
  }

  /* ===== CART / CHECKOUT ===== */
  .cart-container,
  .checkout-container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  /* 🔥 FORCE PRODUCT LAYOUT FIX */
  .product-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    width: 100%;
    padding: 15px;
  }

  .product-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-image img {
    width: 90%;
    max-width: 280px;
    height: auto !important;
    border-radius: 12px;
  }

  .product-details {
    width: 100%;
    max-width: 500px;
  }

  .product-details h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-details p {
    font-size: 14px;
    line-height: 1.6;
  }

}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }

  .icon-img {
    height: 35px;
    width: 35px;
  }

  .nav-links a {
    font-size: 13px;
  }
}


/* ===== EMERGENCY MOBILE FIX (PRODUCT PAGE) ===== */
@media (max-width: 768px) {

  /* kill grid layout completely */
  .product-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    width: 100% !important;
    padding: 15px !important;
    gap: 15px !important;
  }

  /* fix image */
  .product-image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .product-image img {
    width: 85% !important;
    max-width: 260px !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
  }

  /* fix text section */
  .product-details {
    width: 100% !important;
    text-align: center !important;
    max-width: 500px;
  }

  /* FIX BIGGEST ISSUE (heading breaking) */
  .product-details h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    word-break: normal !important;
  }

  /* price */
  .product-price {
    font-size: 18px !important;
  }

  /* description */
  .product-details p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* buttons */
  .product-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

}


/* ===== PRODUCT PAGE MOBILE FIX ===== */
@media (max-width: 768px) {

  .product-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding: 15px;
    gap: 20px;
  }

  .product-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .product-left img {
    width: 85%;
    max-width: 260px;
    height: auto;
    border-radius: 12px;
  }

  .product-right {
    width: 100%;
    text-align: center;
  }

  .product-right h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-right p {
    font-size: 14px;
    line-height: 1.6;
  }

  .product-right button {
    margin: 8px;
  }

}

/* ===== RECOMMENDED MOBILE FIX ===== */
@media (max-width: 768px) {

  .products {
    display: grid !important;
    grid-template-columns: 1fr !important; /* ONE card per row */
    gap: 20px;
    padding: 10px;
  }

  .card {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .section-title {
    text-align: center;
    font-size: 22px;
    margin-top: 40px;
  }

}

/* ===== CART PAGE MOBILE FIX ===== */
@media (max-width: 768px) {

  .cart-container {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px;
    gap: 20px;
  }

  /* LEFT SIDE (items + recommended) */
  .cart-items {
    width: 100%;
  }

  /* RECOMMENDED SECTION */
  .recommended-list,
  #recommended,
  .products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* ONE per row */
    gap: 20px;
  }

  .card {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* ORDER SUMMARY */
  .cart-summary {
    width: 100%;
    position: static !important; /* remove side/fixed behavior */
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
  }

  .cart-summary button {
    width: 100%;
    margin-top: 10px;
  }

}

.policy-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.7;
}

.policy-container h1 {
  margin-bottom: 20px;
}

.policy-container h3 {
  margin-top: 20px;
  color: var(--accent);
}

/* ===== FOOTER (PREMIUM DARK THEME) ===== */
.footer {
  margin-top: 60px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-top: 1px solid #334155;
  text-align: center;
}

/* links container */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* links style */
.footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

/* hover glow effect */
.footer-links a:hover {
  color: #facc15; /* your accent */
}

/* underline animation */
.footer-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #facc15;
  transition: 0.3s;
}

.footer-links a:hover::after {
  width: 100%;
}

/* optional small text (copyright etc) */
.footer p {
  margin-top: 15px;
  font-size: 13px;
  color: #94a3b8;
}

.unit {
  color: #aaa;
  font-size: 15px;
  margin-top: -5px;
  margin-bottom: 10px;
}