/* RS Garments Design System */
:root {
  --primary-red: #d00000;
  --secondary-red: #9d0208;
  --ks-blue: #0077b6;
  --ks-orange: var(--primary-red);
  --white: #ffffff;
  --dark-bg: #03071e;
  --text-color: #333;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: var(--text-color);
}

/* Logo */
.logo-box {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Top Bar */
.top-bar {
  background: var(--primary-red);
  border-bottom: 1px solid #eee;
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #eee;
}

.top-bar a {
  color: #eee;
  text-decoration: none;
}

/* Header Components */
.main-header {
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.search-container {
  flex: 1;
  margin: 0 40px;
  display: flex;
  max-width: 600px;
}

.search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-btn {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 20px;
  font-size: 1.4rem;
}

.action-link {
  color: #333;
  position: relative;
  text-decoration: none;
}

.badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: red;
  color: white;
  font-size: 10px;
  border-radius: 50%;
  padding: 2px 5px;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--primary-red);
  padding: 20px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  color: white;
  flex-wrap: wrap;
}

.newsletter-label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  flex: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
}

.newsletter-form button {
  background: #333;
  color: white;
  border: none;
  padding: 0 25px;
  font-weight: 700;
  cursor: pointer;
}

/* Features Section */
.features-section {
  background: #fff;
  padding: 40px 5%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-item i {
  font-size: 2.5rem;
  color: #333;
}

.feature-title {
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.85rem;
  color: #666;
}

/* Footer Components */
.footer-main {
  background: var(--primary-red);
  color: white;
  padding: 60px 5% 20px 5%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.cart-sidebar-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cart-sidebar-actions .btn-view-cart,
.cart-sidebar-actions .btn-ready {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.btn-view-cart {
  background: #f1f1f1;
  color: #333;
  border: 1px solid #ddd;
}

.btn-view-cart:hover {
  background: #e5e5e5;
}

.footer-title {
  color: #000;
  margin-bottom: 25px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-list {
  list-style: none;
  line-height: 2.5;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-list a {
  color: #fff;
  text-decoration: none;
}

.partner-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 30px;
  background: white;
  padding: 2px;
}

.app-badge {
  height: 40px;
}

.social-links {
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.social-links a {
  color: #fff;
}

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-logo {
  height: 25px;
  background: white;
  padding: 2px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* Cart Sidebar & Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10001;
  backdrop-filter: blur(2px);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 10002;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  color: #999;
  margin-top: 50px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 700;
}

/* Modal Design */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
  font-size: 24px;
}

.modal-logo {
  background: red;
  padding: 10px;
  display: inline-block;
  border-radius: 4px;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.modal-content h2 {
  color: var(--primary-red);
  margin: 15px 0;
  font-size: 1.5rem;
}

.modal-form {
  margin-top: 20px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Nav Bar */
.nav-bar {
  background: var(--primary-red);
  padding: 12px 5%;
}

.nav-bar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-bar ul li a {
  color: white;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Buttons */
.btn-ready {
  background: var(--primary-red);
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.btn-ready:hover {
  background: var(--secondary-red);
}

.cart-close {
  cursor: pointer;
  font-size: 24px;
}

.footer-account-list {
  margin-bottom: 30px;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  max-width: 1280px;
  width: 100%;
  height: 720px;
  margin: 0 auto;
  overflow: hidden;
  background: #eee;
}

@media (max-width: 1280px) {
  .hero-carousel {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

.carousel-inner {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 500px;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-transform: uppercase;
  line-height: 1.1;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--primary-red);
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

/* New Arrivals Section */
.section-header {
  text-align: center;
  padding: 60px 5% 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-color);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: 0.3s;
  border-radius: 4px;
}

.page-link:hover,
.page-link.active {
  background: var(--primary-red);
  color: white;
  border-color: var(--primary-red);
}

/* New Arrivals Section Redesign */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  padding: 20px 5%;
}

.product-card {
  background: white;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: #fff;
  overflow: hidden;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hover-add-cart {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(208, 0, 0, 0.9);
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10;
}

.product-card:hover .hover-add-cart {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.brand-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d00000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  z-index: 5;
}

.wishlist-btn.active i, .wishlist-btn.in-wishlist i {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  color: #ef4444 !important;
}

.product-info {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 5px;
  /* height: 2.4rem; */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  color: #d00000;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-price span {
  font-size: 0.7rem;
  font-weight: 600;
}

.product-details {
  text-align: left;
  font-size: 0.8rem;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  padding: 0 10px;
}

.product-details div {
  margin-bottom: 2px;
}

.product-details b {
  color: #000;
  width: 80px;
  display: inline-block;
}

.btn-ready-ship {
  background: #d00000;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.8rem;
  margin-top: auto;
}

.btn-ready-ship:hover {
  background: #e67e22;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 5%;
  background: #fdfdfd;
  text-align: center;
  overflow: hidden;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* Added to clip slides */
}

.testimonial-container {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 40px 20px;
}

.testimonial-slide blockquote {
  font-size: 1.4rem;
  color: #555;
  line-height: 1.6;
  font-style: italic;
  position: relative;
  display: inline-block;
}

.testimonial-slide blockquote i {
  color: #ccc;
  font-size: 2rem;
  margin-right: 15px;
  vertical-align: top;
}

/* About Us Section */
.about-section {
  padding: 80px 5%;
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 25px;
  position: relative;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-red);
}

.about-text p {
  color: #666;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item i {
  font-size: 2rem;
  color: var(--primary-red);
}

.highlight-item h4 {
  font-weight: 700;
  font-size: 1.1rem;
}

.highlight-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Floating WhatsApp Buttons */
.floating-wa-container {
  position: fixed;
  bottom: 30px;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 12px 20px 12px 25px;
  border-radius: 30px 0 0 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: -2px 5px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: fit-content;
  align-self: flex-end;
}

.wa-btn:hover {
  padding-right: 35px;
  background: #128c7e;
}

.wa-btn i {
  font-size: 1.4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-carousel {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .slide-content h1 {
    font-size: 2rem;
  }
  .slide-content {
    left: 5%;
    right: 5%;
    text-align: center;
  }
  .main-header {
    flex-direction: column;
    gap: 15px;
  }
  .search-container {
    margin: 10px 0;
    width: 100%;
  }
  .nav-bar ul {
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 5px;
  }
  .newsletter-section {
    flex-direction: column;
    text-align: center;
  }
}

/* --- New Mobile Header Styles --- */
.mobile-only {
  display: none !important;
}

@media (min-width: 769px) {
  .desktop-only {
    display: flex !important;
  }
  .site-header .nav-bar.desktop-only {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }
  .desktop-only {
    display: none !important;
  }

  /* ... existing mobile styles ... */

  .header-top-center {
    text-align: center;
    padding: 15px 10px;
    background: #fff;
  }

  .mobile-logo-img {
    max-height: 70px;
    margin-bottom: 5px;
  }

  .wholesale-msg {
    color: #1a73e8;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
    margin: 0;
    font-family: "Playfair Display", serif;
  }

  .header-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px; /* Consistent height */
  }

  .mobile-icons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-search-bar {
    display: none;
    align-items: center;
    width: 100%;
    gap: 10px;
    animation: fadeIn 0.3s;
  }

  .mobile-search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #d00000; /* Red Border */
    border-radius: 4px;
    outline: none;
    font-size: 0.9rem;
  }

  .close-search-btn {
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .currency-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #333;
    border-bottom: 2.5px solid #f39c12;
    padding-bottom: 2px;
  }

  .action-icons-group {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mobile-action-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
  }

  .mobile-action-icon i {
    font-size: 1.1rem;
    color: #444;
  }

  .mobile-action-icon .label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #222;
    text-transform: capitalize;
  }

  .icon-badge-wrapper {
    position: relative;
  }

  .icon-badge-wrapper .badge {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background: #ff385c !important;
    color: #fff !important;
    font-size: 0.6rem !important;
    width: 15px !important;
    height: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Mobile Nav Slide-out */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 10005;
    transition: 0.4s;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav.active {
    left: 0;
  }

  .mobile-nav-header {
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    border-bottom: 1px solid #eee;
  }

  .mobile-nav ul {
    list-style: none;
    padding: 20px;
  }

  .mobile-nav ul li {
    margin-bottom: 20px;
  }

  .mobile-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
  }
}
