/*
Theme Name: AcrylicWala Premium Theme
Theme URI: https://acrylicwala.com
Author: Sanjeet Dayma
Description: Enterprise-level Web-to-Print (W2P) Custom Product Designer Theme inspired by OMGS & VistaPrint. Fully optimized for high conversion and speed.
Version: 2.5 (Cart Cross-sells & My Account Fix)
Text Domain: acrylicwala
*/

/* =========================================
   1. BASE STYLES & GLOBALS
   ========================================= */
html { scroll-behavior: smooth; }
body { background-color: #F8FAFC; color: #111827; overflow-x: hidden; font-family: 'Roboto', sans-serif; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #64748B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #F97316; }

.glass-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* =========================================
   2. ACCORDION (FAQ)
   ========================================= */
.faq-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-accordion-item.active .faq-accordion-content { max-height: 300px; padding-top: 16px; }
.faq-accordion-item.active .faq-icon { transform: rotate(180deg); }

/* =========================================
   3. DYNAMIC MENU STYLING 
   ========================================= */
.desktop-nav ul li a { color: #0F172A; transition: color 0.3s ease; padding-bottom: 4px; }
.desktop-nav ul li a:hover { color: #F97316; }
.desktop-nav ul li.current-menu-item a { color: #F97316; border-bottom: 2px solid #F97316; }
.mobile-nav-wrapper ul li a { color: #0F172A; transition: color 0.3s ease; display: block; }
.mobile-nav-wrapper ul li a:hover, .mobile-nav-wrapper ul li.current-menu-item a { color: #F97316; }

/* =========================================
   4. PREMIUM WOOCOMMERCE SHOP PAGE REDESIGN
   ========================================= */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }

@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; } }

.woocommerce ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px !important; 
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: #F97316 !important;
    transform: translateY(-3px) !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: flex; flex-direction: column; flex-grow: 1; }

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important; 
    aspect-ratio: 1 / 1 !important; 
    object-fit: cover !important; 
    border-radius: 8px !important;
    margin-bottom: 12px !important;
    background-color: #f8fafc !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important; 
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.45 !important; 
    padding-bottom: 2px !important; 
    min-height: 39px !important; 
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

@media (min-width: 1024px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 15px !important;
        line-height: 1.4 !important;
        min-height: 44px !important; 
        margin-bottom: 16px !important;
    }
}

.woocommerce ul.products li.product .button {
    display: block !important;
    background-color: #0F172A !important;
    color: #ffffff !important;
    padding: 10px 4px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    width: 100% !important;
    margin-top: auto !important; 
    white-space: nowrap !important; 
    text-align: center !important;
    transition: all 0.3s ease !important;
}
.woocommerce ul.products li.product .button:hover { background-color: #F97316 !important; color: #ffffff !important; }
@media (min-width: 768px) { .woocommerce ul.products li.product .button { font-size: 12px !important; padding: 12px 10px !important; } }

/* Hide Prices globally on Shop/Category loops */
.woocommerce ul.products li.product .price, 
.woocommerce ul.products li.product .onsale { display: none !important; }

/* Sorting Dropdown */
.woocommerce-result-count { font-size: 13px !important; color: #64748B !important; margin-bottom: 15px !important; font-family: 'Roboto', sans-serif; }
.woocommerce-ordering select {
    width: 100% !important; padding: 10px 15px !important; border: 1px solid #e2e8f0 !important; border-radius: 8px !important;
    font-size: 13px !important; font-family: 'Roboto', sans-serif; background-color: #ffffff !important; color: #0F172A !important;
    font-weight: 500 !important; margin-bottom: 20px !important; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 15px;
}
@media (min-width: 640px) {
    .woocommerce-ordering select { width: auto !important; margin-bottom: 0 !important; }
    .woocommerce-result-count { float: left; margin-top: 10px; margin-bottom: 0 !important; }
    .woocommerce-ordering { float: right; }
    .woocommerce:before, .woocommerce:after { content: " "; display: table; }
    .woocommerce:after { clear: both; }
    .woocommerce ul.products { clear: both; padding-top: 20px !important; }
}

/* =========================================
   5. CUSTOM PRICE BLOCK (Homepage ONLY)
   ========================================= */
.custom-price-block { display: flex; flex-direction: column; gap: 2px; }
.custom-price-block del { display: block; color: #64748B !important; font-size: 0.85rem !important; font-weight: 600 !important; opacity: 0.8; }
.custom-price-block ins { display: block; color: #F97316 !important; font-size: 1.25rem !important; font-weight: 900 !important; text-decoration: none !important; background: transparent !important; }
.custom-price-block > .woocommerce-Price-amount { color: #0F172A !important; font-size: 1.15rem !important; font-weight: 800 !important; }

/* =========================================
   6. WOOCOMMERCE STORE NOTICE
   ========================================= */
p.woocommerce-store-notice { background-color: #0F172A !important; color: #ffffff !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; padding: 12px 20px !important; text-align: center !important; font-size: 13px !important; margin: 0 !important; position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; z-index: 99999 !important; }
p.woocommerce-store-notice a.woocommerce-store-notice__dismiss-link { color: #F97316 !important; background: white; padding: 2px 8px; border-radius: 4px; margin-left: 10px; text-decoration: none !important; }

/* =========================================
   7. WOOCOMMERCE CART, CHECKOUT & MY ACCOUNT 
   ========================================= */
/* Global Forms */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #e2e8f0 !important; border-radius: 8px !important; padding: 12px 16px !important; font-family: 'Roboto', sans-serif !important; font-size: 14px !important; color: #0F172A !important; background-color: #ffffff !important; transition: all 0.3s ease !important; width: 100% !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { outline: none !important; border-color: #F97316 !important; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important; }
.woocommerce form .form-row label { font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; font-size: 13px !important; color: #111827 !important; margin-bottom: 6px !important; display: block !important; }

/* Global Buttons */
.woocommerce button.button, .woocommerce input.button, .woocommerce a.button { background-color: #0F172A !important; color: #ffffff !important; border-radius: 8px !important; padding: 12px 24px !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; text-transform: uppercase !important; font-size: 13px !important; letter-spacing: 0.5px !important; border: none !important; transition: all 0.3s ease !important; }
.woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button:hover { background-color: #F97316 !important; transform: translateY(-2px) !important; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2) !important; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background-color: #F97316 !important; font-size: 15px !important; padding: 16px 28px !important; width: 100% !important; text-align: center !important; }
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background-color: #ea580c !important; }

/* Cart Tables */
.woocommerce table.shop_table { border-collapse: separate !important; border-radius: 12px !important; border: 1px solid #e2e8f0 !important; overflow: hidden !important; width: 100% !important; margin-bottom: 2rem !important; }
.woocommerce table.shop_table th { background-color: #F8FAFC !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; color: #0F172A !important; text-transform: uppercase !important; font-size: 13px !important; padding: 16px !important; }
.woocommerce table.shop_table td { padding: 16px !important; border-top: 1px solid #e2e8f0 !important; vertical-align: middle !important; }

/* Empty Cart Notice */
.woocommerce-cart-empty .cart-empty { text-align: center !important; font-family: 'Montserrat', sans-serif !important; font-size: 1.2rem !important; font-weight: 700 !important; color: #0F172A !important; margin-top: 2rem !important; padding: 2rem !important; background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; }
.woocommerce-cart-empty .return-to-shop { text-align: center !important; margin-bottom: 3rem !important; }

/* =========================================
   8. CART CROSS-SELLS & RELATED PRODUCTS FIX (Strictly Scoped)
   ========================================= */
.woocommerce .cross-sells h2, .woocommerce-page .related h2 {
    font-family: 'Montserrat', sans-serif !important; font-size: 20px !important; font-weight: 800 !important;
    color: #0F172A !important; margin-bottom: 20px !important; text-align: center !important; text-transform: uppercase !important;
}
.woocommerce .cross-sells ul.products, .woocommerce .related ul.products {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 15px !important; margin-top: 20px !important;
}
@media (min-width: 768px) {
    .woocommerce .cross-sells ul.products, .woocommerce .related ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.woocommerce .cross-sells ul.products li.product, .woocommerce .related ul.products li.product {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; padding: 10px !important;
    text-align: center !important; display: flex !important; flex-direction: column !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}
.woocommerce .cross-sells ul.products li.product img, .woocommerce .related ul.products li.product img {
    width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; border-radius: 8px !important; margin-bottom: 12px !important;
}
.woocommerce .cross-sells ul.products li.product .woocommerce-loop-product__title, .woocommerce .related ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', sans-serif !important; font-size: 13px !important; font-weight: 700 !important; color: #0F172A !important;
    margin: 0 0 12px 0 !important; line-height: 1.45 !important; min-height: 39px !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
}
.woocommerce .cross-sells ul.products li.product .button, .woocommerce .related ul.products li.product .button {
    display: block !important; background-color: #0F172A !important; color: #ffffff !important; padding: 10px 4px !important; border-radius: 6px !important;
    font-weight: 800 !important; text-transform: uppercase !important; font-size: 11px !important; width: 100% !important; margin-top: auto !important; white-space: nowrap !important;
}
/* Force Hide Price & Sale Tag in Cross-sells */
.woocommerce .cross-sells ul.products li.product .price, .woocommerce .cross-sells ul.products li.product .onsale,
.woocommerce .related ul.products li.product .price, .woocommerce .related ul.products li.product .onsale {
    display: none !important;
}

/* =========================================
   9. MY ACCOUNT DASHBOARD (Flexbox Layout)
   ========================================= */
.woocommerce-account .woocommerce {
    display: flex !important; flex-wrap: wrap !important; gap: 30px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important; margin-bottom: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
}

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation { width: 25% !important; flex: 0 0 25% !important; }
    .woocommerce-account .woocommerce-MyAccount-content { width: calc(75% - 30px) !important; flex: 1 !important; }
}

/* My Account Sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important; padding: 0 !important; margin: 0 !important; background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; overflow: hidden !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid #e2e8f0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important; padding: 14px 20px !important; font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; font-size: 14px !important; color: #64748B !important; transition: all 0.3s ease !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #F8FAFC !important; color: #F97316 !important; padding-left: 24px !important; border-left: 4px solid #F97316 !important;
}

/* My Account Main Content Box */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-radius: 12px !important; padding: 30px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    font-family: 'Roboto', sans-serif !important; font-size: 15px !important; line-height: 1.8 !important; color: #475569 !important;
}
.woocommerce-account .woocommerce-MyAccount-content p { margin-bottom: 15px !important; }
.woocommerce-account .woocommerce-MyAccount-content a { color: #F97316 !important; font-weight: 600 !important; text-decoration: none !important; }
.woocommerce-account .woocommerce-MyAccount-content a:hover { text-decoration: underline !important; color: #0F172A !important; }
.woocommerce-account .woocommerce-MyAccount-content mark { background-color: #F8FAFC !important; color: #0F172A !important; font-weight: 700 !important; padding: 2px 6px !important; border-radius: 4px !important; }

/* =========================================
   10. PREMIUM LOGIN & REGISTER SPLIT DESIGN
   ========================================= */
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register { max-width: 100% !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; }
.woocommerce-account .u-columns.col2-set { display: flex !important; flex-wrap: wrap !important; background: #ffffff !important; border-radius: 16px !important; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06) !important; overflow: hidden !important; margin: 2rem auto 5rem auto !important; max-width: 950px !important; border: 1px solid #e2e8f0 !important; width: 100% !important; }
.woocommerce-account .u-columns.col2-set .u-column1, .woocommerce-account .u-columns.col2-set .u-column2 { width: 50% !important; float: none !important; padding: 50px 40px !important; }
.woocommerce-account .u-columns.col2-set .u-column1 { background: #ffffff !important; }
.woocommerce-account .u-columns.col2-set .u-column2 { background: #F8FAFC !important; border-left: 1px solid #e2e8f0 !important; }
.woocommerce-account .u-columns.col2-set h2 { font-family: 'Montserrat', sans-serif !important; font-weight: 900 !important; font-size: 24px !important; color: #0F172A !important; margin-bottom: 28px !important; text-align: left !important; position: relative !important; padding-bottom: 12px !important; text-transform: uppercase !important; letter-spacing: 0.5px !important; }
.woocommerce-account .u-columns.col2-set h2::after { content: '' !important; position: absolute !important; left: 0 !important; bottom: 0 !important; width: 45px !important; height: 4px !important; background: #F97316 !important; border-radius: 2px !important; }
.woocommerce-account .woocommerce-form-register p { font-size: 13px !important; line-height: 1.7 !important; color: #64748B !important; margin-bottom: 20px !important; }
.woocommerce-account .woocommerce-form-login .lost_password a { color: #F97316 !important; font-weight: 600 !important; font-size: 13px !important; text-decoration: none !important; display: inline-block !important; margin-top: 10px !important; }
.woocommerce-account .woocommerce-form-login .lost_password a:hover { color: #0F172A !important; text-decoration: underline !important; }

@media (max-width: 768px) {
    .woocommerce-account .u-columns.col2-set { flex-direction: column !important; max-width: 100% !important; border-radius: 12px !important; }
    .woocommerce-account .u-columns.col2-set .u-column1, .woocommerce-account .u-columns.col2-set .u-column2 { width: 100% !important; border-left: none !important; padding: 30px 20px !important; }
    .woocommerce-account .u-columns.col2-set .u-column2 { border-top: 1px solid #e2e8f0 !important; }
}

/* =========================================
   11. STRICTLY SCOPED GENERIC PAGES TYPOGRAPHY 
   ========================================= */
body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white { padding: 2rem 1.5rem !important; border-radius: 12px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important; }
@media (min-width: 768px) { body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white { padding: 4rem !important; } }
body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white h1 { font-family: 'Montserrat', sans-serif !important; font-size: clamp(28px, 4vw, 42px) !important; font-weight: 900 !important; color: #0F172A !important; margin-bottom: 2rem !important; border-bottom: 3px solid #F97316 !important; padding-bottom: 0.5rem !important; display: inline-block !important; }
body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white h2 { font-family: 'Montserrat', sans-serif !important; font-size: 1.5rem !important; font-weight: 800 !important; color: #0F172A !important; margin-top: 2.5rem !important; margin-bottom: 1rem !important; }
body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white p, body.page:not(.home):not(.woocommerce-page):not(.woocommerce-account):not(.woocommerce-checkout):not(.woocommerce-cart) main .bg-white li { font-family: 'Roboto', sans-serif !important; font-size: 1rem !important; line-height: 1.8 !important; color: #475569 !important; margin-bottom: 1.25rem !important; }