body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
}

/* HERO */
.shop-hero {
  text-align: center;
  padding: 50px 20px;
  background: #111;
  color: white;
}

/* SEARCH BAR */
.shop-search {
  display: flex;
  justify-content: center;
  margin: 25px 0;
  padding: 0 15px;
}

.shop-search input {
  width: 100%;
  max-width: 650px;

  padding: 16px 48px 16px 18px;

  border-radius: 16px;

  border: 1px solid rgba(212,175,55,0.25);

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);

  color: #000;
  font-weight: 500;

  font-size: 15px;
  letter-spacing: 0.3px;

  outline: none;

  transition: all 0.3s ease;

  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  text-shadow: 0 0 1px rgba(0,0,0,0.1);
  letter-spacing: 0.4px;
}

.shop-search input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15),
              0 12px 35px rgba(0,0,0,0.35);
  transform: translateY(-2px);
}

/* placeholder */
.shop-search input::placeholder {
  color: rgba(0,0,0,0.35);
  opacity: 1;
}

/* optional subtle glow line */
.shop-search {
  position: relative;
}

.search-icon {
  position: absolute;

  right: 30px;

  top: 50%;
  transform: translateY(-50%);

  opacity: 0.6;
  font-size: 16px;

  cursor: pointer;   /* ADD THIS */
  pointer-events: auto;  /* CHANGE THIS */
}

/* FILTERS */
.category-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.category-filters button {
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: #ddd;
  cursor: pointer;
  transition: 0.3s ease;
}

/* ACTIVE CATEGORY BUTTON */
.category-filters button.active {
  background: black;
  color: white;
}

/* =========================================
   PREMIUM PRODUCT GRID
========================================= */

#productGrid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));

  justify-content: center;

  gap: 28px;

  padding: 40px 20px;

  max-width: 1400px;

  margin: auto;
}

/* =========================================
   PREMIUM PRODUCT CARD
========================================= */

.product-card {

  background: white;

  border-radius: 18px;

  overflow: hidden;

  cursor: pointer;

  position: relative;
 
  display: flex;
  flex-direction: column;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

  box-shadow:
    0 4px 14px rgba(0,0,0,0.06);
}

/* HOVER EFFECT */
.product-card:hover {

  transform: translateY(-6px);

  box-shadow:
    0 14px 30px rgba(0,0,0,0.12);
}

/* =========================================
   PRODUCT BADGE
========================================= */

.product-badge {

  position: absolute;

  top: 12px;

  left: 12px;

  background: rgba(0,0,0,0.85);

  color: white;

  padding: 7px 14px;

  border-radius: 30px;

  font-size: 11px;

  font-weight: 600;

  z-index: 5;

  letter-spacing: 0.4px;

  backdrop-filter: blur(4px);

  box-shadow:
    0 4px 10px rgba(0,0,0,0.15);
}

/* =========================================
   PRODUCT IMAGE
========================================= */

.product-card img {

  width: 100%;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  background: #f7f7f7;

  transition:
    transform 0.45s ease;
}

/* IMAGE ZOOM */
.product-card:hover img {

  transform: scale(1.05);
}

/* =========================================
   PRODUCT INFO
========================================= */

.product-info {

  padding: 16px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 10px;

  flex: 1;
  
  min-height: 170px;
}

/* PRODUCT TITLE */
.product-info h3 {

  font-size: 18px;

  line-height: 1.4;

  margin-bottom: 10px;

  color: #111;
}

/* PRODUCT DESCRIPTION */
.desc {

  color: #666;

  font-size: 14px;

  line-height: 1.6;
}

/* PRODUCT PRICE */
.price {

  font-size: 20px;

  font-weight: bold;

  margin-bottom: 2px;

  color: #000;
}


/* =========================
   DRAWER OVERLAY
========================= */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 999;
}

/* ACTIVE OVERLAY */
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================
   PRODUCT DRAWER PANEL
========================= */

