/*
Theme Name: isakib Pro
Theme URI: https://isakib.com/
Description: Premium e-commerce theme developed and licensed exclusively by isakib.com
Author: isakib.com
Author URI: https://isakib.com/
License: Proprietary isakib.com License
License URI: https://isakib.com/
Template: astra
Version: 1.0.0
Text Domain: isakib-pro
*/

/* Custom global styles can be added here if needed, though they will mostly be in front-page.php or functions.php */

/* Product card style overrides for shop loops */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
    float: none !important;
}

/* Hide any WooCommerce/plugin-injected descriptions, excerpts or extra content inside product loop cards */
.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce ul.products li.product .product-excerpt,
.woocommerce ul.products li.product .product-description,
.woocommerce ul.products li.product > .description,
.woocommerce ul.products li.product p:not(.hp-product-price):not(.price),
.woocommerce-page ul.products li.product .woocommerce-product-details__short-description,
.woocommerce-page ul.products li.product .product-excerpt,
.woocommerce-page ul.products li.product p:not(.hp-product-price):not(.price) {
    display: none !important;
}

/* Customized Product Card (Matching user image layout) */
.hp-product-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 14px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.hp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    border-color: #EA7236;
}

/* Product Card Image Wrapper with padding */
.hp-product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Keep 1:1 Aspect Ratio */
    background-color: #f8fafc;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}
.hp-product-image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 8px;
}
.hp-product-card:hover .hp-product-image-wrapper img {
    transform: scale(1.04);
}

/* Product Card Content */
.hp-product-info {
    padding: 14px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.hp-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.45;
    min-height: 44px;
    max-height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}
.hp-product-title a {
    color: inherit !important;
    text-decoration: none !important;
}
.hp-product-title a:hover {
    color: #EA7236 !important;
}

/* Ratings stars */
.hp-product-rating {
    color: #facc15;
    font-size: 13px;
    margin: 4px 0 10px 0;
    text-align: left;
    letter-spacing: 1px;
}

/* Price Container */
.hp-price-views-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: auto;
}

/* Product Card Price */
.hp-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #EA7236;
}
.hp-product-price del {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 400;
    margin-right: 6px;
    text-decoration: line-through;
}
.hp-product-price ins {
    text-decoration: none;
}
.price-discount-tag {
    display: inline-block !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

/* Product Order Buttons Section */
.hp-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}
.hp-order-button {
    flex-grow: 1;
    background-color: #EA7236;
    color: #ffffff !important;
    text-align: center;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.hp-order-button:hover {
    background-color: #f2864f;
}

.hp-cart-icon-btn {
    background-color: #ffffff;
    color: #EA7236 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #EA7236;
    transition: all 0.2s ease;
    text-decoration: none !important;
    flex-shrink: 0;
}
.hp-cart-icon-btn:hover {
    background-color: #EA7236;
    color: #ffffff !important;
}
.hp-cart-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Sale badge */
.hp-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #059669;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 3;
}

/* Shop Loop Grid Columns & Layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 20px 0 40px 0 !important;
    list-style: none !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* WooCommerce Result Count & Ordering Dropdown styling */
.woocommerce-result-count {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px !important;
}
.woocommerce-ordering select {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
}

/* WooCommerce Archive Header */
.woocommerce-products-header,
.ast-archive-description {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid #eaeaea !important;
    padding-bottom: 12px !important;
    padding-top: 15px !important;
}

.woocommerce-products-header__title,
.ast-archive-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    position: relative !important;
    margin: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
}

.woocommerce-products-header__title::after,
.ast-archive-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -14px !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #EA7236 !important;
}

/* ==========================================================================
   STUNNING MODERN CART PAGE REDESIGN
   ========================================================================== */

/* Hide default H1 */
.woocommerce-cart .entry-header {
    display: none !important;
}

.custom-cart-header {
    max-width: 1200px;
    margin: 25px auto 10px;
    padding: 0 15px;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

.custom-cart-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Steps breadcrumb bar */
.cart-steps-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.cart-steps-nav .step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-steps-nav .step.active {
    color: #EA7236;
}
.cart-steps-nav .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.cart-steps-nav .step.active .step-num {
    background: #EA7236;
    color: #ffffff;
}

/* WooCommerce Cart Form Layout */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 15px;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

.woocommerce-cart .woocommerce-cart-form {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 24px;
    margin-bottom: 30px;
}

/* Table styling */
.woocommerce-cart table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    border: none !important;
    border-radius: 8px;
    margin: 0 0 20px 0;
    width: 100%;
}

.woocommerce-cart table.shop_table th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0 !important;
}

.woocommerce-cart table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle;
    color: #1e293b;
    font-size: 15px;
}

/* Product thumbnail */
.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Product title */
.woocommerce-cart table.shop_table td.product-name a {
    color: #0f172a !important;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.woocommerce-cart table.shop_table td.product-name a:hover {
    color: #EA7236 !important;
}

/* Price & Subtotal */
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    font-weight: 700;
    color: #EA7236;
    font-size: 16px;
}

/* Quantity input box */
.woocommerce-cart table.shop_table td.product-quantity input.qty {
    width: 65px !important;
    height: 38px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    background: #f8fafc;
}

/* Remove button */
.woocommerce-cart table.shop_table a.remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background-color: #fee2e2 !important;
    color: #ef4444 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.woocommerce-cart table.shop_table a.remove:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

/* Coupon & Actions Bar */
.woocommerce-cart td.actions {
    padding: 20px 0 0 0 !important;
    border-bottom: none !important;
}

.woocommerce-cart .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-cart .coupon input#coupon_code {
    height: 42px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
    background: #f8fafc;
}

.woocommerce-cart .coupon button[name="apply_coupon"] {
    background: #334155 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    height: 42px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.woocommerce-cart .coupon button[name="apply_coupon"]:hover {
    background: #EA7236 !important;
}

.woocommerce-cart button[name="update_cart"] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    height: 42px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.woocommerce-cart button[name="update_cart"]:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Cart Totals Box (Summary) */
.woocommerce-cart .cart-collaterals {
    margin-top: 30px;
}

.woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.woocommerce-cart .cart_totals h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    margin-bottom: 20px;
}

.woocommerce-cart .cart_totals table.shop_table th {
    background: transparent !important;
    border: none !important;
    font-weight: 600;
    color: #475569;
    font-size: 15px;
    padding: 10px 0;
}

.woocommerce-cart .cart_totals table.shop_table td {
    background: transparent !important;
    border: none !important;
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    padding: 10px 0;
}

.woocommerce-cart .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart_totals table.shop_table tr.order-total td {
    font-size: 20px;
    color: #EA7236;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 15px;
}

/* Proceed to Checkout Button */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(135deg, #EA7236 0%, #d96225 100%) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(234, 114, 54, 0.3) !important;
    transition: all 0.3s ease !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 114, 54, 0.4) !important;
}

/* Trust features under checkout button */
.custom-cart-trust-box {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
}
.custom-cart-trust-box div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.custom-cart-trust-box i {
    color: #EA7236;
}
