/* VERSION: NEW PREMIUM CSS - 2027 */


/* =====================
   GLOBAL RESET
===================== */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #222;
}

:root {
  --brand: #e5b95a;       /* warm light-golden */
  --brand-dark: #b58318;  /* deeper golden for hover */
  --brand-muted: #fff6ea; /* soft background tint */
  --brand-contrast: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-light: #ecf0f1;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   LAYOUT
===================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 16px;
  padding-top: 80px; /* fixed header space */
}

/* =====================
   FIXED HEADER
===================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  margin-left: 10px;
}

.menu-btn {
  font-size: 26px;
  cursor: pointer;
}

/* =====================
   SIDE MENU
===================== */
.side-menu {
  position: fixed;
  top: 56px;
  left: -260px;
  width: 240px;
  height: calc(100% - 56px);
  background: #fff;
  box-shadow: 4px 0 20px rgba(229, 185, 90, 0.15);
  transition: left 0.3s ease;
  z-index: 999;
}

.side-menu a {
  display: block;
  padding: 14px 18px;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.side-menu a:hover {
  background: #fff6ea;
  color: var(--brand-dark);
}

/* =====================
   HERO SECTION
===================== */
.hero-box {
  background: linear-gradient(135deg, var(--brand-muted), #ffffff);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(229, 185, 90, 0.1);
  margin-bottom: 20px;
  border-left: 4px solid var(--brand);
}

.hero-box h2 {
  margin: 0;
  font-size: 22px;
}

.hero-box p {
  color: #555;
  margin-top: 8px;
  line-height: 1.4;
}

/* =====================
   TRUST BADGES
===================== */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.trust-row div {
  background: linear-gradient(135deg, #fff6ea, #ffffff);
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(229, 185, 90, 0.08);
  border: 1px solid rgba(229, 185, 90, 0.2);
  transition: all 0.3s;
}

.trust-row div:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(229, 185, 90, 0.15);
}

/* =====================
   PRODUCTS GRID
===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* =====================
   PRODUCT CARD
===================== */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(229, 185, 90, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 185, 90, 0.1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(229, 185, 90, 0.15);
  border-color: var(--brand);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.product-body p {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* =====================
   BUTTONS
===================== */
.btn,
.buy-btn,
.pay-btn {
  display: inline-block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover,
.buy-btn:hover,
.pay-btn:hover {
  background: linear-gradient(135deg, var(--brand-dark), #a07214);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 185, 90, 0.3);
}

/* =====================
   PRODUCT PAGE
===================== */
.product-page {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(229, 185, 90, 0.1);
  border: 1px solid rgba(229, 185, 90, 0.1);
}

.product-page img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* =====================
   REVIEWS
===================== */
.review {
  border-bottom: 1px solid rgba(229, 185, 90, 0.2);
  padding: 10px 0;
  transition: background 0.3s;
}

.review:hover {
  background: rgba(229, 185, 90, 0.05);
  padding-left: 10px;
}

.review b {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
}

/* =====================
   CHECKOUT
===================== */
.checkout-box {
  background: linear-gradient(135deg, #fff6ea, #ffffff);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(229, 185, 90, 0.08);
  margin-bottom: 16px;
  border-left: 4px solid var(--brand);
}

.field {
  margin-bottom: 12px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid rgba(229, 185, 90, 0.2);
  font-size: 15px;
  transition: all 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 8px rgba(229, 185, 90, 0.3);
}

textarea {
  resize: none;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 20px 0;
}

/* =====================
   MOBILE OPTIMIZATION
===================== */
@media (max-width: 600px) {
  .row-2 {
    grid-template-columns: 1fr;
  }

  .hero-box h2 {
    font-size: 20px;
  }
}
@media (max-width: 400px) {
  .top-header {
    padding: 0 10px;
  }

  .logo {
    font-size: 16px;
  }

  .menu-btn {
    font-size: 24px;
  }
}

/* AUTH HEADER */
.auth-header {
  height: 56px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.back-btn {
  position: absolute;
  left: 15px;
  font-size: 22px;
  cursor: pointer;
}

.auth-box {
  max-width: 420px;
  margin: 40px auto;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(229, 185, 90, 0.1);
  border-top: 4px solid var(--brand);
}
/* INDEX PAGE PRODUCT IMAGE */
.img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border-radius: 14px;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRODUCT IMAGE 1:1 RATIO */
.img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  border-radius: 14px;
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ADJUSTED PRODUCT PAGE IMAGE */
.product-page img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}
/* ===== PRODUCT PAGE IMAGE GALLERY (FIXED) ===== */

.product-gallery {
  margin-bottom: 20px;
}

/* MAIN IMAGE CONTAINER */
.main-img {
  width: 100%;
  height: 320px;            /* fixed height for large screens */
  border-radius: 16px;
  background: var(--brand-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(229, 185, 90, 0.2);
}

/* MAIN IMAGE */
.main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* 🔥 IMPORTANT */
}

/* THUMBNAILS */
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f5f5f5;
  transition: all 0.3s;
}

.thumbs img:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(229, 185, 90, 0.3);
  transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 600px) {
  .main-img {
    height: 260px;
  }

  .thumbs img {
    width: 56px;
    height: 56px;
  }
}


/* IMAGE GALLERY */
.gallery {
  background:#fff;
  border-radius:14px;
  padding:14px;
  box-shadow:0 6px 20px rgba(229, 185, 90, 0.1);
  margin-bottom:20px;
  border: 1px solid rgba(229, 185, 90, 0.15);
}

/* MAIN IMAGE */
.main-img {
  width:100%;
  aspect-ratio:1/1;
  border-radius:12px;
  overflow:hidden;
  background:var(--brand-muted);
}

.main-img img {
  width:100%;
  height:100%;
  object-fit:contain;   /* 🔥 CUT ISSUE FIX */
}

/* THUMBNAILS */
.thumbs {
  display:flex;
  gap:10px;
  margin-top:12px;
  overflow-x:auto;
}

.thumbs img {
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  border:2px solid transparent;
}

.thumbs img:hover {
  border-color:var(--brand);
}

/* MOBILE TWEAKS: tighter header, smaller images, narrower side menu */
@media (max-width: 600px) {
  .top-header { height: 50px; padding: 0 12px; }
  .container { padding-top: 72px; }
  .side-menu { top: 50px; left: -220px; width: 200px; height: calc(100% - 50px); }
  .product-card img { height: 180px; }
  .main-img { height: 220px; }
  .hero-box h2 { font-size: 20px; }
}

@media (max-width: 400px) {
  .top-header { padding: 0 10px; }
  .logo { font-size: 16px; }
  .menu-btn { font-size: 24px; }
  .product-card img { height: 140px; }
  .main-img { height: 180px; }
}

/* MOBILE PERFECT */
@media(max-width:600px){
  .thumbs img{
    width:56px;
    height:56px;
  }
}
