﻿/* Product cards (Search / legacy pages) */
.product {
    background: var(--white);
    border: 2px solid #0099dc;
    box-shadow: 5px 5px 5px #008aff42;
    border-radius: 20px;
    overflow: hidden;
    transition: all .2s ease;
}
.product:hover {
    box-shadow: 5px 5px 8px #008aff80;
}

.brand-image-2 {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    padding: 1px 6px;

    @media (max-width: 480px) {
        max-width: 140px;
    }
}

/* ============================================================
   EMPTY PAGE (Cart / Wishlist empty state)
   ============================================================ */
.empty-page-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.empty-page-card {
  text-align: center;
  max-width: 320px;
}

.empty-icon {
  width: 72px;
  height: 72px;
  fill: #c0c2c5;
  display: block;
  margin: 0 auto 20px;
}

.empty-page-card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.empty-page-card p {
  font-size: 1.3rem;
  color: var(--gray-text);
  margin: 0 0 24px;
  line-height: 1.8;
}

.empty-page-btn {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 1.4rem;
  font-weight: 700;
  transition: background .2s;
}

.empty-page-btn:hover { background: var(--blue-dark); color: var(--white); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--gray-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .delimiter { color: #c0c2c5; margin: 0 4px; }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-page {
  padding-top: 16px;
  padding-bottom: 40px;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-header-inner h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2px;
}

.shop-header-inner p {
  font-size: 1.2rem;
  color: var(--gray-text);
  margin: 0;
}

.sort-select {
  height: 38px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 0 12px;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 1.3rem;
  background: var(--white);
  color: var(--dark);
  outline: none;
  cursor: pointer;
}

.sort-select:focus { border-color: var(--blue); }

/* Product grid — 2 col mobile, 3 col tablet, 4 col desktop */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 20px;
}

@media (max-width: 576px)  { .shop-grid { padding: 10px; } }
@media (min-width: 700px)  { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .shop-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card-item {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-item:hover { box-shadow: 0 1px 8px rgba(0,0,0,.12); }

.product-card-link { display: block; }

.product-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform .3s ease;
}

.product-card-item:hover .product-card-img img { transform: scale(1.04); }

/* Badges */
.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: orangered;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c700ff;
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    padding: 0px 5px;
    border-radius: 4px;
    z-index: 2;
    font-family: 'Yekan', serif;
}

.product-card-body {
    padding: 5px 10px 5px;
}

.product-card-title {
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1.5;
  margin: 0 0 6px;
  max-height: 54px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Stars */
.product-card-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.product-card-price {
  font-size: 17px;
  font-weight: bold;
  color: #040082;
  margin-bottom: 8px;
  font-family: 'Yekan', serif;
}

.product-card-price del {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #a1a3a8;
  text-decoration: line-through;
}

.product-card-btn {
  width: 100%;
  height: 36px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .2s;
}

.product-card-btn:hover { background: var(--blue-dark); }

/* Wishlist button on card */
.product-card-wish {
  position: absolute;
  top: 40px;
  right: 8px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  z-index: 3;
  padding: 0;
  transition: box-shadow .2s;
}

.product-card-wish svg {
  width: 15px;
  height: 15px;
  fill: #c0c2c5;
  transition: fill .2s;
}

.product-card-wish:hover svg,
.product-card-wish.active svg { fill: #e53e3e; }

.category-h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0px 0px 20px 0px;
}

/* Safhe Ghabl Va Bad Buttons stlye */
.shop-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 30px;
}

.shop-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0099dc;
    color: #0099dc;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

    .shop-page-btn:hover {
        background: #0099dc;
        color: #fff;
        transform: translateY(-2px);
    }

    .shop-page-btn.active {
        background: #0099dc;
        color: #fff;
    }

.shop-page-dots {
    color: #0099dc;
    font-size: 1.6rem;
    padding: 0 2px;
}

.shop-page-jump {
    display: flex;
    gap: 8px;
    margin-right: 14px;
}

    .shop-page-jump input {
        width: 110px;
        height: 40px;
        padding: 0 12px;
        border: 2px solid #0099dc;
        border-radius: 50px;
        font-family: inherit;
        font-size: 1.3rem;
        text-align: center;
        outline: none;
    }

        .shop-page-jump input:focus {
            box-shadow: 0 0 0 3px rgba(0,153,220,.2);
        }

    .shop-page-jump button {
        height: 40px;
        padding: 0 18px;
        border: none;
        border-radius: 50px;
        background: #0099dc;
        color: #fff;
        font-family: inherit;
        font-size: 1.3rem;
        font-weight: 700;
        cursor: pointer;
        transition: background .2s;
    }

        .shop-page-jump button:hover {
            background: #007bb5;
        }

/* ----- Cart -------*/
.cart-h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.cart-box{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-width: 1px;
    box-shadow: 2px 2px 5px #008aff42;
    border-radius: 12px;
}
    .cart-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }

.cart-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.cart-item-delete {
    width: 32px;
    height: 32px;
    background: #c61919;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
}

.sum-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--blue-xlight);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

/* Search Stuff */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin: 30px 0 0px;
    background: #fff;
    border: 2px solid #0099dc22;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-title {
    font-weight: 700;
    color: #002891;
    margin-left: 4px;
    white-space: nowrap;
}

.toolbar-btn {
    border: none;
    background: #f5f7fb;
    color: #333;
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: .2s;
}

    .toolbar-btn:hover {
        background: #0099dc;
        color: #fff;
    }

.toolbar-primary {
    background: #0099dc;
    color: #fff;
}

    .toolbar-primary:hover {
        background: #007fc5;
    }

.toolbar-success {
    background: #6fbd16;
    color: #fff;
}

    .toolbar-success:hover {
        background: #5ca311;
    }

.toolbar-input {
    width: 120px;
    height: 38px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 0 10px;
    text-align: center;
    background: #fff;
}

    .toolbar-input:focus {
        outline: none;
        border-color: #0099dc;
        box-shadow: 0 0 0 3px rgba(0,153,220,.15);
    }

@media (max-width:768px) {
    .shop-toolbar {
        gap: 12px;
        flex-wrap: wrap;
        padding: 12px 10px;
        margin: 16px -10px 0px;
        box-shadow: 0 8px 20px rgba(0, 171, 255, 0.24);
        font-size: 1.2rem;
    }
    .toolbar-input {
        width: 105px;
        padding: 0 0px;
    }
    .toolbar-btn {
        padding: 8px 12px;
    }
}

@media (max-width:490px) {
    .shop-toolbar {
        border-radius: 0px;
    }
}

.icon-cat-2 {
    width: 140px;
}

.a-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-decoration: none;
    border-width: 2px;
    border-radius: 16px;
    transition: transform .2s,box-shadow .2s;
    gap: 10px;
}

.span-cat {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.single-cat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px
}

    .single-cat img {
        max-width: 85px;
        padding: 2px;
        max-height: 60px;
    }

    .single-cat h2 {
        margin: unset !important;
    }

.single-brand {
    margin: 40px 0 10px;
    gap: 7px;
}