img {
  width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input {
  outline: none;
  border: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/*========================================
    SHOP LAYOUT
========================================*/
.shop-container {
  max-width: 1500px;
  margin: 10px auto;
  padding: 15px;
  gap: 5px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 23px;
}

/*========================================
    SIDEBAR
========================================*/
.sidebar {
  border-radius: 14px;
  padding: 18px;
  height: max-content;
  position: sticky;
  top: 30px;
  border: 2px solid rgb(119, 119, 119, 0.5);
  width: 350px;

  /*========================================
    HEADER
========================================*/

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
  }

  .sidebar-header h2 {
    font-size: 22px;
    font-weight: 700;
  }

  .clear-btn {
    color: var(--text-light);
    font-size: 14px;
    transition: 0.3s;
  }

  .clear-btn:hover {
    color: black;
  }

  /*========================================
    FILTER GROUP
========================================*/
  .filter-group {
    margin-bottom: 40px;
  }

  .filter-group h3 {
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
  }

  /*========================================
    SEARCH
========================================*/

  .filter-group input[type="text"] {
    width: 100%;
    height: 48px;
    background: #f5f5f5;
    border-radius: 14px;
    padding-inline: 18px;
    font-size: 15px;
  }

  /*========================================
    CHECKBOXES
========================================*/

  .filter-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    color: #555;
    font-size: 15px;
  }

  .filter-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: black;
  }

  /*========================================
    PRICE
========================================*/

  .filter-group input[type="range"] {
    width: 100%;
    accent-color: black;
  }

  .price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: gray;
  }

  /*========================================
    SIZE BUTTONS
========================================*/
  .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .sizes button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #555;
    transition: 0.3s;
  }

  .sizes button:hover,
  .sizes button.active {
    background: black;
    color: white;
  }
}

/*========================================
    PRODUCTS
========================================*/
.products {
  width: 104%;
  border-radius: 15px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  padding: 15px;
}

/*========================================
    TOOLBAR
========================================*/
/* ==================== PRODUCTS TOOLBAR ==================== */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

/* ==================== TOOLBAR LEFT ==================== */

.toolbar-left p {
  font-size: 14px;
  color: #777;
}

.toolbar-left p span {
  font-weight: 600;
  color: #222;
  margin: 0 3px;
}

/* ==================== TOOLBAR RIGHT ==================== */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==================== FILTER BUTTON (MOBILE) ==================== */
.filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #ddd;
  color: #222;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}

.filter-btn:active {
  background: #eee;
}

.filter-btn i {
  font-size: 16px;
}

.filter-btn span {
  white-space: nowrap;
}

/* ==================== VIEW TOGGLE ==================== */
.view-toggle {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px;
}

.view-toggle button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 18px;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.view-toggle button:hover {
  background: #f5f5f5;
  color: #222;
}

.view-toggle button.active {
  background: #ffd700;
  color: #000;
  font-weight: 600;
}

/* ==================== SORT DROPDOWN ==================== */
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-wrapper label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.select-box {
  position: relative;
  min-width: 180px;
}

.select-box select {
  width: 100%;
  padding: 10px 12px;
  padding-right: 32px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s ease;
}

.select-box select:hover {
  border-color: #999;
  background: #fafafa;
}

.select-box select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.select-box select option {
  background: #fff;
  color: #222;
  padding: 8px;
}

.select-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #777;
  pointer-events: none;
}

.filter-btn:focus,
.view-toggle button:focus,
.select-box select:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/*========================================
    GRID
=======================================*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background-color: white;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.08);
  user-select: none;
  position: relative;
}
.product-card:hover .wishlistBtn {
  top: 12px;
  right: 12px;
  opacity: 1;
}
.wishlistBtn {
  position: absolute;
  top: 10px;
  right: -10px;
  opacity: 0;
  width: 40px;
  height: 40px;
  border: none; /* Remove debug border */
  background-color: white; /* Professional background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* Show it's clickable */
  transition: all 0.3s ease; /* Smooth animation */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); /* Subtle depth */
  z-index: 10;
}

.wishlistBtn i {
  font-size: 20px; /* Perfect icon size */
  color: #ef4444; /* Gray by default */
  transition: all 0.3s ease;
}
/* Hover State */
.wishlistBtn:hover {
  transform: scale(1.1); /* Slightly bigger */
  background-color: #fef2f2; /* Light red bg */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Clicked Effect */
.wishlistBtn:active {
  transform: scale(0.95);
}

/* Liked State (add .active class) */
.wishlistBtn.active {
  background-color: #fef2f2;
}

.wishlistBtn.active i {
  color: #ef4444;
}
.image_container {
  border-radius: inherit;
  height: 350px;
  transition: all 0.02s ease-in-out;
}
.image_container:hover img {
  transform: scale(1.02);
}

.image_container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  border-radius: inherit;
}
.product_info {
  padding: 10px;
}
.product_title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.product_description {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}
.product_details {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rating_container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 16px;
  color: #ffc107;
}

