@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/vazir/static/Vazirmatn-SemiBold.ttf') format('truetype');
}

body {
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cart-count {
    position: absolute;
    bottom: 34px;
    left: 112px;
}
@media (max-width: 1023px) {
    .cart-count {
        left: 40px;
    }
}

.banner-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .banner-swiper {
        aspect-ratio: 16 / 6;
        height: auto;
    }
}

@media (max-width: 1023px) {
    .banner-swiper {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

.banner-swiper .swiper {
    width: 100%;
    height: 100%;
}

.banner-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.banner-swiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
}

@media (min-width: 1024px) {
    .banner-swiper .swiper-slide img {
        border-radius: 0;
    }
}
@media (max-width: 1023px) {
    .banner-swiper .swiper-slide img {
        border-radius: 13px;
    }
}

.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #3E2C1F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-swiper .swiper-button-prev {
    left: 12px;
    right: auto;
}

.banner-swiper .swiper-button-next {
    right: 12px;
    left: auto;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
    background: #c6a868;
    color: #fff;
}

.banner-swiper .swiper-pagination {
    bottom: 16px;
}

.banner-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
    background: #c6a868;
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .banner-swiper .swiper-button-next,
    .banner-swiper .swiper-button-prev {
        display: none;
    }
    .banner-swiper .swiper-pagination {
        bottom: 10px;
    }
}

.deals-prev[aria-disabled="true"],
.deals-next[aria-disabled="true"] {
    display: none;
}

@media (max-width: 640px) {
    .deals-prev,
    .deals-next {
        display: none;
    }
}

#modal-state {
    display: none;
}

#modal-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
}

#modal-state:checked ~ #modal-container {
    display: flex;
}

@media (max-width: 768px) {
    #modal-inner {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

#mobile-sidebar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-open #mobile-sidebar {
    transform: translateX(0);
}

.sidebar-open #sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hide-scrollbar,
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass-panel {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.gradiant-masala {
    background: linear-gradient(180deg,
            rgba(255, 214, 102, 0.9) 0%,
            rgba(255, 214, 102, 0.4) 50%,
            rgba(255, 255, 255, 0) 80%);
}

.gradiant-karak {
    background: linear-gradient(180deg,
            rgba(255, 170, 60, 0.95) 0%,
            rgba(210, 120, 40, 0.65) 45%,
            rgba(80, 50, 20, 0.25) 80%,
            rgba(255, 255, 255, 0) 100%);
}

.main-pages {
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
    box-sizing: border-box;
    flex: 1;
}

@media (max-width: 640px) {
    .main-pages {
        padding: 0 12px 16px;
    }
}

.description-wrapper {
    position: relative;
}

.description-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

@media (min-width: 1024px) {
    .description-content:not(.expanded) {
        max-height: 180px;
    }
}

@media (max-width: 1023px) {
    .description-content:not(.expanded) {
        max-height: 120px;
    }
}

.description-content.expanded {
    max-height: none !important;
}

.read-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: linear-gradient(to bottom, transparent, #fff 40%);
    color: #c9a03d;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    color: #a07e2c;
}

.read-more-btn.expanded {
    background: transparent;
    margin-top: 8px;
}

.read-more-btn i {
    transition: transform 0.2s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

.read-more-btn.hidden {
    display: none !important;
}

.toast-success {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    transform: translateX(0) translateY(-20px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 280px;
    max-width: 90vw;
    direction: rtl;
    border-right: 4px solid #22c55e;
}

.toast-success.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success.hide {
    opacity: 0;
    transform: translateY(-20px);
}

@media (max-width: 640px) {
    .toast-success {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .toast-success .flex {
        padding: 12px 16px;
    }

    .toast-success .toast-text {
        font-size: 14px;
    }
}

.toast-checkmark {
    width: 20px;
    height: 20px;
}

.circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: currentColor;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.toast-text {
    white-space: nowrap;
}

#action-box[data-status="idle"] #addBtn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#action-box[data-status="idle"] #qtyCtrl {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

#action-box[data-status="active"] #addBtn {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

#action-box[data-status="active"] #qtyCtrl {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ring-card {
    box-shadow: 0 0 0 4px rgba(37, 73, 48, 0.1);
}

.success-message {
    position: fixed !important;
    inset-inline-end: 1.5rem !important;
    inset-block-start: 1.5rem !important;
    z-index: 1100 !important;
    margin: 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 45px rgba(34, 197, 94, 0.35) !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.error-message {
    position: fixed !important;
    inset-inline-end: 1.5rem !important;
    inset-block-start: 1.5rem !important;
    z-index: 1100 !important;
    margin: 0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35) !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c6a868;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #c6a868 transparent;
}

.product-mobile {
    bottom: 65px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .banner-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.75rem;
    }
}