* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Radius Technologies Colors - Red, Black, White */
  --primary-red: #e63946;
  --dark-black: #1a1a1a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --accent-blue: #0066cc;
  --accent-green: #2ecc71;
  --text-dark: #333333;

  /* Gradients */
  --gradient-red-blue: linear-gradient(135deg, #e63946 0%, #0066cc 100%);
  --gradient-red-green: linear-gradient(135deg, #e63946 0%, #2ecc71 100%);
  --gradient-blue-green: linear-gradient(135deg, #0066cc 0%, #2ecc71 100%);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: var(--light-gray);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* ===== STICKY HEADER ===== */
#mainNav {
  background: var(--white) !important;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.15);
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--primary-red);
}

#mainNav .navbar-brand img {
  transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover img {
  transform: scale(1.05);
}

#mainNav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 5px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

#mainNav .nav-link:hover {
  color: var(--primary-red) !important;
  border-bottom: 2px solid var(--primary-red);
}

#mainNav .nav-link i {
  margin-right: 5px;
}

.cart-count {
  position: relative;
  top: -5px;
  margin-left: 5px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-black) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,25 50,50 T100,50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  opacity: 0.5;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* ===== SLIDER SECTION ===== */
.hero-slider-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  padding: 80px 0;
}

.hero-slider-section h1 {
  color: var(--dark-black);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-slider-section p {
  color: #666;
  font-size: 1.1rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-red);
  background: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: var(--primary-red);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary-red);
  opacity: 1;
}

/* ===== SLIDER PRODUCT CARDS ===== */
.slider-product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.slider-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(230, 57, 70, 0.2);
  border-color: var(--primary-red);
}

.slider-product-image {
  width: 100%;
  height: 180px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.slider-product-card:hover .slider-product-image img {
  transform: scale(1.05);
}

.slider-product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  background: var(--white);
  border: 2px solid var(--medium-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(230, 57, 70, 0.2);
  border-color: var(--primary-red);
}

.product-image {
  width: 100%;
  height: 200px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.badge-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gradient-red-blue);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
}

.product-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 700;
  color: var(--text-dark);
  margin: 12px 0;
  font-size: 1rem;
  line-height: 1.3;
}

.product-body p {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #666;
}

/* ===== BUTTONS ===== */
.btn-buy-now {
  background: var(--gradient-red-blue);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 12px;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
  color: var(--white);
  text-decoration: none;
}

.btn-order-now {
  background: var(--gradient-red-green);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 15px;
  letter-spacing: 0.5px;
}

.btn-order-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
  color: var(--white);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-red) !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--dark-black) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4);
}

.btn-outline-primary {
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
}

.btn-outline-primary:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

/* ===== FEATURES SECTION ===== */
.feature-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-red);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.15);
}

.feature-box i {
  color: var(--primary-red);
}

.feature-box h5 {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 15px;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--dark-black) 0%, #2a2a2a 100%) !important;
  color: var(--white);
  margin-top: 80px;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: var(--primary-red);
}

footer hr {
  background-color: rgba(230, 57, 70, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  #mainNav .nav-link {
    margin: 8px 0;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 50px 0;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  #mainNav .navbar-brand img {
    height: 40px;
  }
}

/* =====  Custom styles for the slide-in menu ===== */

/* Base navbar styles */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: #000 !important;
}

.navbar-nav .nav-link:hover {
    color: #ff3333 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ff3333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.nav-item.active .nav-link {
    color: #ff3333 !important;
}

.nav-item.active .nav-link::after {
    width: 80%;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-in menu */
.mobile-slide-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh; /* Use viewport height instead of 100% */
    background-color: #fff; /* Changed to white background */
    z-index: 1050;
    transition: all 0.3s ease;
    overflow: hidden; /* Changed from overflow-y: auto to prevent scrollbar */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column; /* Use flexbox for better height control */
}

.mobile-slide-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 0.75rem 1rem; /* Reduced padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Changed to light gray */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #000; /* Changed to black */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Changed to light gray */
}

.mobile-menu-nav {
    padding: 0.5rem 0; /* Reduced padding */
    flex: 1; /* Allow nav to take remaining space */
    overflow-y: auto; /* Add scrolling only to the nav section */
}

.mobile-menu-nav .nav-link {
    color: #000; /* Changed to black */
    padding: 0.5rem 1rem; /* Reduced padding */
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    margin: 0.25rem 0.5rem; /* Adjusted margins */
    transition: all 0.3s ease;
}

.mobile-menu-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Changed to light gray */
    color: #ff3333;
    transform: translateX(5px);
}

.mobile-menu-nav .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    color: #000; /* Changed to black */
}

.mobile-menu-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1); /* Changed to light gray */
    margin: 0.5rem 0; /* Reduced margin */
}

.mobile-user-section {
    padding: 0.75rem 1rem; /* Reduced padding */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Changed to light gray */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.mobile-user-info {
    text-align: center;
    color: #000; /* Changed to black */
    margin-bottom: 0.75rem; /* Reduced margin */
}

.mobile-user-info i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ff3333;
}

.mobile-user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #000; /* Changed to black */
}

.mobile-user-email {
    font-size: 0.875rem;
    opacity: 0.8;
    color: #000; /* Changed to black */
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-actions .btn {
    border-radius: 0.25rem;
}

/* Hide default Bootstrap collapse on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
}

/* Show desktop menu on larger screens */
@media (min-width: 992px) {
    .mobile-menu-overlay,
    .mobile-slide-menu {
        display: none !important;
    }
    
    .navbar-collapse {
        display: block !important;
    }
}

/* Cart badge adjustments */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ff3333;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Animation for menu items */
.mobile-menu-nav .nav-link {
    animation: slideInLeft 0.3s ease forwards;
    opacity: 0;
}

.mobile-slide-menu.active .mobile-menu-nav .nav-link {
    opacity: 1;
}

.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(6) { animation-delay: 0.6s; }
.mobile-slide-menu.active .mobile-menu-nav .nav-link:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Menu text styling */
.menu-text {
    color: #a9a9a9; /* Light grey color */
    font-weight: 600;
    font-size: 1.1rem;
}


/* =========================
   HERO – MODERN SHOP STYLE
========================= */

.hero-shop {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,75,43,0.35), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255,65,108,0.35), transparent 45%),
        linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3),
        rgba(0,0,0,0.7)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    animation: heroFadeUp 0.9s ease forwards;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 10px 25px rgba(255,75,43,0.45);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,75,43,0.6);
}

/* Entry animation */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .hero-shop {
        min-height: 45vh;
    }
}
