
/* Mobile-First Responsive CSS for CrownPlus Website */
:root {
  --navy: #0A1B3E;
  --blue: #0E3A8A;
  --red: #EF2B2D;
  --white: #FFFFFF;
  --black: #111111;
  --gray: #6B7280;
  --light: #F8FAFC;
  --border: #E5E7EB;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Mobile-First Header */
header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(10, 27, 62, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 10px;
}

/* Mobile Navigation */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy);
  flex-direction: column;
  list-style: none;
  gap: 0;
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.nav-menu li {
  padding: 0 20px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.header-cta {
  display: none;
}

.header-cta.mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Buttons */
.btn {
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  display: inline-block;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #d12525;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile-First Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
  padding: 40px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.hero-text h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--navy);
  line-height: 1.2;
}

.hero-text p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 25px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  width: 100%;
  max-width: 300px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px;
  margin: auto;
}

.slide {
  display: none;
  text-align: center;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
}

.slide-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.nav-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
}

.slider-dots {
  text-align: center;
  margin-top: 10px;
}
.slider-container {
  position: relative;
  overflow: hidden;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}


/* Product Grid Layout */
.grid.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Product Card Styling */
.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Product Image Styling */
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f9fb;
  height: 260px;
  padding: 10px;
}

.product-image img {
  width: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

/* Product Info */
.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 600;
}

.specs {
  text-align: left;
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.spec-item {
  margin-bottom: 4px;
}

/* Buttons */
.product-cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

/* Load More Button */
.section button.btn-secondary {
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.section button.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .product-info {
    padding: 15px;
  }
  .product-info h3 {
    font-size: 16px;
  }
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Mobile Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(10, 27, 62, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(10, 27, 62, 0.1);
}

.card h3 {
  color: var(--navy);
  margin-bottom: 15px;
  font-size: 20px;
}

.card p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Mobile Sections */
.section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray);
  max-width: 100%;
  margin: 0 auto;
}

/* Mobile Product Cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(10, 27, 62, 0.1);
}

.product-image {
  height: 400px;
  width: ;
  background: linear-gradient(45deg, var(--light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  text-align: center;
  
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 18px;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}

.spec-item {
  font-size: 13px;
  color: var(--gray);
}

.spec-item strong {
  color: var(--black);
}

.product-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

/* Mobile Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--blue);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Mobile Content with Sidebar */
.content-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
}

.sidebar h3 {
  color: var(--navy);
  margin-bottom: 15px;
}

.sidebar .btn {
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
}

/* Mobile Filter Row */
.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Mobile Footer */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

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

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Mobile Filters */
.filters {
  background: var(--light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* Mobile Tabs */
.tab-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.tab-link {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}

.tab-link.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Mobile Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  background: var(--light);
  font-weight: 600;
  color: var(--navy);
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .hero-slider {
    max-width: 500px;
    height: 400px;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 25px;
    box-shadow: none;
  }

  .nav-menu li {
    padding: 0;
  }

  .nav-menu a {
    padding: 0;
    border: none;
  }

  .header-cta {
    display: flex;
    gap: 12px;
  }

  .header-cta.mobile {
    display: none;
  }

  .product-cta {
    flex-direction: row;
  }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-content {
    flex-direction: row;
    text-align: left;
    gap: 60px;
  }

  .hero-text h1 {
    font-size: 48px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-slider {
    max-width: none;
    height: 500px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 40px;
  }

  .section-header p {
    font-size: 18px;
    max-width: 600px;
  }

  .content-with-sidebar {
    flex-direction: row;
    gap: 40px;
  }

  .sidebar {
    min-width: 300px;
    height: fit-content;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 20px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .card:hover,
  .product-card:hover {
    transform: none;
  }

  .btn:hover {
    background: var(--red);
  }

  .btn-secondary:hover {
    background: transparent;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-btn:focus,
.dot:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  header,
  footer,
  .hero-slider,
  .btn {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }
}
.hero-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.slider-container {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
  text-align: center;
}

.slide-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.slide-overlay {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
}

.slider-nav .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
}

.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }

.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.slider-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.slider-dots .dot.active {
  background-color: var(--navy);
}
.product-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: contain;
}
