/* -----------------------------------------
   1. Google Fonts & Variables
-------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;600;700&display=swap');

:root {
    --primary-red: #dc2626;
    --primary-green: #16a34a;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --bkash-color: #e2136e;
    --bkash-light: #fff0f6;
}

/* -----------------------------------------
   2. Base Styles
-------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------
   3. Header Styles
-------------------------------------------- */
header {
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
}

.logo span {
    color: var(--primary-green);
}

.btn-header {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
}

.btn-header:hover {
    background-color: #15803d;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Animated Glowing Border Order Button
   ========================================================================== */
.btn-order {
    position: relative;
    display: block;
    text-align: center;
    background-color: var(--dark-bg);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    margin: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

.btn-order::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            var(--primary-red),
            #ff4d4d,
            transparent,
            var(--primary-green),
            #4ade80,
            transparent);
    z-index: -2;
    animation: rotateBorder 3s linear infinite;
}

.btn-order::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--dark-bg);
    border-radius: 9px;
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-order:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.btn-order:hover::after {
    background: #000000;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   5. Dynamic Hero Slider Section
   ========================================================================== */
.hero {
    position: relative;
    color: #ffffff;
    text-align: center;
    padding: 110px 20px;
    overflow: hidden;
    background-color: #111827;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active-slide {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    background-color: var(--primary-red);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero h1 span {
    color: #22c55e;
}

.hero p {
    font-size: 18px;
    color: #d1d5db;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-hero {
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.btn-hero:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

/* -----------------------------------------
   6. Features Section
-------------------------------------------- */
.features {
    padding: 60px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .features .container {
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .features-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px;
        padding-bottom: 10px;
    }

    .feature-card {
        flex: 0 0 75%;
        max-width: 280px;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   7. Pro One-Page Checkout Card Layout (Left: Product, Right: Form)
   ========================================================================== */
.checkout-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--primary-red);
}

.checkout-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 1150px;
}

.checkout-card {
    width: 100%;
    background-color: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

/* --- Left Column: Product Info & Color Switcher --- */
.checkout-left {
    padding: 35px;
    border-right: 1px solid var(--border-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.checkout-left .square-image-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.checkout-left .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.checkout-card:hover .product-img {
    transform: scale(1.02);
}

.checkout-left .discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}

.product-info-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.checkout-left .meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 600;
}

.checkout-left .fabric-type {
    background-color: #f3f4f6;
    padding: 3px 10px;
    border-radius: 6px;
}

.checkout-left .total-sales {
    color: #b45309;
}

.checkout-left .rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.checkout-left .prod-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.price-offer-list {
    list-style: none;
    margin-bottom: 20px;
}

.price-offer-list li {
    font-size: 14px;
    padding: 8px 12px;
    background: #f0fdf4;
    border-left: 4px solid var(--primary-green);
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-offer-list li:nth-child(2) {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.color-selector-box {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.color-selector-box h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.color-variant-buttons {
    display: flex;
    gap: 12px;
}

.variant-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.variant-dot.active {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    transform: scale(1.08);
}

.btn-white {
    background-color: #ffffff;
}

.btn-green {
    background-color: #006a4e;
}

.btn-black {
    background-color: #111827;
}

.checkout-price-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.checkout-price-display .price-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
}

.checkout-price-display .current-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-green);
}

.checkout-price-display .old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

/* --- Right Column: Checkout Billing Form --- */
.checkout-right {
    padding: 35px;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
}

.checkout-form-header {
    margin-bottom: 25px;
}

.checkout-form-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.checkout-form-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.required {
    color: var(--primary-red);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background-color: var(--white);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==========================================================================
   NEW: Custom Radio Groups (Area & Payment Methods)
   ========================================================================== */
.payment-radio-group,
.area-radio-group {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.payment-radio-group input,
.area-radio-group input {
    display: none;
    /* ডিফল্ট ব্রাউজার রেডিও ইনপুট হাইড */
}

.payment-label,
.area-label {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* সিলেক্টেড রেডিও বাটন ডিজাইন */
.payment-radio-group input:checked+.payment-label,
.area-radio-group input:checked+.area-label {
    border-color: var(--primary-green);
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.08);
}

/* ==========================================================================
   NEW: Premium bKash Payment Box & Inputs
   ========================================================================== */
.bkash-payment-box {
    background: var(--bkash-light);
    border: 2px dashed var(--bkash-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(226, 19, 110, 0.04);
    animation: slideDownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bkash-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #fbcfe8;
    padding-bottom: 8px;
}

.bkash-logo {
    height: 32px;
    width: auto;
}

.bkash-title {
    color: var(--bkash-color);
    font-size: 16px;
    font-weight: 700;
}

.bkash-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #4d4d4d;
    line-height: 1.5;
}

.bkash-info b {
    color: var(--bkash-color);
    font-size: 16px;
    background: #fce7f3;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ট্রানজেকশন আইডি স্পেশাল ইনপুট */
.trx-input {
    border: 1px solid #f472b6 !important;
    background: var(--white) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trx-input:focus {
    border-color: var(--bkash-color) !important;
    box-shadow: 0 0 0 3px rgba(226, 19, 110, 0.2) !important;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   NEW: Live Invoice Summary Box Design
   ========================================================================== */
.invoice-summary-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.invoice-summary-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.discount-row {
    color: var(--primary-red);
    font-weight: 600;
}

.discount-text {
    color: var(--primary-red);
}

.invoice-divider {
    border: 0;
    border-top: 1px dashed var(--border-color);
    margin: 10px 0;
}

.invoice-total {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0;
}

/* সাবমিট বোতাম ইন্টিগ্রেশন */
.btn-submit-checkout {
    width: 100%;
    margin: 15px 0 0 0 !important;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

/* -----------------------------------------
   8. Footer
-------------------------------------------- */
/* ==========================================================================
   Premium Multi-Column Footer Design
   ========================================================================== */
footer {
    background-color: #0f172a;
    /* আরও ডিপ গর্জিয়াস ডার্ক ব্যাকগ্রাউন্ড */
    color: #9ca3af;
    padding: 60px 0 0 0;
    font-size: 15px;
    border-top: 3px solid var(--primary-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

/* শিরোনামের নিচে ছোট লাল আন্ডারলাইন এফেক্ট */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: var(--primary-green);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #9ca3af;
}

/* কন্টাক্ট লিস্ট স্টাইল */
.footer-contact-list {
    list-style: none;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-contact-list li .icon {
    font-size: 16px;
}

.footer-contact-list a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list li:hover a {
    color: var(--primary-green);
}

/* প্রিমিয়াম ফেসবুক বাটন ডিজাইন */
.footer-social-links {
    margin-top: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fb-btn {
    background-color: #1877f2;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.fb-btn:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

.fb-icon {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 18px;
    background: var(--white);
    color: #1877f2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* কপিরাইট বটম বার */
.footer-bottom {
    background-color: #0b0f19;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
    font-size: 13px;
    color: #6b7280;
}

/* রেসপন্সিভ মোবাইল ডিজাইন */
@media (max-width: 768px) {
    footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .footer-col h4 {
        margin-bottom: 15px;
    }
}

footer a:hover {
    color: var(--primary-green);
}

/* ==========================================================================
   Developer Signature CSS
   ========================================================================== */
.footer-bottom-flex {
    display: table;
    width: 100%;
    padding: 10px 0;
}

.copyright-text {
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
    color: #6b7280;
}

.developer-sign {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    font-size: 13px;
    color: #6b7280;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dev-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.3s ease;
    border-bottom: 1px dashed transparent;
}

.dev-link span {
    display: inline-block;
    animation: heartBeat 1.5s infinite;
}

/* ডেভেলপারের নামের উপর হোভার করলে লাল বা সবুজ কালার এফেক্ট */
.dev-link:hover {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

/* লাভ আইকনের বিট অ্যানিমেশন */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* মোবাইল রেসপন্সিভ (মোবাইলে একটির নিচে আরেকটি সেন্টারে আসবে) */
@media (max-width: 768px) {

    .footer-bottom-flex,
    .copyright-text,
    .developer-sign {
        display: block;
        text-align: center;
        width: 100%;
    }

    .developer-sign {
        margin-top: 10px;
    }
}

/* ==========================================================================
   9. Floating Utility Buttons (Music & WhatsApp)
   ========================================================================== */
.music-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
}

.music-playing {
    background-color: var(--primary-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999;
    transition: all 0.3s ease;
    animation: waPulse 2s infinite;
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* -----------------------------------------
   10. Responsive Media Queries
-------------------------------------------- */
@media (max-width: 992px) {
    .checkout-card {
        grid-template-columns: 1fr;
    }

    .checkout-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 25px;
    }

    .checkout-left .square-image-holder {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .checkout-right {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-radio-group,
    .area-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 576px) {
    .checkout-section {
        padding: 30px 0;
    }

    .checkout-left,
    .checkout-right {
        padding: 20px 15px;
    }

    .product-info-box h3 {
        font-size: 20px;
    }

    .checkout-form-header h3 {
        font-size: 18px;
    }
}