/**
 * WooCommerce – Njkpars theme
 * Primary: #FF5A79
 */

/* ========== Header cart icon ========== */
.main-header-two__bottom-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-cart-box {
    position: relative;
}

.nj-mini-cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 90, 121, 0.1);
    color: var(--thm-primary, #FF5A79);
    transition: all .3s ease;
    text-decoration: none !important;
}

.nj-mini-cart-toggle:hover {
    background: var(--thm-primary, #FF5A79);
    color: #fff;
}

.nj-cart-icon {
    position: relative;
    font-size: 18px;
    line-height: 1;
}

.nj-cart-count {
    position: absolute;
    top: -10px;
    left: -12px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--thm-primary, #FF5A79);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nj-mini-cart-toggle:hover .nj-cart-count {
    background: #fff;
    color: var(--thm-primary, #FF5A79);
}

/* ========== Mini Cart Drawer (from LEFT) ========== */
.nj-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(21, 21, 21, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
}

.nj-mini-cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 8px 0 40px rgba(0, 0, 0, .12);
}

body.nj-mini-cart-open .nj-mini-cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.nj-mini-cart-open .nj-mini-cart-drawer {
    transform: translateX(0);
}

body.nj-mini-cart-open {
    overflow: hidden;
}

.nj-mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.nj-mini-cart-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.nj-mini-cart-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}

.nj-mini-cart-close:hover {
    background: var(--thm-primary, #FF5A79);
    color: #fff;
}

.nj-mini-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.nj-mini-cart-body .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nj-mini-cart-body .woocommerce-mini-cart-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.nj-mini-cart-body .woocommerce-mini-cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.nj-mini-cart-body .woocommerce-mini-cart-item a {
    color: #222;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.nj-mini-cart-body .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 4px;
}

.nj-mini-cart-body .woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 12px;
    left: 0;
    color: #dc3545;
    font-size: 16px;
    text-decoration: none;
}

.nj-mini-cart-body .woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 40px 10px;
    color: #888;
}

.nj-mini-cart-body .total {
    padding: 15px 0 5px;
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid #eee;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.nj-mini-cart-body .woocommerce-mini-cart__buttons {
    display: none; /* we use custom footer buttons */
}

.nj-mini-cart-footer {
    padding: 16px 20px 22px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.nj-mini-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px !important;
    text-align: center;
}

.nj-mini-cart-btn--checkout {
    background: #151515 !important;
}

.nj-mini-cart-btn--checkout:hover {
    background: #333 !important;
}

/* ========== Shop page ========== */
.shop-page {
    padding: 70px 0 100px;
}

.shop-sidebar {
    position: sticky;
    top: 110px;
}

.shop-sidebar-widget {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .06);
    margin-bottom: 22px;
    border: 1px solid #f0f0f0;
}

.shop-sidebar-widget .widget-title {
    font-size: 16px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--thm-primary, #FF5A79);
    position: relative;
}

.shop-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.shop-sidebar-widget ul li:last-child {
    border-bottom: none;
}

.shop-sidebar-widget ul li a {
    color: #444;
    transition: color .25s;
    font-size: 14px;
}

.shop-sidebar-widget ul li a:hover,
.shop-sidebar-widget ul li.current-cat > a {
    color: var(--thm-primary, #FF5A79);
}

.shop-sidebar-widget .count {
    float: left;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 12px;
    color: #777;
}

.shop-toolbar {
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    border: 1px solid #f0f0f0;
    margin-bottom: 28px !important;
}

.woocommerce-result-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.woocommerce-ordering select {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 36px 8px 14px;
    background: #fff;
    min-width: 170px;
    font-size: 13px;
}

/* ========== Product Card ========== */
.shop-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .06);
    border: 1px solid #f2f2f2;
    transition: all .35s ease;
    margin-bottom: 30px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(255, 90, 121, .14);
    border-color: rgba(255, 90, 121, .2);
}

.shop-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
}

.shop-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.shop-card:hover .shop-card__img img {
    transform: scale(1.07);
}

