/*
Theme Name: WoodMart Child
Theme URI: https://example.com/
Description: Child theme for WoodMart
Author: Insync Tech Solutions
Template: woodmart
Version: 1.0
*/

/* Add your custom styles below */
.home .wd-content-layout{padding-block: 0 !important;}
.product-grid-item .wd-buttons {
    display: flex;
}

/* Wishlist first */
.product-grid-item .wd-wishlist-btn {
    order: 1;
}

/* Quick view / view more second */
.product-grid-item .quick-view {
    order: 2;
}

/* Cart third */
.product-grid-item .wd-add-btn {
    order: 3;
}

/* Change cart icon to download icon f129,*/
.wd-add-btn {
    --wd-btn-icon: "\f136" !important;
}

/* Wrapper */
.custom-download-wrapper {
    position: relative;
    display: inline-block;
}

/* Download button */
.custom-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating panel */
.custom-download-panel {

    position: absolute;

    bottom: 50px;
    right: 0;

    width: 180px;

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: all 0.2s ease;

    z-index: 9999;
}

/* Show */
.custom-download-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items */
.download-option {

    display: flex;

    justify-content: space-between;

    padding: 10px 12px;

    border-radius: 8px;

    text-decoration: none;

    color: #333;

    transition: background 0.2s;
}

.download-option:hover {
    background: #f5f5f5;
}

.single_add_to_cart_button{display: none !important;}
/* Hide product price */
.product-grid-item .price {
    display: none !important;
}

/* Hide product category */
.product-grid-item .wd-entities-title + div,
.product-grid-item .product-categories,
.product-grid-item .wd-product-cats {
    display: none !important;
}

.product-grid-item {
    position: relative;
}

/* Floating panel */
.download-options-panel {

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) scale(0.95);

    width: 200px;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(8px);

    border-radius: 14px;

    padding: 10px;

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transition: all 0.2s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Show */
.download-options-panel.active {

    opacity: 1;
    visibility: visible;

    transform: translate(-50%, -50%) scale(1);
}

/* Each option */
.download-option {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px;

    border-radius: 10px;

    text-decoration: none;

    color: #222;

    margin-bottom: 6px;

    transition: background 0.2s ease;
}

.download-option:hover {
    background: #f5f5f5;
}

.download-option span {
    opacity: 0.6;
    font-size: 12px;
}

#custom-auth-modal {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;
}

#custom-auth-modal.active {
    display: flex;
}

.auth-modal-inner {

    width: 420px;

    background: white;

    border-radius: 16px;

    padding: 30px;

    position: relative;
}

.close-auth-modal {

    position: absolute;

    right: 20px;
    top: 20px;

    cursor: pointer;

    font-size: 24px;
}

.auth-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 20px;
}

.auth-tab {

    flex: 1;

    padding: 12px;

    border: none;

    cursor: pointer;
}

.auth-tab.active {
    background: black;
    color: white;
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-content input {

    width: 100%;

    padding: 12px;

    margin-bottom: 12px;
}
#download-modal {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;
}

#download-modal.active {
    display: flex;
}

.download-modal-inner {

    width: 400px;

    background: white;

    border-radius: 16px;

    padding: 30px;
}

.download-list div {

    padding: 10px 0;

    border-bottom: 1px solid #eee;
}
.summary-inner>.price, div.quantity,.sku_wrapper, .product-tabs-wrapper {
    display: none !important;
    
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields {

    display: none !important;
}

/* FULL WIDTH ORDER AREA */
.woocommerce-checkout-review-order {

    width: 100% !important;
}

/* CENTERED CHECKOUT CARD */
#order_review {

    max-width: 600px;

    margin: 40px auto;

    background: white;

    padding: 40px;

    border-radius: 20px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* CLEAN TABLE */
.shop_table {

    border: none !important;
}

.shop_table td,
.shop_table th {

    border: none !important;
}

/* REMOVE EXTRA BORDERS */
.woocommerce table.shop_table {

    border: none;
}

.page-title,
.woodmart-checkout-steps,
.wd-sidebar {

    display: none !important;
}

.cancel-checkout-btn {

    display: inline-block;

    margin-top: 15px;

    background: #ccc;

    color: #000;

    padding: 12px 18px;

    border-radius: 8px;

    text-decoration: none;
}
#place_order {

    width: 100%;

    border-radius: 12px;

    padding: 16px;

    font-size: 16px;
}

.cancel-checkout-btn {

    display: block;

    text-align: center;

    margin-top: 16px;
}
/* HIDE SUBTOTAL */
.cart-subtotal {
    display: none !important;
}

/* REMOVE TABLE BORDERS */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {

    border: none !important;
}

/* CLEAN PRODUCT ROWS */
.woocommerce-checkout-review-order-table tr.cart_item td {

    padding: 18px 0;
}

/* ASSETS HEADING */
.woocommerce-checkout-review-order-table thead th {

    font-size: 18px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

/* ASSET LAYOUT */
.checkout-asset-item {

    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;
}

/* IMAGE */
.checkout-asset-image img {

    width: 70px;

    height: 70px;

    object-fit: cover;

    border-radius: 10px;
}

/* CONTENT */
.checkout-asset-content {

    flex: 1;
}

/* TITLE */
.checkout-asset-title {

    font-size: 16px;

    font-weight: 600;
}

/* PRICE */
.checkout-asset-price {

    font-size: 16px;

    font-weight: 600;
}

/* REMOVE QUANTITY */
.product-quantity {
    display: none !important;
}

/* FULL WIDTH PRODUCT CELL */
.woocommerce-checkout-review-order-table .product-name {

    width: 100%;
}
.checkout .customer-details, .checkout td.product-total
{
    display: none !important;
}
.checkout .checkout-order-review, #order_review{
    max-width:80% !important;
    margin: 0 auto !important;
}

.variations,
.single_variation_wrap {

    display: none !important;
}

.asset-download-options {

    display: flex;

    gap: 16px;

    margin-top: 20px;
}

.asset-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 14px 22px;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 600;
}

/* FREE */
.asset-btn.free-download-btn {

    background: #f3f3f3;

    color: #000;
}

/* PREMIUM */
.asset-btn.premium-btn {

    background: #000;

    color: #fff;
}

/* PRODUCT CARD SAME HEIGHT */
.products .product-grid-item {

    display: flex;

    flex-direction: column;

    height: 100%;
}

/* IMAGE WRAPPER */
.products .product-image-wrap {

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 12px;
}

/* IMAGE */
.products .product-image-wrap img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

/* CONTENT STAYS ALIGNED */
.products .wd-product-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.wd-wishlist-icon {
    --wd-btn-icon: "\f149" !important;
}

.wd-header-wishlist{display:none !important;}

/* MODAL LOADING STATE */
#custom-auth-modal.auth-loading {

    pointer-events: none;
}

/* DIM CONTENT */
#custom-auth-modal.auth-loading
.auth-modal-content {

    opacity: .6;
}

/* SPINNER */
#custom-auth-modal.auth-loading:after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    width: 42px;

    height: 42px;

    margin-left: -21px;

    margin-top: -21px;

    border: 3px solid #ddd;

    border-top-color: #000;

    border-radius: 50%;

    animation: shamrockSpin .7s linear infinite;

    z-index: 9999;
}

@keyframes shamrockSpin {

    to {
        transform: rotate(360deg);
    }
}
