/* ================================
   Navabox Shop Category Banner Style
   Version: 1.4.2 (Mobile 3x2 Grid Final)
   Author: Reza + ChatGPT
================================ */

/* ظرف بنرها - دسکتاپ */
.navabox-banner {
    flex: 0 0 15%;
    max-width: 140px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    background: #F5F5F5;
    border: 1px solid #BDBDBD;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.4s ease-out forwards;
}
.navabox-category-banners {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    margin: 0 auto 60px;
    max-width: 90%;
}

.navabox-banner img {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}

.navabox-banner-title {
    flex: 1;
    min-height: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #222;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0,0,0,0.04);
    line-height: 1.4;
    transition: all 0.3s ease-in-out;
	border-top: 1px solid #BDBDBD;
}

.navabox-banner:hover {
    border-color: #8B6B5C;
    box-shadow: 0 3px 12px rgba(139,107,92,0.25);
}

.navabox-banner:hover { 
	transform: scale(1.2); 
}

.navabox-banner:hover .navabox-banner-title {
    background: #8B6B5C;
	width:100%;
    color: #fff;
}

/* انیمیشن ورود */
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:768px) {
	.navabox-banner {
    max-width: 15%;
}
	
	.navabox-category-banners {
    gap: 10px;
    max-width: 100%;
}
	
	.navabox-banner img {
    height: 70%;
}
}


@media (max-width:480px) {
	.navabox-banner {
	 flex: 0 0 26%;
    max-width: 100%;
   	}
	
	.navabox-banner img {
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 5px 5px 0 0 !important;
		height: 75%;
    }
	
	.navabox-banner-title {
    font-size: 10px;
    font-weight: 600;
     align-items: center;
    justify-content: center;
  
      margin-top: -5px;
}
	
	.navabox-category-banners {
    gap: 10px;
    max-width: 100%;
    margin: 0 auto 30px;
	display: flex;
	overflow-x: auto;
    justify-content: normal;
	scrollbar-width: none;
		background: #ccb89d;
		padding: 12px;
}
	.
}