*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:#f8f1e8;
}

.shop-hero{
    background: linear-gradient(
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.25)
    ),
    url("img/shop-banner.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    text-align: center;
    background-size: 100% 100%;

    padding: 40px 40px;
    margin-top: 10px;
}

.shop-hero h1{
  font-size:46px;
  margin-bottom:10px;
}

.shop-hero p{
  font-size:17px;
}

.shop-layout{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:30px;
  padding:45px 60px;
}

.shop-filter{
  background:#fff;
  padding:24px;
  border-radius:18px;
  height:max-content;
  box-shadow:0 8px 25px rgba(0,0,0,0.08);
  position:sticky;
  top:100px;
}

.shop-filter h3{
  color:#2b1408;
  font-size:24px;
  margin-bottom:20px;
}

.shop-filter input,
.shop-filter select{
  width:100%;
  padding:13px;
  margin-bottom:14px;
  border:1px solid #ddd;
  border-radius:10px;
  outline:none;
  font-size:14px;
}

.shop-filter input:focus,
.shop-filter select:focus{
  border-color:#d3750a;
}

#clearFilters{
  width:100%;
  padding:13px;
  border:none;
  background:#2b1408;
  color:white;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

.shop-main{
  width:100%;
}

.shop-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px;
}

.shop-top h2{
  color:#2b1408;
  font-size:30px;
}

.shop-top p{
  color:#666;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:24px;
}

.product-card{
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
  transition:0.3s ease;
}

.product-card:hover{
  transform:translateY(-6px);
}

.product-card img{
  width:100%;
  height:230px;
  object-fit:contain;
  background:#f8f8f8;
  border-radius:14px;
  padding:12px;
}

.product-info{
  padding-top:14px;
}

.publisher{
  font-size:13px;
  color:#777;
}

/*.product-info h3{
  font-size:16px;
  color:#111;
  margin:8px 0;
  line-height:1.4;
  min-height:45px;
}*/

.product-info h3 {
  font-size: 14px;
  color: #111;
  margin: 6px 0;
  line-height: 1.35;
  min-height: 40px;
}

.price-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
}

.mrp{
  text-decoration:line-through;
  color:#999;
  font-size:14px;
}

.price{
  color:#088178;
  font-size:18px;
  font-weight:700;
}

.stock{
  font-size:13px;
  color:#555;
}

