body {
  margin-left: 0;
  margin-right: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f2f2;
  color: #333;
  padding-top: 47px;
}

.page {
  display: none;
  padding: 20px;
  padding-bottom: 70px;
  min-height: calc(100vh - 60px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.page.active {
  display: block;
  opacity: 1;
}


.top-bar {
  position: fixed; 
  top: 0;          
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000000;
  padding: 10px 15px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: top 0.4s cubic-bezier(0.4,0,0.2,1); 
}


.logo-wrap {
  position: absolute;
  left: 0;
}
.logo-wrap img {
  width: 210px;
  height: auto;
}
@media (max-width: 768px) {
    .logo-wrap {
        position: absolute;
        left: 25%;
        transform: translateX(-50%); 
    }
  .logo-wrap img {
    width: 130px;
  }
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;

}

.top-icons button {
  background: none;
  border: none;
  cursor: pointer;
}


@media (max-width: 768px) {
.menu-icon {
    width: 22px;
    height: 16px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

.line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white; 
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-menu-btn.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .line:nth-child(2) {
    opacity: 0; 
    transform: translateX(-10px);
}

.mobile-menu-btn.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.top-bar {
  justify-content: space-between;

}


}

/*----------search box---------*/
#searchBox {
  display: none; 
  position: absolute;
  top: 8px;
  right: 10px;
  background: #000000;
  padding: 6px 10px;
  border-radius: 6px;
  gap: 6px;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.795);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
}

#searchBox.show {
  display: flex;
}


#searchBox input {
  padding: 5px 8px;
  border: none;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  color: rgb(0, 0, 0);
  background: #ffffff;
}

#searchBox button {
  background: #00b894;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

#searchBox button:hover {
  background-color: #019875;
}


/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffffffb;
  border-top: 1px solid #ffffffc0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1001;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}


.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin: 4px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: #000000;
}

.bottom-nav a:hover {
  background-color: rgba(0,0,0,0.1);
}

.bottom-nav a.active svg {
  stroke: #00b894;
}

/*--------------------------------loder--------*/
#global-loader,
[role="status"] {
  position: fixed;
  top: 53px;      
  left: 0;
  right: 0;
  bottom: 0;    
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;  
}

body.loading {
  overflow: hidden;
}

.loader-container {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(69, 183, 153, 0.2);
  border-top-color: #00b894;
  animation: spin 2s linear infinite;
}

