/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   DACZAR.IN - MYNTRA STYLE CUSTOMIZATION FOR WOODMART & WOOCOMMERCE
   ========================================================================== */

/* 1. MYNTRA BRAND COLOR VARIABLES & GLOBAL RESETS */
:root {
    --myntra-pink: #ff3f6c;
    --myntra-pink-hover: #e73961;
    --myntra-orange: #ff905a;
    --myntra-dark: #282c3f;
    --myntra-subtext: #535766;
    --myntra-light-bg: #f5f5f6;
    --myntra-border: #eaeaec;
    --myntra-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body, .whb-header, .wd-nav-main, button, input {
    font-family: var(--myntra-font) !important;
    color: var(--myntra-dark);
}

/* 2. HEADER & NAVIGATION (MYNTRA STYLE) */
.whb-general-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--myntra-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Navigation Links */
.wd-nav-main > li > a {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--myntra-dark) !important;
    padding: 20px 14px !important;
    transition: color 0.2s ease !important;
}

.wd-nav-main > li > a:hover, 
.wd-nav-main > li.current-menu-item > a {
    color: var(--myntra-pink) !important;
}

.wd-nav-main > li.item-level-0.wd-event-hover:hover > a {
    border-bottom: 4px solid var(--myntra-pink) !important;
}

/* Search Bar (Myntra Pill Input Style) */
.whb-column .wd-search-form,
.whb-header .searchform {
    background-color: var(--myntra-light-bg) !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
}

.whb-header .searchform input[type="text"] {
    background: transparent !important;
    border: none !important;
    font-size: 13px !important;
    color: var(--myntra-dark) !important;
    padding-left: 14px !important;
}

.whb-header .searchform input[type="text"]::placeholder {
    color: #94969f !important;
    font-weight: 400 !important;
}

.whb-header .searchform:focus-within {
    background-color: #ffffff !important;
    border-color: var(--myntra-border) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Header Icons (Wishlist, Cart, Profile) */
.wd-tools-element .wd-tools-icon {
    color: var(--myntra-dark) !important;
}

.wd-tools-element:hover .wd-tools-icon,
.wd-tools-element:hover .wd-tools-text {
    color: var(--myntra-pink) !important;
}

.wd-header-cart .wd-cart-number,
.wd-header-wishlist .wd-tools-count {
    background-color: var(--myntra-pink) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 50% !important;
}

/* 3. PRODUCT CARDS & GRID SHOWCASE (MYNTRA STYLE) */
.product-grid-item,
.wd-product {
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border: 1px solid transparent !important;
    background: #ffffff !important;
}

.product-grid-item:hover,
.wd-product:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--myntra-border) !important;
    transform: translateY(-3px) !important;
}

/* Product Image Wrapper */
.product-element-top {
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 3/4 !important;
}

.product-element-top img {
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.product-grid-item:hover .product-element-top img {
    transform: scale(1.05) !important;
}

/* Myntra Wishlist Button Overlay on Image */
.wd-wishlist-btn,
.product-grid-item .wd-action-btn.wd-wishlist-icon a {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    transition: all 0.2s ease !important;
}

.product-grid-item .wd-action-btn.wd-wishlist-icon a:hover {
    background: #ffffff !important;
    color: var(--myntra-pink) !important;
    transform: scale(1.1) !important;
}

/* Brand Name & Product Title */
.wd-entities-title,
.product-grid-item .wd-entities-title a {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--myntra-dark) !important;
    text-transform: capitalize !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.product-grid-item .wd-product-cats,
.product-grid-item .product-title-sub {
    font-size: 12px !important;
    color: var(--myntra-subtext) !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Pricing Display (Myntra Standard format: Rs. 799 Rs. 1999 (60% OFF)) */
.price {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    margin-top: 6px !important;
}

.price ins, 
.price > .amount, 
.price > span:not(del) {
    font-weight: 700 !important;
    color: var(--myntra-dark) !important;
    text-decoration: none !important;
}

.price del, 
.price del .amount {
    color: #94969f !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
}

/* Custom Discount Percentage Badge */
.onsale, 
.wd-product-label.onsale {
    background-color: var(--myntra-orange) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    letter-spacing: 0.3px !important;
}

/* Add to Cart Button (Myntra Primary Button Style) */
.wd-add-btn a,
.single_add_to_cart_button,
.button.product_type_simple {
    background-color: var(--myntra-pink) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-radius: 4px !important;
    border: none !important;
    padding: 12px 20px !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 12px rgba(255, 63, 108, 0.25) !important;
}

.wd-add-btn a:hover,
.single_add_to_cart_button:hover,
.button.product_type_simple:hover {
    background-color: var(--myntra-pink-hover) !important;
    box-shadow: 0 6px 16px rgba(255, 63, 108, 0.35) !important;
}

/* 4. SINGLE PRODUCT PAGE (MYNTRA DETAILED LAYOUT) */
.single-product .product-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--myntra-dark) !important;
}

.single-product .price {
    font-size: 24px !important;
}

.single-product .price ins .amount {
    font-size: 24px !important;
    font-weight: 800 !important;
}

/* Size Selection Swatches */
.wd-swatches-product .wd-swatch,
.variations .value .wd-swatch {
    border: 1px solid var(--myntra-border) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--myntra-dark) !important;
    transition: all 0.2s ease !important;
}

.variations .value .wd-swatch.active-swatch,
.variations .value .wd-swatch:hover {
    border-color: var(--myntra-pink) !important;
    color: var(--myntra-pink) !important;
}

/* Buy Now Button Secondary Outline */
.wd-buy-now-btn {
    background-color: #ffffff !important;
    color: var(--myntra-dark) !important;
    border: 1px solid var(--myntra-border) !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

.wd-buy-now-btn:hover {
    border-color: var(--myntra-dark) !important;
    background-color: var(--myntra-light-bg) !important;
}

/* 5. MOBILE NAVIGATION & STICKY BOTTOM TOOLBAR (MYNTRA APP VIBE) */
@media (max-width: 767px) {
    .wd-toolbar {
        background: #ffffff !important;
        border-top: 1px solid var(--myntra-border) !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.06) !important;
    }
    
    .wd-toolbar .wd-tools-element a {
        color: var(--myntra-subtext) !important;
        font-size: 10px !important;
        font-weight: 600 !important;
    }
    
    .wd-toolbar .wd-tools-element.active a,
    .wd-toolbar .wd-tools-element a:hover {
        color: var(--myntra-pink) !important;
    }
    
    .single-product form.cart {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 12px 16px !important;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.12) !important;
        z-index: 99999 !important;
    }
}
