/* লেখার ডিজাইন ঠিক রাখা এবং ফ্লেক্স ব্যবহার করে ডটটিকে এক লাইনে আনা */
.view-size-chart-btn {
   font-size: 22px;
   font-weight: bold;
   /* লেখাটি সবুজ করতে চাইলে এটি রাখুন */
    display: inline-flex;
    align-items: center;
    gap: 8px; /* ডট এবং লেখার মাঝখানের ফাঁকা জায়গা */
   
}

/* লেখার আগে একটি গোল ডট তৈরি করা */
.view-size-chart-btn::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: dotRipple 1.5s infinite; /* অ্যানিমেশন যুক্ত করা */
}

/* ডট থেকে ঢেউ বের হওয়ার অ্যানিমেশন */
@keyframes dotRipple {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(2);
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); /* চারদিকে ঢেউয়ের মতো ছড়িয়ে মিলিয়ে যাবে */
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/*========animation end==================*/

/* 1. Button Style */
.view-size-chart-btn {
    display: inline-block;
    color: #0c2b5e;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

/* 2. Overlay Design (Background Darkening) */
.size-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9998;
    display: none; opacity: 0; transition: opacity 0.3s;
}
.size-drawer-overlay.active { display: block; opacity: 1; }

/* 3. Drawer Design (The popup box) */
.size-drawer {
    position: fixed; top: 0; right: -500px; 
    width: 100%; max-width: 500px; height: 100vh;
    background: #fff; z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}
.size-drawer.active { right: 0; }

/* 4. Header & Drawer Content */
.drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #0c2b5e; color: #fff;
}
.drawer-header h3 { margin: 0; color: #fff; font-size: 22px; font-weight: bold; }
.close-drawer { background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

.drawer-content { padding: 20px; }

/* 5. Table Responsive Wrapper (Mobile scroll fix) */
.table-responsive { 
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    border: 2px solid #0c2b5e; 
    border-radius: 8px; 
    display: block; 
}

/* 6. Table Design */
.size-chart-table { 
    width: 100%; 
    border-collapse: collapse; 
    text-align: center; 
    min-width: 600px; 
}

.size-chart-table th { 
    background: #0c2b5e; 
    color: #fff; 
    padding: 12px 10px; 
    font-size: 14px; 
    border-right: 1px solid #fff; 
    white-space: nowrap; 
}

.size-chart-table th small { 
    font-weight: normal; 
    font-size: 11px; 
}

.size-chart-table td { 
    padding: 12px 10px; 
    border: 1px solid #0c2b5e; 
    font-size: 15px; 
    font-weight: bold; 
    color: #0c2b5e; 
    background: #eaf2f8; 
    transition: background 0.2s;
    white-space: nowrap; 
}

.size-chart-table .size-label { 
    font-size: 18px; 
    font-weight: 900; 
}

/* 7. Hover and Click Effect */
.size-row { 
    cursor: pointer; 
}

.size-row:hover td { 
    background-color: #cce0ff; 
    transform: scale(1.01); 
}