@import "./root.css";

/* ===== BASE ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  color: var(--brown);
  background-color: var(--peach);
  background-image: url("https://www.transparenttextures.com/patterns/clean-textile.png");
}

/* ===== HEADER ===== */
.shop-header {
  position: relative;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--peach);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(100,82,56,0.15);
}

.shop-logo {
  height: 40px;
}

.menu-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ===== ACCOUNT ===== */
.account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 48px;
  background: white;
  min-width: 180px;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: none;
}

.account-dropdown.open {
  display: block;
}

.account-dropdown a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--brown);
  border-radius: 5px;
}

.account-dropdown a:hover {
    background-color: var(--peach);
}

.account-dropdown hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

/* ===== LAYOUT ===== */
.shop-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px;
  align-items: start;
}

/* ===== FILTERS ===== */
.filters {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 24px;
}

.filter-block {
  margin-bottom: 28px;
}

.filter-block h4 {
  margin-bottom: 12px;
  font-weight: 600;
}

.filter-block label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.filter-block input {
  accent-color: var(--gold);
}

/* ===== PRODUCTS ===== */
.product-section {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 22px;
  padding: 30px;
}

.category-title {
  font-size: 34px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 32px;
}

.product-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(100,82,56,0.18);
}

.product-card h2 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.product-card span {
  color: var(--gold);
  font-weight: 600;
}




/* ===== PRODUCT META ===== */
.product-meta {
  margin-top: 6px;
}

.price {
  font-weight: 600;
  font-size: 15px;
}

.price.fixed {
  color: var(--brown);
}

.price.contact {
  color: var(--gold);
}

/* ===== VIEW BUTTON ===== */
.view-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--brown);
  transition: all 0.35s ease;
}

.view-btn:hover {
  background: var(--gold);
  color: white;
}


/* ================= BUTTON ================= */
.btn {
  background: var(--gold);
  color: var(--brown);
  padding: 14px 34px;
  border-radius: 30px;
  font-weight: 800;
  border: none;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: white;
  border: 2px solid var(--gold);
}

.btn:active {
  background: #A8895E;
  /* color: white; */
}


/* ====== Filter Top ======== */
.top {
    display: flex;
    align-items: center;        /* vertically center items */
    justify-content: space-between; /* h3 left, button right */
    padding: 0px 20px;         /* height of the top bar */
}

.top h3 {
    margin: 0;
}

.top .btn {
    padding: 6px 14px;          /* your custom button padding */
    height: auto;               /* prevents stretching */
    line-height: normal;
}


/* ===== SIDE MENU ===== */
.category-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  background: white;
  transform: translateX(-100%);
  transition: .4s;
  z-index: 2000;
  padding: 40px;
}

.category-menu nav a {
  display: block;
  margin-bottom: 20px;
  text-decoration: none;
  font-size: 20px;
  color: var(--brown);
}

.close-menu {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  z-index: 1500;
}

/* ================= FOOTER ================= */
.footer {
  width: 100%;
  padding: 28px 20px;
  text-align: center;

  background: var(--peach);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(100,82,56,0.15);

  font-size: 15px;
  color: var(--brown);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .shop-page {
    grid-template-columns: 1fr;
  }
}


/* ===== SMALL SCREENS IMPROVEMENTS ===== */
@media (max-width: 600px) {
  .shop-page { padding: 18px; gap: 18px; }
  .product-section { padding: 18px; }
  .filters { padding: 18px; }
  .category-title { font-size: 26px; margin-bottom: 18px; }
  .product-grid { gap: 18px; }
  .product-card img { height: 260px; border-radius: 14px; }
  .view-btn { width: 100%; text-align: center; }
}
