/* -----------------------------------------
Shop Area CSS
----------------------------------------- */
.shop-area .product-default {
    transform: none !important;
}

.shop-area .product-default .product-title{
  max-width: 100%;
}

.shopping-area .quantity-input {
    max-width: 150px;
    display: flex;
    align-items: center;
}

.shopping-area .quantity-input input {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    border-left: none;
    border-right: none;
}

.shopping-area .quantity-input .quantity-up {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.shopping-area .quantity-input .quantity-down {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.shopping-area.cart tbody td:first-child {
    -webkit-padding-start: 20px;
    padding-inline-start: 20px;
}

.shopping-area.cart .table-heading .first {
    -webkit-padding-start: 20px;
    padding-inline-start: 20px;
}

.shop-area .product-default .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5%;
    background-color: rgba(var(--color-primary-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 5;
}

.shop-area .product-default .product-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    color: var(--color-white);
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-inline: 7px;
}

.shop-area .product-default .product-overlay a:nth-child(1) {
    transform: translateY(40px);
    transition: all 0.4s;
}

.shop-area .product-default .product-overlay a:nth-child(2) {
    transform: translateY(50px);
    transition: all 0.5s;
}

.shop-area .product-default .product-overlay a:nth-child(3) {
    transform: translateY(60px);
    transition: all 0.6s;
}

.shop-area .product-default:hover .product-overlay {
    height: 100%;
    visibility: visible;
    opacity: 1;
}

.shop-area .product-default:hover .product-overlay a {
    transform: none;
}

/* -----------------------------------------
	Shop Single CSS
----------------------------------------- */
.shop-single-area .btn-groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.shop-single-area .shop-single-gallery {
    position: relative;
}

.shop-single-area .shop-single-gallery .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    color: var(--color-primary);
    background: var(--color-white);
}

.shop-single-area .shop-single-gallery .slider-btn.slider-btn-prev {
    left: 0;
}

.shop-single-area .shop-single-gallery .slider-btn.slider-btn-next {
    right: 0;
}

.shop-single-area .quantity-input {
    max-width: 150px;
    display: flex;
    align-items: center;
}

.shop-single-area .quantity-input input {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    border-left: none;
    border-right: none;
}

.shop-single-area .quantity-input .quantity-up {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.shop-single-area .quantity-input .quantity-down {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
}

.shop-single-area .shop-thumb {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    z-index: 5;
}

.shop-single-area .shop-thumbnails .thumbnail-img {
    cursor: pointer;
    border: 1px solid var(--color-primary);
}

.shop-single-area .shop-thumbnails .thumbnail-img img {
    -o-object-fit: cover;
    object-fit: cover;
    height: 100%;
}

.shop-single-area .product-single-details .product-desc p:last-child {
    margin-bottom: 0;
}

.shop-single-area .product-single-details .progress {
    height: 10px;
    border-radius: 30px;
}

.shop-single-area .product-single-details .progress .progress-bar {
    border-radius: 30px;
    background: var(--color-primary);
}

.shop-single-area .quantity-input {
    max-width: 150px;
    display: flex;
    align-items: center;
}

.shop-single-area .quantity-input input {
    width: 30px;
    height: 30px;
    padding: 0 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    border-left: none;
    border-right: none;
}

.shop-single-area .quantity-input .quantity-up,
.shop-single-area .quantity-input .quantity-down {
    width: 40px;
    height: 44px;
}

.shop-single-area .quantity-input input {
    width: 40px;
    height: 44px;
}

.shop-single-area .author {
    display: flex;
    align-items: self-start;
}
.shop-single-area .reviews .author:not(:last-child) {
    display: flex;
    align-items: self-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.shop-single-area .author .image {
    flex: 0 0 auto;
    width: 60px;
    border-radius: 50%;
    overflow: hidden;
    -webkit-margin-end: 15px;
    margin-inline-end: 15px;
}

.shop-single-area .shop-review-form .form-group ul.rating li {
    margin-bottom: 10px;
    display: inline-block;
}

.shop-single-area .shop-review-form .form-group ul.rating li:after {
    display: inline-block;
    content: "|";
    margin-left: 10px;
    margin-right: 7px;
}

.shop-single-area .shop-review-form .form-group ul.rating li:last-child:after {
    display: none;
}

.shop-single-area .shop-review-form .form-group ul.rating li:hover span {
    color: var(--color-primary);
}

.shop-single-area .product-desc ul{
  padding-inline-start: 1.2rem;
}


/* =====================================================
   CARPLEX APP-STYLE MOBILE REVAMP
   ===================================================== */

@media (max-width: 991px) {

  body { background-color: #f5f5f5 !important; }
  .breadcrumb-area { display: none !important; }
  .shop-area { padding-top: 0 !important; padding-bottom: 0 !important; background: #f5f5f5; }
  .shop-area .container { padding-left: 12px !important; padding-right: 12px !important; }
  .col-lg-4.col-xl-3 { display: none !important; }
  .col-lg-8.col-xl-9 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; padding: 0 !important; }

  .product-sort-area { position: sticky; top: 0; z-index: 100; background: #fff; padding: 12px 12px 10px; border-bottom: 1px solid #ececec; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .product-sort-area .row { margin: 0; align-items: center; }
  .product-sort-area h4 { font-size: 13px !important; font-weight: 600; color: #222; margin-bottom: 0 !important; white-space: nowrap; }
  .product-sort-area .btn-outline { background: #fff !important; border: 1.5px solid #CC0000 !important; color: #CC0000 !important; border-radius: 20px !important; font-size: 12px !important; padding: 5px 14px !important; font-weight: 600; margin-bottom: 0 !important; }
  .product-sort-area .btn-outline i { color: #CC0000; font-size: 11px; }
  .product-sort-list { margin-bottom: 0 !important; display: flex; justify-content: flex-end; }
  .product-sort-area .sort-item label { font-size: 11px; color: #666; white-space: nowrap; }
  .product-sort-area .nice-select { font-size: 11px !important; height: 32px !important; line-height: 30px !important; border-radius: 16px !important; border: 1.5px solid #ddd !important; padding: 0 28px 0 10px !important; color: #333; font-weight: 500; white-space: nowrap; min-width: 0; }
  .product-sort-area .nice-select::after { right: 10px; }

  .shop-area .row > .col-xl-4.col-sm-6 { width: 50% !important; flex: 0 0 50% !important; max-width: 50% !important; padding: 0 5px !important; margin-bottom: 10px !important; }

  .shop-area .product-default { background: #fff !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 1px 6px rgba(0,0,0,0.08) !important; margin-bottom: 0 !important; padding: 0 !important; text-align: left !important; }
  .shop-area .product-default .product-img { margin-bottom: 0 !important; border-radius: 0 !important; background: #f8f8f8; }
  .shop-area .product-default .product-img .lazy-container { border-radius: 0 !important; }
  .shop-area .product-default .product-img img { border-radius: 0 !important; object-fit: cover; }
  .shop-area .product-default .product-details { padding: 8px 10px 12px !important; }
  .shop-area .product-default .ratings { justify-content: flex-start !important; margin-bottom: 4px !important; }
  .shop-area .product-default .product-title { font-size: 12px !important; font-weight: 500; color: #222; line-height: 1.4; margin-bottom: 6px !important; text-align: left !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .shop-area .product-default .product-title a { color: #222 !important; }
  .shop-area .product-default .product-price { justify-content: flex-start !important; align-items: center; gap: 6px; }
  .shop-area .product-default .new-price { font-size: 14px !important; font-weight: 700; color: #CC0000 !important; margin: 0 !important; }
  .shop-area .product-default .old-price { font-size: 11px !important; color: #999 !important; text-decoration: line-through; }
  .shop-area .product-default .product-overlay { display: none !important; }

  #cartIconWrapper.cartIconWrapper { position: fixed !important; bottom: 20px !important; right: 16px !important; left: auto !important; z-index: 999 !important; background: #CC0000 !important; border-radius: 28px !important; box-shadow: 0 4px 16px rgba(204,0,0,0.35) !important; padding: 0 !important; }
  #cartIconWrapper #cartIcon { display: flex !important; align-items: center !important; gap: 8px !important; padding: 10px 18px !important; color: #fff !important; text-decoration: none !important; }
  #cartIconWrapper .cart-length { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
  #cartIconWrapper .cart-length i { font-size: 16px; color: #fff; }
  #cartIconWrapper .cart-length .length { font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 500; }
  #cartIconWrapper .cart-total { font-size: 14px; font-weight: 700; color: #fff; border-left: 1px solid rgba(255,255,255,0.4); padding-left: 10px; }

  .pagination { margin-top: 16px !important; margin-bottom: 80px !important; }
  .pagination .page-link { border-radius: 8px !important; margin: 0 2px; font-size: 13px; min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-color: #ddd; color: #333; }
  .pagination .page-item.active .page-link { background: #CC0000 !important; border-color: #CC0000 !important; color: #fff !important; }

  .widget-offcanvas { border-radius: 20px 20px 0 0 !important; max-height: 85vh !important; overflow-y: auto !important; }
  .widget-offcanvas .offcanvas-header { border-bottom: 1px solid #ececec; padding: 16px 20px !important; }
  .widget-offcanvas .offcanvas-title { font-size: 16px !important; font-weight: 700; }
  .widget-offcanvas .accordion-button { font-size: 13px !important; font-weight: 600; padding: 10px 0 !important; color: #222 !important; background: transparent !important; box-shadow: none !important; }
  .widget-offcanvas .form-radio-label { font-size: 13px !important; }
  .widget-offcanvas .cta .btn { border-radius: 10px !important; font-size: 14px !important; padding: 12px !important; font-weight: 600; }
}

@media (max-width: 991px) {
  body.app-webview header,
  body.app-webview .header-area,
  body.app-webview .main-responsive-nav,
  body.app-webview footer,
  body.app-webview .footer-area,
  body.app-webview .breadcrumb-area,
  body.app-webview #WAButton { display: none !important; }
  body.app-webview .shop-area { padding-top: 0 !important; }
  body.app-webview #cartIconWrapper { bottom: 80px !important; }
}

/* cpx-card fix: div wrapper instead of nested <a> */
@media (max-width: 991px) {
  .cpx-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
  }
  .cpx-card .cpx-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
  }
}