.rating_text {
  font-size: 13px;
  color: #666;
}
.price_container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.current_price {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.original_price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}
.add_to_cart {
  width: 95%;
  margin: auto;
  margin-bottom: 7px;
  padding: 14px 20px;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */
/* ========================================== */

/*=====================================
        PAGINATION
=====================================*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 60px;

  .page-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e7e7e7;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.35s ease;
  }

  .page-btn:hover {
    background: #111;
    color: #fff;
    transform: translateY(-4px);
  }

  .page-btn.active {
    background: #111;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .dots {
    color: #999;
    font-size: 18px;
    user-select: none;
  }
}

/* Responsive Design - Mobile First Approach */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .shop-container {
    flex-direction: column;
    max-width: 100%;
    margin: 10px auto;
    padding: 12px;
    border-radius: 18px;
  }

  .sidebar {
    width: 100%;
    position: static;
    top: auto;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: none;
    display: none;
  }

  .sidebar.active {
    display: block;
  }

  .sidebar-header h2 {
    font-size: 20px;
  }

  .sidebar-header {
    margin-bottom: 30px;
  }

  .filter-group {
    margin-bottom: 32px;
  }

  .filter-group h3 {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .filter-group input[type="text"] {
    height: 44px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .filter-group label {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .sizes button {
    width: 44px;
    height: 44px;
  }

  .products {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
  }

  .filter-btn {
    display: flex;
  }

  .products-toolbar {
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  .toolbar-left p {
    font-size: 13px;
  }

  .toolbar-right {
    gap: 12px;
  }

  .sort-wrapper {
    gap: 8px;
    width: 100%;
  }

  .sort-wrapper label {
    font-size: 12px;
  }

  .select-box {
    min-width: 140px;
    flex: 1;
  }

  .select-box select {
    padding: 8px 10px;
    padding-right: 28px;
    font-size: 12px;
  }

  .select-box i {
    right: 10px;
    font-size: 14px;
  }

  .view-toggle {
    gap: 6px;
    padding: 3px;
  }

  .view-toggle button {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .product-card {
    max-width: 100%;
    border-radius: 16px;
  }

  .image_container {
    height: 280px;
  }

  .product_title {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .product_description {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .current_price {
    font-size: 20px;
  }

  .original_price {
    font-size: 14px;
  }

  .add_to_cart {
    padding: 12px 16px;
    font-size: 14px;
    gap: 8px;
  }

  .pagination {
    gap: 10px;
    margin-top: 40px;
  }

  .pagination .page-btn {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .shop-container {
    flex-direction: column;
    max-width: 100%;
    margin: 8px auto;
    padding: 10px;
    border-radius: 14px;
    gap: 0;
  }

  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 0;
    overflow-y: auto;
    display: none;
    max-height: 100vh;
  }

  .sidebar.active {
    display: flex;
    flex-direction: column;
  }

  .sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
  }

  .sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
  }

  .clear-btn {
    font-size: 12px;
  }

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

  .filter-group h3 {
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 600;
  }

  .filter-group input[type="text"] {
    height: 42px;
    padding-inline: 14px;
    font-size: 13px;
    border-radius: 10px;
  }

  .filter-group label {
    gap: 10px;
    margin-bottom: 11px;
    font-size: 13px;
  }

  .filter-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .price-values {
    margin-top: 10px;
    font-size: 12px;
  }

  .sizes {
    gap: 8px;
  }

  .sizes button {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .products {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .filter-btn {
    display: flex;
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 6px;
    gap: 6px;
  }

  .filter-btn i {
    font-size: 14px;
  }

  .products-toolbar {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .toolbar-left {
    width: 100%;
  }

  .toolbar-left p {
    font-size: 12px;
  }

  .toolbar-right {
    width: 100%;
    gap: 10px;
    flex-direction: column;
  }

  .sort-wrapper {
    gap: 8px;
    width: 100%;
    flex-direction: column;
  }

  .sort-wrapper label {
    font-size: 12px;
  }

  .select-box {
    min-width: auto;
    width: 100%;
  }

  .select-box select {
    width: 100%;
    padding: 8px 10px;
    padding-right: 28px;
    font-size: 12px;
    border-radius: 6px;
  }

  .select-box i {
    right: 10px;
  }

  .view-toggle {
    width: 100%;
    gap: 6px;
    padding: 2px;
  }

  .view-toggle button {
    flex: 1;
    width: auto;
    height: 32px;
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card {
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .image_container {
    height: 220px;
    border-radius: 12px;
  }

  .product_info {
    padding: 8px;
  }

  .product_title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .product_description {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .rating_container {
    margin-bottom: 10px;
    gap: 6px;
  }

  .star {
    font-size: 14px;
  }

  .rating_text {
    font-size: 12px;
  }

  .price_container {
    gap: 10px;
    margin-bottom: 12px;
  }

  .current_price {
    font-size: 18px;
  }

  .original_price {
    font-size: 13px;
  }

  .add_to_cart {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 5px;
    gap: 6px;
  }

  .wishlistBtn {
    width: 36px;
    height: 36px;
    top: 8px;
    right: 8px;
  }

  .wishlistBtn i {
    font-size: 18px;
  }

  .product-card:hover .wishlistBtn {
    top: 8px;
    right: 8px;
  }

  .pagination {
    gap: 8px;
    margin-top: 30px;
  }

  .pagination .page-btn {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .pagination .dots {
    font-size: 16px;
  }

  /* Close button for sidebar overlay */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .shop-container {
    margin: 5px auto;
    padding: 8px;
    border-radius: 12px;
  }

  .sidebar {
    padding: 15px;
  }

  .sidebar-header h2 {
    font-size: 16px;
  }

  .filter-group h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .filter-group input[type="text"] {
    height: 40px;
    padding-inline: 12px;
    font-size: 12px;
    border-radius: 8px;
  }

  .filter-group label {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .sizes button {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  .products {
    padding: 8px;
    border-radius: 10px;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 5px;
  }

  .products-toolbar {
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .toolbar-left p {
    font-size: 11px;
  }

  .toolbar-right {
    gap: 8px;
  }

  .sort-wrapper label {
    font-size: 11px;
  }

  .select-box select {
    padding: 7px 9px;
    padding-right: 24px;
    font-size: 11px;
    border-radius: 5px;
  }

  .view-toggle button {
    height: 30px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: 12px;
  }

  .image_container {
    height: 180px;
    border-radius: 10px;
  }

  .product_info {
    padding: 6px;
  }

  .product_title {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .product_description {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .rating_container {
    margin-bottom: 8px;
    gap: 5px;
  }

  .star {
    font-size: 12px;
  }

  .rating_text {
    font-size: 11px;
  }

  .price_container {
    gap: 8px;
    margin-bottom: 10px;
  }

  .current_price {
    font-size: 16px;
  }

  .original_price {
    font-size: 12px;
  }

  .add_to_cart {
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 4px;
    gap: 5px;
  }

  .wishlistBtn {
    width: 32px;
    height: 32px;
  }

  .wishlistBtn i {
    font-size: 16px;
  }

  .pagination {
    gap: 6px;
    margin-top: 24px;
  }

  .pagination .page-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}

/* Large Screens (1024px and above) */
@media (min-width: 1024px) {
  .shop-container {
    max-width: 1500px;
    margin: 10px auto;
    padding: 15px;
    flex-direction: row;
    border-radius: 23px;
    align-items: flex-start;
  }

  .sidebar {
    width: 350px;
    position: sticky;
    top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    border-radius: 14px;
    padding: 18px;
    display: block !important;
  }

  .sidebar.active {
    display: block;
  }

  .filter-btn {
    display: none;
  }

  .products {
    width: 104%;
    border-radius: 15px;
    padding: 15px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .product-card {
    max-width: 380px;
  }

  .image_container {
    height: 350px;
  }

  .product_title {
    font-size: 18px;
  }

  .product_description {
    font-size: 13px;
  }

  .current_price {
    font-size: 24px;
  }

  .original_price {
    font-size: 16px;
  }

  .add_to_cart {
    width: 95%;
    padding: 14px 20px;
    font-size: 15px;
  }

  .pagination .page-btn {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
}

/* Extra Large Screens (1440px and above) */
@media (min-width: 1440px) {
  .shop-container {
    max-width: 1600px;
    padding: 20px;
    gap: 20px;
  }

  .products {
    width: 105%;
  }

  .product-grid {
    gap: 32px;
  }

  .sidebar {
    width: 380px;
    padding: 22px;
  }
}

/* Mobile Menu Overlay Styles */
@media (max-width: 480px) {
  /* Sidebar overlay backdrop */
  .sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  /* Smooth transitions */
  .sidebar {
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }
}