/*
Theme Name: Dinajpur IT Park Custom Theme
Theme URI: https://dinajpuritpark.com
Author: Your Name
Description: Ultra-fast custom WooCommerce and Blog theme.
Version: 1.0.0
License: GNU General Public License v2 or later
*/

/* ==========================================================================
   ১. গ্লোবাল রিসেট ও বেস স্টাইল (সুপার ফাস্ট লোডিংয়ের জন্য সিস্টেম ফন্ট)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ==========================================================================
   ২. হেডার ও নেভিগেশন মেনু ফিক্স (এক লাইনে পাশাপাশি আনার জন্য)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #1e3a8a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* মেনু কন্টেইনার ফিক্স */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px; /* মেনুর আইটেমগুলোর ভেতরের দূরত্ব */
    align-items: center;
}

.main-navigation ul li a {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.main-navigation ul li a:hover {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

/* অ্যাক্টিভ বা কারেন্ট পেজ মেনু কালার */
.main-navigation ul li.current-menu-item a {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

/* ==========================================================================
   ৩. ব্লগ পোস্ট কার্ড ইফেক্ট (Hover & Shadow)
   ========================================================================== */
.post-card {
    background: #ffffff !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* ==========================================================================
   ৪. উকমার্স শপ ও গ্রিড লেআউট
   ========================================================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 30px 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before, 
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin-bottom: 15px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
    margin: 10px 0 5px 0 !important;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    color: #22c55e !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.woocommerce ul.products li.product .button {
    background-color: #1e3a8a !important;
    color: #fff !important;
    text-align: center;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #111827 !important;
}



/* ==========================================================================
   ৫. সিঙ্গেল ব্লগ পোস্ট পেজ স্টাইলিং (রিডাবিলিটি অপ্টিমাইজেশন)
   ========================================================================== */
.single-post {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e5e7eb;
}

.post-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 14px;
    color: #6b7280;
    display: flex;
    gap: 15px;
}

.post-content {
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

/* পোস্টের ভেতরের প্যারাগ্রাফ এবং হেডিং ফিক্স */
.post-content p {
    margin-bottom: 25px;
}

.post-content h2, .post-content h3 {
    color: #1e3a8a;
    margin: 35px 0 15px 0;
    font-weight: 700;
}

.post-content h2 { font-size: 26px; }
.post-content h3 { font-size: 22px; }

/* পোস্টের ভেতরের ইমেজ রেসপন্সিভ করা */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* রেসপন্সিভ মোবাইল মেনু ফিক্স (ছোট ডিভাইসের জন্য) */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .post-title {
        font-size: 24px;
    }
    .single-post {
        padding: 20px;
    }
}





/* ==========================================================================
   ৭. উকমার্স সিঙ্গেল প্রোডাক্ট পেজ লেআউট (Updated & Powered)
   ========================================================================== */
.single-product div.product {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 40px !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    border: 1px solid #e5e7eb !important;
}

/* ওল্ড ফ্লোটিং মেকানিজম রিমুভ */
.single-product div.product::before,
.single-product div.product::after {
    display: none !important;
}

/* বাম পাশের ইমেজ ব্লক ফিক্স */
.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.single-product div.product .woocommerce-product-gallery img {
    width: 100% !important;
    max-height: 450px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    border: 1px solid #f3f4f6 !important;
}

/* ডান পাশের প্রোডাক্ট সামারি বা টেক্সট ব্লক ফিক্স */
.single-product div.product .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* টাইটেল, প্রাইস ও বাটন কাস্টমাইজেশন */
.single-product div.product .summary .product_title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
}

.single-product div.product .summary .price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #22c55e !important;
    margin-bottom: 10px !important;
}

/* কোয়ান্টিটি ফিল্ড এবং অ্যাড টু কার্ট বাটন এক লাইনে */
.single-product div.product .summary form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.single-product div.product .summary .single_add_to_cart_button {
    background-color: #1e3a8a !important; /* নেভি ব্লু কালার */
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: none !important;
    transition: background 0.2s ease !important;
}

.single-product div.product .summary .single_add_to_cart_button:hover {
    background-color: #111827 !important;
}

