/*
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,
.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;
}

/* ==========================================================================
   ৭. উকমার্স সিঙ্গেল প্রোডাক্ট পেজ লেআউট
   ========================================================================== */
.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;
}

.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;
}

/* ==========================================================================
   ৮. অ্যাড টু কার্ট বাটন ও কোয়ান্টিটি ফিল্ড স্পেশাল ফিক্স
   ========================================================================== */
.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;
}

.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;
}

/* ==========================================================================
   ৯. কার্ট ও চেকআউট পেজ স্পেশাল কাস্টমাইজেশন
   ========================================================================== */
.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,
.woocommerce-cart .page-content .wp-block-buttons,
.woocommerce-cart .page-content h2:not(.woocommerce-products-header__title) {
    display: none !important;
}

/* ==========================================================================
   ১১. ইমেজ লোডিং স্পিড বুস্টার (CSS Rendering Optimization)
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    content-visibility: auto;
    contain-intrinsic-size: 0 220px;
}

.post-thumb img, .woocommerce ul.products li.product img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #e5e7eb;
}

/* ==========================================================================
   ১২. শপ পেজ ইমেজ সাইজ ও গ্রিড লেআউট সুপার ফিক্স
   ========================================================================== */
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 15px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    float: none !important;
}

.woocommerce-page ul.products li.product a img,
.woocommerce ul.products li.product a img,
.woocommerce-page .products .product img {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    background-color: #f9fafb !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
}

.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    min-height: 44px !important;
    margin: 10px 0 5px 0 !important;
}

.woocommerce-page ul.products li.product .price {
    font-size: 16px !important;
    color: #22c55e !important;
    margin-bottom: 15px !important;
}

/* ==========================================================================
   ১৩. বিকাশ, নগদ ও রকেট পেমেন্ট মেথড ডিসপ্লে ফিক্স
   ========================================================================== */
.woocommerce-checkout #payment {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 30px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f9fafb !important;
    border: 1px solid #f3f4f6 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    display: block !important;
    cursor: pointer !important;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 10px !important;
    transform: scale(1.2) !important;
    vertical-align: middle !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 25px !important;
    width: auto !important;
    object-fit: contain !important;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 10px !important;
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.woocommerce-checkout #payment div.payment_box input.input-text {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    margin-top: 5px !important;
}

/* ==========================================================================
   ১৪. কাস্টমাইজার লোগো স্লাইডার ও রেসপন্সিভ ফিক্স
   ========================================================================== */
.logo {
    display: flex !important;
    align-items: center !important;
    max-height: 100px !important;
}

.logo a img, .logo img, header.site-header .logo img {
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* ==========================================================================
   ১৫. পুরোনো থিমের এক্সট্রা হেডার চিরতরে হাইড করার ফিক্স
   ========================================================================== */
.whb-header, #woodmart-header, .woodmart-header, .whb-main-header, header:not(.site-header) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

header.site-header {
    display: block !important;
    background-color: #ffffff !important;
    width: 100% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 15px 0 !important;
}

/* রেসপন্সিভ মোবাইল মেনু ফিক্স */
@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; }
    .logo img { height: 40px !important; }
}

@media (max-width: 576px) {
    .woocommerce-page ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .woocommerce-page ul.products li.product a img { height: 150px !important; }
    .single-product div.product {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
    }
}