.product-drawer {

  position: fixed;

  top: 50%;

  left: 50%;

  transform:
    translate(-50%, -50%)
    scale(0.92);

  width: 92%;

  max-width: 1100px;

  height: 88vh;

  background: white;

  border-radius: 24px;

  box-shadow:
    0 30px 70px rgba(0,0,0,0.22);

  transition:
    opacity 0.3s ease,
    transform 0.35s ease;

  z-index: 1000;

  overflow-y: auto;

  padding: 35px;

  opacity: 0;

  visibility: hidden;
}

/* ACTIVE DRAWER */
.product-drawer.active {

  opacity: 1;

  visibility: visible;

  transform:
    translate(-50%, -50%)
    scale(1);
}

/* CLOSE BUTTON */
.drawer-close {
  font-size: 22px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 10px;
}

/* DRAWER CONTENT */
#drawerContent img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

#drawerContent h2 {
  margin: 10px 0;
}

#drawerContent .price {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

#drawerContent p {
  color: #555;
  line-height: 1.5;
}

/* =========================================
   DRAWER FADE ANIMATION
========================================= */

.drawer-content-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.drawer-content-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   FLOATING CART
========================================= */

.floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: black;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 9999;
}

#cartCount {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   CART PAGE
========================================= */

.cart-page {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.cart-item {
  display: flex;
  gap: 20px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-info h3 {
  margin-bottom: 10px;
}

.cart-info button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  background: black;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================================
   QUANTITY SELECTOR
========================================= */

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 15px;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  border: none;
  background: black;
  color: white;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
}

.quantity-selector span {
  font-size: 18px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* =========================================
   CART QUANTITY CONTROLS
========================================= */

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.cart-quantity button {
  width: 32px;
  height: 32px;
  border: none;
  background: black;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

.cart-quantity span {
  font-size: 16px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* =========================================
   CART LAYOUT
========================================= */

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1300px;
  margin: auto;
  padding: 40px 20px;
}

/* =========================================
   ORDER SUMMARY
========================================= */

.order-summary {
  background: white;
  padding: 25px;
  border-radius: 14px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.order-summary h2 {
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  background: black;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  text-align: center;
  text-decoration: none;
}

/* AMAZON BUTTON */
.amazon-btn {
  background: #111;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  background: #25D366;
  margin-top: 12px;
}

/* ENQUIRY BUTTON */
.enquiry-btn {
  background: #444;
  margin-top: 12px;
}

/* =========================================
   MOBILE CART LAYOUT
========================================= */

@media (max-width: 900px) {

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: relative;
    top: unset;
  }
}

/* =========================================
   TOAST NOTIFICATION
========================================= */

.toast-notification {

  position: fixed;

  left: 50%;

  bottom: 30px;

  transform:
    translateX(-50%)
    translateY(20px);

  background: black;

  color: white;

  padding: 14px 22px;

  border-radius: 10px;

  font-size: 14px;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition: all 0.35s ease;

  z-index: 99999;
}

/* SHOW TOAST */
.toast-show {

  opacity: 1;

  visibility: visible;

  transform:
    translateX(-50%)
    translateY(0);
}

/* MOBILE TOAST */
@media (max-width: 768px) {

  .toast-notification {
    right: 15px;
    left: 15px;
    bottom: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {

  .product-drawer {

    width: 95%;

    max-height: 94vh;

    padding: 22px;

    border-radius: 18px;
  }

}

/* =========================================
   PREMIUM CTA SECTION
========================================= */

.shop-cta {

  padding: 90px 20px;

  margin-top: 40px;
}

.shop-cta-content {

  max-width: 950px;

  margin: auto;

  background: linear-gradient(
    135deg,
    #111,
    #1e1e1e
  );

  color: white;

  border-radius: 28px;

  padding: 70px 50px;

  text-align: center;

  position: relative;

  overflow: hidden;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}

/* SMALL TAG */
.cta-tag {

  display: inline-block;

  padding: 8px 16px;

  border-radius: 30px;

  background: rgba(255,255,255,0.1);

  font-size: 13px;

  letter-spacing: 0.5px;

  margin-bottom: 20px;
}

/* HEADING */
.shop-cta-content h2 {

  font-size: 38px;

  line-height: 1.3;

  margin-bottom: 20px;

  font-weight: 700;
}

/* DESCRIPTION */
.shop-cta-content p {

  color: rgba(255,255,255,0.75);

  line-height: 1.8;

  max-width: 720px;

  margin:
    0 auto 35px;
}

/* BUTTON */
.cta-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  background: white;

  color: black;

  padding: 16px 28px;

  border-radius: 14px;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}

/* BUTTON HOVER */
.cta-btn:hover {

  transform: translateY(-2px);

  background: #f2f2f2;
}

/* MOBILE */
@media (max-width: 768px) {

  .shop-cta-content {

    padding: 50px 25px;
  }

  .shop-cta-content h2 {

    font-size: 28px;
  }
}

/* =========================================
   GRID QUANTITY + ADD TO CART
========================================= */

.grid-quantity {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  margin-top: 18px;

  margin-bottom: 14px;
}

.grid-quantity button {

  width: 34px;

  height: 34px;

  border: none;

  background: #111;

  color: white;

  border-radius: 8px;

  font-size: 18px;

  cursor: pointer;

  transition: 0.25s ease;
}

/* HOVER */
.grid-quantity button:hover {

  transform: scale(1.05);
}

.grid-quantity span {

  font-size: 17px;

  font-weight: 600;

  min-width: 18px;

  text-align: center;
}

/* =========================================
   GRID ADD TO CART BUTTON
========================================= */

.grid-cart-btn {

  width: 100%;

  border: none;

  padding: 14px;

  border-radius: 12px;

  background: #111;

  color: white;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* HOVER */
.grid-cart-btn:hover {

  transform: translateY(-2px);

  opacity: 0.92;
}

/* =========================================
   PRODUCT IMAGE WRAPPER
========================================= */

.product-image-wrapper {

  position: relative;

  overflow: hidden;
}

/* =========================================
   CARD IMAGE NAV BUTTONS
========================================= */

.card-image-nav {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 34px;

  height: 34px;

  border: none;

  border-radius: 50%;

  background: rgba(0,0,0,0.65);

  color: white;

  cursor: pointer;

  z-index: 5;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  backdrop-filter: blur(4px);
}

/* LEFT BUTTON */
.card-image-nav.left {

  left: 10px;
}

/* RIGHT BUTTON */
.card-image-nav.right {

  right: 10px;
}

/* SHOW ON HOVER */
.product-card:hover .card-image-nav {

  opacity: 1;
}

/* BUTTON HOVER */
.card-image-nav:hover {

  transform:
    translateY(-50%)
    scale(1.08);
}

/* =========================================
   PRODUCT MODAL LAYOUT
========================================= */

.product-modal-layout {

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 40px;

  align-items: start;
}

/* =========================================
   LEFT SIDE
========================================= */

.product-modal-left {

  position: sticky;

  top: 10px;
}

/* MAIN IMAGE */
.main-image img {

  width: 100%;

  border-radius: 18px;

  background: #f5f5f5;

  object-fit: cover;
}

/* =========================================
   THUMBNAILS
========================================= */

.thumbnails {

  display: flex;

  gap: 12px;

  margin-top: 15px;

  flex-wrap: wrap;
}

.thumbnails img {

  width: 80px !important;

  height: 80px;

  object-fit: cover;

  border-radius: 10px;

  cursor: pointer;

  border: 2px solid transparent;

  transition: 0.25s ease;
}

/* HOVER */
.thumbnails img:hover {

  border-color: black;

  transform: translateY(-2px);
}

/* =========================================
   RIGHT SIDE
========================================= */

.product-modal-right h2 {

  font-size: 32px;

  line-height: 1.3;

  margin-bottom: 12px;
}

.product-modal-right .price {

  font-size: 28px;

  margin-bottom: 18px;
}

.product-modal-right p {

  line-height: 1.8;

  color: #555;

  margin-bottom: 20px;
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .product-modal-layout {

    grid-template-columns: 1fr;

    gap: 25px;
  }

  .product-drawer {

    width: 96%;

    height: 92vh;

    padding: 16px;
  }

  .product-modal-right h2 {

    font-size: 26px;
  }

  .thumbnails img {

    width: 65px !important;

    height: 65px;
  }
}


/* =========================================
   MAIN IMAGE SMOOTH TRANSITION
========================================= */

#mainProductImage {

  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}

/* IMAGE HOVER */
.main-image img:hover {

  transform: scale(1.02);
}

/* =========================================
   ACTIVE THUMBNAIL
========================================= */

.thumbnails img.active-thumb {

  border-color: black;

  transform: translateY(-2px);
}

/* =========================================
   GRID QUANTITY SYSTEM
========================================= */

.grid-quantity {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  margin-top: 18px;
}

.grid-quantity button {

  width: 34px;

  height: 34px;

  border: none;

  border-radius: 8px;

  background: #111;

  color: white;

  font-size: 18px;

  cursor: pointer;

  transition: 0.25s ease;
}

/* HOVER */
.grid-quantity button:hover {

  transform: translateY(-1px);

  background: #000;
}

.grid-quantity span {

  min-width: 20px;

  text-align: center;

  font-weight: 600;

  font-size: 16px;
}

/* =========================================
   GRID ADD TO CART BUTTON
========================================= */

.grid-cart-btn {

  width: 100%;

  margin-top: 16px;

  padding: 14px;

  border: none;

  border-radius: 12px;

  background: black;

  color: white;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* HOVER */
.grid-cart-btn:hover {

  transform: translateY(-2px);

  opacity: 0.92;
}

/* =========================================================
   THUMBNAIL UI ENHANCEMENT
   ---------------------------------------------------------
   WHAT THIS DOES:
   - Makes thumbnails feel interactive
   - Adds hover animation
   - Highlights selected thumbnail
========================================================= */

.thumbnails img {
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.thumbnails img:hover {
    transform: scale(1.05);
}

.active-thumb {
    border: 2px solid #111;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
} 
/* =========================================================
   placeholder
========================================================= */

.shop-search input:focus::placeholder {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* =========================================================
   FORCE SEARCH INPUT TEXT VISIBILITY FIX
   (Fixes light/washed-out text issue caused by overrides)
========================================================= */

#searchInput {
  color: #000 !important;              /* Forces pure black text */
  -webkit-text-fill-color: #000 !important;  /* Fixes Chrome/Safari autofill issues */
  opacity: 1 !important;               /* Prevents faded rendering */
  caret-color: #000;                  /* Makes cursor visible clearly */
}


/* =========================================================
   SEARCH SUGGESTIONS DROPDOWN
   (appears below search bar)
========================================================= */

.search-suggestions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 650px;

  background: #fff;
  border-radius: 12px;

  margin-top: -10px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  box-sizing: border-box;

  overflow: hidden;

  display: none;

  z-index: 999;
}

.search-suggestions.active {
  display: block;
}

.search-suggestions div {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #111;

  border-bottom: 1px solid #eee;

  transition: 0.2s ease;
}

.search-suggestions div:hover {
  background: #f5f5f5;
}

/* =========================================
   MOBILE CART FIX
========================================= */

@media (max-width: 768px) {

  .cart-item {

    flex-direction: column;

    align-items: flex-start;
  }

  .cart-item img {

    width: 100%;

    height: auto;
  }
}

/* =========================================
   MOBILE FLOATING CART
========================================= */

@media (max-width: 768px) {

  .floating-cart {

    width: 54px;
    height: 54px;

    font-size: 22px;

    right: 15px;
    bottom: 15px;
  }
}
