/* فایل: /home/xlsgxbhe/public_html/main/style.css */
@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('/main/fonts/IRANSansXFaNum-Regular (1).woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'IRANSansXFaNum', Tahoma, sans-serif;
    background: linear-gradient(135deg, #FFFFFF 30%, #F1E9C7 60%, #D4AF37 100%);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin-top: 100px;
    transition: background 0.3s ease, color 0.3s ease;
}
.dark body {
    background: linear-gradient(135deg, #1F2937 30%, #4B3F1A 60%, #F1C40F 100%);
    color: #FFFFFF;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSansXFaNum', Tahoma, sans-serif;
    font-weight: bold;
}
.gold-accent {
    background: linear-gradient(45deg, #D4AF37, #F1C40F);
    color: #FFFFFF;
    transition: all 0.3s ease;
}
.dark .gold-accent {
    background: linear-gradient(45deg, #F1C40F, #D4AF37);
}
.gold-text {
    color: #D4AF37;
}
.dark .gold-text {
    color: #F1C40F;
}
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.dark .glass {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.5);
}
.glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.dark .glass:hover {
    background: rgba(31, 41, 55, 0.8);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.hero-gradient.shine {
    position: relative;
    overflow: hidden;
}
.hero-gradient.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 10%,
        rgba(128, 128, 0, 0.15) 30%,
        rgba(128, 128, 0, 0.5) 50%,
        rgba(128, 128, 0, 0.15) 70%,
        transparent 90%
    );
    filter: blur(15px);
    animation: shine 3s ease-in-out infinite;
}
.dark .hero-gradient.shine::before {
    background: linear-gradient(
        90deg,
        transparent 10%,
        rgba(212, 175, 55, 0.15) 30%,
        rgba(212, 175, 55, 0.5) 50%,
        rgba(212, 175, 55, 0.15) 70%,
        transparent 90%
    );
    filter: blur(15px);
}
@keyframes shine {
    0% {
        transform: translateX(-100%);
        opacity: 0.2;
    }
    50% {
        transform: translateX(0%);
        opacity: 0.7;
    }
    100% {
        transform: translateX(100%);
        opacity: 0.2;
    }
}
.hero-gradient {
    background: linear-gradient(135deg, #FFFFFF 70%, #F1E9C7 100%);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.dark .hero-gradient {
    background: linear-gradient(135deg, #1F2937 70%, #4B3F1A 100%);
}
.gold-border {
    border: 1px solid #D4AF37;
}
.dark .gold-border {
    border: 1px solid #F1C40F;
}
.slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    direction: rtl;
    width: 100%;
}
.slides img {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    background: #f0f0f0;
}
.dark .slides img {
    background: #2D3748;
}
.gold-solid {
    background: #D4AF37;
    color: #FFFFFF;
    transition: all 0.3s ease;
    padding: 5px;
}
.dark .gold-solid {
    background: #F1C40F;
}
.gold-solid:hover {
    background: #C49A2F;
    transform: scale(1.05);
}
.dark .gold-solid:hover {
    background: #D4AF37;
}
.animate-fadeIn {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}
.group:hover .shine::before {
    animation: shine 1.5s infinite;
}
/* Luxury Slider Styles */
.luxury-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
@media (min-width: 768px) {
    .luxury-slide {
        flex: 0 0 33.333%;
        width: 33.333%;
        max-width: 33.333%;
    }
}
.luxury-card {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.dark .luxury-card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid #D4AF37;
}
.luxury-card:hover {
    transform: translateY(-2px);
}
.luxury-card .image-container {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}
.luxury-card img {
    width: 100%;
    height: 135%;
    object-fit: cover;
    display: block;
    background: #F9FAFB;
}
.dark .luxury-card img {
    background: #4B5563;
}
.luxury-card .content {
    padding: 8px;
    text-align: center;
    flex-grow: 1;
}
.luxury-card h3 {
    font-size: 1rem;
    color: #1F2937;
    margin-bottom: 4px;
}
.dark .luxury-card h3 {
    color: #FFFFFF;
}
.luxury-card p {
    font-size: 0.875rem;
    color: #4B5563;
    margin-bottom: 6px;
}
.dark .luxury-card p {
    color: #FFFFFF;
}
.luxury-card button {
    padding: 4px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
    background: #D4AF37;
    color: #FFFFFF;
    transition: background 0.2s ease;
}
.dark .luxury-card button {
    background: #F1C40F;
}
.luxury-card button:hover {
    background: #C49A2F;
}
.dark .luxury-card button:hover {
    background: #D4AF37;
}
/* Latest Slider Background */
.latest-slider {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(212, 175, 55, 0.15));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.dark .latest-slider {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(212, 175, 55, 0.25));
    border: 1px solid rgba(241, 196, 15, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.latest-slider::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 10%, transparent 60%);
    opacity: 0.3;
    animation: crystalGlow 6s ease-in-out infinite;
}
.dark .latest-slider::before {
    background: radial-gradient(circle, rgba(241, 196, 15, 0.3) 10%, transparent 60%);
}
@keyframes crystalGlow {
    0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(10deg); opacity: 0.5; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
}
.latest-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 10%,
        rgba(212, 175, 55, 0.15) 30%,
        rgba(212, 175, 55, 0.4) 50%,
        rgba(212, 175, 55, 0.15) 70%,
        transparent 90%
    );
    filter: blur(10px);
    animation: shine 5s ease-in-out infinite;
}
.dark .latest-slider::after {
    background: linear-gradient(
        90deg,
        transparent 10%,
        rgba(241, 196, 15, 0.15) 30%,
        rgba(241, 196, 15, 0.4) 50%,
        rgba(241, 196, 15, 0.15) 70%,
        transparent 90%
    );
}
/* Latest Products Card Styles */
.latest-slide .luxury-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #D4AF37;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.dark .latest-slide .luxury-card {
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid #F1C40F;
}
.latest-slide .luxury-card:hover {
    transform: scale(1.02);
}
.latest-slide .luxury-card .image-container {
    width: 100%;
    height: 192px; /* همسان با h-48 در جواهرات برگزیده */
    overflow: hidden;
}
.latest-slide .luxury-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.latest-slide .luxury-card .content {
    padding: 16px; /* همسان با p-4 در جواهرات برگزیده */
}
.latest-slide .luxury-card h3 {
    font-size: 1.25rem; /* همسان با text-xl در جواهرات برگزیده */
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 8px;
}
.dark .latest-slide .luxury-card h3 {
    color: #FFFFFF;
}
.latest-slide .luxury-card p {
    font-size: 0.875rem; /* همسان با text-sm در جواهرات برگزیده */
    color: #4B5563;
    margin-bottom: 16px;
}
.dark .latest-slide .luxury-card p {
    color: #FFFFFF;
}
.latest-slide .luxury-card a {
    padding: 6px 16px; /* همسان با px-4 py-1.5 در جواهرات برگزیده */
    font-size: 0.875rem; /* همسان با text-sm */
    border-radius: 4px;
    background: #D4AF37;
    color: #FFFFFF;
    transition: background 0.2s ease;
}
.dark .latest-slide .luxury-card a {
    background: #F1C40F;
}
.latest-slide .luxury-card a:hover {
    background: #C49A2F;
}
.dark .latest-slide .luxury-card a:hover {
    background: #D4AF37;
}
/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}
.dark .slider-btn {
    background: rgba(241, 196, 15, 0.3);
}
.slider-btn:hover {
    background: #D4AF37;
    transform: scale(1.1);
}
.dark .slider-btn:hover {
    background: #F1C40F;
}
.slider-btn.prev {
    right: 16px;
}
.slider-btn.next {
    left: 16px;
}
.slider-btn svg {
    width: 20px;
    height: 20px;
}
/* Responsive Adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .hero-gradient .slider {
        max-height: 300px;
    }
    .luxury-card {
        max-width: 100%;
    }
    .latest-slide {
        padding: 0 12px; /* افزایش فاصله بین کارت‌ها */
    }
    .latest-slide .luxury-card {
        max-width: 90%; /* کاهش عرض کارت برای فضای بیشتر */
        background: rgba(255, 255, 255, 0.1); /* پس‌زمینه مینیمال‌تر */
        border: none; /* حذف حاشیه */
        border-radius: 6px; /* گوشه‌های نرم‌تر */
        box-shadow: none; /* حذف سایه */
        backdrop-filter: blur(8px); /* افکت شیشه‌ای ساده‌تر */
        transition: none; /* حذف افکت hover */
    }
    .dark .latest-slide .luxury-card {
        background: rgba(31, 41, 55, 0.5);
        border: none;
        box-shadow: none;
    }
    .latest-slide .luxury-card:hover {
        transform: none; /* حذف افکت scale در hover */
    }
    .latest-slide .luxury-card .content {
        padding: 12px; /* کاهش پدینگ برای مینیمال‌تر شدن */
    }
    .slides {
        width: 100%;
    }
    .latest-slider {
        padding: 16px;
        border-radius: 12px;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
    }
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    /* Featured Products in Mobile: Two Items Side by Side, Larger Size */
    section.py-12 .flex-wrap.justify-center.gap-6 {
        display: flex;
        flex-wrap: wrap;
        gap: 16px; /* فاصله بین کارت‌ها */
    }
    section.py-12 .flex-wrap.justify-center.gap-6 > .glass.gold-border {
        width: calc(50% - 8px); /* دو کارت کنار هم با فاصله 8px از هر طرف */
        max-width: 380px; /* عرض بیشتر برای بزرگ‌تر شدن */
        margin: 0; /* حذف حاشیه اضافی */
        flex: 0 0 calc(50% - 8px); /* اطمینان از عرض ثابت */
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 30%, rgba(241, 233, 199, 0.7) 60%, rgba(212, 175, 55, 0.5) 100%);
        backdrop-filter: none; /* حذف افکت شیشه‌ای */
        border: 1px solid rgba(212, 175, 55, 0.6); /* حاشیه طلایی ظریف */
    }
    .dark section.py-12 .flex-wrap.justify-center.gap-6 > .glass.gold-border {
        background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 30%, rgba(75, 63, 26, 0.7) 60%, rgba(241, 196, 15, 0.5) 100%);
        border: 1px solid rgba(241, 196, 15, 0.6);
    }
    section.py-12 .flex-wrap.justify-center.gap-6 > .glass.gold-border img {
        height: 220px; /* کاهش ارتفاع تصویر برای کوتاه‌تر شدن کارت‌ها */
    }
    /* Full-width "View" button inside cards in mobile */
    section.py-12 .flex-wrap.justify-center.gap-6 > .glass.gold-border .flex.justify-between.items-center {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px; /* فاصله بین قیمت و دکمه */
    }
    section.py-12 .flex-wrap.justify-center.gap-6 > .glass.gold-border a.gold-solid {
        display: block;
        width: 100%;
        text-align: center;
        padding: 8px 16px;
        font-size: 0.875rem;
        border-radius: 4px;
    }
    /* Full-width button for Featured Products in mobile */
    section.py-12 .text-center.mt-8 a.gold-solid {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 1.125rem;
        border-radius: 8px;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .hero-gradient {
        padding: 16px;
    }
    .latest-slider {
        padding: 12px;
    }
}
/* Welcome Overlay */
#welcomeOverlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(212, 175, 55, 0.4));
    backdrop-filter: blur(10px);
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform-origin: right;
}
.dark #welcomeOverlay {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9), rgba(212, 175, 55, 0.4));
}
#welcomeOverlay.hide {
    transform: perspective(1000px) rotateY(90deg);
    opacity: 0;
    pointer-events: none;
}
.welcome-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}
.animate-spin-slow {
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Responsive Adjustments for Overlay */
@media (max-width: 640px) {
    #welcomeOverlay {
        backdrop-filter: blur(8px);
    }
    .welcome-spinner svg {
        width: 12vw;
        height: 12vw;
        min-width: 48px;
        min-height: 48px;
    }
}
@media (max-width: 400px) {
    .welcome-spinner svg {
        width: 10vw;
        height: 10vw;
        min-width: 40px;
        min-height: 40px;
    }
}
/* Dark Mode Text Fixes */
.dark .text-gray-800 {
    color: #FFFFFF;
}
.dark .text-gray-600 {
    color: #FFFFFF;
}
.dark .text-gray-700 {
    color: #FFFFFF;
}
.dark .text-gray-900 {
    color: #FFFFFF;
}
.dark .text-base {
    color: #FFFFFF;
}
/* Background Fixes */
.bg-white {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.dark .bg-white {
    background: rgba(31, 41, 55, 0.7);
}
.hero-gradient {
    background: transparent;
}
.dark .hero-gradient {
    background: linear-gradient(135deg, #1F2937 70%, #4B3F1A 100%);
}
/* Popup Styles */
#customPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(212, 175, 55, 0.1));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 24px;
    max-width: 90%;
    width: 450px;
    text-align: center;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
#customPopup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.dark #customPopup {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.4), rgba(212, 175, 55, 0.2));
    border: 1px solid rgba(241, 196, 15, 0.5);
}
#customPopup h3 {
    font-size: 1.75rem;
    color: #1F2937;
    margin-bottom: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.dark #customPopup h3 {
    color: #F1C40F;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#customPopup p {
    font-size: 1rem;
    color: #2D3748;
    margin-bottom: 24px;
    line-height: 1.6;
}
.dark #customPopup p {
    color: #E5E7EB;
}
#customPopup .popup-btn {
    background: linear-gradient(45deg, #D4AF37, #F1C40F);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.4s ease-in-out, transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}
.dark #customPopup .popup-btn {
    background: linear-gradient(45deg, #F1C40F, #D4AF37);
}
#customPopup .popup-btn:hover {
    background: linear-gradient(45deg, #C49A2F, #D4AF37);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}
.dark #customPopup .popup-btn:hover {
    background: linear-gradient(45deg, #D4AF37, #C49A2F);
}
#customPopup .close-popup {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(212, 175, 55, 0.2);
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.dark #customPopup .close-popup {
    background: rgba(241, 196, 15, 0.3);
}
#customPopup .close-popup:hover {
    background: #D4AF37;
    transform: scale(1.1);
}
.dark #customPopup .close-popup:hover {
    background: #F1C40F;
}