/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 27-Dec-2025, 12:42:11 PM
    Author     : nikhil
*/
* {
  box-sizing: border-box;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f4f6f8;
  color: #111;
}

/* HEADER */


.header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* MAIN ROW */
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1px 16px;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* LOCATION */
.location {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.location-icon {
  font-size: 16px;
}

.location-text small {
  font-size: 11px;
  color: #777;
  display: block;
}

.location-text strong {
  font-size: 13px;
  font-weight: 600;
}

/* SEARCH */
.search {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0 14px;
  font-size: 14px;
}

/* RIGHT ICONS */
.icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ACCOUNT */
.account {
  position: relative;
  cursor: pointer;
}

.account-text small {
  font-size: 11px;
  color: #666;
}

.account-text strong {
  font-size: 13px;
}

.account-text a {
  text-decoration: none;
  color: #111827 !important;
}

/* DROPDOWN */
.account-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: #fff;
  min-width: 180px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: none;
  overflow: hidden;
}

.account-menu a,
.account-menu form {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f1f1f1;
}

.account-menu a:hover {
  background: #f7f7f7;
}

.account:hover .account-menu {
  display: block;
}

/* CART ICON */
.icon {
  font-size: 20px;
  cursor: pointer;
}

.cart {
  position: relative;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
}

/* Mobile tweak */
@media (max-width: 768px) {
  .cart-badge {
    top: -4px;
    right: -6px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
  }
}


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

  .header-row {
/*    flex-wrap: wrap;
    gap: 1px;*/
  }

  /* Row 1 */
  .logo {
    /*flex: 1;*/
  }

  .icons {
    gap: 14px;
  }

  /* Location full row */
  .location {
    width: 100%;
    padding: 6px 0;
    border-top: 1px solid #f1f1f1;
  }

  /* Search full width */
  .search {
    width: 100%;
    order: 3;
  }

  /* Hide small text */
  .account-text small {
    display: none;
  }

  .account-text strong {
    font-size: 12px;
  }

  /* Dropdown mobile */
  .account-menu {
    right: 0;
    width: 100vw;
    border-radius: 0;
  }
}
.account:hover .account-menu {
  display: block;
}

/* Desktop hover */
@media (min-width: 769px) {
  .account:hover .account-menu {
    display: block;
  }
}

/* Mobile tap */
.account.active .account-menu {
  display: block;
}
@media (max-width: 768px) {
  .account-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    animation: slideUp 0.25s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}



/* HERO */
.hero-card {
  margin: 15px;
  padding: 30px;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  border-radius: 20px;
  text-align: center;
}

.hero-card button {
  margin-top: 15px;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  background: #fff;
  color: #111;
  font-weight: 600;
}
.hero {
  background: linear-gradient(135deg, #f8f9ff, #eef1ff);
  padding: 60px 20px;
}

.hero-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  background: #ffebeb;
  color: #e53935;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.2;
  margin: 10px 0;
  color: #222;
}

.hero-content h1 span {
  color: #2874f0;
}

