/* --- Improved Mobile Responsiveness --- */
@media (max-width: 600px) {
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .product-card {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
  .main-header, .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem;
  }
  .modal-content, .fullscreen-modal .modal-content {
    width: 98vw !important;
    max-width: 100vw !important;
    padding: 1rem !important;
  }
  .modal-body {
    flex-direction: column !important;
    gap: 1rem;
  }
  .modal-left, .modal-right {
    min-width: 0;
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-payments img {
    height: 28px !important;
    margin: 0 4px;
  }
  .shop-now-banner {
    height: 180px;
    font-size: 1.2rem;
  }
  .shop-now-content h1 {
    font-size: 1.5rem;
  }
}
/* Base Color Palette */
:root {
  --dark-navy: #0d1321;
  --midnight-blue: #1d2d44;
  --slate-blue: #3e5c76;
  --steel-blue: #748cab;
  --light-beige: #f0ebd8;
  /* Added project-wide variables */
  --primary: #1e90ff;
  --danger: #e74c3c;
  --success: #1a7f37;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
}

/* Reset & Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-navy);
  color: var(--light-beige);
}

a {
  color: var(--light-beige);
  text-decoration: none;
}

/* Buttons */
.btn,
.btn-primary {
  display: inline-block;
  background-color: var(--slate-blue);
  color: var(--light-beige);
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
  cursor: pointer;
}

.btn:hover,
.btn-primary:hover {
  background-color: var(--steel-blue);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--midnight-blue);
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.navbar img.products-logo-nav {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: var(--light-beige);
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: url('/path-to/your-hero-image.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-beige);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px #000;
}

.hero-btn {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* Vision Section */
.vision-section {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--light-beige);
  color: var(--dark-navy);
}

.vision-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vision-section p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 2rem;
  text-align: center;
}

.products h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.products-toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.products-toolbar input,
.products-toolbar select {
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-card {
  position: relative;
  background: var(--midnight-blue);
  border-radius: 12px;
  padding: 1rem;
  color: var(--light-beige);
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
  width: 100%;
  border-radius: 8px;
  height: 150px;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.5rem 0;
}

.product-card button {
  margin-top: 0.5rem;
}

/* Optional sale tag */
.sale-tag {
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Cart Section */
.cart-section {
  background-color: var(--light-beige);
  color: var(--dark-navy);
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.cart-section h3 {
  margin-bottom: 1rem;
}

.cart-section ul {
  list-style: none;
  padding: 0;
}

.cart-item {
  background-color: var(--steel-blue);
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
  color: #fff;
}

.cart
/* Header */
.main-header {
  background-color: #000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #ccc;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #3ecf8e;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}
/* Base section style */
.product-section {
  position: relative;
  padding: 4rem 2rem;
  color: white;
  overflow: hidden;
  z-index: 1;
}

/* Fading animated background layer */
.product-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  animation: fadeBg 10s infinite alternate ease-in-out;
  z-index: -1;
}

/* Unique images for each section */

/* footwear */
.footwear-section::before {
  background-image: url('images/products/purple\ dunk2.jpg');
}
.footwear-section::after {
  background-image: url('images/products/white\ air4.jpg');
}


/* Phones */
.accessories-section::before {
  background-image: url('images/products/11\ pro5.png');
}
.accessories-section::before {
  background-image: url('images/products/131.png');
}


/* sale */
.sale-section::after {
  background-image: url('images/products/campus\ blue.webp');
}
.sale-section::before {
  background-image: url('images/products/iPhone_13_Red.png');
}
.sale-section::after {
  background-image: url('images/products/airfoce.jpg');
}
.sale-section::before {
  background-image: url('images/products/jordan-4\ -\ Copy.jpg');
}
.sale-section::after {
  background-image: url('images/products/hubbly.webp');
}


/* Animation keyframes */
@keyframes fadeBg {
  0% { opacity: 0.2; }
  50% { opacity: 0.2; }
  100% { opacity: 0.2; }
}
/* Shared slideshow styles */
.product-section {
  position: relative;
  padding: 4rem 2rem;
  color: white;
  overflow: hidden;
  z-index: 1;
}

.product-section::before,
.product-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlider 10s infinite ease-in-out;
  z-index: -1;
}

/* Alternate second image by using ::after */
.product-section::after {
  animation-delay: 5s;
}

/* Animation keyframes */
@keyframes fadeSlider {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}


/* Make each product section full screen height */
.product-section {
  min-height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
  color: white;
}

/* Make sure content like h2 + buttons are visible */
.product-section h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-grid {
  margin-top: 2rem;
  z-index: 2;
}

/* Make buttons pop */
.btn.view-all {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  background-color: rgba(255,255,255,0.1);
  border: 2px solid white;
  color: white;
  transition: background 0.3s;
}

.btn.view-all:hover {
  background-color: white;
  color: black;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.new-drops-section {
  margin-top: 100px; /* Adjust as needed */
}



.logo a {
  font-family: 'Arial Black', sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.logo a:hover {
  color: #ccc;
}






.search-bar {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  z-index: 1000;
}
.search-bar input {
  padding: 5px 10px;
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background: #111;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
}
.mobile-menu a {
  color: white;
  text-decoration: none;
  margin: 10px 0;
}





.contact-section {
  padding: 3rem 1rem;
  background: #020727;
  text-align: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.contact-list li {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.main-footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  font-weight: bold;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column form {
  display: flex;
  flex-direction: column;
}

.footer-column input[type="email"] {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-column button {
  padding: 0.5rem;
  background: #fff;
  color: #000;
  cursor: pointer;
  border: none;
}

.footer-payments {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-payments img {
  height: 30px;
}

.footer-note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}



/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Product Card */
.product-card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

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

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.product-card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0.25rem 0;
  color: #1d2d44;
  font-weight: bold;
}

.product-card .btn {
  margin-top: 0.5rem;
  background-color: #1d2d44;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.product-card .btn:hover {
  background-color: #3e5c76;
}


/* Wide Search Bar */
.search-wrapper {
  position: sticky;
  top: 0;
  background-color: #f0ebd8;
  padding: 1rem;
  z-index: 100;
  border-bottom: 1px solid #ccc;
}

.wide-search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  font-size: 1rem;
}
.contact-section {
  background: #353434;
  padding: 2rem;
  border-top: 1px solid #ccc;
}
.contact-list li {
  margin: 0.5rem 0;
  font-size: 1rem;
}
.contact-list i {
  color: #ff5c5c;
  margin-right: 8px;
}

.main-footer {
  background: #222;
  color: #525252;
  padding: 2rem 1rem;
  text-align: center;
}
.main-footer h4 {
  color: rgb(61, 60, 60);
  margin-bottom: 0.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-column {
  flex: 1;
  min-width: 150px;
  margin: 1rem 0;
}
.footer-column ul {
  list-style: none;
  padding: 0;
}
.footer-column ul li a {
  color: #aaa;
  text-decoration: none;
}
.footer-column ul li a:hover {
  color: #fff;
}
.footer-payments img {
  width: 50px;
  margin: 0 10px;
}
.footer-socials a {
  margin: 0 10px;
  font-size: 1.4rem;
  color: #ccc;
}
.footer-socials a:hover {
  color: #fff;
}
.footer-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}


/* Link Hover Effects */
.footer-column a,
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-column a::after,
.mobile-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #ff3c00; /* or your brand color */
  transition: width 0.3s ease;
}

.footer-column a:hover,
.mobile-menu a:hover {
  color: #ff3c00;
}

.footer-column a:hover::after,
.mobile-menu a:hover::after {
  width: 100%;
}



.btn {
  background-color: #ff3c00;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #e63200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* === Hover Effects and Animations === */

/* Buttons (e.g., Add to Cart, Join) */
.btn {
  background-color: #ff3c00;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #e63200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Product Cards */
.product-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Fade-in on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply Fade-in to Main Sections */
.main-header,
.product-section,
.contact-section,
.main-footer {
  animation: fadeInUp 0.8s ease both;
}

.product-card h3 {
  color: black;
}


.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  width: 280px;
  text-align: center;
}

.product-card h3 {
  color: black;
  font-weight: 600;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 320px;
  height: 100vh;
  background-color: #111; /* solid dark */
  color: white;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 1.2rem;
  transition: right 0.3s ease-in-out;
  z-index: 9999; /* on top */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

.mobile-menu.active {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9998;
}

.mobile-overlay.active {
  display: block;
}


.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #020727; /* or your current header bg */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* optional but clean */
}
.search-bar {
  display: none;
  padding: 10px;
  background: white;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.search-bar input {
  padding: 8px;
  width: 80%;
  max-width: 400px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.cart-container {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

#cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.cart-item img {
  width: 80px;
  height: auto;
  margin-right: 10px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#cart-summary {
  text-align: right;
  font-size: 18px;
  font-weight: bold;
}

#checkout-btn {
  padding: 10px 20px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}
.cart-navigation {
  margin-top: 20px;
  text-align: center;
}

.back-home-btn {
  display: inline-block;
  background-color: #1d2d44;
  color: #f0ebd8;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-home-btn:hover {
  background-color: #3e5c76;
}
.cart-navigation.top {
  margin-bottom: 20px;
  text-align: left;
}

.back-home-btn {
  display: inline-block;
  background-color: #1d2d44;
  color: #f0ebd8;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.back-home-btn:hover {
  background-color: #3e5c76;
}
.cart-navigation.top {
  margin-bottom: 20px;
  text-align: left;
}

.back-home-btn {
  display: inline-block;
  background-color: #1d2d44;
  color: #f0ebd8;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.back-home-btn:hover {
  background-color: #3e5c76;
}
.cart-navigation.top {
  position: sticky;
  top: 0;
  background-color: #0d1321; /* Matches brand header */
  padding: 10px 0;
  z-index: 100;
  text-align: left;
}

.back-home-btn {
  display: inline-block;
  background-color: #1d2d44;
  color: #f0ebd8;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: 16px;
  transition: background-color 0.3s ease;
}

.back-home-btn:hover {
  background-color: #3e5c76;
}


.cart-navigation.top {
  position: sticky;
  top: 0;
  background-color: #0d1321; /* Matches brand header */
  padding: 10px 0;
  z-index: 100;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle bottom shadow */
  border-bottom: 1px solid #1d2d44; /* Optional: subtle border */
}



.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background-color: #f0ebd8; /* or your brand color */
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.close-cart-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  float: right;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background-color: #f0ebd8; /* RAKOTEE light beige */
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.close-cart-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  float: right;
}

/* Cart Icon Button */
.cart-icon-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  margin-left: 15px;
  color: #0d1321; /* Dark Navy */
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #e63946; /* a bright red for badge */
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  pointer-events: none;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* hidden offscreen initially */
  width: 350px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0; /* slide in */
}


/* Cart Sidebar Container */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -350px; /* hidden initially */
  width: 350px;
  height: 100vh;
  background-color: #1d2d44; /* Midnight Blue */
  color: #f0ebd8; /* Light Beige text */
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* When open */
.cart-sidebar.open {
  right: 0;
}

/* Close button */
.close-cart-btn {
  background: none;
  border: none;
  color: #f0ebd8;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* Cart Title */
.cart-sidebar h2 {
  margin-top: 0;
  font-weight: 700;
  border-bottom: 2px solid #748cab; /* Steel Blue underline */
  padding-bottom: 10px;
}

/* Cart Items */
.cart-item {
  display: flex;
  margin: 15px 0;
  border-bottom: 1px solid #3e5c76; /* Slate Blue */
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  border: 1px solid #748cab;
}

.cart-item-details h3 {
  margin: 0 0 5px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f0ebd8;
}

.cart-item-details p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #f0ebd8cc; /* Slightly transparent text */
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-input {
  width: 50px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #748cab;
  background-color: #0d1321; /* Dark Navy background */
  color: #f0ebd8;
  font-size: 1rem;
}

.remove-btn {
  background-color: #3e5c76; /* Slate Blue */
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  color: #f0ebd8;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.remove-btn:hover {
  background-color: #748cab; /* Steel Blue on hover */
}

/* Cart Summary */
#cart-summary {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 2px solid #3e5c76;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0ebd8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Checkout Button */
#checkout-btn {
  background-color: #748cab; /* Steel Blue */
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: #0d1321; /* Dark Navy text */
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#checkout-btn:hover {
  background-color: #3e5c76; /* Slate Blue */
}
/* In style.css */
.navbar {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1000;
}
/* Basic example */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: start;
  }

  .cart-icon-btn {
    margin-top: 10px;
  }

  .wide-search {
    width: 100%;
    margin: 10px 0;
  }
}
/* Modal Overlay */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999 !important;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex; /* to enable centering when visible */
}

/* Fullscreen Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* Dark background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* When modal is active */
.modal.show {
  display: flex;
}

/* Modal Box Styling */
.modal-content {
  background-color: #080124;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
}

/* Modal Thumbnails */
.thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 0.25rem;
}

.thumbnails img.selected {
  border-color: #333;
}
/* Fullscreen modal base */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

/* Modal open state */
.fullscreen-modal.show {
  display: flex;
}

/* Modal inner layout */
.modal-content {
  background: #1e1e1e;
  color: #fff;
  width: 90%;
  max-width: 1000px;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.modal-left {
  flex: 1;
  min-width: 300px;
}

.modal-left img {
  width: 100%;
  border-radius: 0.5rem;
}

.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-right .price {
  font-size: 1.5rem;
  color: #ffdd57;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0.3rem;
  border: 2px solid transparent;
}

.thumbnails img:hover {
  border-color: #ffdd57;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
}


.product-highlights {
  margin: 1.5rem 0;
  background-color: #f0ebd8;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.product-highlights h4 {
  margin-bottom: 0.5rem;
  color: #1d2d44;
  font-size: 1.1rem;
  font-weight: bold;
}

.product-highlights ul {
  list-style-type: disc;
  padding-left: 1.2rem;
  color: #3e5c76;
  font-size: 0.95rem;
}

.product-highlights li {
  margin-bottom: 0.4rem;
}



.shop-now-banner {
  background-image: url('rakotee.png.png'); /* <-- your image path */
  background-size: cover;
  background-position: center;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.shop-now-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 0;
}

.shop-now-content {
  position: relative;
  z-index: 1;
}

.shop-now-content h1 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff;
}

.shop-now-btn {
  background-color: #fff;
  color: #000;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.shop-now-btn:hover {
  background-color: #f0f0f0;
}



.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* hide off screen */
  width: 350px;
  height: 100%;
  background: #222;
  color: #fff;
  padding: 1rem;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
}

