/* =========================================================
   Speech Publications - Store/Shop Beautification
   Loaded locally (url('public/...')) on the shop page
   ========================================================= */

/* ---------- Breadcrumb ---------- */



.shop-box-items{
    padding: 8px!important;
}
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #0b4cff14 0%, #7ab2781a 60%, #FED0491a 100%) !important;
    border-bottom: 1px solid rgba(122, 178, 120, .15);
}

.breadcrumb-wrapper .page-heading h1 {
    color: var(--header);
    font-weight: 800;
    letter-spacing: -.5px;
}

.breadcrumb-wrapper .breadcrumb-items li a {
    color: var(--theme);
    font-weight: 600;
}

/* ---------- Results bar ---------- */
.woocommerce-notices-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 18px rgba(17, 17, 44, .05);
}

.woocommerce-notices-wrapper p {
    margin: 0;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}

.woocommerce-notices-wrapper .nice-select {
    border-radius: 100px !important;
    border-color: #eef0f4 !important;
    background: #f8fafc;
}

/* ---------- Shop cards ---------- */
.shop-box-items {
    margin-top: 0px;
    background: #fff;
    border-radius: 18px;
    padding: 0px;
    box-shadow: 0 6px 24px rgba(17, 17, 44, .06);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #edf0f3;
}

.shop-box-items:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(17, 17, 44, .13);
}

.shop-box-items .book-thumb {
    padding-top: 0px !important;
    background: linear-gradient(
160deg, #f3f6f4 0%, #e9f0e9 100%);
    border-radius: 12px;
    /* height: 250px; */
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-box-items .book-thumb img {
  
    height: auto!important;
    
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 14px 20px rgba(17, 17, 44, .18));
    transition: transform .45s ease;
}

.shop-box-items:hover .book-thumb img {
    transform: scale(1.06);
}

/* Hover action icons */
.shop-box-items .book-thumb .shop-icon {
    gap: 8px;
    top: 18px;
    right: 18px;
}

.shop-box-items .book-thumb .shop-icon li {
    width: 38px;
    height: 38px;
    line-height: 35px;
    background: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(17, 17, 44, .1);
}

.shop-box-items .book-thumb .shop-icon li a i {
    font-size: 15px;
}

/* Badges */
.shop-box-items .book-thumb .badge-danger,
.shop-box-items .book-thumb .badge-success {
    transform: none !important;
    top: 16px;
    border-radius: 100px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 6px 14px rgba(17, 17, 44, .15);
}

.shop-box-items .book-thumb .badge-danger {
    right: 16px !important;
    left: auto !important;
}

.shop-box-items .book-thumb .badge-success {
    left: 16px !important;
}

/* Content */
.shop-box-items .shop-content {
    margin-top: 8px;
  
    flex: 1;
}

.shop-box-items .shop-content h3 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.shop-box-items .shop-content h3 a {
    color: var(--header);
    transition: color .3s ease;
}

.shop-box-items .shop-content h3 a:hover {
    color: var(--theme);
}

.shop-box-items .shop-content .price-list1 {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.shop-box-items .shop-content .price-list1 li {
    font-size: 12px;
    font-weight: 700;
    color: var(--theme);
    line-height: 1.7;
}

.shop-box-items .shop-content .price-list1 li:first-child {
    color: #5dbb7d;
}

/* Rating stars */
.shop-box-items .shop-content .shop-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 10px;
    margin: 4px 0 8px;
}

.shop-box-items .shop-content .fa-star,
.shop-box-items .shop-content .fa-star-half-stroke,
.shop-box-items .shop-content .fa-regular.fa-star {
    color: #f7b500 !important;
    font-size: 12px;
    line-height: 1;
   
    vertical-align: middle;
}

.shop-box-items .shop-content .fa-regular.fa-star {
    opacity: 0.9;
}

.shop-box-items .shop-content .product-title-css p {
    margin-bottom: 0;
}

.shop-box-items .shop-content .product-title-css {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
}

.shop-box-items .shop-content .product-title-css span {
    font-size: 14px;
}

/* Add to cart */
.shop-box-items .shop-button {
    margin-top: auto;
    padding-top: 8px;
}

.shop-box-items .shop-button .theme-btn {
    width: 100%;
    background: var(--theme);
    color: #fff;
    border-radius: 100px;
    padding: 15px 20px;
    font-size: 15px;
    transition: background .3s ease, transform .3s ease;
}

.shop-box-items .shop-button .theme-btn:hover {
    background: var(--header);
    transform: translateY(-2px);
}

/* ---------- Sidebar widgets ---------- */
.main-sidebar .single-sidebar-widget {
    padding: 16px 16px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(17, 17, 44, .06);
    margin-bottom: 24px;
    transition: box-shadow .3s ease;
}

.main-sidebar .single-sidebar-widget:hover {
    box-shadow: 0 14px 34px rgba(17, 17, 44, .1);
}

.main-sidebar .single-sidebar-widget .wid-title h5 {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
}

.main-sidebar .single-sidebar-widget .wid-title h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 100px;
    background: var(--theme);
}

