﻿@import url(fonts/iranyekan/font.css);
body {
    font-family: IRANYekanX;
    scroll-behavior: smooth;
}

@keyframes pulse-badge {
    0%, 100%

{
    opacity: 1;
    transform: scale(1);
}

50% {
    opacity: .8;
    transform: scale(1.1);
}

}

.animate-pulse-badge {
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.top-bar-initial {
    opacity: 0;
    transform: translateY(-100%);
}
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.search-popup-initial {
    opacity: 0;
    transform: translateY(-100%);
}

#clear-search-button {
    display: none;
}

.submenu-icon-rotate {
    transform: rotate(180deg);
}

#desktop-search-dropdown {
    display: none;
}

/* Slideshow Styles */
.slideshow-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .slideshow-slides::-webkit-scrollbar {
        display: none;
    }

.slideshow-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
}

    .slideshow-slide img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: cover;
    }

.slideshow-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .slideshow-bullet.active {
        background-color: #6d28d9;
    }

.slideshow-nav button {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .slideshow-nav button:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

/* Generic Carousel Styles (Offer, New, Best) */
.product-carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .product-carousel-track::-webkit-scrollbar {
        display: none;
    }

.product-card {
    scroll-snap-align: start;
}

.carousel-nav button {
    background-color: rgba(109, 40, 217, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-nav button:hover {
        background-color: #6d28d9;
    }

    .carousel-nav button:disabled {
        background-color: rgba(156, 163, 175, 0.5);
        cursor: not-allowed;
    }

/* Countdown Timer Styles */
.countdown-box {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.countdown-number-wrapper {
    height: 1.75rem;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.1rem;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6d28d9;
    line-height: 1.75rem;
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    transition: transform 0.4s ease-in-out;
}

    .countdown-number.current {
        transform: translateY(0);
    }

    .countdown-number.next {
        transform: translateY(100%);
    }

.countdown-box.animate .current {
    transform: translateY(-100%);
}

.countdown-box.animate .next {
    transform: translateY(0);
}

.countdown-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    display: block;
}

/* Mobile Swipe Indicator Animation */
@keyframes swipe-animation-rtl {
    0%, 100% {
        transform: translate(0, -50%);
        opacity: 0.7;
    }

    50% {
        transform: translate(10px, -50%);
        opacity: 1;
    }

}

.mobile-swipe-indicator {
    animation: swipe-animation-rtl 1.5s ease-in-out infinite;
}

/* Notice Bar Transition */
#top-notice-bar span {
    transition: opacity 0.5s ease-in-out;
}

#top-notice-bar.fading span {
    opacity: 0;
}

/* Footer Animations */
.social-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

    .social-icon:hover {
        transform: scale(1.2);
    }

@keyframes pulse-grow {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.newsletter-title {
    display: inline-block;
}

/* Category Popup Styles */
#category-popup {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    will-change: transform; 
    height: calc(100vh - 56px);
    top: 0; 
    padding-top: 56px; 
    box-sizing: border-box;
}

    #category-popup.open {
        transform: translateY(0);
    }
/* Prevent body scroll when popup is open */
body.category-popup-open {
    overflow: hidden;
}
/* Style for parent category list items */
#parent-categories {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c4b5fd #f3f4f6; /* Firefox: thumb track */
}

    #parent-categories::-webkit-scrollbar {
        width: 5px;
    }

    #parent-categories::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 10px;
    }

    #parent-categories::-webkit-scrollbar-thumb {
        background-color: #c4b5fd;
        border-radius: 10px;
        border: 1px solid #f3f4f6;
    }
/* Style for child category grid */
#child-categories {
    scrollbar-width: thin;
    scrollbar-color: #c4b5fd #ffffff;
}

    #child-categories::-webkit-scrollbar {
        width: 5px;
    }

    #child-categories::-webkit-scrollbar-track {
        background: #ffffff;
        border-radius: 10px;
    }

    #child-categories::-webkit-scrollbar-thumb {
        background-color: #c4b5fd;
        border-radius: 10px;
        border: 1px solid #ffffff;
    }
/* Simple fade-in for child content switching */
.child-category-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Custom Scrollbar for Search Results */
.custom-scrollbar-violet {
    max-height: 300px; 
    overflow-y: auto; 
    padding-right: 8px;
    /* Firefox Scrollbar Styles */
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #ede9fe;
}

    /* Webkit (Chrome, Safari, Edge) Scrollbar Styles */
    .custom-scrollbar-violet::-webkit-scrollbar {
        width: 6px; /* Width of the scrollbar */
        height: 6px; 
    }

    .custom-scrollbar-violet::-webkit-scrollbar-track {
        background: #ede9fe; 
        border-radius: 3px; 
    }

    .custom-scrollbar-violet::-webkit-scrollbar-thumb {
        background-color: #8b5cf6; 
        border-radius: 3px; 
        border: 1px solid #ede9fe; 
    }

        .custom-scrollbar-violet::-webkit-scrollbar-thumb:hover {
            background-color: #7c3aed; 
        }