.cart-sidebar.open {
  right: 0; /* slide in */
}

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

.cart-header button {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.cart-items {
  margin-top: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.5rem;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.3rem;
}

.cart-item-details {
  flex: 1;
  margin-left: 0.5rem;
}

.cart-footer {
  margin-top: 1rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: right;
}

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

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
.product-card {
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}


.account-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #ccc;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 999;
}

.dropdown-menu.active {
  display: flex;
}

.dropdown-menu a {
  padding: 10px;
  text-decoration: none;
  color: black;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #f4f4f4;
}


.product-card {
  background: #565558; /* Match the page background */
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  text-align: center;
}
.product-card:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .cart-sidebar.open {
    width: 100vw;
  }
}

/* Product image styling */
.product-img {
  width: 100%;
  border-radius: 0.5rem;
}

/* Spinner styling */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Mobile Forms & Tables --- */
@media (max-width: 600px) {
  form, .auth-form, .checkout-form, .modal-content form {
    width: 100% !important;
    max-width: 100vw;
    padding: 1rem 0.5rem !important;
    box-sizing: border-box;
  }
  input, select, textarea, button {
  font-size: 1.1rem !important;
  padding: 0.9rem 1rem !important;
  border-radius: 10px !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
  box-sizing: border-box;
  min-height: 48px !important; /* Touch target size */
  min-width: 48px !important;
  }
  label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  .btn, .btn-primary, button[type="submit"] {
    width: 100%;
    font-size: 1.15rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-radius: 10px;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .btn:active, .btn-primary:active, button[type="submit"]:active {
    background-color: #e63200 !important;
    color: #fff !important;
    transform: scale(0.98);
  }
  .btn:focus, .btn-primary:focus, button[type="submit"]:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #1e90ff;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(30,144,255,0.15);
  }
  .close-modal, .close-cart-btn {
    min-width: 48px;
    min-height: 48px;
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 50%;
    touch-action: manipulation;
  }
  .thumbnails img {
    min-width: 48px;
    min-height: 48px;
    margin: 0.25rem;
  }
  table, .table, .order-table, .cart-table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  thead, tbody, th, td, tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  th, td {
    padding: 0.7rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  tr {
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  }
  th:last-child, td:last-child {
    border-bottom: none;
  }
  /* Hide table headers visually but keep for accessibility */
  thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }
  /* Make modals scrollable on mobile */
  .modal-content, .fullscreen-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}
