/* ====== Base Styles ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;

}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;

}

/* ===============================
   CONTAINER
   =============================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

/* ====== Header ====== */
header {
  background-color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-bottom: 1px solid #ddd;
}

.header-column {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Logo */

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff5a5f;
}

.logo i {
  color: #ff5a5f;
  margin-right: 8px;
}

/* Menu toggle (mobile) */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 20px;
  flex: 1;
  max-width: 400px;
}

.search-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  flex: 1;
}

.search-form button {
  background: #ff5a5f;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-form button:hover {
  background-color: #c2185b;
}

/* Navigation */
nav {
  flex-shrink: 0;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #333;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #e91e63;
}

.nav-links li a i {
  margin-right: 5px;
}

/* Dropdown menu */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 10px 0;
  z-index: 1000;
  top: 100%;
  right: 0;
}

.nav-links .dropdown-menu li {
  padding: 10px 20px;
}

.nav-links .dropdown-menu li a, 
.nav-links .dropdown-menu li button {
  color: #333;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}

/* Logout link style */
.logout-link {
  background: none;
  border: none;
  color: #333;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

/* Show nav on toggle */
#navbar.show {
  display: block;
}

/* ====== Hero Section ====== */
.hero {
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}


/* ===============================
   MAIN CONTENT
   =============================== */
main {
  padding: 20px 0;
  overflow-x: hidden;
}

/* ===============================
   ALERT MESSAGES
   =============================== */
.messages .alert {
  margin-bottom: 10px;
  padding: 10px;
  border-left: 5px solid #e91e63;
  background-color: #fce4ec;
}

/* ======================
   Mobile Bottom Navigation
========================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  z-index: 999;
  box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  justify-content: space-around;
}

.mobile-bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav a i {
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-bottom-nav a span {
  font-size: 12px;
}

/*Hero Slider Navigation*/
.hero-slider-container {
  position: relative;
  width: 100vw;
  height: 200px;
  overflow: hidden;
  max-width: none;
  padding: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;

}
.container .hero-slider-container {
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
.hero-slider{
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  max-width: none;
}

.hero-slider img {
  width: 100%;
  max-width: none;
  object-fit: cover;
}

.slide{
  min-width: 100%;
  flex-shrink: 0;
  display: none;
  justify-content: center;
  align-items: center;
}

.slide.active{
  display: flex;

}

.slide img{
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
}
.slider-btn.prev{
  left: 10px;
}

.slider-btn.next{
  right: 10px;
}

/* ====== Categories ====== */
.category-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.categories {
  padding: 20px 0;

}
.category-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
 

}

.category-grid  a{
  display: inline-block;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  padding: 8px 16px;
  border-radius: 20px;
  margin-right: 10px;
  font-size: 14px;
  border: 1px solid #ccc
}

.category-card {
  background: #fff;
  padding: 5px;
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  color: #ff5a5f;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

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

.product-grid p {
  font-size: 14px;
  color: #ff5a5f;
  font-weight: bold;
}

/* Base layout for product detail */
.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin: 40px auto;
  padding: 20px;
  max-width: 1200px;
  box-sizing: border-box;
  
}

/* Gallery section (left column) */
.gallery-section {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}


#mainPreview {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  overflow-x: auto;
}

.thumbnails .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: 0.3s;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 4px;
}


.thumbnails img.active-thumb {
  border-color: #ff6200;
}

.thumbnails .thumb:hover {
  border-color: #000;
}

/* Main image + arrows */
.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Arrows inside image */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 8px ;
  cursor: pointer;
  z-index: 2;
}

.nav-btn.left {
  left: 10px;
}

.nav-btn.right {
  right: 10px;
}