/* Search */
.main-sidebar .search-container {
    position: relative;
}

.main-sidebar .search-container .search-input {
    width: 100%;
    padding: 14px 58px 14px 18px;
    border: 1px solid #eef0f4;
    border-radius: 100px;
    background: #f8fafc;
    font-size: 14px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.main-sidebar .search-container .search-input:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 4px rgba(122, 178, 120, .12);
}

.main-sidebar .search-container .search-icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--theme);
    color: #fff;
    border: none;
    transition: background .3s ease;
}

.main-sidebar .search-container .search-icon:hover {
    background: var(--header);
}

/* Category pills */
.main-sidebar .categories-list .nav {
    flex-direction: column;
    gap: 10px;
}

.main-sidebar .categories-list .nav .nav-link {
    border-radius: 10px;
    padding: 12px 16px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--header);
    background: #f6f8fb;
    transition: all .3s ease;
}

.main-sidebar .categories-list .nav .nav-link:hover {
    background: rgba(122, 178, 120, .12);
    color: var(--theme);
    transform: translateX(4px);
}

.main-sidebar .categories-list .nav .nav-link.active {
    background: var(--theme);
    color: #fff;
    box-shadow: 0 8px 18px rgba(122, 178, 120, .3);
}

/* ---------- Pagination ---------- */
.page-nav-wrap .pagination {
    justify-content: center;
    gap: 6px;
}

.page-nav-wrap .pagination .page-link {
    border: none;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header);
    font-weight: 600;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 17, 44, .06);
    transition: all .3s ease;
}

.page-nav-wrap .pagination .page-item.active .page-link,
.page-nav-wrap .pagination .page-item .page-link:hover {
    background: var(--theme);
    color: #fff;
}

/* Mobile adjustments for card layout and text fields */
@media (max-width: 767px) {
    .shop-box-items {
        padding: 10px;
        border-radius: 14px;
    }

    .shop-box-items .book-thumb img {
      
       
    }

    .shop-box-items .shop-content h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .shop-box-items .shop-content .price-list1 li {
        font-size: 18px;
    }

    .shop-box-items .shop-content .shop-rating {
        margin: 4px 0 6px;
    }

    .shop-box-items .shop-button .theme-btn {
        padding: 10px 12px;
        font-size: 15px;
    }

/* ---------- Cart styles ---------- */
.cart-table-wrapper .table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(17,17,44,0.06);
    border: 1px solid #eef0f4;
    width: 100%;
}
.cart-table-wrapper .table thead th {
    background: #fbfcfe;
    color: var(--header);
    font-weight: 700;
    border-bottom: none;
    padding: 12px 16px;
    font-size: 14px;
}
.cart-table-wrapper .table tbody td {
    vertical-align: middle;
    padding: 14px 12px;
    border-top: 1px solid #f1f3f6;
}

/* Improved row spacing and card-like appearance */
.cart-table-wrapper .table {
    border-collapse: separate;
    border-spacing: 0 14px;
}
.cart-table-wrapper .table tbody tr {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(17,17,44,0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}
.cart-table-wrapper .table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(17,17,44,0.06);
}

/* Align product image and name */
.cart-product-info { display:flex; align-items:center; gap:12px; }
.cart-product-info img { flex: 0 0 auto; }
.cart-product-name { font-size: 15px; }