.card-buttons{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.card-buttons a{
  flex:1;
  text-align:center;
  text-decoration:none;
  padding:10px;
  border-radius:8px;
  font-size:13px;
  font-weight:600;
}

.view-btn{
  background:#d3750a;
  color:white;
}

.cart-btn{
  background:#efe1d1;
  color:#2b1408;
}

.no-books{
  grid-column:1/-1;
  text-align:center;
  padding:60px;
  color:#777;
  background:white;
  border-radius:18px;
}

.mobile-filter-btn{
  display:none;
}

@media(max-width:477px){

  .shop-layout{
    padding:18px 14px;
  }

  .mobile-filter-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    height:44px;
    border:none;
    border-radius:10px;
    background:#2b1408;
    color:white;
    font-size:15px;
    font-weight:700;
    margin-bottom:14px;
  }

  .shop-filter{
    display:none;
    padding:16px;
    border-radius:14px;
    margin-bottom:18px;
  }

  .shop-filter.active{
    display:block;
  }

  .shop-filter h3{
    font-size:20px;
    margin-bottom:12px;
  }

  .shop-filter input,
  .shop-filter select{
    height:42px;
    padding:9px 12px;
    margin-bottom:10px;
    font-size:13px;
    border-radius:8px;
  }

  #clearFilters{
    height:42px;
    font-size:13px;
    border-radius:8px;
  }

  .product-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:799px){
  .shop-layout{
    grid-template-columns:1fr;
    padding:30px 18px;
  }

  .shop-filter{
    position:relative;
    top:0;
  }

  .shop-top{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .shop-hero h1{
    font-size:34px;
  }
}

.shop-search-row{
    width:90%;
    margin:25px auto;
    display:flex;
    gap:12px;
}

.shop-search-box{
    flex:1;
    background:#fff;
    border-radius:12px;
    display:flex;
    align-items:center;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.shop-search-box input{
    flex:1;
    border:none;
    outline:none;
    padding: 14px 18px;
    font-size:14px;
    
}

#searchBtn,
#voiceSearchBtn{
    border:none;
    background:transparent;
    width:50px;
    cursor:pointer;
    font-size:16px;
    color:#555;
}

.mobile-filter-btn{
    display:none;
}

@media(max-width:799px){

    .mobile-filter-btn{
        display:flex;
        align-items:center;
        justify-content:center;
        width:48px;
        min-width:48px;
        height:48px;

        border:none;
        border-radius:10px;

        background:#d3750a;
        color:#fff;
        font-size:18px;
    }

    .shop-filter{
        display:none;
    }

    .shop-filter.active{
        display:block;
    }
}

@media(max-width:799px){

    .shop-search-row{
        width:92%;
        margin:18px auto;
        padding: 0 0;
        height: -50px;
    }

    .mobile-filter-btn{
        display:flex;
        align-items:center;
        justify-content:center;
        width:48px;
        min-width:48px;
        height:48px;
        border:none;
        border-radius:10px;
        background:#d3750a;
        color:#fff;
        font-size:18px;
    }
}

.back-btn{
    display:flex;
    align-items:center;
    gap:12px;
    margin-top: 15px;
    margin-bottom: 5px;
    margin-left: 15px;

    text-decoration:none;

    color:#2b1408;
    font-weight:600;

    padding:10px 16px;

    border-radius:10px;

    background:#fff;

    box-shadow:0 4px 12px rgba(0,0,0,0.08);

    width:max-content;

    transition:0.3s;
}

.back-btn:hover{
    background:#d3750a;
    color:#fff;
}

.back-btn i{
    font-size:14px;
}

@media(max-width:477px){

    .back-btn{
        padding:8px 12px;
        font-size:13px;
    }

    .back-btn span{
        display:none;
    }
}

.shop-product-click {
  cursor: pointer;
}

.long-cart-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #7a2f12;
  color: white;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

.shop-qty-box {
  margin-top: 12px;
  display: flex;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #7a2f12;
}

.shop-qty-box button {
  width: 40px;
  border: none;
  background: #7a2f12;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.shop-qty-box span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #fff;
  color: #7a2f12;
}

.nav-cart {
  position: relative;
}

#cartCount {
  position: absolute;
  top: -9px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  background: #d3750a;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pro{
  background:#fff;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
  overflow:hidden;
  cursor:pointer;
  transition:0.3s ease;
}

.pro:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 32px rgba(0,0,0,0.13);
}

.pro img{
  width:100%;
  height:240px;
  object-fit:contain;
  background:#f8f5ef;
  border-radius:14px;
  padding:12px;
}

.pro .des{
  padding:12px 2px 4px;
}

.pro .des span{
  color:#7a421f;
  font-size:14px;
}

/*.pro .des h5{
  font-size:17px;
  line-height:1.4;
  color:#111;
  margin:7px 0;
}*/

.pro .des h5 {
  font-size: 14px;
  line-height: 1.35;
  color: #111;
  margin: 6px 0;
}

.pro .price{
  display:flex;
  align-items:center;
  gap:10px;
}

.pro .mrp{
  text-decoration:line-through;
  color:#999;
  font-size:14px;
}

.pro h4{
  color:#088178;
  font-size:20px;
  font-weight:800;
}

.long-cart-btn{
  width:100%;
  padding:13px;
  border:none;
  border-radius:12px;
  background:#7a2f12;
  color:#fff;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  margin-top:12px;
}

.shop-qty-box{
  margin-top:12px;
  display:flex;
  height:44px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #7a2f12;
}

.shop-qty-box button{
  width:46px;
  border:none;
  background:#7a2f12;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.shop-qty-box span{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#7a2f12;
  background:#fff;
}

