/* ===== CSS VARIABLES ===== */
:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --primary-grey: #808080;
  --light-grey: #f5f5f5;
  --dark-grey: #333333;
  --background-grey: #f8f8f8;
  --border-grey: #e0e0e0;

  /* Typography */
  --font-primary: "Arial", sans-serif;
  --font-secondary: "Helvetica", sans-serif;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--primary-black);
  background-color: var(--background-grey);
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px
    ),
    radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ===== HEADER SECTION ===== */

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: var(--spacing-xl) 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
}

.main-content .container {
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: start;
  gap: var(--spacing-md);
  align-items: start;
  height: 100%;
  box-sizing: border-box;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background-color: transparent;
  padding: var(--spacing-lg);
  border-radius: 8px;
  width: 40%;

  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  height: 100%;
}

.category-list {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.category-list li {
  margin-bottom: var(--spacing-sm);
}

.category-list a {
  text-decoration: none;
  color: var(--primary-black);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: var(--spacing-xs) 0;
}

.category-list a:hover,
.category-list a.active {
  color: var(--primary-grey);
}

.search-section {
  margin-top: 0;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar i {
  position: absolute;
  left: var(--spacing-sm);
  color: var(--primary-grey);
  font-size: 14px;
  width: auto !important;
}

.search-bar input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  font-size: 1rem !important;
  background-color: var(--light-grey);
  outline: none;
  transition: border-color 0.3s ease;
}

.search-bar input:focus {
  border-color: var(--primary-grey);
}

.search-bar input::placeholder {
  color: var(--primary-grey);
}

/* ===== COLLECTION header ===== */

.collection-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  background-color: transparent;
  margin-top: 3rem;
  gap: var(--spacing-lg);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.collection-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.collection-title {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.new-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-black);
}

.collection-text-main {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--primary-black);
  line-height: 1.2;
}

.collection-subtitle {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.collection-subtitle span {
  font-size: 18px;
  color: var(--primary-grey);
  font-weight: 400;
}

.collection-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: var(--spacing-md);
  align-items: flex-end;
  width: 100%;
}

.shop-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--light-grey);
  color: var(--primary-black);
  border: 1px solid var(--border-grey);
  height: 40px;
  width: 150px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-btn:hover {
  background-color: var(--border-grey);
}

.shop-btn i {
  font-size: 12px;
}

.carousel-controls {
  display: flex;
  gap: var(--spacing-xs);
}

.control-btn {
  width: 40px;
  height: 40px;
  background-color: var(--light-grey);
  border: 1px solid var(--border-grey);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background-color: var(--border-grey);
}

.control-btn i {
  font-size: 12px;
  color: var(--primary-black);
}

/* ===== PRODUCT SHOWCASE ===== */
.collection-main {
  background-color: transparent;
  overflow: hidden;
  width: 60%;
  height: 100%;
  box-sizing: border-box;

  display: flex;
  align-items: flex-start;
  justify-content: flex-end;

}


/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .main-content .container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: var(--spacing-lg);
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  .sidebar {
    width: 100%;
    height: 100%;
    order: 1;
  }

  .collection-main {
    order: 2;
    width: 100%;
    height: 100%;
  }

  .carousel-controls {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  .category-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    gap: var(--spacing-md);
  }

  .search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }

  .collection-header {
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: flex-start;
  }

  .collection-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    height: 100%;
    padding-right: 0 !important;
  }


  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .collection-main {
    background-color: transparent;
    overflow: hidden;
    width: 90%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    margin-top: 0;
  }
}

/* ===== PRODUCT SWIPER STYLES ===== */
.product-swiper {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
}

.product-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between !important;
  gap: var(--spacing-lg);
}

.product-swiper .swiper-slide .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.product-swiper .swiper-slide .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.product-swiper .swiper-slide .product-image img:hover {
  transform: scale(1.02);
}

/* Mobile responsive for swiper */
@media (max-width: 768px) {
  .product-swiper .swiper-slide {
    flex-direction: row;
    gap: var(--spacing-sm);
  }

  .product-swiper .swiper-slide .product-image {
    max-width: 100%;
    height: 50%;
  }
}