/* Buttons and actions */
.theme-btn { border-radius: 10px; padding: 10px 16px; font-weight:700; box-shadow: 0 8px 18px rgba(17,17,44,0.06); border: none; }
.theme-btn:hover { transform: translateY(-2px); }
.theme-btn[style*="background-color: #dc3545"] { background: #dc3545; color: #fff; }
.cart-wrapper-footer .theme-btn { margin-right: 8px; }

.remove-icon { background: #fff; border-radius: 50%; padding: 8px; border: 1px solid #f1f3f6; transition: transform .15s ease; }
.remove-icon:hover { transform: scale(1.06); }

/* Quantity control refinement */
.quantity-basket .qtyminus, .quantity-basket .qtyplus { background: linear-gradient(180deg,#ffffff,#f6f8fb); border: 1px solid #edf0f4; }
.quantity-basket .qtyminus:hover, .quantity-basket .qtyplus:hover { background: var(--theme); color: #fff; border-color: var(--theme); }

/* Totals box more prominent */
.cart-total .table.style-2 {
    background: linear-gradient(180deg,#ffffff,#fbfdff);
    padding: 18px;
}
.cart-total .table.style-2 thead th { background: transparent; font-size:16px; }
.cart-total a.theme-btn.style-2 { display:block; margin-top:14px; background: linear-gradient(90deg,var(--theme), #2a8f6b); color:#fff; padding:12px 18px; text-align:center; border-radius:10px; }

/* Empty cart visual */
.empty-cart { background: linear-gradient(180deg,#fff,#fbfbfd); border-radius: 12px; padding: 40px 30px; box-shadow: 0 12px 30px rgba(17,17,44,0.04); }
.empty-cart h3 { font-size: 22px; }
.empty-cart .theme-btn { margin-top: 18px; }
.cart-product-info img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(17,17,44,0.06);
}
.cart-product-name {
    display: block;
    font-weight: 700;
    color: var(--header);
}
.cart-price, .subtotal-price {
    font-weight: 800;
    color: var(--theme);
}
.quantity-basket .qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 8px;
    background: #f8fafc;
}
.quantity-basket .qtyminus,
.quantity-basket .qtyplus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17,17,44,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}
.quantity-basket .qty-input {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: #111;
}
.remove-icon {
    background: transparent;
    border: none;
    padding: 6px;
}
.remove-icon img {
    width: 20px;
    opacity: 0.9;
}
.cart-total .table.style-2 {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17,17,44,0.06);
    border: 1px solid #eef0f4;
    padding: 12px;
}
.cart-total .sub-title { color:#666; font-weight:600; }
.cart-total .sub-price { font-weight:800; color:var(--header); }
.cart-total .sub-price-total { color:var(--theme); font-size:18px; }
.cart-wrapper-footer .theme-btn { margin-right: 10px; }

.empty-cart { max-width: 520px; margin: 0 auto; }

@media (max-width: 767px) {
    .cart-table-wrapper .table thead { display: none; }
    .cart-table-wrapper .table tbody td { display: block; width: 100%; }
    .cart-table-wrapper .table tbody tr { display: block; margin-bottom: 12px; border-radius: 10px; background:#fff; box-shadow:0 8px 20px rgba(17,17,44,0.04); padding:12px; }
    .cart-table-wrapper .table tbody td .cart-product-info { margin-bottom: 8px; }
}

/* Card layout for cart items */
.cart-cards { display: flex; flex-direction: column; gap: 14px; }
.cart-item-card {
    padding: 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef0f4;
    box-shadow: 0 8px 22px rgba(17,17,44,0.04);
}
.cart-item-card .cart-product-info img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.cart-item-card .cart-price { font-size: 16px; font-weight: 800; color: var(--theme); }
.cart-item-card .subtotal-price { font-size: 15px; font-weight: 800; }

@media (max-width: 767px) {
    .cart-item-card { padding: 12px; }
    .cart-item-card .cart-product-info img { width: 76px; height: 76px; }
}

    /* allow author to wrap on small screens */
    .product-author {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    /* hide desktop cursor follower on touch devices */
    .cursor-follower { display: none !important; }
}