/* === GENERAL === */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}


/* === NAVBAR === */
.navbar {
  background-color: #212529;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 999;
}
.navbar .navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.navbar .navbar-brand span {
  color: #d3a22f;
  font-weight: bold;
  font-size: 1.4rem;
}
.navbar .logo-img {
  height: 38px;
  margin-right: 8px;
}
.navbar .nav-link {
  color: #fff !important;
  margin-right: 1rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #d3a22f !important;
}

/* === SEARCH BAR === */
.search-wrapper {
  position: relative;
}
.clear-search-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}
.clear-search-btn:hover {
  color: #b88f27;
}

/* === TABS === */
.tabs-bar {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tab-btn {
  background: none;
  border: 2px solid #d3a22f;
  padding: 6px 16px;
  border-radius: 8px;
  color: #b88f27;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  background: #ffe8a4;
  color: #856400;
}
.tab-btn.active {
  background: #d3a22f;
  color: #fff;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 20px;
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.product-card {
  background: #fff7df;
  border: 2px solid #ffe8a4;
  border-radius: 18px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 2px 9px rgba(211, 162, 47, 0.05);
  transition: box-shadow 0.15s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card:hover {
  box-shadow: 0 7px 20px rgba(211, 162, 47, 0.11);
}
.product-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 9px;
  margin-bottom: 12px;
  align-self: center;
}
.product-card .name {
  font-weight: bold;
  font-size: 1.08rem;
  margin-bottom: 5px;
}
.product-card .desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.35em;
  height: 2.7em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.product-card .price {
  color: #b88f27;
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.product-card .btn-add {
  background: #d3a22f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s;
  cursor: pointer;
  margin-bottom: 6px;
}
.product-card .btn-add:hover {
  background: #b88f27;
}
.product-card .btn-details {
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  color: #333;
  transition: 0.2s;
  text-decoration: none;
  padding: 6px 12px;
}
.product-card .btn-details:hover {
  background: #f8f8f8;
  color: #000;
  border-color: #999;
}

/* === HERO LEFT === */
.hero-left {
  background: #212529;
  color: #d3a22f;
  min-width: 220px;
  max-width: 260px;
  width: 23vw;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-right: 2px solid #d3a22f;
  position: relative;
  min-height: calc(100vh - 64px);
}
.hero-left .hero-logo {
  margin-top: 48px;
  margin-bottom: 22px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.hero-left h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  color: #d3a22f;
  text-align: center;
  line-height: 1.1;
}
.hero-left .hero-desc {
  margin: 18px 0 0 0;
  font-size: 1.08rem;
  color: #fff9e5;
  text-align: center;
  font-weight: 400;
}

/* === CART BUTTON === */
.cart-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #191a1b;
  color: #ffe8a4;
  border: none;
  font-size: 1.9rem;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px #d3a22f;
  transition: box-shadow 0.3s ease;
}
.cart-btn.has-items {
  animation: cartGlow 2s infinite;
}
@keyframes cartGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 #d3a22f70, 0 0 16px 8px #d3a22f99;
  }
  50% {
    box-shadow: 0 0 0 16px #ffe8a420, 0 0 28px 18px #d3a22fa1;
  }
}
.cart-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  background: #d3a22f;
  color: #fff;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 0 6px #fff3;
}

/* === SLIDEOUT CART === */
.cart-slideout {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100vh;
  background: #1b1b1c;
  color: #fff;
  z-index: 3000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px #0006;
}
.cart-slideout.open {
  right: 0;
}
.cart-slideout-header {
  padding: 16px 20px;
  background: #222;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid #d3a22f;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-slideout-header .fa-xmark {
  cursor: pointer;
  color: #d3a22f;
  font-size: 1.4rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: bold;
}
.cart-item-price {
  color: #ffe8a4;
  font-size: 0.95rem;
}

/* ✅ NEW STYLING for gender/size line */
.cart-item-meta {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 4px;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #ff6e6e;
  font-size: 1.2rem;
  cursor: pointer;
}
.cart-remove-btn:hover {
  color: #ff3b3b;
}
.cart-footer {
  padding: 16px 24px;
  background: #181818;
  border-top: 1px solid #d3a22f;
  text-align: center;
}
.cart-total-label {
  color: #ffe8a4;
  font-weight: 600;
}
.cart-total-value {
  color: #d3a22f;
  font-size: 1.2rem;
  font-weight: bold;
}
.btn-checkout {
  margin-top: 12px;
  background: #d3a22f;
  color: white;
  border: none;
  padding: 11px 0;
  border-radius: 10px;
  width: 100%;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.2s ease;
  cursor: pointer;
}
.btn-checkout:hover {
  background: #b88f27;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-left {
    display: none !important;
  }
  .page-wrap {
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
  }
  .shop-main {
    padding: 20px 16px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clear-search-btn {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .shop-main {
    padding: 12px !important;
  }

  .search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-wrapper {
    width: 100% !important;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 16px;
  }

  .product-card img {
    width: 100%;
    height: auto;
  }

  .cart-btn {
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .cart-count {
    padding: 1px 6px;
    font-size: 0.75rem;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .tabs-bar {
    gap: 8px;
  }
}