/* Product info (right column) */
.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-info .description {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.product-info .price {
  font-size: 22px;
  font-weight: bold;
  color: #c00;
  margin-bottom: 15px;
}

.product-info select,
.product-info input[type="number"] {
  padding: 8px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Reviews */
.reviews {
  margin-top: 40px;
}

.review {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.review strong {
  font-weight: bold;
}

.review-list {
  list-style: none;
  padding: 0;
}

.review-list li {
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
}

/* ---------- FORM ELEMENTS ---------- */
.product-info form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 500;
}

.product-info .btn {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 50%;
  height: 40px;
}

.product-info .btn:hover {
  background-color: #e64a19;
}

.product-info .btn-secondary {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.product-info .btn-secondary:hover {
  background-color: #bbb;
}

/* ====== Cart / Checkout ====== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 20px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.cart-table th,
.cart-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.cart-image {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.cart-total {
  margin-top: 20px;
  font-size: 18px;
}

.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #f68b1e;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #dd7a19;
}

.btn-primary {
  background-color: #ff6d00;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: #ff6d00;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.remove-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-btn:hover {
  background: #cc0000;
}

.confirm-btn {
  background: #f60;
  color: white;
  padding: 10px 20px;
  border: none;
  margin-top: 20px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.confirm-btn:hover {
  background-color: #e65500;
}

.continue-btn {
  display: inline-block;
  background-color: #009966;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 30px;
  border-radius: 4px;
}

.continue-btn:hover {
  background-color: #007f55;
}

/* Footer Styling */
footer {
  background: #333;
  color: white;
  padding: 40px 0 20px;
  margin-top: 40px;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand,
.footer-links,
.footer-contact,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff5a5f;
  text-decoration: none;
}

.footer-logo i {
  margin-right: 8px;
  color: #ff5a5f;
}

.footer-slogan {
  font-size: 0.9rem;
  color: #bbb;
  margin-top: 5px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #ff5a5f;
}

.footer-contact p {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: #ff5a5f;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #ddd;
  font-size: 1.2rem;
  text-decoration: none;
}

.footer-social a:hover {
  color: #ff5a5f;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 15px;
  }
}

/* Login/Register Shared Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f9f9f9;
}

.auth-box {
  width: 100%;
  max-width: 400px;
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

.auth-box input[type="text"],
.auth-box input[type="password"],
.auth-box input[type="email"],
.auth-box select,
.auth-box textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-box button:hover {
  background-color: #e65c00;
}

.auth-switch {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.auth-switch a {
  color: #007bff;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Order Tracking Styles */
.order-title {
  text-align: center;
  font-size: 28px;
  margin-top: 20px;
  font-weight: bold;
  color: #333;
}

.order-tracking-container {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.order-table {
  display: flex;
  flex-direction: column;
}

.order-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
  font-size: 14px;
}

.order-row.header {
  font-weight: bold;
  background-color: #f2f2f2;
}

.order-row div {
  padding: 5px;
  word-wrap: break-word;
}

.status-pending {
  color: orange;
  font-weight: bold;
}

.status-completed {
  color: green;
  font-weight: bold;
}

.status-cancelled {
  color: red;
  font-weight: bold;
}

/* ====== ORDER HISTORY BASE ====== */
.order-history-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.order-block {
  border: 1px solid #ddd;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  background-color: #fdfdfd;
}

.order-history-list {
  list-style: none;
  padding: 0;
}

.order-item {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.product-review-block {
  margin-top: 15px;
  padding: 10px 15px;
  background: #f9f9f9;
  border-left: 4px solid #f68b1e;
  border-radius: 6px;
}

.product-review-block p {
  margin-bottom: 8px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

.already-reviewed {
  color: #888;
  font-style: italic;
  font-size: 15px;
}

.no-orders {
  text-align: center;
  font-size: 17px;
  color: #777;
  padding: 20px;
}

/* ====== PAGINATION ====== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

.pagination a {
  padding: 6px 12px;
  background-color: #f68b1e;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #d67616;
}

.pagination .current-page {
  font-weight: bold;
  color: #333;
}

/* ====== Wishlist Styles ====== */
.wishlist-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.wishlist-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.wishlist-item img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.wishlist-item h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #333;
}

.price {
  font-weight: bold;
  color: #f55;
}

.empty-message {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-top: 2rem;
}

/* ======================
   Media Queries
========================= */
@media screen and (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  header nav,
  .search-form,
  .menu-toggle {
    display: none;
  }

  .header-column {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 60px;
    right: 10;
    width: 60%;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .nav-links.show {
    display: flex;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle{
    display: block;
    color: #ff5a5f;
    background: none;
    outline: none;
    border: none;
    margin-left: auto;
  }

  .search-form {
    order: 3;
    width: 100%;
    margin: 10px 0;
  }

  main {
    padding-bottom: 60px; /* Prevent content from hiding behind bottom nav */
  }

  .product-detail {
    flex-direction: column;
    padding: 10px;
  }

  .hero-slider-container{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-slider img{
    height: 200px;
    object-fit: cover;
  }

  .container .categories{
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x; 
    position: relative;

  }


  .categories::after{
      content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1rem;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent);
  }
    /* content: '';
    position: absolute;
    overflow-x: auto;
    padding: 10px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%); 
    margin-right: calc(-50vw + 50%);
    -webkit-overflow-scrolling: touch; */  

  .category-grid{ 
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
    margin: 0;
    padding: 0 15px;
    scroll-snap-type: x none;
    
  }

  .category-card{
    flex: 0 0 auto;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    text-align: center;
    white-space: nowrap;
    color: #ff5a5f;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  }

  .category-grid a{
    display: inline-block;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0;
    white-space: nowrap;
    text-align: center;
  }
  
  .gallery-section {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .product-info {
    max-width: 100%;
    padding-top: 10px;
  }

  .main-image-container {
    aspect-ratio: auto;
    height: auto;
  }

  .main-image-container img {
    max-height: 400px;
    object-fit: contain;
  }

  .thumbnails {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: unset;
    margin-bottom: 10px;
  }

  .thumbnails img {
    width: 50px;
    height: 50px;
  }

  .nav-btn.left {
    left: 20%;
  }

  .nav-btn{
    font-size: 16px;
    padding: 5px 8px;
  }

  .nav-btn.right {
    right: 20%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table tr {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background-color: #fdfdfd;
  }

  .cart-table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 10px;
    font-weight: bold;
    color: #444;
    text-align: left;
  }

  .cart-image {
    width: 80px;
    margin: 5px auto;
    display: block;
  }

  .cart-actions {
    flex-direction: column;
  }

  .order-row {
    display: block;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 10px;
    background-color: #fafafa;
  }

  .order-row.header {
    display: none;
  }

  .order-row div {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
  }

  .order-row div::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }

  .order-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .order-history-container {
    padding: 15px;
  }

  .product-review-block {
    padding: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    /* gap: 12px;
    padding: 10px 0;
    width: 100%;
    max-width: none; */
  }

  .product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
  }

  .product-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px 8px 0 0;
  }

  .product-info {
    padding: 8px;
    font-size: 13px;
  }

  .thumbnail-gallery {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .thumbnail-gallery img {
    width: 50px;
    height: 50px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
  }

  .wishlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
  }

  .wishlist-item img {
    height: 150px;
  }

  .wishlist-item h3 {
    font-size: 0.95rem;
  }

  .price {
    font-size: 0.95rem;
  }

  .remove-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .wishlist-container {
    padding: 1rem;
  }
  .search-form {
    width: 100%;
    display: flex;
    margin: 10px 0;
    position: static;
    box-shadow: none;


  }
 
  .search-btn{
    display: none;
  }
  .slider-btn {
    font-size: 24px;
    padding: 6px 10px;
  }

  .hero-slider img{
    height: 200px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .product-card img {
    height: 150px;
  }

  .order-title {
    font-size: 20px;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group select,
  .form-group textarea {
    font-size: 14px;
  }

  .pagination {
    flex-direction: column;
    gap: 8px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }

  .wishlist-item img {
    height: 140px;
  }

  .wishlist-item {
    padding: 0.8rem;
  }

  .wishlist-item h3 {
    font-size: 0.9rem;
  }

  .remove-btn {
    width: 100%;
    display: block;
    margin-top: 0.6rem;
  }
}

/* Review Form Container */
.review-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Heading */
.review-form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 26px;
}

/* Form Labels */
.review-form-container form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

/* Comment Textarea */
.review-form-container form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: border-color 0.3s;
    resize: vertical;
}

.review-form-container form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Submit Button */
.review-form-container form button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.review-form-container form button:hover {
    background-color: #0056b3;
}

/* Back Link */
.review-form-container a {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.review-form-container a:hover {
    text-decoration: underline;
}

/* Already reviewed message */
.already-reviewed {
    font-style: italic;
    color: #888;
    margin-bottom: 10px;
}

/* Star Rating */
.rating-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.rating-group input[type="radio"] {
    display: none; /* hide radio buttons */
}

.rating-group label {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 5px;
}

.rating-group input[type="radio"]:checked ~ label,
.rating-group label:hover,
.rating-group label:hover ~ label {
    color: #ffca08; /* gold */
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .review-form-container {
        padding: 25px;
        margin: 30px 15px;
    }
}

@media (max-width: 480px) {
    .review-form-container {
        padding: 20px;
        margin: 20px 10px;
    }

    .review-form-container h2 {
        font-size: 22px;
    }

    .review-form-container form textarea {
        font-size: 15px;
        padding: 10px;
    }

    .rating-group label {
        font-size: 28px;
    }

    .review-form-container form button {
        font-size: 16px;
        padding: 10px;
    }
}