/* Dark Mode Styles */
html.dark .custom-scrollbar-violet {
    /* Firefox Dark */
    scrollbar-color: #a78bfa #3730a3; /* Lighter Violet thumb, Dark Violet track */
}

    html.dark .custom-scrollbar-violet::-webkit-scrollbar-track {
        /* Webkit Dark Track */
        background: #3730a3; /* Dark Violet track */
    }

    html.dark .custom-scrollbar-violet::-webkit-scrollbar-thumb {
        /* Webkit Dark Thumb */
        background-color: #a78bfa; /* Lighter Violet thumb */
        border-color: #3730a3; /* Match dark track */
    }

        html.dark .custom-scrollbar-violet::-webkit-scrollbar-thumb:hover {
            /* Webkit Dark Thumb Hover */
            background-color: #c4b5fd; /* Even lighter Violet on hover */
        }

/* Styles for product sizes */
.size-badge {
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px; 
    border: 1px solid #d1d5db;
    border-radius: 4px; 
    font-size: 0.75rem; 
    font-weight: 500;
    color: #4b5563;
    background-color: #f9fafb;
    cursor: default;
    transition: background-color 0.2s;
}

    .size-badge:hover {
        background-color: #f3f4f6; /* gray-100 */
    }

.show-more-sizes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px dashed #9ca3af; /* gray-400 */
    border-radius: 4px;
    font-size: 0.75rem; /* text-xs */
    color: #6b7280; /* gray-500 */
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

    .show-more-sizes:hover {
        background-color: #f3f4f6; /* gray-100 */
        border-color: #6b7280; /* gray-500 */
    }
.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}



/* OTP Input Styles */
.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.25rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
    transition: all 0.2s ease-in-out;
}

    .otp-input:focus {
        border-color: #8B5CF6;
        box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
    }

    .otp-input.filled {
        transform: scale(1.1);
        border-color: #6D28D9;
    }

.form-section {
}

    .form-section.hidden-custom {
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }

    .form-section.visible-custom {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo Animation */
.logo-container img {
    animation: pulseLogo 2.5s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/*  Animated Alert*/
.custom-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: top 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    min-width: 300px; 
}

    .custom-alert.show {
        top: 100px;
        opacity: 1;
    }

    .custom-alert.error {
        background-color: #FECACA; /* red-200 */
        color: #B91C1C; /* red-700 */
        border-right: 5px solid #DC2626; /* red-600 */
    }

    .custom-alert.success { 
        background-color: #D1FAE5; /* green-200 */
        color: #065F46; /* green-700 */
        border-right: 5px solid #059669; /* green-600 */
    }

    .custom-alert i {
        margin-right: 0.75rem;
        font-size: 1.2rem;
    }


    /* product page */
/* Custom scrollbar for thumbnails */
.thumbnail-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnail-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db; /* gray-300 */
    border-radius: 10px;
}

    .thumbnail-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #9ca3af; /* gray-400 */
    }
/* Simple bounce animation for button */
@keyframes bounce-short {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5%);
    }
}

.animate-bounce-short {
    animation: bounce-short 0.3s ease-in-out 1;
}
/* Modal styles */
.modal-overlay {
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-hidden {
    transform: scale(0.9);
    opacity: 0;
}

.modal-content-visible {
    transform: scale(1);
    opacity: 1;
}

.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.not-zoomed {
    transform: scale(1);
    cursor: zoom-in;
}
/* Modal image transition */
#modal-image-container img {
    transition: opacity 0.3s ease-in-out;
}

.modal-image-loading {
    opacity: 0.5;
}
/* Zoom panning styles */
.zoomed-wrapper {
    overflow: auto; /* Enable scroll/pan */
    cursor: grab;
}

    .zoomed-wrapper.grabbing {
        cursor: grabbing;
    }

    .zoomed-wrapper img.zoomed {
        transform-origin: center center; /* Zoom from center */
        cursor: grab; 
    }
/* Custom scrollbar for modal thumbnails */
.modal-thumbnail-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.modal-thumbnail-scrollbar::-webkit-scrollbar-track {
    background: #e5e7eb; /* gray-200 */
    border-radius: 10px;
}

.modal-thumbnail-scrollbar::-webkit-scrollbar-thumb {
    background: #9ca3af; /* gray-400 */
    border-radius: 10px;
}

    .modal-thumbnail-scrollbar::-webkit-scrollbar-thumb:hover {
        background: #6b7280; /* gray-500 */
    }
