/* =========================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --pally-green: #28a745;
    --pally-white: #ffffff;
    --light-gray: #f8f9fa;
    --pally-dark: #002e12;
    --pally-text-gray: #ccc;
}

body {
    background-color: var(--pally-white);
    margin: 0;
    font-family: Arial, sans-serif;
}

a { text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* =========================================
   2. HEADER SECTION
   ========================================= */
.main-header {
    background-color: var(--pally-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    gap: 15px;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.brand-logo img {
    height: 45px;  /* মোট সাইজ একটু বাড়ালাম যাতে ভিতরের লোগো বেশি ছোট না হয়ে যায় */
    width: 45px;   /* গোল করার জন্য height ও width সমান রাখতে হবে */
    border-radius: 50%; /* পুরো বক্সটিকে গোল করবে */
    
    /* নতুন যুক্ত করা অংশ */
    background-color: #ffffff; /* লোগোর পিছনে একটি সাদা ব্যাকগ্রাউন্ড তৈরি হবে */
    padding: 6px; /* এই প্যাডিং-ই আপনার লোগোর চারপাশে সাদা জায়গা তৈরি করবে */
    box-sizing: border-box; /* প্যাডিং দিলেও যেন মোট সাইজ (45px) এর বেশি না বাড়ে */
    object-fit: contain; /* লোগোটি যেন চ্যাপ্টা না হয়ে যায় */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* (অপশনাল) হালকা শ্যাডো দিলে দেখতে সুন্দর লাগবে */
}

.brand-logo h1 {
    font-size: 22px;
    color: white;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    font-weight: bold;
}

/* Mobile Toggle Button (Hidden on Desktop) */
.mobile-toggle-btn {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

/* Search Bar */
.search-bar {
    flex-grow: 1;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    outline: none;
    box-sizing: border-box; /* Important for padding */
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pally-green);
    cursor: pointer;
    padding: 8px 12px;
}

/* User Menu (Login & Cart) */
.user-menu {
    display: flex;
    align-items: center;
}

.login-btn {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-btn {
    color: var(--pally-green);
    background: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   3. MOBILE DRAWER MENU (SLIDE-IN)
   ========================================= */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-side-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    background: var(--pally-green);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.mobile-menu-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-cat-list li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

/* =========================================
   4. MAIN LAYOUT (HOME & SIDEBAR)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-main-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.side-menu-wrapper {
    width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.vertical-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.vertical-menu li a:hover {
    background: #f9f9f9;
    color: var(--pally-green);
}

.main-banner-area {
    flex: 1;
    min-width: 0;
}

/* Slider */
.hero-slider {
    display: block;
    width: 100%;
    overflow: hidden;
}

.hero-slider img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.hero-slider > div:not(:first-child) {
    display: none;
}
.hero-slider.slick-initialized > div {
    display: block !important;
}

/* =========================================
   5. PRODUCT GRID STYLES
   ========================================= */
.pally-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-title a {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    color: var(--pally-green);
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background: var(--pally-green);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #218838;
}

/* =========================================
   6. WOOCOMMERCE LOGIN / REGISTER TABS
   ========================================= */
.woocommerce-account .u-columns.tab-active-mode {
    display: block !important;
    max-width: 450px;
    margin: 0 auto;
}

.woocommerce-account .u-column1, 
.woocommerce-account .u-column2 {
    width: 100% !important;
    padding: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.woocommerce form .form-row input.input-text {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.login-tab-nav {
    display: flex;
    max-width: 450px;
    margin: 30px auto 0;
}

.login-tab-nav button {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    background: #f1f1f1;
    color: #666;
    transition: 0.3s;
    border-radius: 8px 8px 0 0;
}

.login-tab-nav button.active {
    background: #fff;
    color: var(--pally-green);
    border-top: 3px solid var(--pally-green);
}

.woocommerce-account h2 { display: none; }

/* Login Header Text */
.woocommerce-form-login::before {
    content: "Welcome to PallyShop!\A Please login."; 
    white-space: pre; 
    display: block;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.woocommerce-form-login .woocommerce-LostPassword {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* =========================================
   7. FOOTER SECTION
   ========================================= */
.main-footer {
    background-color: var(--pally-dark);
    color: white;
    padding: 60px 0 0;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    color: #fff;
    margin-top: 0;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    font-weight: bold;
}

.footer-col p, .footer-col ul li a {
    font-size: 14px;
    color: var(--pally-text-gray);
    line-height: 1.6;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--pally-green); padding-left: 5px; }

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--pally-green);
    transform: translateY(-3px);
}

/* App Download */
.coming-soon-badge {
    font-size: 12px;
    color: #ffd700;
    font-style: italic;
    margin-bottom: 8px !important;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.app-links img {
    width: 130px;
    height: auto;
    cursor: not-allowed;
    opacity: 0.8;
}

.app-links img:hover { opacity: 1; }

/* Payment Methods */
.payment-methods-section {
    border-top: 1px solid #222;
    padding: 25px 0;
    background: #001f0c;
    text-align: center;
}

.payment-title {
    font-size: 12px; 
    color: #888; 
    margin: 0 0 10px; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-img-mobile { display: none; }
.payment-img-desktop { display: inline-block; max-height: 40px; width: auto; }

.footer-bottom {
    background: #000;
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* =========================================
   8. RESPONSIVE / MOBILE CSS (FIXED)
   ========================================= */
@media (max-width: 768px) {
    /* Header Structure */
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-toggle-btn {
        display: block; /* Show hamburger menu */
    }

    .brand-logo h1 {
        font-size: 18px;
    }

    /* ---- FIXED SEARCH BAR ---- */
    .search-bar {
        display: block !important; /* Force show */
        width: 100%;
        margin: 5px 0 10px 0;
        order: 3; /* Places search bar below logo and user menu */
    }
    
    .search-bar input {
        width: 100%;
        box-sizing: border-box; /* Fixes width issue */
    }

    .search-bar button {
        right: 15px; /* Adjust search icon position */
    }
    /* -------------------------- */

    .user-menu {
        width: 100%;
        justify-content: space-between;
        order: 2; /* Between logo and search bar */
    }

    .login-btn {
        font-size: 0; /* Hide text, show icon only */
    }
    .login-btn i {
        font-size: 20px;
    }

    /* Home Layout */
    .home-main-section {
        flex-direction: column;
    }

    .side-menu-wrapper {
        display: none; 
    }

    /* Product Grid Mobile */
    .pally-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col {
        min-width: 100%;
    }

    .footer-col h3 {
        display: inline-block;
        border-bottom: 2px solid var(--pally-green);
        padding-bottom: 5px;
    }

    .social-icons {
        justify-content: center;
    }

    .app-links {
        align-items: center;
    }

    /* Payment Images */
    .payment-img-desktop { display: none; }
    .payment-img-mobile { 
        display: inline-block; 
        max-width: 100%; 
        height: auto; 
    }
}

@media (max-width: 480px) {
    /* Extra small devices fixes */
    ul.products, .pally-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}
/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #fff;
}

/* মোবাইলের জন্য পজিশন একটু অ্যাডজাস্ট করা */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
/* ================================
   HOMEPAGE – FINAL BUTTON DESIGN
   ================================ */

.ps-buy-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ADD TO CART – OUTLINE */
.ps-btn.ps-add-cart {
    flex: 1;
    background: #fff;
    color: #28a745;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 10px 0;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.ps-btn.ps-add-cart:hover {
    background: #28a745;
    color: #fff;
}

/* BUY NOW – SOLID */
.ps-btn.ps-buy-now {
    flex: 1;
    background: #5fbf3f;
    color: #fff;
    border: 2px solid #5fbf3f;
    border-radius: 10px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.ps-btn.ps-buy-now:hover {
    background: #45a92f;
    transform: translateY(-1px);
}

/* ICON FIX */
.ps-btn i {
    margin-right: 6px;
    font-size: 13px;
}

/* MOBILE */
@media (max-width: 768px) {
    .ps-buy-buttons {
        flex-direction: column;
    }
}
/* =====================================
   SINGLE PRODUCT – BUY NOW BUTTON
   ===================================== */

.ps-single-buy-now-wrap {
    margin-top: 12px;
}

.ps-single-buy-now {
    width: 100%;
    display: inline-block;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
}

.ps-single-buy-now:hover {
    background: #45a92f;
    transform: translateY(-1px);
}

/* Mobile spacing */
@media (max-width: 768px) {
    .ps-single-buy-now {
        font-size: 15px;
        padding: 13px 0;
    }
}
/* =====================================
   SINGLE PRODUCT – FINAL BUTTON LAYOUT
   ===================================== */

/* Wrap whole cart area */
.single-product form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- QUANTITY BOX ---------- */
.single-product .quantity {
    width: 100%;
    display: flex;
    justify-content: center;
}

.single-product .quantity input.qty {
    width: 100%;
    max-width: 140px;
    height: 44px;
    text-align: center;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid #5fbf3f;
}

/* ---------- ADD TO CART (OUTLINE, FULL WIDTH) ---------- */
.single-product button.single_add_to_cart_button {
    width: 100%;
    background: #fff !important;
    color: #28a745 !important;
    border: 2px solid #28a745 !important;
    border-radius: 12px !important;
    padding: 14px 0 !important;
    font-size: 16px;
    font-weight: 700;
    transition: 0.25s;
}

.single-product button.single_add_to_cart_button:hover {
    background: #28a745 !important;
    color: #fff !important;
}

/* ---------- BUY NOW (SOLID, FULL WIDTH) ---------- */
.ps-single-buy-now-wrap {
    margin-top: 0;
}

.ps-single-buy-now {
    width: 100%;
    padding: 14px 0 !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .single-product .quantity input.qty {
        max-width: 100%;
    }
}
/* =====================================
   MY ACCOUNT – PRO DASHBOARD DESIGN
   ===================================== */

.woocommerce-account .woocommerce {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 30px auto;
    background: #f9f9f9;
}

/* ---------- LEFT SIDEBAR ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 260px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    transition: all 0.25s ease;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--pally-green);
    color: #fff;
}

/* ---------- RIGHT CONTENT AREA ---------- */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Headings */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-bottom: 14px;
    color: #222;
}

/* Dashboard welcome text */
.woocommerce-MyAccount-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* Links inside dashboard */
.woocommerce-MyAccount-content a {
    color: var(--pally-green);
    font-weight: 600;
}

/* ---------- TABLE (Orders / Downloads) ---------- */
.woocommerce-account table {
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-account table th {
    background: #f3f7f4;
    font-weight: 700;
    padding: 12px;
}

.woocommerce-account table td {
    padding: 12px;
}

/* ---------- FORMS ---------- */
.woocommerce-account input,
.woocommerce-account select,
.woocommerce-account textarea {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
}

/* Save button */
.woocommerce-account button.button {
    background: var(--pally-green);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.woocommerce-account button.button:hover {
    background: #218838;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
    }
}
/* ==============================
   FORCE BANGLADESH – HIDE COUNTRY
   ============================== */

/* Hide country field */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}
/* =====================================
   CHECKOUT PAGE – PRO DESIGN (FINAL)
   ===================================== */

.woocommerce-checkout .woocommerce {
    max-width: 1000px;
    margin: 30px auto;
}

/* Card look */
.woocommerce-checkout form.checkout {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* Headings */
.woocommerce-checkout h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}

/* Two column layout */
@media (min-width: 768px) {
    .woocommerce-checkout .col2-set {
        display: flex;
        gap: 30px;
    }
    .woocommerce-checkout .col-1,
    .woocommerce-checkout .col-2 {
        width: 50%;
    }
}

/* Inputs */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea {
    height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.25s;
}

.woocommerce-checkout textarea {
    height: auto;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.15);
    outline: none;
}

/* Order review card */
#order_review {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* Order table */
.shop_table th,
.shop_table td {
    padding: 12px 8px;
    font-size: 14px;
}

/* Payment box */
#payment {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #eee;
}

/* Payment methods */
.wc_payment_method {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    transition: 0.25s;
}

.wc_payment_method:hover {
    border-color: #28a745;
}

/* Place order button */
#place_order {
    width: 100%;
    background: #28a745 !important;
    color: #fff !important;
    padding: 14px 0 !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px !important;
    transition: 0.25s;
}

#place_order:hover {
    background: #218838 !important;
    transform: translateY(-1px);
}

/* Notice */
.woocommerce-message {
    border-left: 5px solid #28a745;
    border-radius: 8px;
}

/* Mobile */
@media (max-width: 767px) {
    .woocommerce-checkout form.checkout {
        padding: 20px;
    }
}
/* =====================================
   BLOCK CART – PROCEED TO CHECKOUT (FINAL)
   ===================================== */

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;

    background-color: #28a745 !important;
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 18px 0 !important;

    border-radius: 12px !important;
    text-decoration: none !important;
    border: none !important;

    box-shadow: 0 8px 20px rgba(40,167,69,0.25) !important;
    transition: all 0.25s ease !important;
}

/* Hover (desktop only) */
@media (hover: hover) {
    .wp-block-woocommerce-cart .wc-block-cart__submit-button:hover {
        background-color: #218838 !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(40,167,69,0.35) !important;
    }
}
/* FIX: SHOW LOGIN TEXT ON MOBILE */
@media (max-width: 768px) {
    .login-btn {
        font-size: 14px !important;
        display: inline-flex !important;
        align-items: center;
        white-space: nowrap;
    }
}
/* ===============================
   FORCE HIDE DESKTOP SIDEBAR ON MOBILE
   =============================== */
@media (max-width: 768px) {

    /* hide sidebar itself */
    .home-main-section .side-menu-wrapper {
        display: none !important;
    }

    /* ensure banner takes full width */
    .home-main-section {
        flex-direction: column !important;
    }

    .home-main-section .main-banner-area {
        width: 100% !important;
    }
}
}
/* ==================================================
   FIX: EPS PAYMENT LOGO (PALLYSHOP)
   ================================================== */

/* ১. EPS এর ডিফল্ট সব ভাঙা বা পুরোনো লোগো চিরতরে গায়েব করা */
li.wc_payment_method.payment_method_eps label img {
    display: none !important;
}

/* ২. শুধুমাত্র আমাদের দেওয়া কাস্টম লোগোটি (pally-eps-logo) শো করানো */
li.wc_payment_method.payment_method_eps label img.pally-eps-logo {
    display: inline-block !important;
    max-height: 35px !important;
    width: auto !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
}

/* ৩. (Go Digit এর মত) পেমেন্ট মেথডের নিচের অতিরিক্ত বা ভাঙা ডেসক্রিপশন বক্স হাইড করা */
.payment_method_eps .payment_box.payment_method_eps {
    display: none !important;
}
/* রিভিউ ইমেজ আপলোড সেকশন ডিজাইন */
.comment-form-images label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

#review_images {
    padding: 10px;
    border: 1px dashed #007bff; /* আপনার থিমের নীল রঙের সাথে মিল রেখে */
    border-radius: 8px;
    width: 100%;
    background: #f8f9fa;
    cursor: pointer;
}

