/* Main CSS file - compiled from SCSS */

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

html {
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Roboto', sans-serif;
  color: #343a40;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 768px) {
  .container {
    padding: 0;
  }
}

/* Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -24px;
}

.col {
  flex: 1 0 100%;
  padding: 0 24px;
}

@media (min-width: 576px) {
  .col {
    flex: 1 0 50%;
  }
}

@media (min-width: 768px) {
  .col {
    flex: 1 0 33.333%;
  }
}

@media (min-width: 992px) {
  .col {
    flex: 1 0 25%;
  }
}
.hidden {
  display: none;
}
/* Button */
.button {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.button--primary:hover {
  background-color: #0062cc;
}

.button--secondary {
  background-color: #6c757d;
  color: white;
}

.button--secondary:hover {
  background-color: #545b62;
}

.button--lg {
  padding: 24px 32px;
  font-size: 1.25rem;
}

/* Card */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__content {
  padding: 24px;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card__text {
  color: #6c757d;
  margin-bottom: 24px;
}

/* Form */
.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 16px;
  border: 1px solid #6c757d;
  border-radius: 4px;
}

.form__input:focus {
  outline: none;
  border-color: var(--link-color);
}

.form__error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 8px;
}





/* Header */
.header {
  background-color: #343a40;
  color: white;
}

/* Main content */
.main {
  padding: 0px 0;
}

/* Layout */
.layout {
  display: flex;
  gap: 16px;
  margin: 0 8px;
  flex-direction: column;
}

@media (min-width: 768px) {
  .layout {
    flex-direction: row;
    gap: 32px;
    margin: 0 32px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .layout {
    gap: 24px;
    margin: 0 16px;
  }
}

.layout__sidebar {
  flex: 0 0 250px;
}

@media (min-width: 576px) {
  .layout__sidebar {
    flex: 0 0 auto;
  }
}

.layout__main {
  flex: 1;
}

/* Sidebar */
.sidebar__title {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar__item {
  margin-bottom: 8px;
}

.sidebar__link {
  display: block;
  padding: 16px;
  color: #343a40;
  text-decoration: none;
  border-radius: 4px;
}

.sidebar__link:hover {
  background-color: #f8f9fa;
}

.intro {
  
  background-color: #EAEDF6;
  background-size: 980px;
  background-repeat: no-repeat;
  background-image: url(/static/img/slider-image.png);  
  padding: 0;
  height: 174px;
  background-position: 100% 28%;
  margin-top: 20px;
}

/* Product grid */
.product-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

/* Product card */
.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card__content {
  padding: 24px;
}

.product-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.product-card__price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--link-color);
  margin-bottom: 24px;
}

/* Empty message */
.empty-message {
  text-align: center;
  color: #6c757d;
  padding: 32px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 32px;
}

.pagination__link {
  display: inline-block;
  padding: 16px 24px;
  border: 1px solid #6c757d;
  border-radius: 4px;
  color: #343a40;
  text-decoration: none;
}

a.pagination__link:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.pagination__link--active {
  background-color: #EAEDF6;
  color: #343a40;
  border-color: #EAEDF6;
}

/* Breadcrumbs */
.breadcrumb {
  margin-bottom: 32px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
  content: '/';
  margin: 0 16px;
  color: #6c757d;
}

.breadcrumb__link {
  color: var(--link-color);
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__item--active {
  color: #6c757d;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail__gallery {
  position: relative;
}

.product-detail__info {
  padding: 24px;
}

.product-detail__title {
  font-size: 2rem;
  margin-bottom: 24px;
}

.product-detail__price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--link-color);
  margin-bottom: 32px;
}

.product-detail__subtitle {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.product-detail__description {
  margin-bottom: 32px;
}

.product-detail__tags {
  margin-bottom: 32px;
}

.product-detail__keywords {
  margin-bottom: 32px;
}

.product-detail__manual-keywords {
  margin-bottom: 32px;
}

.product-detail__actions {
  margin-top: 32px;
}

/* Gallery */
.gallery {
  position: relative;
}

.gallery__main {
  position: relative;
  overflow: hidden;
}

.gallery__slide {
  display: none;
}

.gallery__slide--active {
  display: block;
}

.gallery__image {
  width: 100%;
  height: auto;
}

.gallery__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.gallery__control {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.gallery__control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery__control-icon {
  display: block;
  font-size: 1.5rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tag {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f8f9fa;
  color: #343a40;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Keywords */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.keyword {
  display: inline-block;
  padding: 6px 12px;
  background-color: #e3f2fd;
  color: #1976d2;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #bbdefb;
  transition: all 0.2s ease;
}

.keyword:hover {
  background-color: #bbdefb;
  border-color: #90caf9;
  transform: translateY(-1px);
}

.keyword--auto {
  background-color: #e8f5e8;
  color: #2e7d32;
  border-color: #c8e6c9;
}

.keyword--auto:hover {
  background-color: #c8e6c9;
  border-color: #a5d6a7;
}

.keyword--manual {
  background-color: #fff3e0;
  color: #f57c00;
  border-color: #ffcc02;
}

.keyword--manual:hover {
  background-color: #ffcc02;
  border-color: #ffb300;
}

/* Footer */
.footer {
  background-color: #343a40;
  color: white;
  padding: 24px 0;
  text-align: center;
}

/* Search header */
.search-header {
  margin-bottom: 32px;
  text-align: center;
}

.search-header__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #343a40;
}

.search-header__query {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.search-header__count {
  font-size: 1rem;
  color: #6c757d;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state__message {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 24px;
}

/* Product card image placeholder */
.product-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Landing page styles */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 48px;
  color: #343a40;
}

/* Categories Section */
.categories {
  padding: 80px 0;
  background-color: #f8f9fa;
}

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

.category-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: #343a40;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-card__icon {
  color: var(--link-color);
  margin-bottom: 16px;
}

.category-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.category-card__count {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Featured Section */
.featured {
  padding: 80px 0;
}

.featured__actions {
  text-align: center;
  margin-top: 48px;
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background-color: #343a40;
  color: white;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-item__number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--link-color);
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  text-align: center;
}

.cta__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-section-wrap {
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
}

/* Product card hover effects */
.product-card {
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Authentication form styles */
.auth-form {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-form h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form p {
  margin-top: 1rem;
  text-align: center;
}

.auth-form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-form .errorlist {
  color: red;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

/* Wishlist Button Styles */
.big-card__meta-btn--active {
  background: #ff6b6b !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.big-card__meta-btn--active:hover {
  background: #ff5252 !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.big-card__meta-btn--active i {
  color: #fff !important;
}

/* Image Fallback Styles */
.image-fallback {
  opacity: 0.7;
  filter: grayscale(20%);
}

.image-placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  text-align: center;
  min-height: 100px;
}

/* Cart image error handling */
.cart-item-img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.cart-item-img.loading {
  opacity: 0.5;
}

/* Sticky Footer Layout */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.imager-stock__footer {
  margin-top: auto;
}