/* Comment Section Styles */
.comment-item {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

    .comment-item.new-comment-animate {
        opacity: 0;
        transform: translateY(15px);
    }

.comment-rating .star {
    cursor: pointer;
    color: #d1d5db; /* gray-300 */
    transition: color 0.2s ease-in-out;
}

    .comment-rating .star:hover,
    .comment-rating .star.rated {
        color: #facc15; /* yellow-400 */
    }

.like-btn, .dislike-btn {
    transition: color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

    .like-btn:hover, .dislike-btn:hover {
        transform: scale(1.1);
    }

    .like-btn[data-active="true"] {
        color: #10b981; /* emerald-500 */
    }

    .dislike-btn[data-active="true"] {
        color: #ef4444; /* red-500 */
    }

.reply-form {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

    .reply-form.visible {
        max-height: 500px; /* Adjust as needed */
        opacity: 1;
    }

.child-comment {
    border-right: 2px solid #e5e7eb; /* gray-200 */
    padding-right: 1rem; /* pr-4 */
    margin-right: 1rem; /* mr-4 */
    margin-top: 1rem; /* mt-4 */
}

@media (min-width: 768px) { /* md: */
    .child-comment {
        margin-right: 2rem; /* md:mr-8 */
        padding-right: 1.5rem; /* md:pr-6 */
    }
}
.animate-qty-up {
    animation: qty-up 0.15s ease-out;
}

.animate-qty-down {
    animation: qty-down 0.15s ease-out;
}

@keyframes qty-up {
    0% {
        transform: translateY(50%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes qty-down {
    0% {
        transform: translateY(-50%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes attract-attention {
    0% {
        box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.6);
        border-color: rgba(239, 68, 68, 0.8);
    }
    /* red-500 */
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
        border-color: rgba(239, 68, 68, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0px rgba(239, 68, 68, 0);
        border-color: rgba(239, 68, 68, 0.8);
    }
}

.attention-animation {
    padding: 8px 2px 2px 2px ;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    animation: attract-attention 1.2s infinite;
}














/* Popup Animations */
@keyframes pg-fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pg-fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pg-scaleUp {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pg-scaleDown {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

.pg-popup-overlay.open {
    animation: pg-fadeIn 0.3s ease-out forwards;
}

.pg-popup-overlay.closing {
    animation: pg-fadeOut 0.3s ease-in forwards;
}

.pg-popup-content.open {
    animation: pg-scaleUp 0.3s ease-out forwards;
}

.pg-popup-content.closing {
    animation: pg-scaleDown 0.3s ease-in forwards;
}

/* Prevent selection during drag */
.dragging, .dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.zoomed-image-container {
    overflow: hidden; /* Crucial for containing panned image */
}

.zoomed-image {
    cursor: grab;
    transition: transform 0.3s ease; /* For smooth zoom in/out */
}

    .zoomed-image.panning {
        cursor: grabbing;
    }

.zoomable-image {
    cursor: zoom-in;
}
.f-table {
    border-collapse: collapse;
    width: 100%;
}

    .f-table, .f-table td {
        border: solid 1px #efefef;
        text-align: center;
    }

        .f-table tr:first-child {
            background-color: #f7f7f7;
        }




        /* checkout */

label {
    display: block;
    margin-bottom: 0.5rem; /* mb-2 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem; /* p-3 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    font-size: 0.875rem; /* sm:text-sm */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: #6d28d9; /* focus:border-violet-500 */
        box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2); /* focus:ring-violet-500 focus:ring-opacity-50 */
    }
/* Radio button custom styling */
.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem; /* p-4 */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .radio-label:hover {
        border-color: #a5b4fc; /* hover:border-indigo-300 */
    }

input[type="radio"]:checked + .radio-label {
    border-color: #6d28d9; /* border-violet-600 */
    background-color: #f5f3ff; /* bg-violet-50 */
}

input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.radio-custom-dot {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    border: 2px solid #9ca3af; /* border-gray-400 */
    border-radius: 50%;
    margin-left: 0.75rem; /* ml-3 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

input[type="radio"]:checked + .radio-label .radio-custom-dot {
    border-color: #6d28d9; /* border-violet-600 */
}

    input[type="radio"]:checked + .radio-label .radio-custom-dot::after {
        content: '';
        width: 0.75rem; /* w-3 */
        height: 0.75rem; /* h-3 */
        background-color: #6d28d9; /* bg-violet-600 */
        border-radius: 50%;
    }
.sticky-container {
    position: relative;
}

.summary-item img {
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    object-fit: cover;
    border-radius: 0.25rem; /* rounded-sm */
    flex-shrink: 0;
}

.main-product-content img {
    text-align: center;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 20px;
    width:100%;
}
    

.single-title {
    text-align: center;
    position: relative;
    padding: 20px;
    margin-left: -8px;
    margin-right: -8px;
    background-color: #eff3ff;
}
    .single-title h1 {
        color: #4b4b4b;
        font-size: 20px;
        margin-bottom: 10px;
        line-height: 35px;
    }
    .single-title p {
        color: #3e3e3e;
        font-size: 12px;
        line-height: 18px;
    }
    .single-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-width: 10px 10px 0 10px;
        border-style: solid;
        border-color: #eff3ff transparent transparent transparent;
    }
.goftino-wakeup {
z-index:2;
}
#goftino_w {
z-index:2 !important;
}