.review-images-gallery a img:hover {
    transform: scale(1.1);
    transition: 0.3s;
    border-color: #007bff !important;
}

/* PallyShop Custom Footer Underline Fix */
.main-footer .footer-col h3 {
    border-bottom: none !important;
    text-decoration: none !important;
}

/* যদি ডিজাইনে লাইনটি pseudo-element (after/before) দিয়ে করা থাকে */
.main-footer .footer-col h3::after,
.main-footer .footer-col h3::before {
    display: none !important;
    content: none !important;
}

/* ==================================================
   PALLYSHOP BD - HERO LANDING PAGE DESIGN (FULL UPDATED)
   ================================================== */
.ps-hero-landing-layout { font-family: Arial, sans-serif; background-color: #f8f9fa; padding-bottom: 50px; margin: -30px; /* Bypass Woocommerce wrapper padding */ }

/* 1. HERO BANNER (PallyShop Green Gradient) */
.ps-hero-banner { background: linear-gradient(135deg, #002e12 0%, #1b5e20 100%); padding: 60px 40px; color: #fff; max-width: 1200px; margin: 30px auto; border-radius: 20px; box-shadow: 0 15px 40px rgba(0, 46, 18, 0.15); }
.ps-hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }

.ps-hero-title { font-size: 42px; font-weight: bold; line-height: 1.2; margin-bottom: 20px; color: #ffffff; margin-top: 0; }
.ps-hero-subtitle { margin-bottom: 40px; }
.ps-hero-subtitle p { font-size: 18px; line-height: 1.6; color: #e8f5e9; margin: 0; }

.ps-hero-cta-btn { display: inline-block; background: #25d366; color: #fff; padding: 15px 35px; font-size: 18px; font-weight: bold; border-radius: 8px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); text-transform: uppercase; border: none; }
.ps-hero-cta-btn:hover { background: #1eb858; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

.ps-hero-guarantee-pro { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c8e6c9; margin-top: 20px; font-weight: bold; }
.ps-hero-guarantee-pro i.fa-bolt { color: #ffc107; font-size: 16px; }
.ps-hero-guarantee-pro i.fa-shield-alt { color: #25d366; margin-left: 5px; }

.ps-hero-image-area { text-align: center; position: relative; }
.ps-hero-img-fluid { max-width: 100%; height: auto; border-radius: 15px; transform: scale(1.05); animation: floatImg 4s ease-in-out infinite; }
@keyframes floatImg { 0% { transform: translateY(0px) scale(1.05); } 50% { transform: translateY(-15px) scale(1.05); } 100% { transform: translateY(0px) scale(1.05); } }

/* 2. DASHBOARD STYLE TRUST BOXES */
.ps-trust-pro-boxes-bar { background: #f8f9fa; padding: 40px 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); border-bottom: 1px solid #eef0f2; }
.ps-trust-boxes-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ps-trust-box-item { background: #fff; border-left: 4px solid #28a745; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; display: flex; align-items: center; padding: 15px; box-sizing: border-box; }
.ps-trust-box-item::before { display: none !important; }

.ps-trust-box-content { display: flex; flex-direction: row; align-items: center; gap: 15px; text-align: left; width: 100%; position: relative; }

.ps-box-icon i { font-size: 24px; color: #1b5e20; background: #e8f5e9; padding: 12px; border-radius: 8px; margin: 0; transition: all 0.3s ease; }
.ps-box-text { font-size: 15px; font-weight: bold; color: #333; line-height: 1.4; padding: 0; }

.ps-trust-box-item:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 46, 18, 0.1); }
.ps-trust-box-item:hover .ps-box-icon i { background: #1b5e20; color: #fff; }

.ps-content-wrapper { max-width: 1000px; margin: 50px auto 0; padding: 0 15px; }

/* 3. DYNAMIC VIDEO BOX */
.ps-video-section-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); margin-bottom: 40px; border: 1px solid #eef0f2; text-align: center; }
.ps-video-title { font-size: 26px; font-weight: bold; color: #002e12; margin-bottom: 25px; margin-top: 0; }
.ps-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.ps-video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* 4. BOTTOM TABS */
.ps-product-bottom-tabs { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee; margin-bottom: 40px; }
.ps-tabs-header { display: flex; gap: 30px; border-bottom: 2px solid #eef0f2; margin-bottom: 30px; flex-wrap: wrap; margin-top: 0; }
.ps-tab-btn { background: none; border: none; font-size: 18px; font-weight: bold; color: #666; padding: 0 0 15px 0; cursor: pointer; position: relative; transition: color 0.3s; display: flex; align-items: center; gap: 8px; }
.ps-tab-btn i { font-size: 16px; margin-right: 5px; }
.ps-tab-btn:hover, .ps-tab-btn.active { color: #1b5e20; }
.ps-tab-btn.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: #1b5e20; border-radius: 3px 3px 0 0; }

.ps-tab-panel { display: none; animation: fadeInTab 0.4s ease-in-out; }
.ps-tab-panel.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Dynamic FAQ inside Tabs */
.ps-faq-section { display: flex; flex-direction: column; gap: 10px; }
.ps-faq-item { border: 1px solid #eee; margin-bottom: 0; border-radius: 6px; background: #f9f9f9; overflow: hidden; }
.ps-faq-toggle { width: 100%; text-align: left; background: none; border: none; padding: 15px; font-size: 16px; font-weight: bold; color: #333; cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; transition: background 0.3s ease; }
.ps-faq-toggle:hover { background: #f1f1f1; }
.ps-faq-content { max-height: 0; overflow: hidden; transition: all 0.3s ease; padding: 0 15px; color: #555; font-size: 14px; line-height: 1.6; }
.ps-faq-toggle.active { color: #1b5e20; background: #e8f5e9; }
.ps-faq-toggle i { transition: transform 0.3s; }

/* 5. PACKAGE & ACTION BOX (Fixed Button Gap like Go Digit) */
.ps-action-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 2px solid #1b5e20; text-align: center; }
.ps-action-title { font-size: 26px; font-weight: bold; color: #002e12; margin-bottom: 20px; margin-top: 0; }
.ps-product-price-large { font-size: 32px; font-weight: bold; color: #28a745; margin-bottom: 30px; }
.ps-product-price-large del { color: #999; font-size: 20px; margin-right: 10px; font-weight: normal; }
.ps-product-price-large ins { text-decoration: none; }

/* বাটন কন্টেইনারে অ্যাগ্রেসিভ ফ্লেক্স গ্যাপ */
.ps-woo-form-wrapper form.cart,
.ps-woo-form-wrapper form.cart .woocommerce-variation-add-to-cart { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important; /* একদম পারফেক্ট গ্যাপ */
    width: 100% !important;
    max-width: 600px;
    margin: 0 auto !important; 
}
.ps-woo-form-wrapper .quantity { display: none !important; }

/* গ্লোবাল বাটন স্টাইল */
.ps-woo-form-wrapper form.cart button.single_add_to_cart_button, 
.ps-woo-form-wrapper form.cart button.buy_now_button,
.ps-woo-form-wrapper form.cart a.ps-buy-now,
.ps-woo-form-wrapper form.cart button[name*="buy_now"] { 
    flex: 1 1 45% !important; /* দুটোর সাইজ সমান হবে */
    margin: 0 !important; /* উ-কমার্সের ডিফল্ট মার্জিন জিরো করা হলো */
    padding: 16px !important; 
    border-radius: 8px !important; 
    font-size: 18px !important; 
    font-weight: bold !important; 
    text-transform: uppercase !important; 
    border: none !important; 
    cursor: pointer !important; 
    transition: 0.3s !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important; 
}

/* স্পেসিফিক Add to Cart বাটন */
.ps-woo-form-wrapper form.cart button.single_add_to_cart_button { background: #1b5e20 !important; color: #fff !important; }
.ps-woo-form-wrapper form.cart button.single_add_to_cart_button:hover { background: #002e12 !important; transform: translateY(-2px); }

/* স্পেসিফিক Buy Now বাটন */
.ps-woo-form-wrapper form.cart button.buy_now_button,
.ps-woo-form-wrapper form.cart a.ps-buy-now,
.ps-woo-form-wrapper form.cart button[name*="buy_now"] { background: #25d366 !important; color: #fff !important; }
.ps-woo-form-wrapper form.cart button.buy_now_button:hover,
.ps-woo-form-wrapper form.cart a.ps-buy-now:hover,
.ps-woo-form-wrapper form.cart button[name*="buy_now"]:hover { background: #1eb858 !important; transform: translateY(-2px); }

.ps-secure-badge-bottom { margin-top: 25px; padding: 15px; background: #ffebeb; color: #d9534f; border-radius: 8px; font-size: 14px; font-weight: bold; border: 1px dashed #d9534f; display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; }

/* 6. COUPON BOX & COUNTDOWN DESIGN */
.ps-special-offer-box { background: rgba(255, 255, 255, 0.1); border: 1px dashed #25d366; border-radius: 12px; padding: 15px; margin: 20px 0; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.ps-offer-header { color: #ffc107; font-size: 18px; font-weight: bold; margin-bottom: 10px; text-transform: uppercase; }
.ps-coupon-row { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.ps-coupon-code { color: #002e12; font-size: 18px; font-weight: bold; padding: 8px 15px; letter-spacing: 1px; }
.ps-copy-btn { background: #28a745; color: #fff; border: none; padding: 10px 15px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.ps-copy-btn:hover { background: #1b5e20; }

.ps-countdown-timer { display: flex; justify-content: center; align-items: center; gap: 10px; color: #fff; font-weight: bold; }
.time-box { background: #002e12; padding: 8px 12px; border-radius: 6px; display: flex; flex-direction: column; min-width: 50px; }
.time-box span { font-size: 20px; line-height: 1; color: #25d366; }
.time-box small { font-size: 11px; color: #c8e6c9; text-transform: uppercase; margin-top: 3px; }

/* 7. BOTTOM STICKY FLOATING CTA BAR */
#ps-floating-cta-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); box-shadow: 0 -5px 20px rgba(0,0,0,0.1); padding: 12px 15px; z-index: 9998; text-align: center; display: none; border-top: 2px solid #25d366; }
.ps-floating-btn { display: block; max-width: 400px; margin: 0 auto; background: #25d366; color: #fff; padding: 14px 20px; font-size: 18px; font-weight: bold; border-radius: 8px; text-decoration: none; text-transform: uppercase; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); animation: pulseBtn 2s infinite; }
.ps-floating-btn:hover { background: #1eb858; color: #fff; }

@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* RESPONSIVE DESIGN (INCLUDES ALL MOBILE FIXES) */
@media (max-width: 992px) {
    .ps-hero-banner { margin: 20px; border-radius: 15px; padding: 40px 20px; }
    .ps-hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .ps-hero-title { font-size: 32px; }
    .ps-hero-guarantee-pro { justify-content: center; }
    .ps-trust-boxes-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media (max-width: 768px) {
    .ps-hero-banner { margin: 15px; padding: 30px 15px; border-radius: 12px; }
    .ps-action-box { padding: 25px 15px; }
    .ps-product-bottom-tabs { padding: 20px; margin-bottom: 25px; }
    .ps-tabs-header { gap: 15px; }
    .ps-tab-btn { font-size: 15px; padding-bottom: 10px; }
    .ps-hero-guarantee-pro { font-size: 13px; }
    .ps-video-section-box { padding: 25px 15px; margin-bottom: 25px; }

    /* বাটন ফিক্স (মোবাইলে নিচে নিচে) */
    .ps-woo-form-wrapper form.cart,
    .ps-woo-form-wrapper form.cart .woocommerce-variation-add-to-cart {
        flex-direction: column !important; 
        gap: 12px !important;
    }
    .ps-woo-form-wrapper form.cart button.single_add_to_cart_button, 
    .ps-woo-form-wrapper form.cart button.buy_now_button,
    .ps-woo-form-wrapper form.cart a.ps-buy-now {
        width: 100% !important;
        flex: none !important;
    }

    /* ট্রাস্ট বক্স ফিক্স (মোবাইলে ২ কলাম, ছোট ফন্ট) */
    .ps-trust-boxes-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .ps-box-text { font-size: 13px; }
    .ps-box-icon i { font-size: 20px; padding: 10px; }

    /* কুপন এবং টাইমার মোবাইল ফিক্স */
    .ps-special-offer-box { padding: 12px 10px; margin: 15px 0; }
    .ps-offer-header { font-size: 15px; }
    
    .ps-coupon-row { 
        display: flex; 
        flex-direction: row; 
        width: 100%; 
        justify-content: space-between;
    }
    .ps-coupon-code { font-size: 15px; padding: 8px 10px; width: 65%; text-align: center; }
    .ps-copy-btn { padding: 8px 10px; font-size: 14px; width: 35%; }

    .ps-countdown-timer { flex-wrap: wrap; gap: 5px; }
    .time-box { padding: 5px 8px; min-width: 40px; }
    .time-box span { font-size: 16px; }
    .time-box small { font-size: 9px; }
}

@media (max-width: 480px) {
    /* খুব ছোট মোবাইলের জন্য ট্রাস্ট বক্স ১ কলাম */
    .ps-trust-boxes-container { grid-template-columns: 1fr; }
}

/* ==================================================
   PALLYSHOP: SINGLE PRODUCT PAGE BUTTONS FIX (DESKTOP ONLY)
   ================================================== */
@media (min-width: 768px) {
    .ps-woo-form-wrapper form.cart {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        margin-top: 20px;
    }

    /* Quantity Box Design */
    .ps-woo-form-wrapper form.cart .quantity {
        margin: 0 !important;
    }
    .ps-woo-form-wrapper form.cart .quantity input.qty {
        height: 48px !important;
        width: 70px !important;
        border-radius: 6px !important;
        border: 2px solid #eee !important;
        padding: 0 10px !important;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
    }

    /* Common Button Styles */
    .ps-woo-form-wrapper form.cart button,
    .ps-woo-form-wrapper form.cart a.button {
        height: 48px !important;
        padding: 0 20px !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border-radius: 6px !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        flex: 1; /* দুটি বাটন যেন সমান জায়গা নেয় */
        min-width: 160px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Add to Cart Button - Primary Green */
    .ps-woo-form-wrapper form.cart button.single_add_to_cart_button {
        background-color: #28a745 !important;
        color: #ffffff !important;
    }
    .ps-woo-form-wrapper form.cart button.single_add_to_cart_button:hover {
        background-color: #1b5e20 !important;
        transform: translateY(-2px);
    }

    /* Buy Now Button - Dark Green (কালো কালার রিমুভ করে ব্র্যান্ড কালার) */
    .ps-woo-form-wrapper form.cart button.buy_now_button,
    .ps-woo-form-wrapper form.cart a.buy_now_button,
    .ps-woo-form-wrapper form.cart [name="buy_now"] {
        background-color: #1b5e20 !important;
        color: #ffffff !important;
    }
    .ps-woo-form-wrapper form.cart button.buy_now_button:hover,
    .ps-woo-form-wrapper form.cart a.buy_now_button:hover,
    .ps-woo-form-wrapper form.cart [name="buy_now"]:hover {
        background-color: #28a745 !important;
        transform: translateY(-2px);
    }
}

