:root {
  --primary: #8b7355;
  --primary-dark: #6b5340;
  --dark: #1a1817;
  --light: #fdfcfb;
  --gray: #8b8581;
  --border-light: #e8e4e0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
  background: var(--light);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 252, 251, 0.98);
  border-bottom: 1px solid var(--border-light);
}
.header-top {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
}
.header-main {
  padding: 20px 0;
  position: relative;
}
.header-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  text-decoration: none;
  flex-shrink: 0;
}
.logo h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--dark);
}
.logo span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
}
.nav-menu {
  position: static;
  flex: 1;
}
.nav-menu > ul {
  display: flex;
  list-style: none;
  gap: 40px;
  justify-content: center;
}
.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.nav-menu a:hover {
  color: var(--primary);
}
.nav-menu a.active {
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-actions button,
.header-actions a {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--dark);
  cursor: pointer;
}
.cart-btn {
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-menu {
  position: relative;
  display: inline-block;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--dark);
  cursor: pointer;
  padding: 8px 12px;
}
.user-menu-btn:hover {
  color: var(--primary);
}
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1000;
}
.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--dark);
  text-decoration: none;
  font-size: 14px;
}
.user-dropdown a:hover {
  background: var(--light);
  color: var(--primary);
}
.user-dropdown .divider {
  height: 1px;
  background: var(--border-light);
  margin: 8px 0;
}

.nav-menu .dropdown {
  position: static;
}
.nav-menu .dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-menu .dropdown > a i {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.nav-menu .dropdown:hover > a i {
  transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  padding: 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.nav-menu .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.dropdown-grid li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dropdown-grid a {
  display: block;
  padding: 8px 0;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--dark);
  border-bottom: none;
  font-weight: 400;
  transition: all 0.2s ease;
}

.dropdown-grid a:hover {
  color: var(--primary);
  padding-left: 8px;
  background: transparent;
}

.dropdown-grid .view-all {
  grid-column: 1 / -1;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.dropdown-grid .view-all a {
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
}

.dropdown-grid .view-all a:hover {
  background: var(--primary-dark);
  padding-left: 24px;
  color: white;
}

.page-header {
  margin-top: 120px;
  padding: 40px 0;
  text-align: center;
  background: #f5ede8;
}
.page-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px;
  font-weight: 600;
}
.page-header p {
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
}

.products-layout {
  display: flex;
  gap: 35px;
  padding: 50px 0;
}
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
}
.filter-section {
  background: white;
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
}
.filter-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.category-list {
  list-style: none;
}
.category-list li {
  margin-bottom: 12px;
}
.category-list a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
}
.category-list a:hover,
.category-list a.active {
  color: var(--primary);
  font-weight: 500;
}
.products-main {
  flex: 1;
}
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}
.products-count {
  color: var(--gray);
  font-size: 14px;
}
.sort-select {
  padding: 10px 15px;
  border: 1px solid var(--border-light);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  background: white;
}
.products-searchbar {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f7f5f2;
  height: 46px;
}
.products-searchbar i {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gray);
  font-size: 14px;
}
.products-searchbar input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
}
.products-searchbar input::placeholder {
  color: #bbb;
}
.products-searchbar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  transition: background 0.2s;
  flex-shrink: 0;
}
.products-searchbar button:hover {
  background: var(--primary-dark);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
}
.product-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #f5f3f1;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  background: #c45c5c;
  color: white;
  font-size: 11px;
  font-weight: 600;
}
.card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.wishlist-btn,
.quickcart-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
}
.wishlist-btn:hover,
.quickcart-btn:hover {
  transform: scale(1.1);
}
.wishlist-btn i {
  font-size: 15px;
  color: #ccc;
  transition: color 0.2s;
}
.wishlist-btn.active i {
  color: #e74c3c;
}
.wishlist-btn:hover i {
  color: #e74c3c;
}
.quickcart-btn i {
  font-size: 14px;
  color: #8b7355;
  transition: color 0.2s;
}
.quickcart-btn:hover i {
  color: #6b5340;
}
.quickcart-btn.added i {
  color: #2e8b57;
}
.product-info {
  padding: 20px 15px;
  text-align: center;
}
.product-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-info a {
  color: var(--dark);
  text-decoration: none;
}
.product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.old-price {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 14px;
}
.current-price {
  color: var(--dark);
  font-weight: 600;
  font-size: 16px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 45px;
}
.pagination button {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  background: white;
  cursor: pointer;
  font-size: 14px;
}
.pagination button:hover,
.pagination button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.no-products {
  text-align: center;
  padding: 60px;
  color: var(--gray);
}

.footer {
  background: var(--dark);
  color: white;
  margin-top: 60px;
}
.footer-main {
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-logo h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  letter-spacing: 4px;
  margin-bottom: 5px;
}
.footer-logo span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0.6;
}
.footer-col p {
  margin: 20px 0;
  opacity: 0.7;
  font-size: 14px;
}
.social-links {
  display: flex;
  gap: 15px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
}
.social-links a:hover {
  background: var(--primary);
}
.footer-col h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: white;
}
.footer-col ul li i {
  margin-right: 10px;
  width: 18px;
  color: var(--primary);
}
.newsletter-form {
  display: flex;
  margin-top: 20px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px;
}
.newsletter-form button:hover {
  background: var(--primary-dark);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  opacity: 0.6;
  font-size: 13px;
}
.payment-methods {
  display: flex;
  gap: 15px;
  font-size: 26px;
  opacity: 0.6;
}

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

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
  }
  .nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
  }
  .nav-menu.active ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-menu.active ul li {
    border-bottom: 1px solid var(--border-light);
  }
  .nav-menu.active ul li a {
    display: block;
    padding: 12px 0;
  }
  .products-layout {
    flex-direction: column;
  }
  .filters-sidebar {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
