:root {
  --black:  #0a0a0a;
  --white:  #fafaf8;
  --cream:  #f4f1ec;
  --accent: #c8a96e;
  --gray:   #6b6b6b;
  --light:  #e8e4dd;
  --red:    #c0392b;
  --font-d: 'Playfair Display', serif;
  --font-b: 'DM Sans', sans-serif;
  --tr:     .3s cubic-bezier(.4,0,.2,1);
}

html  { scroll-behavior: smooth; }
body  { font-family: var(--font-b); background: var(--white); color: var(--black); overflow-x: hidden; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
  padding: 0 6%;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}

.logo {
  font-family: var(--font-d); font-size: 26px; font-weight: 900;
  color: var(--black); text-decoration: none; letter-spacing: .1em; flex-shrink: 0;
}

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--black); font-size: 14px; font-weight: 500;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--accent); transition: width var(--tr);
}
.nav-links a:hover::after { width: 100%; }

.nav-search {
  flex: 1; max-width: 320px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 100px;
  padding: 8px 16px; border: 1.5px solid transparent;
  transition: border-color var(--tr);
}
.nav-search:focus-within { border-color: var(--accent); }
.nav-search input { border: none; background: none; outline: none; font-family: var(--font-b); font-size: 13.5px; width: 100%; }
.nav-search svg { color: var(--gray); flex-shrink: 0; }

.cart-btn {
  background: none; border: none; cursor: pointer;
  position: relative; padding: 4px; color: var(--black);
  transition: color var(--tr);
}
.cart-btn:hover { color: var(--accent); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: var(--white);
  font-size: 10px; font-weight: 700; width: 17px; height: 17px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ── HERO ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 540px; background: var(--cream); overflow: hidden;
}
.hero-text {
  padding: 80px 5% 80px 8%;
  display: flex; flex-direction: column; justify-content: center;
  animation: fadeUp .8s ease both;
}
.hero-eye {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 16px;
}
.hero-text h1 {
  font-family: var(--font-d); font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 900; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px;
}
.hero-text h1 em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 15px; color: var(--gray); line-height: 1.7; max-width: 380px; margin-bottom: 30px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-dark {
  background: var(--black); color: var(--white); border: 2px solid var(--black);
  padding: 13px 28px; border-radius: 100px; font-family: var(--font-b);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--tr); text-decoration: none; display: inline-block;
}
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

.btn-outline {
  background: transparent; color: var(--black); border: 2px solid var(--black);
  padding: 13px 28px; border-radius: 100px; font-family: var(--font-b);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--tr); text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.hero-stats {
  display: flex; gap: 28px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid var(--light);
}
.stat-num { font-family: var(--font-d); font-size: 24px; font-weight: 700; display: block; }
.stat-lbl { font-size: 12px; color: var(--gray); margin-top: 2px; display: block; }

