/* 🌐 COMPONENTS PAGE STYLES */

/* GENERAL */
body.components-page {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f7fb;
  margin: 0;
  padding: 0;
  color: #333;
}

/* TITLE */
.section-title {
  text-align: center;
  margin-top: 30px;
  font-size: 28px;
  color: #0044cc;
  font-weight: bold;
}

/* ---------------------------------
   SECOND NAV BAR
-----------------------------------*/
.second-nav {
  width: auto;
  background: #ffffff;
  border-bottom: 1px solid #dcdcdc;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* LEFT / CENTER / RIGHT ALIGNMENT */
.second-left,
.second-center,
.second-right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

/* SEARCH BOX */
.second-left input {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 25px;
  border: 2px solid #0044cc;
  outline: none;
}

/* CATEGORY MENU */
.category-menu-new {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  outline: none;
}

.category-menu-new .cat-item {
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: #0044cc;
  background: rgba(0,68,204,0.08);
  font-weight: 600;
  transition: 0.18s ease;
}

.category-menu-new .cat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.category-menu-new .cat-item.active {
  background: #0044cc;
  color: white;
  box-shadow: 0 6px 18px rgba(0,68,204,0.22);
}

/* CART BTN */
.second-right {
  justify-content: flex-end;
}

.cart-box-new {
  display: flex;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
}

/* BADGE */
#cart-count {
  font-weight: bold;
  color: #fff;
  background: #ff6b00;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

/* ---------------------------------
   MOBILE RESPONSIVE
-----------------------------------*/
@media (max-width: 700px) {
  .second-left {
    order: 1;
    width: 100%;
    padding: 6px 0;
  }
  .second-center {
    order: 3;
    width: 100%;
    padding: 6px 0;
  }
  .second-right {
    order: 2;
    width: 100%;
    justify-content: flex-end;
    padding: 6px 0;
  }
  .second-left input {
    width: 100%;
    max-width: none;
  }
  .category-menu-new {
    justify-content: center;
    font-size: 14px;
  }
  /* ❌ OLD behavior remove */
  .second-right {
    width: auto;
    order: unset;
    padding: 0;
  }

  /* ✅ Cart ko header ke top-right me fix karo */
  .cart-box-new {
    position: absolute;
    top: 18px;          /* header ke andar */
    right: 55px;        /* 3-lines ke bilkul left */
    z-index: 1001;
    background: transparent;
    color: #fff;
  }

}


/* ---------------------------------
   PRODUCT GRID
-----------------------------------*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  min-height: 300px;  /*bottom down de layi*/
}
@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* Optional: thoda gap kam kar do mobile par */
  }
}
.product-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease,box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.product-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 18px;
  color: #0044cc;
  margin: 5px 0;
}

.product-card p {
  font-size: 16px;
  color: #222;
  margin-bottom: 10px;
  font-weight: 500;
}

/* ADD TO CART BTN */
.add-cart {
  margin-top: auto;
  background: #0044cc;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.18s;
}

.add-cart:hover {
  background: #002a80;
  transform: scale(1.03);
}

/* ---------------------------------
   CART SECTION (INLINE CART)
-----------------------------------*/
.cart-section {
  width: 90%;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  display: block;
}

.cart-section.hidden {
  display: none;
}

/* CART ROWS */
#cart-list {
  list-style: none;
  padding: 0;
}

#cart-list li {
  background: #f7f9fc;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-alert {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71;
  color: white;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: top 0.4s ease;
}

.cart-alert.show {
  top: 15px;
}

/* QTY INPUT */
.qty-input {
  width: 50px;
  padding: 3px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #0044cc;
  border-radius: 5px;
}

/* REMOVE BUTTON */
.remove-btn {
  background: #ff4c4c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* TOTAL */
#total {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #222;
  margin-top: 15px;
}

/* ORDER FORM */
#order-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* WHATSAPP BUTTON */
#orderNow {
  background: #28a745;
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
/* notice ribbon */ .notice-line {

display: inline-block; background: linear-gradient(to right, #0044cc, #0066ff); 
color: white !important;
font-weight: bold; 
padding: 12px 25px; 
border-radius: 50px; 
text-align: center; 
margin: 20px auto; 
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
position: relative; 
overflow: hidden; 
width: fit-content; 
} 

/* golden ends for ribbon */ 

.notice-line::before, 
.notice-line::after { content: ""; 
position: absolute; top: 50%; 
width: 25px; height: 12px;
background: #ffcc00; 
border-radius: 2px; 
transform: translateY(-50%); } 

.notice-line::before { left: -25px; } 
.notice-line::after { right: -25px; }
/* ---------------------------------
   🌙 FULL DARK MODE
-----------------------------------*/

body.dark-mode.components-page {
  background: #000;
  color: #ddd;
}

/* NAVBAR */
body.dark-mode .second-nav {
  background: #000;
  border-bottom: 1px solid #333;
}

body.dark-mode .second-left input {
  background: #1e1e1e;
  color: #fff;
  border: 2px solid #2b5cff;
}

/* CATEGORY BUTTONS */
body.dark-mode .cat-item {
  background: #1e1e1e;
  color: #9ab6ff;
}

body.dark-mode .cat-item.active {
  background: #3c6aff;
  color: white;
}

body.dark-mode .cat-item:hover {
  background: #2b4acc;
}

/* PRODUCT CARDS */
body.dark-mode .product-card {
  background: #1c1c1c;
  box-shadow: 0 4px 15px rgba(255,255,255,0.06);
}

body.dark-mode .product-card h3 {
  color: #8bb3ff;
}

body.dark-mode .product-card p {
  color: #ccc;
}

body.dark-mode .add-cart {
  background: #2b5cff;
}

body.dark-mode .add-cart:hover {
  background: #1c3fcc;
}

/* INLINE CART */
body.dark-mode .cart-section {
  background: #1c1c1c;
}

body.dark-mode #cart-list li {
  background: #222;
}
  /* ===== Footer ===== */
footer {
  background: #0044cc;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
/* Remove focus outline & caret on clickable boxes */
.category-menu-new .cat-item {
  outline: none;
  user-select: none;
}

.category-menu-new .cat-item:focus {
  outline: none;
}

.category-menu-new .cat-item:focus-visible {
  outline: none;
}

/* ❌ Stop text typing cursor everywhere */
body {
  caret-color: transparent;
}

/* ❌ Remove focus outline */
*:focus {
  outline: none !important;
}

/* ❌ Prevent text selection on UI */
h1, h2, h3, p, span,
.product-card,
.product-card *,
.cat-item,
.notice-line,
footer,
header,
nav {
  user-select: none;
}

input,
textarea {
  caret-color: auto;
  user-select: text;
}
