:root {
  --primary-color: #6b93a0;
  --primary-dark: #527783;
  --secondary-color: #20333b;
  --text-dark: #1f2f35;
  --text-light: #66767c;
  --border-color: #dbe4e7;
  --bg-light: #f5f8f9;
  --success-color: #48bb78;
  --danger-color: #f56565;
  --warning-color: #c59662;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
.store-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.25rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
}

.search-bar {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* Category Menu */
.category-menu {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-menu::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.category-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.category-item.active {
  background: var(--primary-color);
  color: white;
}

.category-menu-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 26px;
  margin: auto 0.35rem;
  background: var(--border-color);
}

.store-hero {
  background:
    linear-gradient(105deg, rgba(31, 47, 53, 0.88), rgba(107, 147, 160, 0.72)),
    var(--secondary-color);
  color: white;
}

.store-hero-inner {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 3rem;
  align-items: center;
}

.store-hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.store-hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.store-hero-logo {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 8px;
  padding: 2rem;
}

.store-hero-logo img {
  width: 100%;
  display: block;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.8) 0%,
    rgba(118, 75, 162, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.shop-category-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.category-separator {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border-color);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.category-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 8px;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Products Grid */
.products-section {
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-link,
.product-name-link {
  color: inherit;
  text-decoration: none;
}

.product-image-link:hover,
.product-name-link:hover {
  color: inherit;
  text-decoration: none;
}

.product-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 3rem;
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

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

.product-info {
  padding: 1.25rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.product-description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  min-height: 2.8em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.price-label {
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-original {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Features Banner */
.features-banner {
  background: linear-gradient(105deg, #6b93a0 0%, #527783 100%);
  color: white;
  padding: 3.25rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.feature-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Newsletter */
.newsletter-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.newsletter-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Footer */
.store-footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links-bottom {
  display: flex;
  gap: 1.5rem;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links-bottom a:hover {
  color: white;
}

.catalog-page,
.product-page {
  background: var(--bg-light);
  min-height: 70vh;
}

.catalog-heading {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.catalog-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.catalog-heading h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin: 0.25rem 0 0;
}

.catalog-heading p {
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.filter-sidebar {
  display: grid;
  gap: 1rem;
  align-self: start;
  position: sticky;
  top: 132px;
}

.filter-form,
.filter-category-list {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.filter-form h2,
.filter-category-list h2,
.product-info-panel h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.filter-form label {
  display: block;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.86rem;
  margin: 0.75rem 0 0.3rem;
}

.filter-form input,
.filter-form select {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--text-dark);
  background: white;
}

.filter-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.filter-clear {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.filter-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.55rem 0;
}

.filter-category-list a.active {
  color: var(--primary-dark);
  font-weight: 800;
}

.filter-category-list small {
  color: var(--text-light);
}

.filter-separator {
  height: 1px;
  background: var(--border-color);
  margin: 0.45rem 0;
}

.catalog-results .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.product-page {
  padding: 2rem 0 4rem;
}

.product-detail {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
}

.product-gallery,
.product-summary {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.product-carousel {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.product-carousel .carousel-item {
  aspect-ratio: 4 / 3;
}

.product-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.product-detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0;
  background: white;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-thumbs button.active {
  border-color: var(--primary-color);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary {
  padding: 1.35rem;
}

.product-category-pill {
  display: inline-flex;
  width: fit-content;
  background: rgba(107, 147, 160, 0.12);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 800;
  font-size: 0.8rem;
}

.product-summary h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 0.9rem 0 0.35rem;
}

.product-model,
.product-short-info {
  color: var(--text-light);
}

.product-summary-price {
  margin: 1.25rem 0;
  display: grid;
}

.product-summary-price span {
  color: var(--text-light);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.product-summary-price strong {
  color: var(--primary-dark);
  font-size: 2.2rem;
  line-height: 1.1;
}

.product-info-panel {
  border-top: 1px solid var(--border-color);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}

.presentation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-color);
}

.presentation-row:last-child {
  border-bottom: none;
}

.presentation-row p {
  color: var(--text-light);
  margin: 0.15rem 0 0;
}

.presentation-row span {
  font-weight: 800;
  color: var(--primary-dark);
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.material-tags span {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--text-dark);
  background: var(--bg-light);
  font-size: 0.86rem;
}

.product-action {
  width: 100%;
  margin-top: 1.25rem;
}

.footer-social-links {
  margin-top: 1rem;
}

.footer-social-links .social-link {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.legal-page {
  background: var(--bg-light);
  min-height: 60vh;
  padding: 3rem 0;
}

.legal-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin: 1rem 0;
}

.legal-content p {
  color: var(--text-light);
  margin: 0;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

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

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

.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .store-nav {
    flex-wrap: wrap;
  }

  .nav-center {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .search-bar {
    max-width: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .store-hero-inner,
  .catalog-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .store-hero-inner {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .store-hero-logo {
    display: none;
  }

  .filter-sidebar {
    position: static;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .catalog-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .catalog-heading p {
    white-space: normal;
  }
}