.hero-content p {
  color: #555;
  font-size: 16px;
  margin: 16px 0 26px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.btn.primary {
  background: #2874f0;
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: #2874f0;
  border: 1px solid #2874f0;
}

/* Images */
.hero-images {
  position: relative;
}

.main-img {
  width: 420px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.float-img {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.img1 {
  width: 160px;
  top: -30px;
  left: -40px;
}

.img2 {
  width: 140px;
  bottom: -30px;
  right: -30px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .main-img {
    width: 300px;
  }

  .float-img {
    display: none;
  }
}


/* CATEGORIES */
.categories {
  display: flex;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
}

.cat-card {
  background: #fff;
  padding: 12px 20px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* SECTION */
.section {
  padding: 20px;
}

.section h2 {
  margin-bottom: 15px;
}

/* PRODUCTS */
/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  align-items: stretch; /* 🔥 important */
}

/* PRODUCT CARD */
.product-card {
  display: flex;               /* 🔥 */
  flex-direction: column;      /* 🔥 */
  height: 100%;                /* 🔥 */
  background: #fff;
  padding: 15px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* IMAGE */
.product-card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;         /* 🔥 keeps image height same */
  object-fit: cover;
}

/* TITLE */
.product-card h3 {
  font-size: 15px;
  margin: 10px 0 5px;
  line-height: 1.3;
  min-height: 38px;            /* 🔥 equal title height */
}

/* PRICE */
.price {
  font-weight: 700;
}

/* META */
.meta {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

/* BUTTON pinned to bottom */
.product-card button {
  margin-top: auto;            /* 🔥 pushes button down */
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: none;
  background: #2874f0;
  color: #fff;
}
.product-card a {
  margin-top: auto;            /* 🔥 pushes button down */
  width: 100%;
  padding: 8px;
  border-radius: 20px;
  border: none;
  background: #2874f0;
  color: #fff;
  text-align: center;
}
.product-card a:hover{
    /*color: #ff3b30;*/
}
/* RECENT */
.light {
  background: #fff;
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f7f7;
  padding: 12px;
  border-radius: 14px;
}

.recent-card img {
  border-radius: 10px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #666;
}

/* IMAGE WRAP */
.img-wrap {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
}

/* PRICE BLOCK */
.price-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.sell-price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.mrp {
  font-size: 13px;
  color: #888;
  text-decoration: line-through;
}

.off {
  font-size: 12px;
  color: #388e3c;
  font-weight: 600;
}

/* KEEP HEIGHT CONSISTENT */
.price-box {
  min-height: 24px;
}

/* DELIVERY ROW */
.delivery {
  min-height: 18px;   /* 🔥 keeps equal card height */
  margin-top: 4px;
}

.delivery .fast {
  font-size: 12px;
  color: #388e3c;
  font-weight: 600;
}

.delivery .fast::before {
  content: "⚡ ";
}

.delivery .range {
  font-size: 7px;
  color: #333;
}

.delivery .range b {
    font-size: 8px;
  font-weight: 800;
}

.delivery .placeholder {
  visibility: hidden;
}

/* STOCK ROW */
.stock {
  min-height: 18px; /* 🔥 keeps equal height */
  margin-top: 2px;
}

.stock .low {
  font-size: 12px;
  color: #d32f2f;
  font-weight: 600;
}
.stock .high {
  font-size: 12px;
  color: #388e3c;
  font-weight: 600;
}

.stock .stock_warning {
  font-size: 12px;
  color: #ff3b30;
  font-weight: 600;
}

.stock .stock_warning::before {
  content: "⏳ ";
}
/*.stock .low::before {
  content: "⏳ ";
}*/
.stock .placeholder {
  visibility: hidden;
}

/* SIZE & COLOR ROW */
.variants {
  min-height: 18px;           /* 🔥 equal height */
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

.variants span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.variants .placeholder {
  visibility: hidden;
}


/* DESKTOP */
@media (min-width: 768px) {
  .hero-card {
    margin: 30px auto;
    max-width: 1100px;
  }

  .section {
    max-width: 1100px;
    margin: auto;
  }

  .categories {
    justify-content: center;
  }
}



@media (max-width: 768px) {

  .header-row {
    flex-wrap: wrap;
  }

  /* LOGO LEFT */
  .logo {
    order: 1;
    flex: 1;
  }

  /* ICONS RIGHT */
  .icons {
    order: 2;
  }

  /* LOCATION FULL ROW */
  .location {
    order: 3;
    width: 100%;
    padding: 6px 0;
    border-top: 1px solid #f1f1f1;
  }

  /* SEARCH FULL ROW (IMPORTANT FIX) */
  .search {
    order: 4;
    width: 100%;
    min-width: 100%;
    flex: none;
    height: 42px;
  }
}


@media (max-width: 768px) {

  /* Overall header height */
  .header {
    /*padding-bottom: 1px;*/
  }

  .header-row {
    padding: 0px 10px;
    row-gap: 1px;
  }

  /* Logo row spacing */
  .logo {
    font-size: 22px;
    /*line-height: 10px;*/
  }

  /* Location row */
  .location {
    padding: 5px 0;
    min-height: 20px;
  }

  /* Search input */
  .search {
    height: 46px;
    font-size: 15px;
    padding: 0 1px;
  }

  /* Icons touch size */
  .icon {
    font-size: 22px;
    min-height: 20px;
    display: flex;
    align-items: center;
  }

  .cart {
    min-height: 20px;
    display: flex;
    align-items: center;
  }
}


/* ===== Amazon-style Card Breadcrumb ===== */
.breadcrumb-card {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  margin: 12px 0 18px;
}

.amazon-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
}

.amazon-breadcrumb .bc-item {
  font-size: 13px;
  color: #6b7280;
}

.amazon-breadcrumb .bc-item a {
  color: #007185; /* Amazon link blue */
  text-decoration: none;
  font-weight: 500;
}

.amazon-breadcrumb .bc-item a:hover {
  text-decoration: underline;
}

.amazon-breadcrumb .bc-item + .bc-item::before {
  content: "›";
  color: #9ca3af;
  padding: 0 6px;
}

.amazon-breadcrumb .bc-item.active {
  color: #111827;
  font-weight: 600;
}
/*////////////////////////////// lazy image/////////////////////////*/
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.lazy-img.loaded {
    opacity: 1;
}
/* Skeleton container */
.lazy-img {
    background: #e0e0e0;
    background-image: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #f5f5f5 37%,
        #e0e0e0 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;

    display: block;
    width: 100%;
    height: auto;

    border-radius: 8px;
    object-fit: cover;
}

/* Stop shimmer when image is loaded */
.lazy-img.loaded {
    background: none;
    animation: none;
}

/* Animation */
@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
.lazy-img {
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.lazy-img.loaded {
    opacity: 1;
}
