/* Import the new fonts */
@import url("https://fonts.googleapis.com/css2?family=Audiowide:wght@400;700&family=Raleway:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

/* CSS Variables */
:root {
  --primary-color: #1b3c53;
  --secondary-color-1: #456882;
  --secondary-color-2: #d2c1b6;
  --secondary-color-3: #f9f3ef;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --white: #ffffff;
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color-1)
  );
  --shadow-soft: 0 10px 40px rgba(27, 60, 83, 0.1);
  --shadow-hover: 0 20px 60px rgba(27, 60, 83, 0.2);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Audiowide", cursive;
  font-weight: 400;
  line-height: 1.2;
}

/* Section titles with underline */
.section-title-group {
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.title-underline {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Floating card design */
.floating-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(27, 60, 83, 0.08);
}

.floating-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 60, 83, 0.15);
}

/* Hero Section without Color Mask */
.hero-section {
  position: relative;
  background: url("/assets/herosection.jpg") center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Remove any potential overlays or masks */
.hero-section::before,
.hero-section::after {
  display: none !important;
}

/* Subtle Audio Visualizer */
.audio-visualizer {
  position: absolute;
  bottom: 10%;
  right: 10%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.3;
  z-index: 1;
}

.frequency-bar {
  width: 3px;
  background: var(--white);
  border-radius: 2px;
  animation: frequency 2s ease-in-out infinite;
  animation-delay: var(--delay);
  height: var(--height);
}

@keyframes frequency {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-badge {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--secondary-color-2);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
}

/* Premium Button */
.btn-premium {
  position: relative;
  display: inline-block;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--white);
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--white);
  transition: width 0.4s ease;
  z-index: 1;
}

.btn-premium:hover .btn-bg {
  width: 100%;
}

.btn-premium:hover .btn-text {
  color: var(--primary-color);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* Categories Section - Fully Responsive */
.categories-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--secondary-color-3);
}

.container {
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Special container for hero content to maintain centering */
.hero-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  margin-bottom: clamp(2rem, 6vw, 3rem);
  text-align: center;
}

.categories-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  display: flex;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar by default (desktop) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-container::-webkit-scrollbar {
  display: none;
}

.categories-grid {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  min-width: max-content;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
}

.category-card {
  width: clamp(180px, 22vw, 280px);
  min-width: clamp(180px, 22vw, 280px);
  max-width: clamp(180px, 22vw, 280px);
  height: clamp(280px, 35vw, 400px);
  flex-shrink: 0;
}

.category-image {
  position: relative;
  height: 70%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

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

.category-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.sound-pulse {
  position: relative;
  width: 40px;
  height: 40px;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.3s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.category-content {
  padding: clamp(1rem, 3vw, 1.5rem);
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-name {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.category-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: var(--secondary-color-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  transition: all 0.3s ease;
}

.category-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Products Section - Responsive Grid */
.products-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--white);
}

.products-grid-fixed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 30vw, 280px), 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.product-card {
  height: clamp(400px, 50vw, 480px);
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  margin: 0.5rem;
}

.product-image-wrapper {
  position: relative;
  height: 55%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
  background: #f8f9fa;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  z-index: 10;
}

.new-badge {
  background: var(--primary-color);
  color: var(--white);
}

.offer-badge {
  background: #e74c3c;
  color: var(--white);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 60, 83, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.quick-view-btn {
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  border: 2px solid var(--white);
  border-radius: 25px;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.quick-view-btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

.product-info {
  padding: clamp(1rem, 3vw, 1.5rem);
  height: 45%;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 0.75rem;
  flex-grow: 0;
  line-height: 1.3;
}

.product-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-price {
  margin-bottom: 1rem;
  flex-grow: 0;
}

.price-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.current-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--primary-color);
}

.original-price {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-light);
  text-decoration: line-through;
}

.offer-text {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: #27ae60;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.btn-wishlist {
  width: clamp(35px, 8vw, 40px);
  height: clamp(35px, 8vw, 40px);
  border-radius: 50%;
  border: 2px solid var(--secondary-color-2);
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-wishlist:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.btn-wishlist.wishlisted {
  background: #e74c3c;
  border-color: #e74c3c;
  color: var(--white);
}

/* Rectangle Add to Cart Button */
.btn-add-cart-rect {
  flex: 1;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-add-cart-rect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.4s ease;
  z-index: 1;
}

.btn-add-cart-rect:hover::before {
  left: 0;
}

.btn-add-cart-rect i,
.btn-add-cart-rect span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.btn-add-cart-rect:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 60, 83, 0.3);
}

/* Enhanced Music Player Section */
.music-player-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: var(--secondary-color-3);
}

.music-player-content {
  text-align: center;
}

.player-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