.shop-card__badges {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-badge {
    background: var(--thm-primary, #FF5A79);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    display: inline-block;
}

.shop-badge.outofstock {
    background: #6c757d;
}

.shop-card__actions {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all .35s ease;
    z-index: 2;
}

.shop-card:hover .shop-card__actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.shop-card__action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transition: all .25s;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.shop-card__action-btn:hover,
.shop-card__action-btn.added {
    background: var(--thm-primary, #FF5A79);
    color: #fff;
}

.shop-card__body {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card__cats {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.shop-card__cats a {
    color: #999;
}

.shop-card__cats a:hover {
    color: var(--thm-primary, #FF5A79);
}

.shop-card__title {
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.45;
    font-weight: 700;
}

.shop-card__title a {
    color: #1a1a1a;
    transition: color .25s;
}

.shop-card__title a:hover {
    color: var(--thm-primary, #FF5A79);
}

.shop-card__price {
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-primary, #FF5A79);
    margin-top: auto;
}

.shop-card__price del {
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
}

.shop-card__price ins {
    text-decoration: none;
}

.shop-card__rating {
    margin-top: 8px;
}

.shop-card__rating .star-rating {
    font-size: 12px;
    color: #ffc107;
}

/* Pagination */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-weight: 600;
    border: 1px solid #eee;
    transition: all .3s;
    text-decoration: none;
}

.woocommerce-pagination ul.page-numbers li a:hover,
.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--thm-primary, #FF5A79);
    color: #fff;
    border-color: var(--thm-primary, #FF5A79);
}

/* ========== Single Product ========== */
.single-product-page {
    padding: 50px 0 90px;
}

.single-product__gallery {
    position: sticky;
    top: 110px;
}

.single-product__gallery .woocommerce-product-gallery {
    margin: 0;
}

.single-product__gallery .woocommerce-product-gallery__wrapper {
    border-radius: 16px;
    overflow: hidden;
}

.single-product__gallery .woocommerce-product-gallery__image img {
    border-radius: 16px;
    width: 100%;
}

.single-product__gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.single-product__gallery .flex-control-thumbs li {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .25s;
}

.single-product__gallery .flex-control-thumbs li img {
    cursor: pointer;
    opacity: .7;
    transition: opacity .25s;
}

.single-product__gallery .flex-control-thumbs li img.flex-active,
.single-product__gallery .flex-control-thumbs li:hover img {
    opacity: 1;
}

.single-product__cats {
    font-size: 13px;
    color: var(--thm-primary, #FF5A79);
    margin-bottom: 10px;
    font-weight: 600;
}

.single-product__cats a {
    color: var(--thm-primary, #FF5A79);
}

.single-product__summary .product_title {
    font-size: 28px;
    margin: 0 0 14px;
    color: #151515;
    line-height: 1.35;
}

.single-product__summary .woocommerce-product-rating {
    margin-bottom: 14px;
}

.single-product__summary .price {
    font-size: 26px;
    font-weight: 700;
    color: var(--thm-primary, #FF5A79);
    margin-bottom: 18px;
    display: block;
}

.single-product__summary .price del {
    font-size: 16px;
    color: #aaa;
    font-weight: 400;
}

.single-product__summary .price ins {
    text-decoration: none;
}

.single-product__summary .woocommerce-product-details__short-description {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.85;
    font-size: 15px;
}

.single-product__summary form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 20px;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
}

.single-product__summary .quantity .qty {
    width: 90px;
    height: 50px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    background: #fff;
}

.single-product__summary .single_add_to_cart_button {
    background: var(--thm-primary, #FF5A79) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all .3s !important;
    flex: 1;
    min-width: 180px;
}

.single-product__summary .single_add_to_cart_button:hover {
    background: #e04460 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 90, 121, .3);
}

.single-product__summary .product_meta {
    border-top: 1px solid #eee;
    padding-top: 18px;
    font-size: 13px;
    color: #777;
}

.single-product__summary .product_meta > span {
    display: block;
    margin-bottom: 8px;
}

.single-product__summary .product_meta a {
    color: #444;
}

.single-product__summary .product_meta a:hover {
    color: var(--thm-primary, #FF5A79);
}

/* Tabs */
.single-product__tabs-wrap {
    margin-top: 20px;
}

.woocommerce-tabs {
    background: #fff;
    border-radius: 16px;
    padding: 10px 28px 28px;
    box-shadow: 0 6px 28px rgba(0,0,0,.05);
    border: 1px solid #f0f0f0;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 0 -2px;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 22px;
    color: #666;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all .25s;
    text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--thm-primary, #FF5A79);
    border-bottom-color: var(--thm-primary, #FF5A79);
}

.woocommerce-Tabs-panel {
    padding: 10px 0;
    line-height: 1.85;
    color: #555;
    font-size: 15px;
}

.related.products,
.upsells.products {
    margin-top: 60px;
}

.related.products > h2,
.upsells.products > h2 {
    font-size: 24px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
}

/* ========== Cart & Checkout (keep previous + polish) ========== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-right: 4px solid var(--thm-primary, #FF5A79);
    background: #fff5f7;
    list-style: none;
}

.woocommerce-error {
    border-color: #dc3545;
    background: #fff5f5;
}

.woocommerce-cart-form .shop_table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0,0,0,.05);
    border: 1px solid #f0f0f0;
}

.woocommerce-cart-form .shop_table th {
    background: #fafafa;
    padding: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.woocommerce-cart-form .shop_table td {
    padding: 18px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

.woocommerce-cart-form .product-remove .remove {
    color: #dc3545;
    font-size: 22px;
    text-decoration: none;
}

.cart_totals {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 6px 28px rgba(0,0,0,.05);
    border: 1px solid #f0f0f0;
}

.cart_totals h2 {
    font-size: 20px;
    margin-bottom: 18px;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--thm-primary, #FF5A79);
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--thm-primary, #FF5A79) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 14px 20px;
    font-weight: 700;
    margin-top: 18px;
}

.checkout-billing-box,
.checkout-shipping-box,
.checkout-order-review-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 28px rgba(0,0,0,.05);
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}

.checkout-billing-box h3,
.checkout-shipping-box h3,
#order_review_heading {
    font-size: 18px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--thm-primary, #FF5A79);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 90, 121, .12);
}

.woocommerce-checkout #place_order {
    background: var(--thm-primary, #FF5A79) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 14px 40px;
    font-weight: 700;
    width: 100%;
    margin-top: 12px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--thm-primary, #FF5A79) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    transition: all .3s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: #e04460 !important;
}

/* Sale flash on single */
.single-product__gallery .onsale {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: var(--thm-primary, #FF5A79);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .single-product__gallery {
        position: static;
        margin-bottom: 30px;
    }
    .shop-sidebar {
        position: static;
        margin-top: 40px;
    }
    .shop-page {
        padding: 45px 0 70px;
    }
    .single-product__summary .product_title {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    .nj-mini-cart-drawer {
        width: 100%;
        max-width: 100%;
    }
    .main-header-two__bottom-right {
        gap: 10px;
    }
    .nj-mini-cart-toggle {
        width: 40px;
        height: 40px;
    }
}
