/* =====================================================
   FRONTEND GLOBAL CSS
   File: public/assets/css/frontend.css
   Keep only global + not-yet-separated page CSS
===================================================== */

/* =========================
   GLOBAL
========================= */
:root{
    --primary:#0d6efd;
    --primary2:#0aa2ff;
    --dark:#111827;
    --muted:#64748b;
    --bg:#f4f7f6;
    --card:#ffffff;
    --border:#eef0f3;
    --gold:#fbbf24;
    --green:#16a34a;
    --orange:#ff6b00;
    --danger:#dc3545;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:'Hind Siliguri', sans-serif;
    background:var(--bg);
    color:#222;
    overflow-x:hidden;
    padding-bottom:0;
}

img{
    max-width:100%;
    height:auto;
}

a{
    text-decoration:none;
}

button,
input,
textarea,
select{
    font-family:'Hind Siliguri', sans-serif;
}

/* =========================
   COMMON
========================= */
.common-card{
    background:#fff;
    border-radius:18px;
    border:1px solid var(--border);
    box-shadow:0 8px 22px rgba(0,0,0,.06);
}

.form-control,
.form-select{
    border-radius:13px;
    padding:13px 15px;
    border:1px solid #dbe2ea;
    box-shadow:none!important;
    min-height:48px;
}

.form-control:focus,
.form-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(13,110,253,.10)!important;
}

textarea.form-control{
    min-height:110px;
}

.modal-content{
    border:0;
    border-radius:22px;
    overflow:hidden;
}

.modal-header{
    background:#f8fafc;
}

.field-error{
    color:#dc3545;
    font-size:13px;
    font-weight:700;
    margin-top:6px;
}

.input-error{
    border-color:#dc3545!important;
}

.star,
.bi-star-fill{
    color:var(--gold);
}

/* =========================
   CONTACT PAGE
========================= */
.contact-info-card{
    border:1px solid #ddd!important;
    border-radius:15px;
    background:#fff;
    transition:.3s;
    box-shadow:0 4px 12px rgba(0,0,0,.05)!important;
}

.contact-info-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.1)!important;
    border-color:var(--primary)!important;
}

.icon-box{
    width:55px;
    height:55px;
    background:var(--primary);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin-bottom:15px;
}

.btn-submit{
    border-radius:10px;
    padding:14px 30px;
    font-weight:700;
    transition:.3s;
}

.map-container{
    border-radius:15px;
    overflow:hidden;
    border:1px solid #ddd;
}

/* =========================
   CUSTOMER PROFILE
   এখনো আলাদা করা হয়নি, তাই রাখলাম
========================= */
.profile-sidebar{
    border-radius:18px;
    border:none;
    box-shadow:0 8px 22px rgba(0,0,0,.07);
    background:#fff;
    overflow:hidden;
}

.nav-link-custom{
    padding:13px 16px;
    color:#444;
    text-decoration:none;
    display:flex;
    align-items:center;
    transition:.25s;
    border-bottom:1px solid #f1f1f1;
    cursor:pointer;
    font-weight:700;
    border-radius:10px;
    margin-bottom:6px;
}

.nav-link-custom:hover,
.nav-link-custom.active{
    background:var(--primary);
    color:#fff!important;
}

.nav-link-custom.text-danger:hover{
    background:#dc3545;
    color:#fff!important;
}

.status-badge{
    padding:6px 12px;
    border-radius:50px;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    display:inline-block;
}

.stat-box{
    background:#fff;
    border-radius:16px;
    padding:20px;
    text-align:center;
    border-bottom:4px solid var(--primary);
    box-shadow:0 8px 22px rgba(0,0,0,.06);
    height:100%;
}

.content-card{
    background:#fff;
    border-radius:18px;
    border:none;
    box-shadow:0 8px 22px rgba(0,0,0,.07);
    padding:22px;
}

.product-img-sm{
    width:52px;
    height:52px;
    object-fit:contain;
    background:#f9f9f9;
    border-radius:10px;
}

.claim-img{
    width:55px;
    height:55px;
    object-fit:cover;
    border-radius:12px;
    border:1px solid #e5e7eb;
    background:#f8fafc;
}

.desktop-table thead th{
    background:#e9f2ff;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
    padding:14px;
}

.desktop-table tbody td{
    padding:14px;
    vertical-align:middle;
    font-size:13px;
}

.mobile-list{
    display:none;
}

.mobile-card{
    background:#fff;
    border:1px solid #eef0f3;
    border-radius:16px;
    padding:15px;
    margin-bottom:12px;
    box-shadow:0 5px 16px rgba(0,0,0,.05);
}

/* =========================
   CART PAGE
   cart page আলাদা করা হয়নি, তাই common cart style রাখলাম
========================= */
.cart-card{
    background:#fff;
    border-radius:22px;
    border:1px solid #eef0f3;
    box-shadow:0 12px 32px rgba(0,0,0,.07);
}

.cart-item-row{
    display:flex;
    align-items:center;
    gap:14px;
    border-bottom:1px solid #e5e7eb;
    padding:14px 0;
}

.cart-item-row:last-of-type{
    border-bottom:none;
}

.cart-product-name{
    font-weight:800;
    line-height:1.4;
    word-break:break-word;
}

.cart-price{
    font-weight:900;
    color:var(--primary);
    white-space:nowrap;
}

.product-img{
    width:78px;
    height:78px;
    object-fit:cover;
    border-radius:15px;
    border:1px solid #e5e7eb;
    background:#fff;
    flex-shrink:0;
}

.qty-btn{
    width:34px;
    height:34px;
    border:0;
    background:#eef6ff;
    color:var(--primary);
    font-weight:900;
}

.qty-input{
    width:38px;
    border:0;
    text-align:center;
    font-weight:900;
    background:transparent;
}

.summary-box{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
}

/* =========================
   POLICY / TERMS / RETURN / REFUND PAGE
   generic content page style
========================= */
.page-content,
.policy-content,
.terms-content,
.return-content,
.refund-content{
    background:#fff;
    border-radius:18px;
    border:1px solid var(--border);
    box-shadow:0 8px 22px rgba(0,0,0,.05);
    padding:24px;
    line-height:1.8;
    color:#334155;
}

.page-content h1,
.page-content h2,
.page-content h3,
.policy-content h1,
.policy-content h2,
.policy-content h3,
.terms-content h1,
.terms-content h2,
.terms-content h3,
.return-content h1,
.return-content h2,
.return-content h3,
.refund-content h1,
.refund-content h2,
.refund-content h3{
    color:#111827;
    font-weight:900;
    margin-bottom:14px;
}

.page-content p,
.policy-content p,
.terms-content p,
.return-content p,
.refund-content p{
    margin-bottom:12px;
}

.page-content ul,
.policy-content ul,
.terms-content ul,
.return-content ul,
.refund-content ul{
    padding-left:20px;
}

/* =========================
   RESPONSIVE GLOBAL
========================= */
@media(max-width:991px){
    .desktop-table{
        display:none;
    }

    .mobile-list{
        display:block;
    }

    .profile-sidebar{
        margin-bottom:20px;
    }
}

@media(max-width:768px){
    body{
        padding-bottom:72px;
    }

    .page-content,
    .policy-content,
    .terms-content,
    .return-content,
    .refund-content{
        padding:18px;
        border-radius:15px;
    }
}

@media(max-width:576px){
    .content-card,
    .stat-box{
        padding:15px;
    }

    .cart-item-row{
        align-items:flex-start;
        gap:10px;
    }

    .product-img{
        width:62px;
        height:62px;
        border-radius:12px;
    }
}