:root {
  /* Primary Colors */
  --primary-color: #1A73E8; 
  --primary-hover: #0F5BB5; 
  --accent-color: #FFD700; 
  --success-color: #28A745;

  /* Backgrounds */
  --bg-color: #F8F9FA;
  --card-bg: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-color: #2C3E50;
  --error-color: #FF4D4D;

  /* Effects */
  --border-radius: 12px;
  --padding: 12px;

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-alt: 'Lato', sans-serif;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    list-style: none;
}

body{
  font-family: var(--font-primary);
  background: var(--bg-color);
}

/* Allow text selection only for input and textarea fields */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Prevent iOS zoom on focus while staying compatible with older devices */
input,
select,
textarea {
  font-size: 16px !important;                /* prevents iPhone zoom */
  -webkit-text-size-adjust: 100%; /* ensures normal text scaling */
  line-height: 1.4;               /* keeps spacing tidy */
  box-sizing: border-box;         /* predictable sizing */
}

header{
  width: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 15px 15%;
  border-bottom: 2px solid #ddd;
}

header .logo h1{
  color: var(--primary-hover);
  font-size: 24px;
}

header .navbar{
  width: 20%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
}

header .navbar ul{
  display: flex;
  align-items: center;
  gap: 25px;
}

header .navbar ul li a{
  display: flex;
  align-items: center;
  justify-content: center;
}

header .navbar ul li a span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* or any fixed size */
  height: 40px;
  font-size: 20px;
  color: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  background: #ddd;
  transition: background 0.3s ease, color 0.3s ease;
}

header .navbar ul li a span:hover{
  background: var(--primary-hover);
  color: #fff;
}

.search-bar{
  width: 500px;
  position: relative;
}

.search-bar .search-input{
  width: 100%;
  padding: var(--padding);
  border-radius: var(--border-radius);
  outline: none;
  border: 1px solid #ddd;
  transition: border 0.3s ease;
  font-size: 14px;
}

.search-input:focus{
  border-color: var(--primary-hover);
}

.search-bar button{
  background-color: transparent;
  outline: none;
  border: none;
  position: absolute;
  top: 13px;
  right: 10px;
  cursor: pointer;
  display: none;
}

.search-bar button span{
  color: var(--text-color);
  font-size: 18px;
} 

.search-suggestions{
  position: absolute;
  margin-top: 20px;
  width: 100%;
  background: var(--bg-color);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
}

.search-suggestions .search-suggestion-item{
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  background: transparent;
  transition: background 0.4s ease;
  width: 100%;
  padding: var(--padding);
}

.search-suggestions .search-suggestion-item span{
  font-size: 16px;
}

.search-suggestions .search-suggestion-item:hover{
  background: #eee;
}

header .navbar ul li a span.active{
  background-color: var(--primary-hover);
  color: #fff;
}

.search-list{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 5;
    padding: 75px 10% 20px 15%;
    display: none;
    gap: 30px;
}

#close_search{
  position: fixed;
  margin-top: 20px;
  width: 40px;
  height: 40px;
  background: #ddd;
  color: var(--text-color);
  border-radius: var(--border-radius);
  transition: background 0.4s ease, color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#close_search:hover{
  background-color: var(--primary-hover);
  color: #fff;
}

.search-list .search_grid{
  width: 60%;
  height: 100%;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px auto;
  padding: var(--padding);
}

.search-list .search_grid .search-list-item{
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  height: 300px;
  flex-direction: column;
  border-radius: var(--border-radius);
  padding: var(--padding);
  position: relative;
}