.hero-img { overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hero-img:hover img { transform: scale(1.04); }

/* ── BRANDS ── */
.brands {
  background: var(--black); padding: 20px 6%;
  display: flex; align-items: center; justify-content: space-around;
  gap: 16px; flex-wrap: wrap;
}
.brands span {
  font-family: var(--font-d); color: var(--white);
  font-size: clamp(13px, 1.8vw, 18px); font-weight: 700;
  letter-spacing: .06em; opacity: .5; transition: opacity var(--tr); cursor: default;
}
.brands span:hover { opacity: 1; }

/* ── SECTION HEADER ── */
section { padding-bottom: 60px; }
.sec-head { text-align: center; padding: 64px 5% 32px; }
.sec-head h2 { font-family: var(--font-d); font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; letter-spacing: -.02em; }
.sec-line { width: 44px; height: 3px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
/* ── CATEGORY PILLS ── */
/* Container for the products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px 5%;
  font-family: 'DM Sans', sans-serif;
}

/* Individual Card Styling */
.product-card {
  background: #f9f9f9;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease;
  
  /* NEW: Forces cards in a row to match the tallest one and layout vertically */
  display: flex;
  flex-direction: column;
  height: 100%; 
}

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

.img-container {
  /* FIXED: Set a specific height so all images occupy the same space */
  height: 250px; 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.img-container img {
  /* FIXED: Ensures image fits the container without stretching or breaking size */
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Tags & Buttons */
.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #000;
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

/* Text & Pricing */
.card-info {
  /* NEW: Allows the info area to expand and push the button to the bottom */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
  
  /* FIXED: Forces the title area to always be exactly 2 lines high */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em; 
  line-height: 1.3em;
}

.rating {
  color: #f39c12;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.rating span {
  color: #888;
  margin-left: 5px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.price { font-weight: 700; font-size: 1.2rem; }
.old-price { text-decoration: line-through; color: #999; font-size: 0.9rem; }
.discount-tag {
  background: #ffeaea;
  color: #ff4d4d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Black Add to Cart Button */
.btn-add {
  /* NEW: Pushes the button to the absolute bottom of the card */
  margin-top: auto; 
  width: 100%;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add:hover {
  opacity: 0.8;
}

/* ── CATEGORY PILLS ── */


/* ── FEATURES ── */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; padding: 0 6% 64px;
}
.feat { background: var(--cream); border-radius: 12px; padding: 28px 20px; text-align: center; }
.feat-ico { font-size: 28px; margin-bottom: 10px; }
.feat h4  { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.feat p   { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── FOOTER ── */
footer { background: var(--black); color: var(--white); padding: 56px 6% 26px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid p { color: rgba(255,255,255,.45); font-size: 13.5px; line-height: 1.7; margin-top: 12px; max-width: 220px; }
.foot-grid h5 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; color: var(--accent); }
/* .foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; align-items:left; } */

.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0; }
.foot-grid ul a { color: rgba(255,255,255,.45); font-size: 13.5px; text-decoration: none; transition: color var(--tr); }
.foot-grid ul a:hover { color: var(--white); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.foot-bottom p { color: rgba(255,255,255,.3); font-size: 12.5px; }

/* ── PRODUCTS GRID ── */
.view-all {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/*----------product pages*/
.product-active{
  display: none;
}
.sec-one,
.sec-two {
  display: none;
}

.cat-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}



.cat-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cat-pill:hover {
  background: #111;
  color: #fff;
  cursor: pointer;
}

.cat-pill:active {
  opacity: 0.8;
}


/*==================cart=============*/
/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity var(--tr);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 100%; max-width: 480px;
  background: var(--cream); z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--light);
}
.cart-header h2 {
  font-family: var(--font-d); font-size: 22px; font-weight: 900;
}
.cart-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--black); line-height: 1;
  transition: color var(--tr);
}
.cart-close:hover { color: var(--accent); }

.cart-items {
  flex: 1; overflow-y: auto; padding: 20px 28px;
  display: flex; flex-direction: column; gap: 0;
}

.cart-empty {
  text-align: center; color: var(--gray);
  margin-top: 60px; font-size: 15px;
}

.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light);
}
.cart-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  background: var(--white); border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.cart-item-info .item-price { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.qty-controls {
  display: flex; align-items: center; gap: 10px;
}
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--light); background: var(--white);
  font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all var(--tr); font-weight: 500; color: var(--black);
}
.qty-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.qty-num { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-delete {
  background: none; border: none; cursor: pointer;
  color: var(--gray); transition: color var(--tr); padding: 4px;
}
.cart-item-delete:hover { color: var(--red); }

.cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--light);
  background: var(--cream);
}
.cart-total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 18px;
}
.cart-total span:first-child { font-size: 16px; font-weight: 700; }
.cart-total span:last-child  { font-size: 20px; font-weight: 900; font-family: var(--font-d); }

.btn-checkout {
  width: 100%; background: var(--black); color: var(--white);
  border: none; padding: 16px; border-radius: 100px;
  font-family: var(--font-b); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background var(--tr);
}
.btn-checkout:hover { background: var(--accent); }