/* নিচের ডেসক্রিপশন ট্যাব এরিয়া ফুল-উইডথ করা */
.woocommerce-tabs.wc-tabs-wrapper {
    grid-column: 1 / -1 !important; /* গ্রিডের দুই কলাম জুড়ে জায়গা নেবে */
    margin-top: 30px !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 20px !important;
}

.woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 20px !important;
    list-style: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0 0 10px 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    font-weight: 600 !important;
    color: #4b5563 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #1e3a8a !important;
}

/* মোবাইল স্ক্রিন ফিক্স */
@media (max-width: 768px) {
    .single-product div.product {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
    }
}



/* ==========================================================================
   ৮. অ্যাড টু কার্ট বাটন ও কোয়ান্টিটি ফিল্ড স্পেশাল ফিক্স
   ========================================================================== */
/* ফর্মটিকে এক লাইনে পাশাপাশি আনা */
.single-product div.product .summary form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 25px 0 !important;
}

/* কোয়ান্টিটি ইনপুট বক্স ফিক্স */
.single-product div.product .summary form.cart .quantity {
    margin: 0 !important;
    display: inline-block !important;
}

.single-product div.product .summary form.cart .quantity .qty {
    width: 60px !important;
    height: 45px !important;
    padding: 5px !important;
    text-align: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* অ্যাড টু কার্ট বাটন স্টাইল ফিক্স */
.single-product div.product .summary form.cart .single_add_to_cart_button {
    background-color: #1e3a8a !important; /* আমাদের থিমের নেভি ব্লু কালার */
    color: #ffffff !important;
    height: 45px !important;
    padding: 0 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.single-product div.product .summary form.cart .single_add_to_cart_button:hover {
    background-color: #111827 !important; /* হোভারে ডার্ক কালার */
}

/* সেলস ব্যাজ (Sale!) ফিক্স */
.single-product div.product .onsale {
    background-color: #ef4444 !important;
    color: #fff !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    top: 15px !important;
    left: 15px !important;
}




/* ==========================================================================
   ৯. কার্ট ও চেকআউট পেজ স্পেশাল কাস্টমাইজেশন (Ultra-Clean Layout)
   ========================================================================== */
/* কুপন কোড ও আপডেট কার্ট বাটন ফিক্স */
.woocommerce-cart table.cart td.actions .coupon {
    display: flex !important;
    gap: 10px !important;
    float: none !important;
}

.woocommerce-cart table.cart td.actions .coupon input.input-text {
    width: 150px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
}

.woocommerce-cart table.cart td.actions .button {
    height: 40px !important;
    background-color: #4b5563 !important;
    color: #fff !important;
    border-radius: 6px !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0 20px !important;
}

/* চেকআউট ফর্মের ইনপুট ফিল্ডগুলো সুন্দর করা */
.woocommerce-checkout .form-row input.input-text, 
.woocommerce-checkout .form-row select, 
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    background-color: #fff !important;
}

.woocommerce-checkout .form-row input.input-text:focus {
    border-color: #1e3a8a !important;
    outline: none !important;
}

/* চেকআউট পেজের দুই কলাম লেআউট */
@media (min-width: 992px) {
    .woocommerce-checkout #customer_details {
        width: 55% !important;
        float: left !important;
        margin-right: 5% !important;
    }
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 40% !important;
        float: left !important;
    }
    .woocommerce-checkout::after {
        content: "" !important;
        display: block !important;
        clear: both !important;
    }
}



/* ==========================================================================
   ১০. কার্ট পেজের অপ্রয়োজনীয় ক্রস-সেল ও প্লাস বক্স রিমুভ ফিক্স
   ========================================================================== */
.woocommerce-cart .cross-sells {
    display: none !important;
}

/* যদি গুটেনবার্গ ব্লকের অতিরিক্ত প্লাস বক্স বা খালি কন্টেইনার থাকে */
.woocommerce-cart .page-content .wp-block-buttons,
.woocommerce-cart .page-content h2:not(.woocommerce-products-header__title) {
    /* আপনি যদি "You may be interested in" সম্পূর্ণ সরাতে চান */
    display: none !important;
}

