/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

:root {
  /* Primary Colors - Light & Premium */
  --primary-slate: #64748B;
  --primary-blue: #3B82F6;
  --primary-indigo: #6366F1;
  --primary-emerald: #10B981;
  --primary-gold: #D4AF37;
  
  /* Secondary Colors - Soft & Elegant */
  --secondary-pearl: #F8FAFC;
  --secondary-cloud: #F1F5F9;
  --secondary-mist: #E2E8F0;
  --secondary-silver: #CBD5E1;
  --secondary-cream: #FEF7ED;
  --secondary-brown: #8B4513;
  --secondary-olive: #6B7280;
  
  /* Accent Colors - Fresh Touches */
  --accent-sky: #0EA5E9;
  --accent-violet: #8B5CF6;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;
  --accent-coral: #E07A5F;
  --accent-burgundy: #A63446;
  
  /* Neutral Colors - Clean & Modern */
  --neutral-dark: #1E293B;
  --neutral-medium: #475569;
  --neutral-light: #F8FAFC;
  --neutral-white: #FFFFFF;
  
  /* Gradients - Premium & Fresh */
  --gradient-warm: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  --gradient-earth: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
  --gradient-elegant: linear-gradient(135deg, #64748B 0%, #8B5CF6 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #FFFFFF;
  color: var(--neutral-dark);
  margin: 0;
  padding: 0;
  padding-top: 80px; /* Reduced from 100px to 80px */
  overflow-x: hidden;
  min-height: 100vh;
}

html {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 68, 68, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

/* Desktop-only positioning - floating buttons above back-to-top */
@media (min-width: 1025px) {
  .back-to-top {
    position: fixed;
    bottom: 30px; /* Bottom right position */
    right: max(30px, calc(50vw - 720px + 30px)); /* Stay within 1440px container or 30px from edge */
    width: 44px;
    height: 44px;
  }
  
  .back-to-top.show {
    bottom: 30px; /* Bottom right position */
    right: max(30px, calc(50vw - 720px + 30px)); /* Keep within content boundaries */
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  .floating-actions {
    bottom: 98px; /* Above back-to-top button */
    right: max(30px, calc(50vw - 720px + 30px)); /* Align with content boundaries */
  }
}

/* Fallback for screens smaller than max container width */
@media (min-width: 1025px) and (max-width: 1500px) {
  .back-to-top {
    right: 30px; /* Use viewport positioning on smaller screens */
    bottom: 30px; /* Bottom right position */
    width: 44px;
    height: 44px;
  }
  
  .back-to-top.show {
    right: 30px;
    bottom: 30px; /* Bottom right position */
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
  
  .floating-actions {
    right: 30px;
    bottom: 98px; /* Above back-to-top button */
  }
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: -1;
}

.back-to-top:hover::before {
  transform: scale(1.1);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.5);
  background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: scale(1.1);
}

.back-to-top.show {
  display: flex;
}

/* Floating Action Buttons - Above Back-to-Top Button */
.floating-actions {
  position: fixed;
  bottom: 98px; /* Above back-to-top button (30px + 44px + 24px gap) */
  right: 30px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.floating-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: -1;
}

.floating-btn:hover::before {
  transform: scale(1.1);
}

.floating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.floating-btn:hover svg {
  transform: scale(1.1);
}

.floating-call {
  background: linear-gradient(135deg, #007BFF 0%, #0056B3 100%);
  color: white;
}

.floating-call:hover {
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}

.floating-whatsapp:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Position back-to-top button at bottom right - All devices */
.back-to-top.show {
  bottom: 30px; /* Bottom right position */
  right: 30px;
}

/* Show floating buttons on all devices */
@media (min-width: 1px) {
  .floating-actions {
    display: flex;
  }
}

/* Tablet specific adjustments for floating buttons (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .floating-actions {
    bottom: 120px; /* Above back-to-top button (40px + 44px + 36px gap) */
    right: 40px;
    gap: 20px;
  }

  .floating-btn {
    width: 56px;
    height: 56px;
  }

  .floating-btn svg {
    width: 24px;
    height: 24px;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 40px; /* Bottom right position */
    right: 40px;
  }

  .back-to-top.show {
    bottom: 40px; /* Bottom right position */
    right: 40px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile range (481px to 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  .floating-actions {
    bottom: 98px; /* Above back-to-top button (30px + 44px + 24px gap) */
    right: 30px;
    gap: 16px;
  }

  .back-to-top {
    bottom: 30px; /* Bottom right position */
    right: 30px;
    width: 44px;
    height: 44px;
  }

  .back-to-top.show {
    bottom: 30px; /* Bottom right position */
    right: 30px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}
/* Mobile Responsiveness Improvements */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.5;
    padding-top: 90px; /* Adjust for smaller mobile navbar */
  }

  .back-to-top {
    bottom: 20px; /* Bottom right position */
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }

  .floating-actions {
    bottom: 84px; /* Above back-to-top button (20px + 40px + 24px gap) */
    right: 20px;
    gap: 12px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .floating-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Touch-friendly tap targets */
  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-tertiary,
  a[role="button"] {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better text readability on mobile */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }

  /* Improved spacing for mobile */
  .container {
    padding: 0 16px;
  }

  /* Better form elements for mobile */
  input,
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Landscape mobile improvements */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-split {
    min-height: 60vh;
  }

  .hero-split .hero-container {
    min-height: 60vh;
    padding: 20px 16px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images on retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Touch device specific styles */
.touch-device .product-card:hover,
.touch-device .room-card:hover,
.touch-device .collection-card:hover {
  transform: none;
}

.touch-device .btn:hover,
.touch-device .nav-link:hover {
  transform: none;
}

/* Add active states for touch feedback */
.touch-device .product-card:active,
.touch-device .room-card:active,
.touch-device .collection-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.touch-device .btn:active,
.touch-device .nav-link:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Shop What You Need Section - Professional Design */
.shop-what-you-need-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.shop-what-you-need-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23f1f3f4" fill-opacity="0.3"><circle cx="30" cy="30" r="1.5"/></g></g></svg>') repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* Professional Section Header */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--neutral-medium);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.shop-what-you-need-section .section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.shop-what-you-need-section .highlight-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

/* Professional Grid Layout */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Enhanced Card Design - More Professional */
.shop-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.shop-card:hover::before {
  opacity: 1;
}

.shop-card[data-category="living"]:hover {
  box-shadow: 0 20px 48px rgba(59, 130, 246, 0.15);
}

.shop-card[data-category="sleep"]:hover {
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.15);
}

.shop-card[data-category="dining"]:hover {
  box-shadow: 0 20px 48px rgba(99, 102, 241, 0.15);
}

.shop-card[data-category="decor"]:hover {
  box-shadow: 0 20px 48px rgba(139, 92, 246, 0.15);
}

/* Content Above Image - More Professional */
.shop-card-header-top {
  background: white;
  padding: 20px 24px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.category-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  flex-shrink: 0;
}

.shop-card-content-text {
  flex: 1;
}

.shop-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.shop-card-description {
  font-size: 0.9rem;
  color: var(--neutral-medium);
  line-height: 1.4;
  margin: 0;
  opacity: 0.8;
}

/* Image Container - Reduced Height by 20% more */
.shop-card-image {
  position: relative;
  width: 100%;
  height: 330px; /* Reduced from 413px by 20% */
  overflow: hidden;
}

.shop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-card:hover img {
  transform: scale(1.06);
}

/* Button Overlay Inside Image - Always Visible */
.shop-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  z-index: 2;
  opacity: 1; /* Always visible */
  transition: opacity 0.3s ease;
}

.shop-card:hover .shop-card-overlay {
  opacity: 1; /* Maintain visibility on hover */
}

.shop-card-footer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.shop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--neutral-dark);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 1; /* Always visible */
  transform: translateY(0); /* No initial transform */
}

.shop-card:hover .shop-cta-btn {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  border-color: var(--primary-blue);
}

.shop-cta-btn svg {
  transition: transform 0.3s ease;
  width: 14px;
  height: 14px;
}

.shop-cta-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .shop-what-you-need-section {
    padding: 80px 0;
  }
  
  .section-header {
    margin-bottom: 60px;
    padding: 0 20px;
  }
  
  .shop-what-you-need-section .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1.21rem; /* 1.1rem + 10% for mobile */
  }
  
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  
  .shop-card-header-top {
    padding: 18px 20px;
    gap: 16px;
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
  }
  
  .shop-card-title {
    font-size: 1.2rem;
  }
  
  .shop-card-description {
    font-size: 0.935rem; /* 0.85rem + 10% for mobile */
  }
  
  .shop-card-image {
    height: 274px; /* Reduced from 342px by 20% */
  }
  
  .shop-card-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .shop-what-you-need-section .section-title {
    font-size: 1.9rem;
  }
  
  .shop-card-header-top {
    padding: 16px 18px;
    gap: 14px;
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .shop-card-title {
    font-size: 1.1rem;
  }
  
  .shop-card-description {
    font-size: 0.88rem; /* 0.8rem + 10% for mobile */
  }
  
  .shop-card-image {
    height: 241px; /* Reduced from 301px by 20% */
  }
  
  .shop-card-overlay {
    padding: 18px;
  }
  
  .shop-cta-btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}