.disabled-cart-btn{
  background:#cfcfcf !important;
  color:#666 !important;
  cursor:not-allowed !important;
}

.shop-product-click{
  cursor:pointer;
}

#miniToast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #2b1408;
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.25s;
  pointer-events: none;
}

#miniToast.show {
  opacity: 1;
  transform: translateY(0);
}

.shop-price-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
}

.shop-mrp{
    font-size:16px;
    color:#777;
    text-decoration:line-through;
    font-weight:500;
}

.shop-price{
    font-size:20px;
    font-weight:700;
    color:#088178;
}

.shop-image-box {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: white;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 5;
}

.out-stock-btn {
  background: #e5e5e5 !important;
  color: #777 !important;
  cursor: not-allowed !important;
  border: none !important;
  opacity: 1 !important;
}

.out-stock-btn:hover {
  transform: none !important;
}

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin:40px 0;
}

.pagination button{
    min-width:42px;
    height:42px;
    padding:0 14px;
    border:none;
    border-radius:10px;
    background:#fff;
    color:#2b1408;
    cursor:pointer;
    font-weight:600;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    transition:.25s;
}

.pagination button:hover{
    background:#efe1d1;
}

.pagination button.active{
    background:#7a2f12;
    color:#fff;
}

.pagination button:disabled{
    opacity:.45;
    cursor:not-allowed;
}


/* ===========================
   MOBILE SHOP - CLEAN (2 PRODUCTS)
=========================== */
@media (max-width:768px){

  .shop-layout{
    display:block;
    padding:14px;
  }

  .shop-filter{
    display:none;
  }

  .shop-filter.active{
    display:block;
    margin-bottom:16px;
  }

  .shop-main{
    width:100%;
  }

  .product-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .pro{
    width:100%;
    margin:0;
    padding:12px;
    border-radius:14px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .shop-product-click{
    display:flex;
    flex-direction:column;
    flex:1;
  }

  .shop-image-box{
    width:100%;
    aspect-ratio:1/1.2;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:8px;
    position:relative;
  }

  .shop-image-box img,
  .pro img{
    width:100%;
    height:100%;
    object-fit:contain;
  }

  .discount-badge{
    top:8px;
    left:8px;
    font-size:10px;
    padding:4px 7px;
    border-radius:20px;
  }

  .pro .des span,
  .publisher{
    font-size:11px;
  }

 /* .pro .des h5,
  .product-info h3{
    font-size:13px;
    line-height:1.35;
    min-height:36px;
    max-height:36px;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }*/
  
  .pro .des h5,
.product-info h3 {
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
  max-height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

  .shop-price-row,
  .price-row{
    gap:6px;
    margin:8px 0;
  }

  .shop-price,
  .price{
    font-size:16px;
  }

  .shop-mrp,
  .mrp{
    font-size:12px;
  }

  .long-cart-btn{
    width:100%;
    height:40px;
    border-radius:8px;
    font-size:13px;
    margin-top:10px;
  }

  .shop-qty-box{
    height:40px;
    margin-top:10px;
  }

  .shop-qty-box button{
    width:36px;
    font-size:18px;
  }

  .shop-qty-box span{
    font-size:14px;
  }

  .shop-top{
    margin-bottom:16px;
  }

  .shop-top h2{
    font-size:22px;
  }

  .shop-top p{
    font-size:13px;
  }
}

/* FIX: Actual book title element used by shop.js*/
/*#product-list .pro .shop-product-click h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 6px 0 !important;
    min-height: 0 !important;
    max-height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}*/

/* Mobile titles */
/*@media (max-width: 768px) {
    #product-list .pro .shop-product-click h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        max-height: 32px !important;
    }
}*/

/* Shop book titles - original size and boldness */
#product-list .pro .shop-product-click h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 7px 0 !important;
    min-height: 0 !important;
    max-height: 47.6px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Mobile: restore original mobile title size */
@media (max-width: 768px) {
    #product-list .pro .shop-product-click h3 {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        max-height: 35.1px !important;
    }
}