.music-player-interface {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 6vw, 3rem);
}

.player-left {
  flex: 1;
}

.track-info {
  text-align: left;
  margin-bottom: 1.5rem;
}

.track-title {
  font-family: "Audiowide", cursive;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.track-artist {
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.control-btn {
  width: clamp(40px, 10vw, 50px);
  height: clamp(40px, 10vw, 50px);
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.play-btn-main {
  width: clamp(50px, 12vw, 60px);
  height: clamp(50px, 12vw, 60px);
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.control-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.progress-container {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--secondary-color-2);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s ease;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  color: var(--text-light);
}

.player-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 6px);
  height: clamp(80px, 20vw, 120px);
}

.eq-bar {
  width: clamp(6px, 1.5vw, 8px);
  background: var(--gradient-primary);
  border-radius: 4px;
  height: 20px;
  transition: all 0.3s ease;
}

.eq-bar.playing {
  animation: equalizerJump 0.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.eq-bar:nth-child(1) {
  height: 40px;
}
.eq-bar:nth-child(2) {
  height: 70px;
}
.eq-bar:nth-child(3) {
  height: 50px;
}
.eq-bar:nth-child(4) {
  height: 90px;
}
.eq-bar:nth-child(5) {
  height: 60px;
}
.eq-bar:nth-child(6) {
  height: 80px;
}
.eq-bar:nth-child(7) {
  height: 45px;
}
.eq-bar:nth-child(8) {
  height: 65px;
}
.eq-bar:nth-child(9) {
  height: 75px;
}
.eq-bar:nth-child(10) {
  height: 35px;
}

@keyframes equalizerJump {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Simple Newsletter Section */
.newsletter-section {
  padding: clamp(2rem, 6vw, 3rem) 0;
  background: var(--primary-color);
  color: var(--white);
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.newsletter-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 0.5rem;
  font-family: "Audiowide", cursive;
  color: var(--white);
}

.newsletter-text {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin-bottom: 2rem;
  color: var(--secondary-color-2);
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  flex-direction: row;
}

.newsletter-input {
  flex: 1;
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.25rem);
  border: none;
  outline: none;
  font-family: "Raleway", sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.newsletter-btn {
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
  background: var(--secondary-color-1);
  color: var(--white);
  border: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--primary-color);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem);
  color: var(--text-light);
}

.empty-state i {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Comprehensive Responsive Design */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
  .products-grid-fixed {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
  }
  
  .categories-grid {
    gap: 2.5rem;
  }
  
  .category-card {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 420px !important;
  }
}

/* Large Screens (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .products-grid-fixed {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
  }
  
  .category-card {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 380px !important;
  }
}

/* Medium Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .products-grid-fixed {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-card {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 360px !important;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Small-Medium Screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .products-grid-fixed {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-card {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 340px !important;
  }
  
  .music-player-interface {
    flex-direction: column;
    gap: 2rem;
  }
  
  .player-left {
    width: 100%;
  }
  
  .track-info {
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

/* Small Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .products-grid-fixed {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .category-card {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    height: 320px !important;
  }
  
  .categories-grid {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    border-radius: 15px;
  }
  
  .newsletter-input,
  .newsletter-btn {
    border-radius: 15px;
  }
  
  .audio-visualizer {
    bottom: 5%;
    right: 5%;
    scale: 0.8;
  }
}

/* Extra Small Screens (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
  .products-grid-fixed {
    grid-template-columns: 1fr;
  }
  
  .category-card {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 300px !important;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .categories-section,
  .products-section,
  .music-player-section {
    padding: 3rem 0;
  }
  
  .floating-card {
    border-radius: 15px;
  }
  
  .category-image,
  .product-image-wrapper {
    border-radius: 15px 15px 0 0;
  }
  
  .music-player-interface {
    padding: 1.5rem;
  }
  
  .equalizer {
    height: 80px;
  }
}

/* Very Small Screens (below 480px) */
@media (max-width: 479px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .btn-premium {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .categories-section,
  .products-section,
  .music-player-section {
    padding: 2.5rem 0;
  }

  .products-grid-fixed {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .category-card {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 280px !important;
  }

  .categories-grid {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .audio-visualizer {
    display: none;
  }

  .newsletter-section {
    padding: 2rem 0;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .newsletter-input,
  .newsletter-btn {
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .music-player-interface {
    padding: 1rem;
    gap: 1.5rem;
  }

  .equalizer {
    height: 60px;
    gap: 3px;
  }

  .eq-bar {
    width: 4px;
  }

  .player-controls {
    gap: 0.75rem;
  }

  .control-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .play-btn-main {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Enhanced Responsive Categories Section */

/* Desktop and Large Tablets - Show all categories in a row with scrolling if needed */
@media (min-width: 992px) {
  .categories-container {
    justify-content: center;
    overflow-x: auto;
  }
  
  .categories-grid {
    justify-content: center;
    flex-wrap: nowrap;
  }
}

/* Medium Tablets - Show 3-4 categories per row */
@media (min-width: 768px) and (max-width: 991px) {
  .categories-container {
    justify-content: center;
    overflow-x: auto;
  }
  
  .categories-grid {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }
  
  .category-card {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    height: 320px !important;
  }
}

/* Small Tablets and Large Phones - Show 2-3 categories per row */
@media (min-width: 576px) and (max-width: 767px) {
  .categories-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .categories-grid {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0;
  }
  
  .category-card {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 300px !important;
  }
  
  /* Show scrollbar on mobile for better UX */
  .categories-container::-webkit-scrollbar {
    height: 4px;
  }
  
  .categories-container::-webkit-scrollbar-track {
    background: rgba(27, 60, 83, 0.1);
    border-radius: 2px;
  }
  
  .categories-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
  }
}

/* Mobile Phones - Show 1-2 categories per row with horizontal scrolling */
@media (max-width: 575px) {
  .categories-container {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .categories-grid {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0;
  }
  
  .category-card {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 280px !important;
  }
  
  /* Show scrollbar on mobile for better UX */
  .categories-container {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
  }
  
  .categories-container::-webkit-scrollbar {
    height: 4px;
  }
  
  .categories-container::-webkit-scrollbar-track {
    background: rgba(27, 60, 83, 0.1);
    border-radius: 2px;
  }
  
  .categories-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
  }
}

/* Very Small Phones - Optimize for smallest screens */
@media (max-width: 400px) {
  .category-card {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 260px !important;
  }
  
  .categories-grid {
    gap: 0.5rem;
  }
  
  .category-content {
    padding: 0.75rem;
  }
  
  .category-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .category-link {
    font-size: 0.75rem;
  }
}

/* Force horizontal layout for categories - Override any conflicting styles */
.categories-section .categories-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

.categories-section .category-card {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Add scroll indicators for mobile */
@media (max-width: 767px) {
  .categories-section::after {
    content: "← Scroll to see more →";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-family: "Montserrat", sans-serif;
    opacity: 0.7;
  }
}

/* Hide scroll indicator when there are few categories */
@media (max-width: 767px) {
  .categories-section.few-categories::after {
    display: none;
  }
}

/* Ensure proper touch targets for mobile */
@media (max-width: 768px) {
  .btn-wishlist,
  .btn-add-cart-rect,
  .control-btn,
  .newsletter-btn {
    min-height: 44px;
  }
  
  .category-link,
  .product-title a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section {
    background-image: url("/assets/herosection.jpg");
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .categories-section,
  .products-section,
  .music-player-section {
    padding: 2rem 0;
  }
}

/* Desktop Categories Optimization - Show all 4 cards fully */
@media (min-width: 992px) {
  .categories-container {
    overflow-x: hidden !important;
    padding-bottom: 0 !important;
  }
  
  .categories-grid {
    max-width: 100% !important;
    gap: clamp(1rem, 2vw, 1.5rem) !important;
    padding: 0 clamp(1rem, 2vw, 2rem) !important;
  }
  
  .category-card {
    width: clamp(220px, 22vw, 280px) !important;
    min-width: clamp(220px, 22vw, 280px) !important;
    max-width: clamp(220px, 22vw, 280px) !important;
    height: clamp(320px, 32vw, 400px) !important;
  }
}

/* Extra Large Screens - Optimize for very wide displays */
@media (min-width: 1400px) {
  .categories-grid {
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
  }
  
  .category-card {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    height: 400px !important;
  }
}

/* Large Desktop Screens - Perfect fit for 4 cards */
@media (min-width: 1200px) and (max-width: 1399px) {
  .categories-grid {
    gap: 1.5rem !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
  }
  
  .category-card {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 360px !important;
  }
}

/* Medium Desktop Screens - Compact but visible */
@media (min-width: 992px) and (max-width: 1199px) {
  .categories-grid {
    gap: 1rem !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
  }
  
  .category-card {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 320px !important;
  }
}


/* Fix CSS Syntax Errors */
@media (max-width: 768px) {
  .btn-wishlist,
  .btn-add-cart-rect,
  .control-btn,
  .newsletter-btn {
    min-height: 44px !important;
  }
  
  .category-link,
  .product-title a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .categories-section,
  .products-section,
  .music-player-section {
    padding: 2rem 0 !important;
  }
  
  .newsletter-input,
  .newsletter-btn {
    border-radius: 15px !important;
  }
  
  .category-image,
  .product-image-wrapper {
    border-radius: 15px 15px 0 0 !important;
  }
}
