/*
Theme Name: SilverMart Pro One-Page Checkout & Landing Theme
Author: Alom Islam
Description: Ultra-clean, Mobile & Desktop Responsive Elementor + WooCommerce One-Page Checkout Theme without CartFlows. Features inline order confirmation (no redirect), live quantity +/- controls, discount badge, and animated buttons.
Version: 4.0
*/

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

:root {
    --primary-green: #10983e;
    --dark-green: #052e16;
    --cta-orange: #ea580c;
    --bg-light: #f8fafc;
    --border-color: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #475569;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.55;
    overflow-x: hidden;
}

/* =========================================
   অ্যানিমেটেড বাটন (হুবহু স্ক্রিনশটের মতো ও স্মুথ অ্যানিমেশন)
   ========================================= */
@keyframes pulse-shake {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 152, 62, 0.7); }
    45% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(16, 152, 62, 0); }
    60% { transform: scale(1.04) rotate(-1.5deg); }
    75% { transform: scale(1.04) rotate(1.5deg); }
    90% { transform: scale(1.04) rotate(-1deg); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 152, 62, 0); }
}

@keyframes pulse-orange {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.75); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(234, 88, 12, 0); }
    70% { transform: scale(1.02) rotate(-0.8deg); }
    85% { transform: scale(1.02) rotate(0.8deg); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.animated-order-btn,
.animated-order-btn .elementor-button {
    background: linear-gradient(135deg, #16a34a 0%, #0d7a36 100%) !important;
    color: #ffffff !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 13px 38px !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255,255,255,0.85) !important;
    box-shadow: 0 8px 22px rgba(16, 152, 62, 0.35);
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    animation: pulse-shake 2s infinite !important;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    width: 100% !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 15px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    animation: pulse-orange 2s infinite !important;
    margin-top: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.woocommerce #payment #place_order:hover {
    background: #c2410c !important;
}

/* =========================================
   ল্যান্ডিং পেজ স্ট্রাকচার (Elementor Editable Blocks)
   ========================================= */
.sm-hero {
    background: linear-gradient(180deg, #062b17 0%, #0b6630 55%, #118a3e 100%);
    color: #ffffff;
    text-align: center;
    padding: 28px 16px 42px;
}

.sm-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.sm-brand-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #090d16;
    border: 1px solid #334155;
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.sm-brand-badge strong {
    font-size: 14px;
    letter-spacing: 1.2px;
    color: #ffffff;
}

.sm-brand-badge small {
    font-size: 9px;
    color: #94a3b8;
    letter-spacing: 0.6px;
}

.sm-hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 auto 22px;
    color: #ffffff;
}

.sm-price-stack {
    max-width: 660px;
    margin: 0 auto 20px;
}

.sm-ribbon-top {
    background: #ffffff;
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
    padding: 7px 24px;
    border-radius: 50px;
    text-decoration: line-through;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.sm-ribbon-bottom {
    background: #ffffff;
    color: #065f46;
    font-size: 22px;
    font-weight: 700;
    padding: 9px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.sm-timer-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.sm-blue-box {
    background: #1d70b8;
    border: 1px solid #60a5fa;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 6px;
    min-width: 66px;
    line-height: 1.15;
    box-shadow: 0 3px 8px rgba(0,0,0,0.22);
}

.sm-blue-box span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.sm-video-area {
    background: #ffffff;
    padding: 28px 16px 38px;
    text-align: center;
}

.sm-video-container {
    max-width: 600px;
    margin: 26px auto 0;
}

.sm-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.14);
    background: #000;
}

.sm-video-frame iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.sm-feature-band {
    background: #dcfce7;
    padding: 38px 16px;
}

.sm-feature-white-box {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    padding: 26px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.sm-feature-title-border {
    border: 2px solid #1e293b;
    border-radius: 8px;
    padding: 12px 18px;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    line-height: 1.35;
}

.sm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 16.5px;
    line-height: 1.5;
    color: #1e293b;
}

.sm-green-tick {
    background: #16a34a;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 3px;
}

.sm-infographic-band {
    background: #ffffff;
    padding: 34px 16px;
    text-align: center;
}

.sm-info-card {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 22px;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.sm-info-heading {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.sm-info-heading span {
    background: #0284c7;
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
}

.sm-info-sub {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 20px;
}

.sm-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
    margin-top: 15px;
}

.sm-spec-pill {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   মেইন ফোকাস: প্রফেশনাল চেকআউট সেকশন (Desktop + Mobile)
   ========================================= */
.sm-checkout-band {
    background: #f1f5f9;
    padding: 40px 16px 60px;
}

.sm-checkout-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
}

.custom-checkout-wrapper {
    max-width: 880px;
    margin: 0 auto;
    border: 2px solid #1e293b;
    border-radius: 14px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    position: relative;
}

/* টপ প্রোডাক্ট কার্ড + ডিসকাউন্ট ব্যাজ */
.top-product-banner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 22px;
}

.top-product-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-product-banner-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.top-product-banner-info h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.top-product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-regular-price {
    font-size: 14px;
    color: #ef4444;
    text-decoration: line-through;
    font-weight: 600;
}

.top-sale-price {
    font-size: 17px;
    font-weight: 700;
    color: #16a34a;
}

.discount-pill-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}

/* ২-কলাম চেকআউট গ্রিড */
.checkout-2col-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 26px;
    align-items: start;
}

