/* ============================
   GLOBAL + INDEX PAGE (ORIGINAL)
===============================*/
body {
  margin: 0;
  /* Use the imported font */
  font-family: 'Ubuntu', sans-serif;
  
  /* 400 is the 'Sweet Spot' for 16px crispness */
  font-weight: 400; 
  font-size: 16px;
  
  /* Increased line-height prevents letters from 'blurring' into the line above */
  line-height: 1.6;
  
  /* Slight negative letter-spacing makes Ubuntu look more modern */
  letter-spacing: 0.05em; 

  /* RENDERING FIXES */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; /* Keeps it thin and sharp on Mac */
  -moz-osx-font-smoothing: grayscale;
  
  color: #e8e8e8;
  background: #494949;
}

/* Use the 500 or 700 weight only for headings to keep them distinct */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

body a:hover { color:#E1AD01; text-decoration: none}  

.top-banner {
  background:#E1AD01;
  color:#303030;
  padding:6px;
  text-align:center;
  font-weight:600; font-size:18px;
}

.navbar {
  background:#000000!important;
  border:none;
}

.navbar a {
  color:#fff!important;
  font-weight:500; font-size:18px;
}

.nav-top a:hover {
  color:#febd69!important;
}

.navbar.nav-top {
    margin-bottom: 0 !important;
}
.navbar-header, .container-fluid {
    margin-bottom: 0;
}

.search-box { width:20%; }
.search-input { height:40px; border-radius:0; }
.search-btn { background:#E1AD01; border-radius:0; height:34px; }

.hero img {
  width:100%;
  border-bottom:2px solid #ccc;
}

/* CATEGORY BOX (INDEX PAGE) */
.category-box {
  background:#000000;
  padding:7px;
  margin:10px;
  border-radius:10px;
  box-shadow:0 2px 4px #000000;
  text-align:center;
  font-weight:600; font-size:15px;
}
.category-box img {
  width:100%;
  height:250px;
  object-fit:contain; 
}
.category-box h3 {
  font-weight:500; font-size:23px; color:#fff; letter-spacing:1.8px;
  margin:5px 0; 
}
.category-box a { color:#fff; }

/* PRODUCT SLIDER (INDEX) */ 
.product-slider {
  background:#fff;
  padding:20px;
  margin-top:25px;
  border-radius:4px;
}
.product {
  font-weight:600; font-size:16px; 
  text-align:center;
  padding:15px;
  border-radius:5px;
  box-shadow:0 2px 4px #000000;
}
.product img {
  height:180px;
  object-fit:contain;
  box-shadow:0 2px 4px #000000;
}
.product p { margin-top:10px; }
.product a { color:#303030; }  

/* ============================
   FOOTER
===============================*/
footer {
  background:#000000;
  color:#E1AD01;
  padding:40px 0;
  margin-top:40px;
}
footer h4 {
  font-size:18px;
  margin-bottom:15px;
}
footer a {
  color:#ddd;
  display:block;
  margin-bottom:6px;
  text-decoration:none;
}

.footer-bottom {
  background:#E1AD01;
  padding:8px;
  text-align:center;
  color:#000000;
  font-weight:600; font-size:14px;
}
footer .trust img {
  height:38px;
  margin:6px;
  filter:grayscale(0.1);
}

/* ============================
   CATEGORY PAGE (ISOLATED)
===============================*/
/* Sidebar Container */
.category-page .sidebar {
  width: 200px;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #eee; /* Adds definition from product grid */
}

.category-page .sidebar h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888; /* Muted header for a modern look */
  margin-bottom: 20px;
  border-bottom: 2px solid #f4f4f4;
  padding-bottom: 10px;
}

/* Main Menu */
.category-menu {
  list-style: none;
  padding: 0;
}

.category-menu > li {
  margin-bottom: 12px;
}

/* Parent Link Style */
.parent {
  font-weight: 600; /* Bolder text for main categories */
  font-size: 15px;
  color: #333 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

/* Sub-menu Styling (The Fix) */
.sub-menu {
  list-style: none;
  padding-left: 15px; /* Indent the sub-items */
  margin-top: 8px;
  border-left: 1px solid #ddd; /* Vertical line for visual guide */
  margin-left: 5px;
}

.sub-menu li {
  margin-bottom: 8px;
}

.sub-menu li a {
  font-size: 14px;
  color: #666 !important;
  font-weight: 400;
}

/* Hover States */
.category-menu a:hover {
  color: #ff9900 !important; /* Matches your Add to Cart orange */
  text-decoration: none;
}

/* Active State Visual */
.sub-menu li a:hover {
  padding-left: 5px; /* Tiny slide effect on hover */
  transition: 0.2s;
}

/* --- Added for Sub-Categories --- */
.category-page .sidebar ul .sub-menu {
  padding-left: 20px; /* Indents the Bandhani/Batik items */
  margin-top: 5px;    /* Adds space below the parent link */
}

.category-page .sidebar ul .sub-menu li {
  margin-bottom: 5px; /* Tighter spacing for sub-items */
}

.category-page .sidebar ul .sub-menu li a {
  font-size: 13px;    /* Slightly smaller for hierarchy */
  color: #666;        /* Subtle color difference */
}

/* PRODUCT GRID ONLY INSIDE CATEGORY PAGE */
.category-page .product-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  padding:20px;
}
.product-card { background:#fff;
  padding:15px;
  border-radius:8px; border-style: solid; border-color: #febd69;
  transition:0.2s;
  text-align:center;
  }
.category-page {
  background:#fff;
  padding:15px;
  border-radius:8px;
  transition:0.2s;
  text-align:center;
}

.category-page .product-card:hover {
  transform:scale(1.03);
}

.category-page .product-card img {
  width:100%;
  height:200px;
  object-fit:contain;
}

.category-page .product-card h4 {
  font-size:16px;
  margin:10px 0;
}

.category-page .product-card p.price {
  font-size:20px;
  color:#b12704;
  font-weight:700;
}

.category-page .product-card button {
  width:100%;
  padding:10px;
  margin-top:10px;
  background:#ffa41c;
  border:none;
  cursor:pointer;
  font-size:16px;
}

/* ============================
   PRODUCT PAGE (RESTORED)   #FFE87C
===============================*/
.product-wrapper {
  background:#FBE7A1;
  padding:20px;
  margin-top:20px;
  border-radius:5px;
  color:#000000; font-size:17px;
}

.zoom-img {
  width:100%;
  border:1px solid #ddd;
}

.thumb img {
  width:80px;
  height:80px;
  margin:10px 4px;
  cursor:pointer;
  border:1px solid #ccc;
}

.product-title {
  font-size:26px;
  font-weight:bold;
}

.rating span {
  color:#ff9900;
  font-size:18px;
}

.price-box {
  background:#fafafa;
  padding:19px;
  border-radius:5px;
  margin-top:10px;
}

.price-main {
  font-size:28px;
  font-weight:bold;
  color:#B12704;
}

.price-mrp {
  text-decoration:line-through;
  color:#555;
}

.offer-box {
  background:#f7f7f7;
  padding:10px;
  margin:10px 0;
  border-left:4px solid #ff9900;
}

.details-box {
  margin-top:25px;
}

.details-box h3 {
  font-size:20px;
  border-bottom:2px solid #eee;
  padding-bottom:8px;
}

.related {
  padding-top:20px;
  margin:19px;
  border-radius:5px;
  box-shadow:0 2px 4px #000000;
}
.related a { color:#303030; font-weight:600; font-size:16px; text-align:center; }

.related-products img {
  width:100%;
  height:250px;
  object-fit:contain;
}


.add-buttons button {
  width:100%;
  padding:12px;
  margin-bottom:10px;
  font-size:16px;
  font-weight:600;
  border-radius:5px;
}

.cart-btn { background:#f0c14b; border:none; }
.buy-btn { background:#ffa41c; border:none; }
.pagination a { font-size:30px; font-weight:600; color:#555; }
/* DELIVERY BOX */ 
.delivery-box input { width:70%; padding:8px; }
.delivery-box button { padding:9px; margin-left:5px; background:#febd69; border:none; }

/* List of Cities */ 
.city-wrapper { display: grid; place-items: center;  margin: 0; font-size:13px; }
.city-content{ max-height:180px; overflow:hidden; transition:max-height 0.4s ease; }
.city-content.open{ max-height:5000px; }
#readMoreBtn{ margin-top:10px; padding:8px 15px; cursor:pointer; }