@font-face {
      font-family: 'SutonnyOMJ';
      src: url('font/SutonnyOMJ.ttf') format('truetype');
      font-display: swap;
    }
    @font-face {
      font-family: 'SutonnyMJ';
      src: url('font/SUTOM___0.TTF') format('truetype');
      font-display: swap;
    }
    body {
      font-family: 'SutonnyOMJ', Arial, sans-serif;
      font-size: 17px; margin:0; padding:0; background:#f8f9fa; color:#333;
    }

    a { text-decoration:none; color:inherit; }

    /* Top Bar */
    .top_bar { background:#f1f1f1; padding:5px 20px; display:flex; justify-content:space-between; align-items:center; font-size:14px; }
    .top_bar a { color:#0EA5E9; margin-left:10px; font-weight:bold; }

    /* Header Menu */
    .header_menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: #ffffff;
        padding: 10px 20px;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }
    .logo_bar img { max-height: 50px; margin-right: 20px; }

    .homBer { display:flex; flex-wrap:wrap; align-items:center; background-color:#fff; border-radius:5px; padding:5px 10px; }
    .homBer a { color:#0EA5E9; margin-left:10px; font-weight:500; padding:5px 10px; border-radius:5px; transition: background 0.2s, color 0.2s; }
    .homBer a:hover { background: rgba(14,165,233,0.1); color:#0B79B8; }

    /* Search Box */
    .search_box { margin-left:15px; }
    .search_box input[type="text"] { padding:5px 10px; border-radius:5px; border:1px solid #ccc; font-size:14px; width:200px; }
    .search_box button { padding:5px 10px; border:none; border-radius:5px; background:#0EA5E9; color:#fff; cursor:pointer; font-weight:bold; transition: background 0.2s; }
    .search_box button:hover { background:#0B79B8; }

    /* Container */
    .container { width:90%; max-width:1200px; margin:120px auto 40px auto; background:#fff; padding:30px; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,0.08); }

    /* Headings */
    h1 { font-size:2.2rem; color:#2c3e50; margin-bottom:15px; font-weight:bold; }
    h2 { font-size:1.6rem; color:#34495e; margin-top:30px; margin-bottom:15px; border-bottom:2px solid #e2e2e2; padding-bottom:5px; }

    /* Product image */
    .product-wrap { display:flex; gap:30px; align-items:flex-start; flex-wrap:wrap; }
    .product-img { width:100%; max-width:350px; display:block; border-radius:12px; margin-bottom:10px; transition: transform 0.3s ease; }
    .product-img:hover { transform: scale(1.03); }

    /* Buy section */
    .buy-section { margin-top:15px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
    .buy-btn, .checkout-btn {
        display:inline-block;
        padding:10px 18px;
        border-radius:8px;
        font-weight:700;
        color:#fff;
        background:#0EA5E9;
        text-decoration:none;
    }
    .checkout-btn { background:#0B79B8; }
    .price-tag { font-size:18px; font-weight:800; color:#2c3e50; margin-left:6px; }

    /* Product Description */
    p { line-height:1.8; font-size:1rem; color:#555; margin-bottom:20px; }
    ul { list-style: disc inside; padding-left:0; margin-bottom:25px; }
    ul li { margin-bottom:10px; font-weight:500; color:#2c3e50; }

    /* Related products */
    .related-products { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap:20px; margin-top:20px; }
    .related-card { text-align:center; display:block; border-radius:10px; padding:10px; background:#fafafa;  transition:transform 0.2s ease, box-shadow 0.2s ease; }
    .related-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
    .related-card img { width:100%; max-width:150px; border-radius:10px; margin-bottom:8px; display:block; margin-left:auto; margin-right:auto; }
    .related-card .buy-text { font-size:14px; font-weight:700; color:#0284C7; }

    /* Footer */
    .footer { background:#0EA5E9; color:white; padding:20px 0; text-align:center; margin-top:40px; font-size:16px; }
    .footer p { margin:5px 0; }

    /* Search result styles */
    #searchResults { margin-top: 10px; }
    .search-result-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-bottom:1px solid #e2e2e2; background:#fff; transition: background 0.2s; }
    .search-result-row:hover { background:#f1faff; }
    .imgFromSearchBox { width:100%; object-fit:cover; border-radius:6px; flex-shrink:0; }
    .anchorSearchResults { font-size:17px; color:#0EA5E9; text-decoration:none; font-weight:500; line-height:1.2; }
    .anchorSearchResults:hover { text-decoration:underline; }
    .category_imageFromSearch { width:70px; height:70px; object-fit:cover; border-radius:4px; flex-shrink:0; }

    /* Responsive tweaks */
    @media screen and (max-width: 1024px) {
    *{ font-size: 16px; }
    .container {
        width: 100%;
        margin:10px auto 40px auto;
        background:#fff;
        padding:12px;
        border-radius:6px;
        box-shadow:0 4px 20px rgba(0,0,0,0.08);
        box-sizing: border-box;
    }
    .related-products {
        display: grid; /* grid নিশ্চিত করতে হবে */
        grid-template-columns: repeat(2, 1fr) !important; /* ২ কলাম */
        gap: 12px; /* optional, spacing */
        max-width: 100%;
    }
    .related-card {         
        text-align:center;
        display:block;
        border-radius:10px;
        padding:10px;
        background:#fafafa;
        transition:transform 0.2s ease, box-shadow 0.2s ease;
    }
    .related-card img {
        max-width: 100%;
        object-fit:cover;
        border-radius:8px;
        margin-bottom:8px;
    }
    .product-wrap { flex-direction:column; align-items:flex-start; }
}


    /* মোবাইলে 3-column (user requested) */
/*    @media screen and (max-width: 480px) {
        .related-products { grid-template-columns: repeat(2, 1fr) !important; gap:10px; }
        .search_box input[type="text"] { width:120px; }
        .homBer { flex-direction:column; margin-top:10px; }
    }
*/

    /*-----------------------------*/
    .related-products {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap:20px;
}

.related-card {
    border:1px solid #e2e2e2;
    border-radius:10px;
    padding:10px;
    text-align:center;
    background:#fafafa;
    transition:transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow:0 6px 15px rgba(0,0,0,0.1);
}

.related-card img {
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:8px;
}

.product-name {
    font-weight:bold;
    margin-bottom:6px;
    color:#333;
}

.buy-button {
    display:block;
    background:#0284C7;
    color:#fff;
    padding:6px 0;
    border-radius:5px;
    font-weight:bold;
    text-decoration:none;
    margin-top:5px;
}

.buy-button:hover {
    background:#0369A1;
}


/*--------------মেনুবার সেটিং--------------*/
.header_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* ছোট স্ক্রীনে নিচে যেতে সাহায্য করবে */
    gap: 10px;
}

/* ছোট স্ক্রীনে header layout */
@media screen and (max-width: 1024px) {

 .buy-button{
        margin: 7pt;
        padding: 7pt;
        line-height: 10pt;
    }


 .checkout-btn,  .buy-section{
        margin: 20pt;
        padding: 20pt;
    }

    p{
        font-size: 15pt;
    }

h2{
    padding: 10pt;
}
    .header_menu {
        display: flex;
        flex-direction: row;      /* horizontal রাখবে */
        align-items: center;      /* vertical alignment */
        justify-content: space-between; /* left-right spread */
        flex-wrap: wrap;          /* নিচে search_box যাবে */
        padding: 5px 10px;
        gap: 10px;
    }

    .menu_symbol {
        order: 0;
        flex: 0 0 auto;           /* fixed width */
    }

    .logo_bar {
        order: 1;
        flex: 0 0 auto;           /* fixed width */
        text-align: right;
    }

    .homBer {
        display: none;            /* hide main menu on small screen */
    }

    .search_box {
        width: 100%;              /* পুরো লাইন জুড়ে */
        order: 2;
        margin-top: 10px;
    }

    .search_box form {
        display: flex;
        gap: 5px;
    }

    .search_box input {
        flex: 1;                  /* full width input */
    }
}


.menu_symbol {
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}



/* Sidebar style */
.sitebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 50px;
}

.sitebar.show {
    left: 0;
}

.sitebar_content a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.sitebar_content a:hover {
    background: #f0f0f0;
}

.menu_item { position: relative; }

.sub_menu { display: none; padding-left: 15px; }
.menu_item:hover .sub_menu { display: block; }

.menu_symbol {
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}