/* বাম কলাম: অর্ডার সামারি ও কোয়ান্টিটি কন্ট্রোল */
.checkout-order-summary-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    border: none !important;
}

.woocommerce-checkout-review-order-table thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 14px !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    text-align: left;
}

.woocommerce-checkout-review-order-table thead th.product-total,
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 14.5px;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-bottom: none !important;
    font-size: 17px;
    font-weight: 700;
    background: #f0fdf4;
    color: #065f46;
}

.checkout-item-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkout-item-flex img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.checkout-prod-title {
    font-weight: 700;
    font-size: 14.5px;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* প্রফেশনাল কোয়ান্টিটি কন্ট্রোল বক্স */
.qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-label-text {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

.qty-control-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.qty-btn {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 26px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #cbd5e1;
}

.qty-val {
    padding: 0 11px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

/* শিপিং অপশন */
#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left;
}

#shipping_method li {
    margin-bottom: 6px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    cursor: pointer;
}

#shipping_method li input[type="radio"] {
    accent-color: #16a34a;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* ডান কলাম: Billing Details (ডাবল স্টার ফিক্স ও ক্লিন ইনপুট) */
.checkout-billing-box h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 8px;
}

.woocommerce form .form-row {
    margin-bottom: 13px !important;
    padding: 0 !important;
}

.woocommerce form .form-row label {
    font-weight: 600 !important;
    font-size: 14.5px !important;
    color: #1e293b !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.woocommerce form .form-row label .required {
    color: #dc2626 !important;
    text-decoration: none !important;
    border: none !important;
}

.woocommerce form .form-row input.input-text {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    background: #ffffff !important;
    color: #0f172a !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce form .form-row input.input-text:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
    outline: none !important;
}

/* পেমেন্ট বক্স (Cash on Delivery সবুজ হাইলাইট) */
.woocommerce-checkout #payment {
    background: #ecfdf5 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 8px !important;
    padding: 14px !important;
    margin-top: 14px !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #bbf7d0 !important;
    padding: 0 0 10px 0 !important;
    margin: 0 0 10px 0 !important;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 6px !important;
    font-size: 14.5px;
    font-weight: 600;
}

.woocommerce-checkout #payment div.payment_box {
    background: #d1fae5 !important;
    color: #065f46 !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    margin-top: 6px !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

.woocommerce-privacy-policy-text {
    font-size: 12px !important;
    color: #475569 !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

/* =========================================
   ইনলাইন অর্ডার কনফার্মেশন কার্ড (কোনো রিডাইরেক্ট ছাড়াই!)
   ========================================= */
.sm-inline-success-card {
    background: #ffffff;
    border: 2px solid #16a34a;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.12);
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.sm-success-icon {
    width: 68px;
    height: 68px;
    background: #16a34a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}

.sm-success-title {
    font-size: 26px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 8px;
}

.sm-success-sub {
    font-size: 16px;
    color: #334155;
    margin: 0 0 22px;
}

.sm-order-receipt-box {
    max-width: 520px;
    margin: 0 auto 22px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
}

.sm-receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.sm-receipt-row:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

/* =========================================
   ফুটার সেকশন
   ========================================= */
.sm-footer {
    background: #000000;
    color: #ffffff;
    padding: 36px 16px 22px;
}

.sm-footer-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: center;
}

.sm-footer-links {
    margin: 10px 0 14px;
}

.sm-footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    margin-right: 16px;
    font-size: 13.5px;
}

.sm-social-icons {
    display: flex;
    gap: 10px;
}

.sm-social-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.sm-footer-contact p {
    margin: 8px 0;
    font-size: 14.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sm-copyright {
    text-align: center;
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #1e293b;
    font-size: 12.5px;
    color: #94a3b8;
}

/* =========================================
   মোবাইল রেসপন্সিভ অপ্টিমাইজেশন (Mobile View)
   ========================================= */
@media (max-width: 768px) {
    .sm-hero { padding: 20px 12px 32px; }
    .sm-hero-title { font-size: 21px; }
    .sm-ribbon-top { font-size: 16px; padding: 6px 14px; }
    .sm-ribbon-bottom { font-size: 17px; padding: 7px 14px; }
    .sm-blue-box { font-size: 18px; padding: 6px 10px; min-width: 54px; }
    .sm-feature-white-box { padding: 18px 14px; }
    .sm-feature-title-border { font-size: 18px; padding: 10px 12px; }
    .sm-checklist li { font-size: 15px; }
    .sm-specs-grid { grid-template-columns: 1fr; }
    .sm-checkout-band { padding: 28px 10px 45px; }
    .sm-checkout-heading { font-size: 20px; margin-bottom: 16px; }
    .custom-checkout-wrapper { padding: 14px 12px; border-radius: 10px; }
    .top-product-banner-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
    .checkout-2col-grid { grid-template-columns: 1fr; gap: 18px; }
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td { padding: 9px 10px !important; font-size: 13.5px; }
    #shipping_method li { justify-content: flex-start; }
    .sm-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .sm-social-icons { justify-content: center; }
    .sm-footer-contact p { justify-content: center; }
    .animated-order-btn, .animated-order-btn .elementor-button {
        font-size: 18px !important;
        padding: 12px 24px !important;
        width: 100%;
    }
    .woocommerce #payment #place_order {
        font-size: 18px !important;
        padding: 14px 16px !important;
    }
}
