.nav-logo img {
  height: 48px;        /* Try 40–48px depending on your design */
  width: auto;         /* Important: keeps aspect ratio */
  display: block;
}

.nav-logo {
  display: flex;
  align-items: center; /* vertically center logo with menu items */
  padding: 1px 0;
}


/* GLOBAL RESET & GRID BASE */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: "Inter", "Helvetica Neue", sans-serif;
  background:#fff;
  color:#222;
  line-height:1.6;
}
.container {
  width:90%;
  max-width:1200px;
  margin:auto;
}
a { text-decoration:none; color:inherit; }

/* HEADER */
.site-header {
  background:#f7f7f7;
  border-bottom:1px solid #e5e5e5;
  padding:1rem 0;
}
.header-container {
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo { font-size:1.5rem; letter-spacing:1px; }
.main-nav a {
  margin:0 1rem;
  color:#333;
  font-weight:500;
}
.main-nav a:hover { color:#000; }

/* FOOTER */
.site-footer {
  background:#f7f7f7;
  border-top:1px solid #e5e5e5;
  text-align:center;
  padding:1rem 0;
  position:fixed;
  bottom:0;
  width:100%;
}

/* PRODUCT DETAIL */
.product-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:flex-start;
  margin:3rem 0;
}
.product-image img {
  width:100%;
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  object-fit:contain;
}
.product-info {
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.product-title {
  font-size:1.8rem;
  font-weight:700;
}
.product-price {
  font-size:1.2rem;
  color:#555;
}
.product-description {
  background:#fafafa;
  border:1px solid #eee;
  padding:1rem;
  border-radius:8px;
  font-size:0.95rem;
}
.product-tags {
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
}
.tag {
  background:#ddd;
  color:#222;
  padding:0.4rem 0.8rem;
  border-radius:15px;
  font-size:0.8rem;
}
.add-cart-form {
  display:flex;
  gap:1rem;
  align-items:center;
}
.add-cart-form input[type="number"] {
  width:60px;
  padding:0.4rem;
  border:1px solid #ccc;
  border-radius:4px;
  text-align:center;
}
.btn {
  background:#333;
  color:#fff;
  padding:0.6rem 1.2rem;
  border:none;
  border-radius:5px;
  cursor:pointer;
  font-weight:600;
}
.btn:hover { background:#000; }
.btn.disabled { background:#bbb; cursor:not-allowed; }

/* CATEGORY ROW */
.categories { margin:4rem 0; }
.section-title {
  text-align:center;
  font-size:1.6rem;
  margin-bottom:2rem;
}
.category-row {
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:1rem;
  justify-content:center;
}
.category-card {
  flex:0 0 auto;
  width:130px;
  text-align:center;
  border:1px solid #eee;
  padding:0.8rem;
  border-radius:10px;
  background:#fafafa;
  transition:all .2s ease;
}
.category-card:hover {
  transform:translateY(-3px);
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.category-card img {
  width:100%;
  height:100px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:0.5rem;
}
.category-card p {
  font-size:0.9rem;
  font-weight:500;
  color:#444;
}

/* RESPONSIVE */
@media(max-width:900px){
  .product-grid{
    grid-template-columns:1fr;
  }
  .site-footer{position:static;}
}

/* GLOBAL RESETS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica", sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
}

main {
  padding: 2rem 4rem;
}

/* UNIVERSAL FLEX FIX FOR ALL CONTAINERS */
section, .product-container, .category-list, .product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

/* CATEGORY ITEMS */
.category-item {
  width: 150px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 8px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}


/* ===========================
   GLOBAL STYLES
=========================== */
/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #111;
  line-height: 1.6;
} */

/* ===========================
   HEADER
=========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-bottom: 1px solid #000;
  background-color: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1.5px;
}

nav a {
  margin-left: 1.5rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}

nav a:hover {
  color: #666;
  border-bottom: 1px solid #000;
}

/* ===========================
   CONTAINERS
=========================== */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* ===========================
   HEADINGS
=========================== */
h2 {
  text-align: center;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===========================
   GRID LAYOUT
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
}

/* ===========================
   PRODUCT CARD
=========================== */
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  text-align: center;
  width: min(100%, 280px);   /* prevent cards from stretching beyond 280px */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

/* ===========================
   PRODUCT IMAGE
=========================== */
img.product {
  width: 100%;
  height: 220px;         /* Fixed consistent height */
  object-fit: cover;      /* Crop while maintaining ratio */
  display: block;
  border-bottom: 1px solid #eee;
}

/* ===========================
   CARD TEXT
=========================== */
.card-content {
  padding: 1.2rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.8rem;
}

/* ===========================
   CATEGORY CARD
=========================== */
.card.category {
  border-style: dashed;
  border-color: #bbb;
}

.card.category:hover {
  background-color: #fafafa;
}

/* ===========================
   HERO SECTION (optional)
=========================== */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  border-bottom: 1px solid #000;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: none;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  color: #444;
}

/* ===========================
   FOOTER
=========================== */
footer {
  border-top: 1px solid #000;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  color: #333;
}

/* -------------------
   Product Detail
------------------- */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-gallery img {
  transition: transform 0.2s ease;
}

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

button:hover {
  background-color: #333;
}
/* ===========================
   SIMPLE IMAGE CAROUSEL
=========================== */
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto 3rem;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.carousel .slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel .slide {
  min-width: 100%;
  transition: opacity 0.6s ease;
}

.carousel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Navigation arrows */
.carousel .prev,
.carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.4rem;
  transition: background 0.3s;
}

.carousel .prev:hover,
.carousel .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.carousel .prev {
  left: 1rem;
}

.carousel .next {
  right: 1rem;
}

.caption {
  position: absolute;
  bottom: 15px;
  left: 25px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* ===============================
   PRODUCT SALE LABEL AND BUTTONS
=============================== */
.sale-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #000;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.7rem 0;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Add to Cart (In Stock) */
.btn-primary {
  background-color: #000;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #333;
}

/* Read More (Out of Stock) */
.btn-secondary {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

.btn-secondary:hover {
  background-color: #000;
  color: #fff;
}
/* ===============================
   CART PAGE STYLING
=============================== */
.cart-container {
  max-width: 1100px;
  margin: 0 auto 5rem auto;
  padding: 0 1rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  text-align: center;
}

.cart-table th, .cart-table td {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0.5rem;
  font-size: 0.95rem;
}

.cart-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid #000;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}

.cart-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Remove Button */
.remove-btn {
  background: none;
  border: none;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
}

.remove-btn:hover {
  color: red;
}

/* Quantity Controls */
.qty-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background: #fff;
  border: 1px solid #000;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 3px;
}

.qty-btn:hover {
  background: #000;
  color: #fff;
}

.qty-number {
  width: 24px;
  display: inline-block;
  text-align: center;
  font-weight: 600;
}

/* Coupon + Total Section */
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.coupon-box input {
  padding: 0.6rem 1rem;
  border: 1px solid #000;
  border-radius: 4px;
  width: 200px;
}

.coupon-box button {
  padding: 0.6rem 1.2rem;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.coupon-box button:hover {
  background-color: #333;
}

.update-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: #999;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.update-btn:hover {
  background-color: #555;
}

/* ===============================
   FIXED FOOTER
=============================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #000;
  text-align: center;
  padding: 0.8rem;
  background-color: #fafafa;
  font-size: 0.9rem;
  color: #333;
  z-index: 50;
}


/* ============================================
   SHOP BY CATEGORIES SECTION - FIXED VERSION
============================================ */
.categories-section {
  text-align: center;
  padding: 3rem 0;
  background-color: #fff;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000;
}

/* ✅ Key container for horizontal layout */
.categories-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 2rem;
  scroll-behavior: smooth;
}

.categories-row::-webkit-scrollbar {
  height: 6px;
}
.categories-row::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* ✅ Each category card */
.category-card {
  flex: 0 0 auto;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 130px;
  height: 150px;
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.category-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.6rem;
}

.category-card p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.category-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===============================
   CATEGORY PAGE STYLING
=============================== */
.category-products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  width: 220px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-card .old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 5px;
}

.product-card .sale-price {
  color: #c0392b;
}

.product-card button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-card button:hover {
  background-color: #333;
}

.product-card button[disabled] {
  background-color: #999;
  cursor: not-allowed;
}

/* PRODUCT DETAIL PAGE - FIXED HORIZONTAL LAYOUT */
.product-detail {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.product-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
}

/* LEFT COLUMN - IMAGE */
.product-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* RIGHT COLUMN - DETAILS */
.product-info {
  flex: 1.2;
  color: #333;
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 1.2rem;
}

.short-desc {
  background-color: #efefef;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.tag {
  background-color: #dcdcdc;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
}

.rating-box {
  background: #f0f0f0;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.promise {
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fafafa;
  margin-bottom: 1.5rem;
}

.product-info form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.product-info input[type="number"] {
  width: 50px;
  padding: 0.4rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.product-info button {
  background: #444;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

.product-info button:hover {
  background: #222;
}

.product-info button[disabled] {
  background: #bbb;
  cursor: not-allowed;
}

/* RESPONSIVE FIXES */
@media (max-width: 900px) {
  .product-container {
    flex-direction: column;
    align-items: center;
  }
  .product-image img {
    width: 90%;
  }
}
/*  */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.product-card {
  width: 200px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  text-align: center;
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/*  */
.btn-primary {
    background: black;
    color: white;
    padding: 12px 20px;
    border: none;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}
