body {
  margin:0;
  font-family: Calibri, Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f3ed 100%);
  color:#3b2a1a;
}

/* NAVBAR */
nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 60px;
  background:#ffffff;
  border-bottom:1px solid #e6dccf;
}

/* LOGO AREA */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:30px;
  font-weight:800;
  color:#5a3b1f;
  white-space:nowrap;
}

.logo img{
  height:100px;      /* ✅ controlled size */
  width:auto;
  max-height:100px;  /* ✅ safety cap */
}

nav ul{
  list-style:none;
  display:flex;
  gap:30px;
}

nav ul li a{
  text-decoration:none;
  color:#5a3b1f;
  font-size:20px;
  padding:6px 2px;
  position:relative;
}

/* ACTIVE & HOVER EFFECT */
nav ul li a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:3px;
  background:#5a3b1f;
  transition:width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after{
  width:100%;
}

nav ul li a.active{
  font-weight:700;
}

.cart-link {
  font-weight: bold;
  color: #5a3b1f;
}

.cart-link:hover {
  color: #c89b3c;
}

/* ===============================
   DROPDOWN MENU
=================================*/

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 45px;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 10px 0;
  list-style: none;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  text-decoration: none;
  color: #5a3b1f;
  font-size: 16px;
  display: block;
}

.dropdown-menu li:hover {
  background: #f8f3ed;
}

.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   CART PAGE LAYOUT
=================================*/

.cart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Cart Items Section */
#cart-items {
  flex: 2;
  min-height: 350px;
}

/* Empty Cart Design */
.empty-cart {
  text-align: center;
  padding: 140px 30px;
  background: #ffffff;
  border: 1px solid #efe3d7;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.empty-cart h3 {
  font-size: 28px;
  margin-bottom: 14px;
}


.empty-cart p {
  color: #888;
  margin-bottom: 30px;
}

/* ===============================
   CART HERO
=================================*/

.cart-hero {
  background: #efe7dc;
  padding: 60px 20px;
  text-align: center;
}

.cart-hero h1 {
  font-size: 32px;
  font-weight: 600;
  color: #4e2c13;
}

/* ===============================
   CART SUMMARY BOX
=================================*/

.cart-summary {
  flex: 1;
  background: #ffffff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  position: sticky;
  top: 120px;
}

.cart-summary p {
  margin: 10px 0;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
}

.cart-summary h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.cart-summary button {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #6b3e1d, #8b5a2b);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition: 0.3s ease;
}

.cart-summary button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Shop Button (Empty Cart) */
.shop-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #5a3b1f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}

.shop-btn:hover {
  background: #3f2914;
}

/* ===============================
   CART ITEM DESIGN
=================================*/

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.cart-row.removing {
  opacity: 0;
  transform: translateX(30px);
}

.cart-info {
  flex: 1;
}

.cart-price {
  font-weight: 600;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-box button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-weight: bold;
}

.quantity-box span {
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 14px;
}

.remove-btn:hover {
  color: red;
}

/* ===============================
   PRODUCT CARD INSIDE CART
=================================*/

.cart-item {
  display: flex;
  gap: 20px;
  padding: 22px;
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid #efe3d7;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  align-items: center;
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.cart-item img {
  width: 100px;
  border-radius: 12px;
}

.cart-item-details h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #4e2c13;
}

.cart-item-details p {
  font-size: 14px;
  color: #777;
}

.cart-item.removing {
  opacity: 0;
  transform: translateX(40px);
  transition: 0.4s ease;
}

.quantity-controls {
  margin-top: 12px;
}

.quantity-controls button {
  width: 32px;
  height: 32px;
  background: #f4eee7;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s ease;
}

.quantity-controls button:hover {
  background: #e6ded3;
}

.quantity-controls span {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

.remove-btn {
  color: red;
  cursor: pointer;
  font-size: 14px;
}

/* ===============================
   COUPON BOX
=================================*/

.coupon-box {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.coupon-box input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.coupon-box button {
  padding: 8px 12px;
  background: #6b3e1d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ===============================
   FREE SHIPPING PROGRESS
=================================*/

.shipping-progress {
  margin-bottom: 20px;
}

.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#6b3e1d,#c89b3c);
  transition: 0.4s ease;
}

/* ===============================
   STICKY FOOTER FIX
=================================*/

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cart-container {
  flex: 1;
}


/* ===============================
   MOBILE RESPONSIVE
=================================*/

@media (max-width: 768px) {
  .cart-container {
    flex-direction: column;
  }

  .cart-summary {
    position: relative;
    top: 0;
    width: 100%;
  }
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* or light green #f8fdf9 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#preloader img {
  width: 160px;        /* adjust logo size */
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ===============================
  TRUST BADGES & REVIEWS
=================================*/
.trust-badges {
  margin-top: 20px;
  font-size: 13px;
  color: #5a3b1f;
  line-height: 1.6;
}

/* HERO */
header{
  text-align:center;
  padding:60px 20px;
  background:#f8f3ed;
}

header h1{
  font-size:42px;
  margin-bottom:10px;
}

header p{
  font-size:18px;
}

.rating{
  color:#c89b3c;
  font-size:18px;
}

/* PRODUCT GRID */
section{
  padding:60px 8%;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:40px;
}

.product-card{
  border:1px solid #e6dccf;
  border-radius:16px;
  padding:20px;
  background:#fff;
  text-align:center;
}

/* IMAGE ZOOM */
.image-box{
  overflow:hidden;
  border-radius:14px;
}

.image-box img{
  width:100%;
  transition:transform 0.5s ease;
  cursor:zoom-in;
}

.image-box img:hover{
  transform:scale(1.15);
}

.thumbs{
  margin-top:10px;
}

.thumbs img{
  width:70px;
  margin:6px;
  border-radius:8px;
  cursor:pointer;
  transition:transform 0.3s;
}

.thumbs img:hover{
  transform:scale(1.1);
}

.product-card h2{
  font-size:20px;
  color:#5a3b1f;
  margin:15px 0;
}

.price{
  font-size:20px;
  font-weight:bold;
}

.shipping{
  font-size:14px;
  color:#6a4b2a;
  margin-bottom:10px;
}

.btn{
  background:#5a3b1f;
  color:#fff;
  padding:12px 24px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  font-size:15px;
}

.btn:hover{
  background:#3f2715;
}

.review-box{
  background:#f8f3ed;
  padding:14px;
  border-radius:10px;
  font-size:14px;
  margin-top:15px;
}

/* FOOTER */
footer{
  background:#3f2715;
  color:#fff;
  text-align:center;
  padding:30px;
  font-size:14px;
}