/* ===== SHOP PAGE ===== */
.shop-page { padding: 40px 0; }
.shop-header { margin-bottom: 30px; }
.shop-header h2 { color: #17344c; font-size: 28px; }
.shop-header p { color: #888; font-size: 14px; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; padding: 20px; background: #f5f5f5; border-radius: 8px; }
.filters-bar select, .filters-bar input { padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; color: #17344c; background: #fff; min-width: 150px; }
.filters-bar button { padding: 10px 20px; background: #17344c; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: 0.3s; }
.filters-bar button:hover { background: #43dde6; }
.reset-btn { padding: 10px 16px; color: #17344c; border: 1px solid #17344c; border-radius: 6px; text-decoration: none; font-size: 14px; transition: 0.3s; }
.reset-btn:hover { background: #17344c; color: #fff; }
.products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

/* ── Product Card ──────────────────────────────────────────────────────────── */
.product-card-list {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card-list:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

/* Badge */
.badge {     position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    font-size: 15px;
    font-family: "Urbane", sans-serif; }
.badge.sale { background: #f02443; color: #fff; }
.badge.new  { background: #17344c; color: #dfe7ef; }

/* Image */
.card-img-link { display: block; background: #f8f8f8; }
.card-img-link img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card-no-img { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; background: #f8f8f8; color: #ddd; font-size: 2.5rem; }

/* Body */
.card-body { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-category { 
    font-family: "urbane", Sans-serif;
    font-size: 10px;
    font-weight: 300;
    background: #DFEBF7;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    color: #17344c;
    margin-bottom: 5px; }
.card-name {     
    color: #17344c;
    margin: 5px 0 8px;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 700;
    font-family: "urbane", Sans-serif; }
.card-name:hover { color: #f02443; }

/* Prices */
.price-row { display: flex; align-items: center; gap: 4px; }
.old-price { color: #bbb; text-decoration: line-through; font-size: 20px;font-weight: 300;font-family: "degular", Sans-serif !important; }
.new-price {     
  color: #17344c;
  font-family: "degular", Sans-serif !important;
  font-weight: 700;
  font-size: 20px; 
}

/* Stock */
.stock-ok { color: #28a745; font-size: .75rem; font-weight: 600; }
.stock-no { color: #dc3545; font-size: .75rem; font-weight: 600; }

/* Actions */
.card-actions { display: flex; gap: 8px; padding: 10px 14px 14px; align-items: center; margin-top: auto; }
.btn-add-cart {     flex: 1;
    padding: 8px 12px;
    background: #17344c;
    color: #fff !important;
    border: none;
    border: 2px solid #17344c; border-radius: 8px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    font-family: "degular", Sans-serif !important;
    font-size: 20px;
    font-weight: 600; }
.btn-add-cart:hover { background: #43dde6; color: #17344c !important; }
.btn-add-cart.btn-disabled { background: #f0f0f0; color: #bbb !important; cursor: not-allowed; }
.btn-wishlist { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #f5f5f5; color: #17344c; border: none; border-radius: 8px; cursor: pointer; transition: .2s; font-size: .9rem; }
.btn-wishlist:hover { background: #ffe0e5; color: #f02443; }
.btn-wishlist.active { background: #f02443; color: #fff; }
@keyframes wishPop { 0%{transform:scale(1)} 50%{transform:scale(1.35)} 100%{transform:scale(1)} }
.btn-wishlist.active { animation: wishPop 0.35s ease; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13px; color: #888; }
.filter-tag { background: #e8f8f8; color: #17344c; padding: 4px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.filter-tag a { color: #f02443; text-decoration: none; font-size: 12px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { padding: 8px 14px; border: 1px solid #ddd; border-radius: 6px; color: #17344c; text-decoration: none; transition: 0.3s; }
.page-btn:hover, .page-btn.active { background: #17344c; color: #fff; border-color: #17344c; }
.empty-shop { grid-column: 1/-1; text-align: center; padding: 60px; color: #aaa; }
.empty-shop i { font-size: 48px; margin-bottom: 16px; display: block; }

/* ── Wishlist button AJAX states ─────────────────────────────────────────── */
.btn-wishlist { cursor: pointer; transition: all 0.25s; }
.btn-wishlist.active { background: #f02443 !important; color: #fff !important; }
.btn-wishlist.active i { transform: scale(1.15); }
.btn-wishlist.wl-loading { opacity: 0.6; cursor: wait; }
.btn-wishlist:not(.active):hover { background: #ffe0e5 !important; color: #f02443 !important; }

/* pop animation on add */
@keyframes wishPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.btn-wishlist.active { animation: wishPop 0.35s ease; }

/* ========================================================
   RESPONSIVE — shop.css
   ======================================================== */

@media (max-width: 1199px) {
  .products-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

@media (max-width: 991px) {
  .products-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .filters-bar { gap: 8px; }
  .filters-bar select, .filters-bar input { min-width: 120px; }
}

@media (max-width: 767px) {
  .shop-page { padding: 24px 0; }
  .products-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .filters-bar { flex-direction: column; }
  .filters-bar select,
  .filters-bar input,
  .filters-bar button { width: 100%; }
  .card-img-link img { height: 160px; }
}

@media (max-width: 480px) {
  .products-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-body { padding: 8px 10px 2px; }
  .card-name { font-size: .8rem; }
  .new-price { font-size: .9rem; }
  .btn-add-cart { font-size: .75rem; padding: 7px 6px; }
  .btn-wishlist { width: 32px; height: 32px; font-size: .8rem; }
  .card-img-link img { height: 140px; }
}