.loader-container img {
  width: 90px;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

.loading-text {
  margin-top: 25px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #2d3436;
  opacity: 0.7;
  text-align: center;
  animation: fade 2s ease-in-out infinite;
}


.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 3px;
  background-color: #2d3436;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes fade { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Loader */
.banner-loader {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.banner-loader .spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #00b894; /* Logo color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Banner images */
.ad-banner-container {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  border-radius: 10px;
}

.ad-banner-container img.banner-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.ad-banner-container img.banner-img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* Overlay text */
.ad-banner-container .overlay-text {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
  .ad-banner-container .overlay-text {
    font-size: 1.2rem;
    left: 15px;
    bottom: 10px;
  }
  .ad-banner-container img.banner-img {
 
  top: 0; left: 0;
  width: 100%; height: 120px;
 
}
.ad-banner-container {
 
  width: 100%;
  height: 120px;
}
}



#uploadPage h2 {
  text-align: center;
  font-size: 20px;
  color: #eef3f2;
  font-weight: 500;
  background-color: #00b894;
  padding: 30px;
  border-radius: 20px;
  margin: 40px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/*-----cart----*/
.cart-button-wrapper a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-decoration: none;
}

.cart-button-wrapper svg {
    stroke: #ffffff;
    stroke-width: 2.5; 
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.cart-badge {
    position: absolute;
    top: 0;        
    right: -2px;   
    background-color: #ff4757; 
    color: white;
    font-size: 15px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.cart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-btn.processing {
    pointer-events: none; 
    background: #f1f2f6;
    border-color: #dfe6e9;
    color: transparent;
}

.cart-btn.processing::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--accent-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cart-btn.success {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cart-btn:active {
    transform: scale(0.95);
}

/*------------------------------------------new css-------------------------------*/
/* ===== PROFILE PAGE ===== */
.profile-page {
  padding: 1.5rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f8fa;
  min-height: 80vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background-color: #fff;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 1.2rem;
}

.profile-img img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4CAF50;
}

.profile-info h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #333;
}

.profile-info p {
  margin: 0.3rem 0 1rem 0;
  color: #777;
}


.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;
  margin: 20px 0;
  width: 100%;
}

.stat-card {
  background: #ffffff;
  padding: 20px 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
  min-width: 0; 
  word-wrap: break-word;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #4CAF50;
  font-weight: 700;
}

.stat-card p {
  margin: 8px 0 0 0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap; 
}


@media (max-width: 768px) {
  .profile-stats {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }
}
.stat-card:hover {
  transform: translateY(-3px);
}

.recent-orders {
  margin-bottom: 1.5rem;
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.recent-orders h3 {
  margin-bottom: 0.8rem;
  color: #333;
}

.table-wrapper {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.orders-table th,
.orders-table td {
  padding: 0.5rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.orders-table th {
  background-color: #f2f2f2;
  color: #555;
}

.orders-table tr:hover {
  background-color: #f9f9f9;
}

.profile-settings {
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.profile-settings h3 {
  margin-bottom: 0.8rem;
  color: #333;
}

.profile-settings ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-settings ul li {
  margin-bottom: 0.5rem;
}

.profile-settings ul li a {
  color: #4CAF50;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.profile-settings ul li a:hover {
  text-decoration: underline;
}

/* ===== Login in to acsess ===== */
.login-prompt {
  text-align: center;
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-top: 2rem;
}

.login-prompt h2 {
  color: #333;
  margin-bottom: 1rem;
}

.btn-login {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #4CAF50;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-login:hover {
  background-color: #45a049;
}
/*-----------------------------------------------------------------------------*/
/* ===== LOGIN / SIGNUP / OTP CARD ===== */
.login-page, .signup-page, .otp-page {
  position: absolute;
  top: 52px;
  bottom: 55px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  background: #080710;
}


/*-------------------------ring efect--------------------------*/
.login-page::before, .signup-page::before {
   top: -80px; left: -80px; 
   background: linear-gradient(135deg, #00b894, #00cec9); }
.login-page::after, .signup-page::after {
   bottom: -80px; right: -80px;
   background: linear-gradient(135deg, #ff512f, #f09819); }

.login-page::before,
.login-page::after,
.signup-page::before,
.signup-page::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  opacity: 0.8;
  z-index: 0;
}

.login-card, .signup-card, .otp-card {
  position: relative;
  z-index: 2;
  width: 250px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.login-card h2, .signup-card h2, .otp-card h2 {
  margin-bottom: 25px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
  position: relative;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: #fff;
}

.form-group input {
  width: 100%;
  box-sizing: border-box;
  height: 35px;
  padding: 0 13px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  transition: 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.7);
}

.form-group input:focus {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 8px #00cec9;
}

.password-group {
  display: block;
  position: relative; 
}

.password-group input {
  width: 100%;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 31px; 
  cursor: pointer;
  font-size: 12px;
  color: #00b894;
  z-index: 5;
}

.forgot-link {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #00b894;
  text-align: right;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ffffff);
  color: #00b894;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  transition: 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-3px);
  opacity: 0.9;
  box-shadow: 0 0 15px #00cec9;
}

 .btn-signup, 
.btn-signup:visited  {
    color: #00b894 ; 

}

.btn-signup:hover {
    color: #00ffcc ;
}

.extra-links {
  margin-top: 15px;
  font-size: 12px;
}

.extra-links a {
  color: #00b894;
  text-decoration: none;
}

.extra-links a:hover {
  text-decoration: underline;
}

.otp-form {
  width: 100%;
  max-width: 400px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.otp-form h2 {
  margin-bottom: 25px;
  font-weight: 500;
}

.otp-message {
  color: #ff7675;
  margin-bottom: 15px;
  font-size: 14px;
}

.otp-form input[type="number"] {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
}



/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 480px) {
  .login-page::before, .login-page::after,
  .signup-page::before, .signup-page::after {
    width: 150px; 
    height: 150px;
  }
  
  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input {
    height: 34px;
    font-size: 12px;
  }
  
  h2 {
    font-size: 12px;
    margin-bottom: 20px !important;
  }
 
}



a[href*="login"], 
a[href*="login"]:visited {
    color: #00cec9 !important; 
    text-decoration: none !important;
}

a[href*="login"]:hover {
    color: #00ffcc !important;
    text-decoration: underline !important;
}


/* Button Loading State */

.btn-login.loading {

  pointer-events: none;
  opacity: 0.7;
  position: relative;

}


/* Spinner */

.btn-login.loading::after {

  content: "";
  width: 14px;
  height: 14px;

  border: 2px solid #00b894;
  border-top: 2px solid transparent;

  border-radius: 50%;

  position: absolute;

  right: 12px;
  top: 50%;

  transform: translateY(-50%);

  animation: btnSpin 0.6s linear infinite;

}


@keyframes btnSpin {

  100% {

    transform: translateY(-50%) rotate(360deg);

  }

}



/*---------------------shoping--------------------------*/
.category-section{
 margin-top: 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 15px;
}

.section-header h4 {
    font-size: 0.5rem;
    font-weight: 500;
    color: #111;
}

.view-all {
    font-size: 0.85rem;
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.category-wrapper {
    display: flex;
    gap: 14px;
    padding: 10px 15px 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-wrapper::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
}

.cat-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1.5px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-item:hover .cat-icon {
    border-color: #00b894;
    transform: translateY(-4px);
}

.cat-icon img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.category-item span {
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
    color: #444444;
    padding: 6px 8px;
    border-radius: 10px;
    text-transform: capitalize;
}

.category-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.category-dots span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    transition: 0.3s;
}

.category-dots span.active {
    background: #c76911;
    width: 18px;
    border-radius: 10px;
}


/* সাইডবার ডিফল্ট ভাবে স্ক্রিনের বাইরে থাকবে */
.sidebar {
    position: fixed;
    top: 53px;    
    bottom: 65px; 
    left: -280px; 
    width: 180px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999; 
    transition: 0.3s ease-in-out;
    overflow-y: auto; 
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.sidebar-categories {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 20px;
}

.sidebar-categories li a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.sidebar-categories li img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}


.overlay {
    position: fixed;
    top: 66px;   
    bottom: 65px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

.overlay.active {
    display: block;
}


/*--------------------------------- product card-----------------------*/
.product-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px;
  box-sizing: border-box;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h4 {
  font-size: 1.1rem;
  margin: 0;
  color: #222;
}

.filter-icon {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 14px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  transition: 0.2s;
}

@media (hover: hover) {
  .product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-4px);
  }
}

.product-main-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-img {
  position: relative;
}

.product-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}


.badge-container {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}

.badge-new,
.badge-offer {
  font-size: 9px;
  padding: 2px 5px;
  line-height: 1;
  font-weight: 600;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-new {
  background: #2ecc71;
  color: #fff;
}

.badge-offer {
  background: #e73c75;
  color: #fff;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center; 
  padding: 4px 4px;    
  text-align: center; 
}

.product-name {
  font-size: 13px;
  margin: 3px 0;
  margin-bottom: 5px;
  line-height: 1.3;
  width: 100%;  
  display: -webkit-box;
  -webkit-line-clamp: 1; 
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;   
}

.product-price {
  margin: 2px 0; 
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 100%;
}

.current-price {
  font-size: 15px;
  font-weight: bold;
  color: #2c3e50;
}

.old-price {
  font-size: 12px;
  color: #95a5a6;
  text-decoration: line-through;
  margin-left: 6px; 
}

.stock-status-box {
  margin: 2px 0;
}

.in-stock-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: #eafaf1;
  color: #27ae60;
  border-radius: 4px;
}

.out-of-stock-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: #fdecea;
  color: #e74c3c;
  border-radius: 4px;
}

.add-to-cart-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  width: 100%; 
  box-sizing: border-box; 
  padding: 8px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 4px; 
  background: #00b894;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #019477; 
  transform: translateY(-1px); 
}

.add-to-cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 480px) {

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-img img {
    height: 110px;
  }

  .product-name {
    font-size: 12px;
  }

  .current-price {
    font-size: 13px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