.search-item-thumbnail{
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.search-item-thumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item-info{
  margin-top: 8px;
}

.search-item-info h3{
  font-weight: 600;
  font-size: 1rem;
  color: #000;

  white-space: nowrap;       /* keeps text on one line */
  overflow: hidden;          /* hides overflowed text */
  text-overflow: ellipsis;
}

.search-item-info p{
  font-size: 0.8rem;
  margin-top: 3px;
  font-weight: 600;
  opacity: 0.6;
  color: var(--primary-hover);
}

.search-list .search_grid::-webkit-scrollbar{
  width: 0px;
}

.search_grid span{
  position: absolute;
  bottom: 69px;
  right: 15px;
  font-size: 20x;
  color: var(--text-color);
  background: #fff;
  width: 40px; /* or any fixed size */
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.search_grid span.favorited{
  color: #fff;
  background-color: var(--primary-hover);
}

.search-list.opening {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.search-list.closing{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- Dark mode --- */
/* @media (prefers-color-scheme: dark) {
  .search-list {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }
  .search-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .search-item-info h3 {
    color: #eee;
  }
  .search-item-info p {
    color: #aaa;
  }
} */

main {
  width: 100%;
  min-height: 100vh; /* Allow page to expand */
  position: relative;
}

section{
  padding: 85px 10% 20px 15%;
}

.hero-section-widget{
  background: linear-gradient(135deg,rgba(26, 115, 232, 0.12),rgba(26, 115, 232, 0.04));
}

.hero-section-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;

  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease-out forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h2{
  font-size: 2.5rem;
  color: var(--text-color);
}

.hero-text p{
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
}

.hero-img {
  opacity: 0;
  transform: translateX(40px);
  animation: heroFadeLeft 0.9s ease-out forwards;
  animation-delay: 0.15s;
}

@keyframes heroFadeLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-img img{
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  height: 350px;
}

.hero-text .hero-CTA{
  display: flex;
  gap: 15px;
}

.hero-CTA-btn, .hero-CTA-btn-2{
  padding: 10px 25px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.4s ease, color 0.4s ease;
  background: var(--primary-color);
  color: #fff;
}

.hero-CTA-btn:hover, .hero-CTA-btn-2:hover{
  background: var(--primary-hover);
}

.hero-trust-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-trust-card > div {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);

  color: var(--text-color);
  border-radius: var(--border-radius);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(26, 115, 232, 0.12);

  font-size: 14px;
  font-weight: 500;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-trust-card span.material-icons-outlined {
  font-size: 20px;
  color: var(--primary-color);
}

.hero-trust-card > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.cat-title-filter{
  width: 100%;
  padding: 70px 10% 15px 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.cat-title-filter .filter{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.filter span.material-icons-outlined{
  font-size: 20px;
  color: var(--text-color);
}

.filter p{
  font-size: 14px;
  color: var(--text-color);
}

.category{
  padding: 2px 10% 15px 15%;
}

.category-slider{
  display: flex;
  overflow-x: auto;
  padding: 10px 15px;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  -ms-overflow-style: none; /* Hide scrollbar in IE */
}

.category-slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}

.category-track {
  display: flex;
  gap: 15px;
}

.category-item {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.category-item:hover {
  transform: scale(1.1);
}

.category-item.active .category-circle {
  border: 2px solid var(--primary-color, #007bff);
}

.category-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
  text-transform: capitalize;
  white-space: nowrap;       /* keeps text on one line */
  overflow: hidden;          /* hides overflowed text */
  text-overflow: ellipsis;   /* adds the "..." */
  display: block;            /* needed for ellipsis to work */
  width: 70px;               /* set a fixed or max width */
  margin: 0 auto;
}

.products-section {
  padding: 10px 10% 40px 15%;
}

.section-title{
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 32px;
}

.products-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card{
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.product-img{
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info{
  padding: 14px 16px;
}

.product-name{
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 6px;

  white-space: nowrap;       /* keeps text on one line */
  overflow: hidden;          /* hides overflowed text */
  text-overflow: ellipsis;   /* adds the "..." */
}

.product-price{
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-hover);
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton Card Structure */
.skeleton-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  padding: var(--padding);
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  height: 200px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 14px;
  width: 80%;
  margin: 6px 0;
}

.skeleton-price {
  height: 12px;
  width: 40%;
  margin: 6px 0;
}

.bottom-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
    display: none; /* Hidden until loading */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.opening {
  animation: openModal 0.5s ease forwards;
}

.closing {
  animation: closeModal 0.5s ease forwards;
}

@keyframes openModal{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes closeModal{
    from{
        opacity: 1;
    }
    to{
        opacity: 0;
    }
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader:after {
  content: "";
  width: 40px;
  height: 40px;
  border: 5px solid rgba(0,0,0,0.2);
  border-top: 5px solid var(--primary-hover);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.menu-icon{
  display: none;
}

.material-icons-outlined, button, span[role="button"] {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}

.product-detail-section{
  padding: 85px 10% 40px 15%;
}

.product-detail-grid{
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.product-images{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-wrapper {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #f1f3f5;
}

.main-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.thumbnail-strip {
  display: flex;
  gap: 12px;
  margin-top: 14px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.thumbnail {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;

  scroll-snap-align: start;
  border: 2px solid transparent;
  opacity: 0.65;

  transition: 
    transform 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.thumbnail:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumbnail.active {
  border-color: var(--primary-color);
  opacity: 1;
}

.product-info-detail{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-name-detail{
  font-size: -2rem;
  font-weight: 700;
  color: var(--text-color);
}

.product-price-detail{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-hover);
}

.product-condition {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: capitalize;
}

/* Condition Variants */
.product-condition.new {
  background: rgba(40, 167, 69, 0.15);
  color: #28A745;
}

.product-condition.used {
  background: rgba(255, 193, 7, 0.18);
  color: #b58900;
}

.product-condition.refurbished {
  background: rgba(26, 115, 232, 0.15);
  color: var(--primary-color);
}

.product-badges{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge{
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
}

.badge.secure{
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.badge.verified{
  background: rgba(26, 115, 232, 0.15);
}

.product-description{
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.seller-card{
  margin-top: 10px;
  padding: 16px;
  border-radius: var(--border-radius);
  background: rgba(26, 115, 232, 0.04);
  border: 1px solid rgba(26, 115, 232, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-avatar{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(26, 115, 232, 0.15);
}

.seller-info{
  flex: 1;
}

.seller-name{
  font-weight: 600;
  font-size: 15px;
}

.seller-verified{
  font-size: 12px;
  color: var(--success-color);
  font-weight: 600;
}

.view-store-btn{
  padding: 8px 14px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--border-radius);
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid var(--primary-color);
  transition: background 0.3s ease, color 0.3s ease;
}

.view-store-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.cart-feedback {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: rgba(26, 115, 232, 0.95);
  color: #fff;
  padding: 12px 18px;

  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;

  z-index: 10000;
}

.cart-feedback.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cart-feedback.success {
  background: rgba(40, 167, 69, 0.95);
}

.cart-feedback.error {
  background: rgba(220, 53, 69, 0.95);
}

.login-to-contact{
  margin-top: 24px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  text-align: center;

  background: var(--primary-color);
  color: #fff;

  transition: background 0.3s ease, transform 0.2s ease;
}

.login-to-contact a{
  color: #fff;
  text-decoration: none;
}

.login-to-contact:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.add-to-cart-btn {
  margin-top: 24px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;

  background: var(--primary-color);
  color: #fff;

  transition: background 0.3s ease, transform 0.2s ease;
}

.add-to-cart-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.contacts{
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.contacts .phone, .whatsApp{
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;

  background: var(--primary-color);
  color: #fff;

  transition: background 0.3s ease, transform 0.2s ease;
}

.whatsApp{
  background: rgba(40, 167, 69, 0.95);;
}

.phone a, .whatsApp a{
  color: #fff;
  text-decoration: none;
}

.contacts .phone:hover{
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.modalSafety {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(15, 23, 42, 0.6); /* softer dark overlay */
  backdrop-filter: blur(4px); /* modern glass feel */
}

.modal-content-safety {
  background: #ffffff;
  margin: 10% auto;
  padding: 24px 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  animation: fadeInUp 0.3s ease;
}

.modal-header-safety {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.safety-icon {
  font-size: 24px;
}

.modal-header-safety h3 {
  margin: 0;
  font-size: 18px;
  color: #dc2626;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #64748b;
}

.close-btn:hover {
  color: #000;
}

/* Title */
.modal-content-safety h3 {
  margin-top: 0;
  font-size: 20px;
  color: #dc2626; /* softer red */
}

/* Text */
.modal-content-safety p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Highlight warning */
.modal-content-safety strong {
  color: #b91c1c;
}

/* Checkbox section */
.confirm-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
  color: #1e293b;
}

.confirm-box input {
  margin-top: 3px;
}

/* Button */
#continueBtn {
  width: 100%;
  background: #22c55e;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#continueBtn:hover {
  background: #16a34a;
}

#continueBtn:disabled {
  background: #cbd5f5;
  cursor: not-allowed;
}

.add-to-cart-btn.in-cart {
  background: rgba(40, 167, 69, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.35);
}

.add-to-cart-btn.in-cart:hover {
  background: rgba(40, 167, 69, 0.25);
}

/* LIGHTBOX OVERLAY */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-lightbox.hidden {
  display: none;
}

.image-lightbox img {
  max-width: 92%;
  max-height: 88%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  animation: zoomIn 0.25s ease;
}

/* CLOSE BUTTON */
.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* NAVIGATION */
.lightbox-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 40px;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.lightbox-nav button:hover {
  background: rgba(255,255,255,0.25);
}

#prevImage { left: 30px; }
#nextImage { right: 30px; }

/* ANIMATION */
@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.review-section{
  margin-top:40px;
}

.review-summary{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}

.review-summary #avg-rating{
  font-size:22px;
  font-weight:700;
}

.stars span{
  color:#ddd;
  font-size:20px;
}

.stars span.active{
  color:#f59e0b;
}

.review-form{
  background:#fff;
  padding:15px;
  border-radius:8px;
  margin-bottom:20px;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.star-selector span{
  font-size:26px;
  cursor:pointer;
  color:#ddd;
}

.star-selector span.active{
  color:#f59e0b;
}

#review-text{
  width:100%;
  margin-top:10px;
  padding:10px;
  border-radius:6px;
  border:1px solid #ddd;
}

.review-card{
  border-bottom:1px solid #eee;
  padding:12px 0;
}

.review-card .name{
  font-weight:600;
}

.review-card .date{
  font-size:12px;
  color:#888;
}

.review-card .stars span{
  font-size:16px;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary-color);
  color: var(--bg-color);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-weight: 500;
  font-size: 14px;
  opacity: 1;
  transform: translateY(20px);
  animation: slideIn 0.4s forwards, fadeOut 0.5s 3s forwards;
}

.toast.error {
  background: var(--error-color);
}

.toast.success {
  background: var(--success-color);
}

.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cart-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer{
  position: fixed;
  top: 0;
  right: -420px; /* hidden offscreen */
  height: 100%;
  width: 420px;
  max-width: 100%;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-drawer.open{
  right: 0; /* slide in */
}

.cart-drawer-header{
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-drawer-header h3{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.close-btn{
  font-size: 1.6rem;
  color: var(--text-color);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.close-btn:hover{
  color: var(--primary-hover);
  transform: rotate(90deg);
}

.cart-drawer-items{
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-drawer-items::-webkit-scrollbar{
  width: 6px;
}

.cart-drawer-items::-webkit-scrollbar-thumb{
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

/* ================================
   CART ITEM
================================ */
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;

  padding: 14px;
  border-radius: var(--border-radius);
  background: rgba(26, 115, 232, 0.04);
  border: 1px solid rgba(26, 115, 232, 0.08);

  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Product image */
.cart-item img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
}

/* Item info */
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Quantity control */
.cart-item-quantity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.cart-item-quantity button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cart-item-quantity button:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

.cart-item-quantity span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Remove item */
.remove-cart-item {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.remove-cart-item:hover {
  color: var(--error-color);
  transform: scale(1.15);
}

/* ================================
   CART FOOTER
================================ */
.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* Total */
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

/* Checkout button */
.checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;

  transition: background 0.3s ease, transform 0.25s ease;
}

.checkout-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========== CHECKOUT LAYOUT ========== */
.checkout-container {
  max-width: 1200px;
  margin: 70px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  font-family: var(--font-primary);
  color: var(--text-color);
}

/* Mobile */
@media (max-width: 900px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
}

/* ========== LEFT & RIGHT PANELS ========== */
.checkout-left,
.checkout-right {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.checkout-left h2,
.checkout-right h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ========== ADDRESS LIST ========== */
#address-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.address-card {
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-color);
}

.address-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.address-card.active {
  border-color: var(--primary-color);
  background: rgba(26, 115, 232, 0.05);
}

.address-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Add address button */
.add-address-btn {
  margin-top: 20px;
  background: transparent;
  border: 2px dashed var(--primary-color);
  color: var(--primary-color);
  padding: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.add-address-btn:hover {
  background: rgba(26, 115, 232, 0.08);
}

/* ========== ORDER ITEMS ========== */
#order-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-color);
}

.order-item-info {
  flex: 1;
}

.order-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  font-weight: 500;
}

.order-item-info span {
  font-size: 0.85rem;
  color: #6c757d;
}

.order-item-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;

  background: #fff;
  border-radius: var(--border-radius);
  padding: 14px;
  margin-bottom: 12px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.checkout-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.checkout-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-color);
}

.checkout-item-info h4 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
}

.checkout-item-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280; /* soft gray */
}

.checkout-item-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  white-space: nowrap;
}

/* ========== TOTAL ========== */
.checkout-total {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
}

.checkout-total strong {
  color: var(--primary-color);
}

.checkout-right p{
  margin-top: 15px;
  font-size: 12px;
  color: #555;
  font-style: italic;
}

.email-disclaimer p{
  margin-top: 15px;
  font-size: 12px;
  color: #555;
  font-style: italic;
}

.email-disclaimer{
  margin: 12px;
  font-size: 12px;
  color: #555;
  font-style: italic;
}

/* ========== PAY BUTTON ========== */
.primary-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  background: var(--error-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgb(189, 31, 31);
  transform: translateY(-2px);
}

.secondary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== SUBTLE ANIMATION ========== */
.checkout-left,
.checkout-right {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   ADDRESS MODAL OVERLAY
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

/* ================================
   MODAL CONTENT
================================ */
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
  font-family: var(--font-primary);
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================
   MODAL HEADER
================================ */
.modal-content h3 {
  margin-bottom: 16px;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* ================================
   INPUTS
================================ */
.modal-content input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  font-size: 0.95rem;
  font-family: var(--font-alt);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.modal-content input::placeholder {
  color: #aaa;
}

.modal-content input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

/* ================================
   BUTTONS
================================ */
.modal-content .primary-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.modal-content .primary-btn:hover {
  background: var(--primary-hover);
}

.modal-content .primary-btn:active {
  transform: scale(0.98);
}

/* Secondary Button */
.modal-content .secondary-btn {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: transparent;
  color: var(--text-color);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.modal-content .secondary-btn:hover {
  background: #f2f2f2;
  border-color: #ccc;
}

.payment-verify-wrapper {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#verify-title {
  font-size: 22px;
  margin-bottom: 8px;
}

#verify-message {
  color: #666;
  margin-bottom: 20px;
}

#verify-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hidden{
  display: none;
}

.orders-container {
  max-width: 1100px;
  margin: auto;
  padding: 85px 1rem;
}

.page-title {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Filters */
.orders-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s;
}

.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
}

/* Order Card */
a .order-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1.2rem;
  color: #000;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

/* Header */
.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-id {
  font-weight: 600;
}

.order-date {
  display: block;
  font-size: 0.8rem;
  color: #777;
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Status colors */
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #e2e3e5; color: #383d41; }

/* Seller */
.seller-card {
  background: #fff;
  padding: 16px;
  border-radius: var(--border-radius);
}

/* Items */
.order-items {
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: 0.8rem;
}

/* Order Items */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-left img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.item-name {
  font-weight: 600;
}

.item-qty {
  font-size: 13px;
  opacity: 0.6;
}

/* Footer */
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 10px;
}

.order-total {
  font-weight: 600;
}

.order-actions button {
  padding: 7px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-pay {
  background: var(--primary-color);
  color: #fff;
}

.btn-track {
  background: var(--accent-color);
}

.btn-confirm {
  background: var(--success-color);
  color: #fff;
}

.order-detail-container {
  max-width: 900px;
  margin: auto;
  padding: 85px 1.5rem 65px 1.5rem;
  font-family: var(--font-primary);
}

.order-header-card,
.tracking-card,
.order-items-card,
.shipping-card,
.payment-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.order-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pending { background: #ffe8cc; color: #d35400; }
.status-paid { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #e2e3e5; color: #383d41; }

.tracking-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 20px;
  background: #eaeaea;
  font-size: 0.85rem;
}

.step.active {
  background: var(--primary-color);
  color: white;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}

.success-btn {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.seller-dashboard {
  max-width: 1200px;
  margin: auto;
  padding: 85px 1.5rem 60px 1.5rem;
  font-family: var(--font-primary);
}

/* HEADER */
.seller-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.seller-header h2 {
  margin: 0;
  color: var(--text-color);
}

.store-name {
  font-size: 0.9rem;
  opacity: 0.7;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.badge.verified {
  background: var(--success-color);
  color: #fff;
}

/* STATS */
.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.stat-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.seller-address-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seller-address-card .address-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.seller-address-card .address-row span {
  opacity: 0.7;
}

.edit-link {
  font-size: 0.85rem;
  color: var(--primary-hover);
  text-decoration: none;
}

.edit-link:hover {
  text-decoration: underline;
}

.muted {
  color: #888;
  font-size: 0.9rem;
}

/* SECTIONS */
.seller-section {
  margin-bottom: 1.5rem;
  padding: 0px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-header h3 {
  margin: 0;
}

.link {
  font-size: 0.85rem;
  color: var(--primary-color);
}

/* ORDERS */
.orders-list {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.order-row:last-child {
  border-bottom: none;
}

.order-status {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.status-pending { background: #ffe8cc; color: #d35400; }
.status-paid { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }

/* PRODUCTS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card-sell {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card-sell:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

.product-card-sell img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f2f2f2;
}

.product-card-content {
  padding: 12px;
  flex: 1;
}

.product-card-sell h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-color);
  line-height: 1.3;
}

.product-card-sell .price {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #f1f1f1;
}

.product-actions button {
  flex: 1;
  border: none;
  padding: 8px 0;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.product-actions button:active {
  transform: scale(0.97);
}

.btn-edit {
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
}

.btn-edit:hover {
  background: rgba(26, 115, 232, 0.18);
}

.btn-delete {
  background: rgba(255, 77, 77, 0.1);
  color: var(--error-color);
}

.btn-delete:hover {
  background: rgba(255, 77, 77, 0.18);
}

/* FLOATING BUTTON */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: #fff;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-create-container {
  max-width: 720px;
  margin: auto;
  padding: 85px 1.5rem 60px 1.5rem;
  font-family: var(--font-primary);
}

.page-title {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* IMAGE UPLOAD */
.image-upload-box {
  border: 2px dashed #ccc;
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  color: #777;
  transition: all 0.3s ease;
}

.image-upload-box:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.image-upload-box small {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.preview-card {
  position: relative;
}

.preview-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.preview-card button {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 0.8rem;
}

/* BUTTON */
.primary-btn.full {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--border-radius);
}

.seller-order-detail {
  max-width: 900px;
  margin: auto;
  padding: 85px 1.5rem 60px 1.5rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-processing { background: #fff3cd; color: #856404; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-card {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.order-items-card {
  margin-top: 1.5rem;
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  margin: 1.2rem 0;
}

.tracking-actions {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
}

.tracking-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.track-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: white;
  cursor: pointer;
}

.track-btn.danger {
  background: var(--success-color);
}

.track-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.seller-profile-container {
  max-width: 1100px;
  margin: auto;
  padding: 85px 1rem 60px 1rem;
  font-family: var(--font-primary);
}

/* HEADER */
.seller-profile-header {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: white;
  padding: 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.seller-avatar{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
}

.seller-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-info h2 {
  margin: 0;
  color: var(--text-color);
}

.seller-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.seller-badge.verified {
  background: #e6f4ea;
  color: #137333;
}

.seller-info p {
  margin: 6px 0;
  font-size: 0.9rem;
}

/* STATS */
.seller-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.5rem 0;
}

.stat-box {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.stat-box h3 {
  margin: 0;
  color: var(--primary-color);
}

/* PRODUCTS */
.seller-products-section{
  padding: 0px;
}

.seller-products-section h3 {
  margin-bottom: 1rem;
}

/* GRID */
.products-grid-seller {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 1rem;
}

/* CARD */
.seller-product-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.seller-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* IMAGE */
.product-image {
  width: 100%;
  height: 150px;
  background: #f1f1f1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BODY */
.product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* NAME */
.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
}

/* CATEGORY */
.product-category {
  font-size: 0.75rem;
  color: #777;
}

/* FOOTER */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* PRICE */
.product-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
}

/* VIEW BUTTON */
.view-btn {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

/* EMPTY STATE */
.empty-text {
  text-align: center;
  grid-column: 1 / -1;
  color: #999;
  font-size: 0.9rem;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: none;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 1000;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
}

.mobile-bottom-nav .nav-item span {
  font-size: 22px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
  color: #2563eb;
}

.mobile-bottom-nav .highlight {
  color: #2563eb;
  font-weight: 600;
}

.mobile-icons{
  display: none;
}

.mobile-bottom-nav .nav-item.active {
  color: #2563eb;
}

.mobile-bottom-nav .nav-item.active span {
  transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item {
  transition: color 0.2s ease, transform 0.2s ease;
}

.role-page {
  max-width: 700px;
  margin: auto;
  padding: 85px 1.5rem 60px 1.5rem;
  text-align: center;
}

.role-page h2 {
  font-size: 1.8rem;
}

.subtitle {
  opacity: 0.7;
  margin-bottom: 2rem;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.role-card {
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-card i {
  font-size: 40px;
  color: var(--primary-color);
}

.role-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.role-card.active {
  border-color: var(--primary-color);
  background: rgba(0,0,0,0.03);
}

.primary-btn {
  margin-top: 2rem;
  width: 100%;
}

.profile-container {
  max-width: 500px;
  margin: auto;
  padding: 85px 1.5rem 60px 1.5rem;
}

.avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  cursor: pointer;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.avatar-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.avatar-wrapper:hover .avatar-overlay {
  background: var(--primary-hover);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay-address {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 2;
}

.modal-content h3 {
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.2rem;
}

.input-field {
    width: 100%;
    padding: var(--padding);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
    font-size: 14px;
    outline: none;
    background: white;
    transition: border 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary-color);
}

select.input-field {
    background: white;
    cursor: pointer;
}

/* Banner container */
.ios-install-banner {
  position: fixed;
  bottom: 40px;
  width: 100%;
  background: #fff;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  border-radius: 16px 16px 0 0;
  z-index: 9999;
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}

.ios-banner-content {
  position: relative;
}

.ios-close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.ios-header h3 {
  margin: 0;
  font-size: 18px;
}

.ios-header p {
  margin: 4px 0 12px;
  color: #666;
  font-size: 14px;
}

.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-image {
  position: relative;
}

.step img {
  width: 100%;
  border-radius: 12px;
}

.step p {
  font-size: 14px;
  margin: 0;
}

.highlight {
  position: absolute;
  border: 3px solid #007bff;
  border-radius: 50%;
  pointer-events: none;
}

/* Highlight positions (adjust based on your screenshots) */
.highlight.share {
  width: 50px;
  height: 50px;
  bottom: 10px;
  left: 45%;
}

.highlight.add {
  width: 80%;
  height: 40px;
  top: 60%;
  left: 10%;
  border-radius: 10px;
}

.highlight.open {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 30%;
}

.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.account-modal-overlay.open {
  pointer-events: auto;
  opacity: 1;
}

.account-modal {
  position: fixed;
  top: 0;
  right: -320px; /* hidden */
  width: 320px;
  height: 100%;
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  z-index: 1001;
}

.account-modal.open {
  right: 0; /* slide in */
}

/* User Section */
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-hover);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info h4 {
  margin: 0;
  font-size: 15px;
}

.user-info p {
  font-size: 13px;
  opacity: 0.7;
}

/* Links */
.account-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-links li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-radius: 6px;
  color: var(--text-color);
  transition: background 0.2s ease;
}

.account-links li a:hover {
  background: #f3f4f6;
}

.account-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 15px 0;
}

/* Logout */
.logout-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: #dc2626;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(220,38,38,0.1);
}

/* Animation */
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.support-page-wrapper {
  background: #f5f6f8;
  padding: 85px 15px 60px 15px;
  display: flex;
  justify-content: center;
}

.support-a4 {
  background: #ffffff;
  width: 100%;
  max-width: 794px; /* A4 width at 96dpi */
  min-height: 1123px; /* A4 height */
  padding: 50px 60px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
  color: #222;
}

.support-header{
  z-index: 10;
  position: relative;
}

/* Header */
.support-header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.support-subtitle {
  font-size: 0.95rem;
  color: #666;
}

/* Sections */
.support-section {
  margin-top: 30px;
}

.support-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.support-section p,
.support-section li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.support-section ul {
  padding-left: 18px;
}

/* Steps */
.support-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-step {
  display: flex;
  gap: 15px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #2c6bed;
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-contact {
  margin-top: 5px;
  font-size: 0.9rem;
}

/* Notes */
.support-note {
  background: #f8f9fb;
  padding: 20px;
  border-left: 4px solid #2c6bed;
}

/* Footer */
.support-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-muted {
  margin-top: 5px;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
  .support-a4 {
    padding: 30px 25px;
    min-height: auto;
  }

  .modal-content-safety{
    margin: 50% auto;
  }
}

.legal-page-wrapper {
  background: #f5f6f8;
  padding: 85px 15px 60px 15px;
  display: flex;
  justify-content: center;
}

.legal-a4 {
  background: #ffffff;
  width: 100%;
  max-width: 794px;
  padding: 50px 60px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
  color: #222;
}

.legal-header{
  z-index: 10;
  position: relative;
}

/* Header */
.legal-header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.legal-subtitle {
  font-size: 0.9rem;
  color: #666;
}

/* Sections */
.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

.legal-section ul {
  padding-left: 18px;
}

/* Footer */
.legal-footer {
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

/* Modal Card */
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: modalFade 0.25s ease;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.close-modal {
  cursor: pointer;
  color: #6b7280;
}

/* Subtext */
.modal-subtext {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 10px 0 20px;
}

/* Form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-hover);
}

/* Hint */
.hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Error */
.modal-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.modal-error.hidden {
  display: none;
}

/* Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-primary {
  background: var(--primary-hover);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Animation */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .legal-a4 {
    padding: 30px 25px;
  }
}

/* TABLET */
@media (min-width: 600px) {
  .products-grid-seller {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 900px) {
  .products-grid-seller {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .seller-profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .seller-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card-seller img {
    height: 140px;
  }
}

/* ================================
   MOBILE TWEAKS
================================ */
@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    margin: 0 12px;
  }
}

@media (max-width: 900px) {
  .hero-text h2 {
    font-size: 2.1rem;
  }

  .hero-img img {
    height: 300px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .main-image-wrapper img{
    height: 360px;
  }
}

@media (max-width: 640px) {
  .checkout-item {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }

  .checkout-item-total {
    grid-column: 2;
    text-align: right;
    margin-top: 6px;
  }

  .checkout-item img {
    width: 52px;
    height: 52px;
  }
}

@media screen and (max-width: 780px){
  header{
    padding: 12px 20px;
  }

  section{
    padding: 85px 20px 10px 20px;
  }

  html::-webkit-scrollbar{
    width: 0;
  }

  header .navbar{
    display: none;
  }

  .search-bar{
    width: 100%;
    right: 0;
    left: 0;
    position: absolute;
    padding: var(--padding);
    display: none;
  }

  .search-bar.closing{
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .search-bar.opening{
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .search-bar button {
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    display: flex;
  }

  .search-suggestions{
    right: 0;
    left: 0;
  }

  #close_search{
    position: fixed;
    margin-top: 0px;
    width: 40px;
    height: 40px;
    background: #ddd;
    color: var(--text-color);
    border-radius: var(--border-radius);
    transition: background 0.4s ease, color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .search-list{
    z-index: 100;
    padding: 20px 10px;
    display: none;
    flex-direction: column;
    gap: 30px;
  }

  .search-list .search_grid{
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 45px auto;
    padding: 0px;
    padding-bottom: 10px;
    padding-top: 20px;
  }

  .hero-section-grid{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-img{
    order: -1;
    transform: translateY(30px);
  }

  .hero-text{
    align-items: center;
    text-align: center;
  }

  .hero-text h2{
    font-size: 1.9rem;
  }

  .hero-text p{
    font-size: 0.95rem;
  }

  .hero-img img{
    height: 260px;
  }

  .hero-text, .hero-CTA{
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-CTA-btn, .hero-CTA-btn-2 {
    width: 100%;
  }

  .hero-trust-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .hero-trust-card > div {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .cat-title-filter{
    padding: 50px 20px 10px 20px;
    align-items: start;
    margin-bottom: 0px;
  }

  .filter span.material-icons-outlined{
    font-size: 16px;
    color: var(--text-color);
  }

  .filter p{
    font-size: 12px;
  }

  .section-title {
    font-size: 14px;
  }

  .category{
    padding: 0px 20px 15px 20px;
  }

  .products-section{
    padding: 0px 20px 70px 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-detail-section{
    padding: 70px 20px;
  }

  .main-image-wrapper img {
    height: 320px;
  }

  .thumbnail {
    width: 64px;
    height: 64px;
  }

  .product-name-detail {
    font-size: 1.6rem;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 60px 1fr auto;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .mobile-icons{
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .mobile-bottom-nav{
    display: flex;
  }

  .filter-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
  }

  .fab {
    bottom: 70px;
  }
}

@media (max-width: 480px) {

  .hero-text h2 {
    font-size: 1.7rem;
  }

  .hero-img img {
    height: 220px;
  }

  .hero-trust-card {
    margin-top: 40px;
    gap: 16px;
  }

  .hero-trust-card > div {
    font-size: 12px;
    padding: 12px 14px;
  }
}


/* 🌙 Dark Mode */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #121212;              
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #e0e0e0;         
    --primary-color: #4A90E2;         
    --primary-hover: #357ABD;
    --accent-color: #FFD700;
    --success-color: #4CAF50;
    --error-color: #FF6B6B;
  }

  body {
    background: var(--bg-color);
    color: var(--text-color);
  }

  header {
    background: #1e1e1e;
    border-bottom: 1px solid #333;
  }

  header .logo h1 {
    color: var(--primary-color);
  }

  header .navbar ul li a span {
    background: #2c2c2c;
    color: var(--text-color);
  }

  header .navbar ul li a span:hover,
  header .navbar ul li a span.active {
    background: var(--primary-hover);
    color: #fff;
  }

  .search-bar .search-input {
    background: #1e1e1e;
    border: 1px solid #444;
    color: var(--text-color);
  }

  .search-bar button span {
    color: var(--text-color);
  }

  .search-list {
    background: rgba(0, 0, 0, 0.6);
  }

  .search-list .search-list-item {
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    color: var(--text-color);
  }

  .search-list .search-list-item:hover {
    background-color: #2a2a2a;
  }

  .category-sect form {
    background-color: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  .category-sect form select {
    background: #2c2c2c;
    color: var(--text-color);
    border: 1px solid #444;
  }

  .new-product {
    background: #1e1e1e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  }

  .new-product span {
    background: #2c2c2c;
    color: var(--text-color);
  }

  .new-product span:hover {
    background: var(--primary-hover);
    color: #fff;
  }

  .p-container {
    background: #1e1e1e;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  }

  .close {
    background: #2c2c2c;
    color: var(--text-color);
  }

  .order-btn {
    border: 1px solid var(--text-color);
    color: var(--text-color);
  }

  .order-btn:hover {
    border-color: var(--primary-hover);
    color: #ddd;
  }

  .cart-buy .cart-btn {
    background: var(--primary-color);
  }

  .cart-buy .cart-btn:hover {
    background: var(--primary-hover);
  }
  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    transition: background 0.4s ease, color 0.4s ease;
  }

  .menu-icon:hover{
    background: var(--primary-hover);
  }
}
 */