/* =========================================
   Custom Styles - Khodroshop
   ========================================= */

.offcanvas { --bs-offcanvas-height: 83%; }
img.fr-dib { float: none; vertical-align: top; margin: 5px auto; display: block; padding: 15px; max-width: 600px; }
#w3m_cgs #ChaTBox #bod { height: calc(100% - 30px) !important; }

/* Notifications (App Download) */
.notification { display: none; position: fixed; bottom: 0; width: 100%; background-color: #fffefa; color: #222; text-align: center; padding: 20px 20px 100px 20px; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5); z-index: 9999; }
.notification.show { display: block; animation: slideUp 0.5s forwards; }
.notification.hide { animation: slideDown 0.5s forwards; }
.notification.top { bottom: 0; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

.notification .close { position: absolute; left: 10px; top: 10px; cursor: pointer; }
.notification button { background-color: #0c0c0c; border: none; color: #fff; padding: 4px 20px; margin: 10px; cursor: pointer; font-size: 16px; border-radius: 4px; border: 1px solid #0c0c0c; }
.button-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.button-grid a { margin: 5px; }
.button-grid button { width: 100px; }
.text-insta { font-size: 16px; }

.btnDownloadApp-two { display: flex; align-items: center; justify-content: center; }
.btnDownloadApp-two img { width: 100%; height: 50px; box-shadow: 0 17px 10px -10px #0006; transition: .3s ease-in-out; }
/* --- Swiper Slider Styles (Main Page) --- */
.swiper-container { width: 100%; height: 100%; padding: 20px 0; }
.swiper-slide { width: 250px; }
.swiper-slide img { width: 100%; height: 200px; object-fit: cover; }
.swiper-slide:hover { transform: scale(1.05); }
.swiper-slide .card-body { padding: 10px; text-align: center; }
.swiper-pagination { position: static !important; }

@media (max-width: 768px) { .swiper-slide { width: 200px; } }
@media (max-width: 480px) { .swiper-slide { width: 150px; } }
/* --- Category 4 & Popups Styles --- */
.services-container { position: relative; display: flex; opacity: 1; transition: opacity 0.5s ease, transform 0.5s ease; }
.service-box { background-color: #f0f0f0; border: 1px solid #ddd; padding: 20px; text-align: center; cursor: pointer; }
.more-services { cursor: pointer; }
.popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: transparent; backdrop-filter: blur(10px); justify-content: center; align-items: flex-end; opacity: 0; transition: opacity 0.3s ease; z-index: 10000; }
.popup-content { background-color: #fff; padding: 20px; position: relative; width: 100%; max-width: 900px; margin: auto; border-radius: 25px; transform: translateY(100%); transition: transform 0.3s ease; }
.popup.show { display: flex; opacity: 1; }
.popup.show .popup-content { transform: translateY(0); }
.popup.hide .popup-content { transform: translateY(100%); }
.popup.hide { opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.close-btn { position: absolute; top: 30px; left: 30px; border: none; cursor: pointer; }
.additional-services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.back-btn { position: absolute; left: 20px; top: -45px; margin-top: 20px; color: #ef7200; cursor: pointer; width: fit-content; display: flex; align-items: center; }
.hidden { opacity: 0; transition: opacity 0.5s; }
.visible { opacity: 1; transition: opacity 0.5s; }
.content { display: none; }
.pocu { cursor: pointer; }
.back-icon { font-size: 22px; color: #ef7200; padding: 6px 0 0 2px; }
@media (max-width: 768px) { .popup-content { width: 97%; height: 97%; overflow-y: auto; padding: 30px 20px; box-sizing: border-box; border-radius: 25px; } }
.cosTomBox1 { display: inline-block; width: 100%; height: 136px; border-radius: 1.3rem; }
.cosTomBox1 img { display: inline; width: 100px; margin: 18px 0 12px; }
/* --- Services List Styles --- */
.service-text { font-weight: 700; font-size: 8pt; }
.cosTomBox { width: 90px !important; height: 90px !important; }
.hidden-service { display: none; }
.service-item { justify-content: center; align-items: start; text-align: center; margin: 0; flex: 0 0 auto; width: 25%; }
.service-item div, .service-item img { border-radius: 1.3rem; }
.service-item img { width: 100% !important; height: auto !important; margin: 11px 0 0 0; }

@media (min-width: 576px) { .service-item { width: 25%; } .service-icon { width: 64px; height: 64px; } }
@media (min-width: 768px) { .service-item { width: 11%; } .service-icon { width: 64px; height: 64px; } }
@media (min-width: 992px) { .service-text { font-size: 10pt; } .service-item { width: 12%; } .service-icon { width: 64px; height: 64px; } }
@media (min-width: 1200px) { .service-item { width: 12%; } .service-icon { width: 64px; height: 64px; } }
@media (min-width: 1400px) { .service-item { width: 11%; } .service-icon { width: 64px; height: 64px; } }