﻿
/* =========================================
   RAZAN WEBSITE - MAIN STYLES
========================================= */


/* =========================================
   GLOBAL SETTINGS
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}


/* =========================================
   SLIDER / BANNER
========================================= */

/* Desktop */
#df {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('/Images/1.JPG');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

/* Mobile */
@media (max-width: 768px) {

    body:has(#df) .admin-wrapper-nayan-05 {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body:has(#df) .inner-pages-main-container-nayan07 {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body:has(#df) #df {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 0;
        margin-top: 0 !important;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }
}


/* =========================================
   INNER PAGES
========================================= */

.inner-pages-main-container-nayan07 {
    padding: 0;
}


/* =========================================
   RAZAN - RESPONSIVE PRODUCT SLIDER
========================================= */

#products {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.razan-products-section {
    background: #fff;
    padding: 20px 0 0;
    overflow: hidden;
}

.razan-slider-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 58px;
}

.razan-slider-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #8a3048 #eee;
    padding: 15px 2px 18px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.razan-slider-viewport:active { cursor: grabbing; }

.razan-slider-track {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    direction: ltr;
    width: 100%;
    gap: 18px;
}

.razan-slider-item {
    display: block !important;
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    width: calc((100% - 54px) / 4);
    min-width: 0;
    padding: 0;
    float: none !important;
    direction: rtl;
    scroll-snap-align: start;
}

.razan-product-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    text-align: center;
}

.razan-product-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8f6f5;
    border-radius: 10px;
}

.razan-product-media .razan-main-image {
    display: block;
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    cursor: pointer;
    opacity: 1;
    transition: opacity .25s ease, transform .5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .razan-product-media .razan-main-image:hover {
        transform: scale(1.025);
    }
}

.razan-thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    padding: 11px 3px 4px;
    direction: rtl;
}

.razan-thumbnail {
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 56px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.razan-thumbnail img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 4px;
    opacity: 1;
}

.razan-thumbnail:hover,
.razan-thumbnail.active {
    border: 2px solid #8a3048;
    transform: translateY(-2px);
}

.razan-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: 12px 5px 14px;
    text-align: center;
    direction: rtl;
    white-space: normal;
}

.razan-product-info h3 {
    width: 100%;
    max-width: 100%;
    margin: 0 0 6px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.razan-product-info span {
    color: #580c20;
    font-size: 13px;
    font-weight: 500;
}

.razan-slider-arrow {
    position: absolute;
    top: 38%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 64px;
    padding: 0;
    border: 1px solid #e9e6e5;
    border-radius: 3px;
    background: rgba(255,255,255,.96);
    color: #292525;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(30,20,20,.07);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.razan-slider-arrow:hover:not(:disabled) {
    background: #580c20;
    color: #fff;
    box-shadow: 0 5px 18px rgba(88,12,32,.16);
}

.razan-slider-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.razan-prev { left: 7px; }
.razan-next { right: 7px; }

.razan-slider-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 9px auto 13px;
    color: #8a3048;
    font-size: 13px;
    text-align: center;
}

.razan-hint-arrows {
    display: inline-block;
    font-size: 23px;
    animation: razan-hint-move 1.5s ease-in-out infinite;
}

@keyframes razan-hint-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(7px); }
}

.razan-slider-progress {
    width: 110px;
    height: 3px;
    margin: 0 auto 25px;
    border-radius: 5px;
    background: #eee;
    overflow: hidden;
}

.razan-slider-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8a3048;
    transition: width .15s linear;
}

.razan-slider-dots { display: none; }

@media (min-width: 576px) and (max-width: 991px) {
    .razan-slider-item {
        flex-basis: calc((100% - 18px) / 2);
        width: calc((100% - 18px) / 2);
    }
    .razan-slider-track { gap: 18px; }
    .razan-product-info h3 { font-size: 13px; }
}

@media (max-width: 575px) {
    #products {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .razan-slider-container { padding: 0 12px; }
    .razan-slider-viewport {
        padding-left: 2px;
        padding-right: 2px;
        scrollbar-width: none;
    }
    .razan-slider-viewport::-webkit-scrollbar { display: none; }
    .razan-slider-track { gap: 12px; }

    /* بخشی از کارت بعدی دیده می‌شود تا قابلیت کشیدن افقی مشخص باشد */
    .razan-slider-item {
        flex: 0 0 calc(100% - 34px);
        width: calc(100% - 34px);
    }

    .razan-product-media { aspect-ratio: 3 / 4; }
    .razan-thumbnails { gap: 6px; padding-top: 9px; }
    .razan-thumbnail { flex-basis: 43px; width: 43px; height: 53px; }
    .razan-product-info { padding: 9px 3px 12px; }
    .razan-product-info h3 { font-size: 13px; line-height: 1.7; }
    .razan-product-info span { font-size: 12px; }

    .razan-slider-arrow { display: none !important; }
    .razan-slider-hint,
    .razan-slider-progress { display: none !important; }

    .razan-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        direction: ltr;
        min-height: 24px;
        margin: 12px auto 22px;
        padding: 3px 12px;
    }

    .razan-slider-dot {
        display: block;
        width: 6px;
        height: 6px;
        padding: 0;
        border: 0;
        border-radius: 20px;
        background: #d8d1d2;
        cursor: pointer;
        transition: width .25s ease, background .25s ease, transform .25s ease;
    }

    .razan-slider-dot.is-active {
        width: 21px;
        background: #580c20;
    }
}

@media (prefers-reduced-motion: reduce) {
    .razan-slider-viewport { scroll-behavior: auto; }
    .razan-hint-arrows { animation: none; }
    .razan-slider-dot { transition: none; }
}


/* =========================================
   ABOUT SECTION
========================================= */

.about {
    padding: 110px 0;
    direction: rtl;
    background: linear-gradient(
        180deg,
        #fbf6f8 0%,
        #f3e4e8 100%
    );
}

.about-inner {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}


/* About Image */

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 26px;
    transition:
        transform .7s ease,
        box-shadow .7s ease;
    box-shadow: 0 30px 60px rgba(88, 12, 32, .12);
}

.about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 40px 80px rgba(88, 12, 32, .18);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: linear-gradient(
        180deg,
        rgba(88, 12, 32, .08),
        rgba(88, 12, 32, .18)
    );
    pointer-events: none;
}


/* About Text */

.about-content {
    max-width: 520px;
    color: #2d1a1f;
}

.about-label {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #580c20;
    margin-bottom: 14px;
    font-weight: 600;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 28px;
    color: #580c20;
}

.about-content p {
    font-size: 15px;
    line-height: 2.1;
    color: #4a3a3f;
    margin-bottom: 18px;
}


/* =========================================
   MODERN BUTTON
========================================= */

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid #580c20;
    color: #580c20;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all .3s ease;
}

.modern-btn span {
    transition: .3s;
}

.modern-btn:hover {
    background: #580c20;
    color: #fff;
    text-decoration: none;
}

.modern-btn:hover span {
    transform: translateX(5px);
}


/* =========================================
   HAUTE / NEW ARRIVALS SECTION
========================================= */

.haute-section {
    background: #ffffff;
    padding: 140px 20px 100px;
    display: flex;
    justify-content: center;
}

.haute-wrapper {
    text-align: center;
    max-width: 900px;
    width: 100%;
}


/* English Subtitle */

.haute-sub {
    display: block;
    font-size: 12px;
    letter-spacing: 6px;
    color: #580c20;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.4s ease-out;
}


/* Main Title */

.haute-title {
    font-size: 44px;
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.6s ease-out;
}


/* Divider */

.haute-divider {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scaleX(.6);
    transition: all 1.8s ease-out;
}

.haute-divider span {
    width: 140px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #580c20,
        #580c20,
        transparent
    );
}


/* Reveal Animation */

.haute-section.reveal .haute-sub,
.haute-section.reveal .haute-title {
    opacity: 1;
    transform: translateY(0);
}

.haute-section.reveal .haute-divider {
    opacity: 1;
    transform: scaleX(1);
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image img {
        height: 420px;
        border-radius: 5%;
    }
}

@media (max-width: 768px) {

    .haute-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .haute-sub {
        letter-spacing: 4px;
    }

    .haute-divider span {
        width: 90px;
    }

    .luxury-title {
        font-size: 28px;
    }

    .haute-section {
        padding: 90px 15px 65px;
    }

    .about {
        padding: 65px 0;
    }

    .about-inner {
        padding: 0 20px;
    }

    .about-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .about-image img {
        height: 320px;
    }

    .about-content p {
        font-size: 14px;
    }
}


/* =========================================
   FINAL MOBILE OVERFLOW PROTECTION
========================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    #products,
    .razan-marquee {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    video,
    iframe {
        max-width: 100%;
    }
}

/* فاصله صفحه لیست محصولات از هدر */
#products.products-page {
    padding-top: 110px;
}

/* =========================================
   RAZAN - QUIET LUXURY SLIDER FINISH
   ظرافت مینیمال برای فلش‌ها و تصاویر بندانگشتی
========================================= */

/* تعویض نرم عکس در حالت هاور دسکتاپ */
.razan-product-media .razan-main-image {
    transition: opacity .35s ease, transform .8s cubic-bezier(.2,.65,.3,1);
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .razan-product-media:hover .razan-main-image {
        transform: scale(1.018);
    }
}

/* بندانگشتی‌های ظریف و کم‌حاشیه */
.razan-thumbnails {
    gap: 8px;
    padding: 12px 2px 5px;
}

.razan-thumbnail {
    position: relative;
    flex: 0 0 39px;
    width: 39px;
    height: 49px;
    padding: 1px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    opacity: .72;
    transform: none;
    transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}

.razan-thumbnail img {
    border-radius: 1px;
}

.razan-thumbnail:hover {
    opacity: 1;
    border-color: #cbb9b0;
    transform: translateY(-1px);
}

.razan-thumbnail.active {
    opacity: 1;
    border-color: #76505a;
    border-width: 1px;
    transform: none;
}

.razan-thumbnail.active::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -4px;
    height: 1px;
    background: #76505a;
}

/* فلش‌های ظریف با زمینه روشن و خط دور بسیار نازک */
.razan-slider-arrow {
    top: 39%;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(88, 12, 32, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #580c20;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 300;
    box-shadow: 0 2px 12px rgba(35, 20, 20, .045);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.razan-slider-arrow:hover:not(:disabled) {
    background: #580c20;
    color: #fff;
    border-color: #580c20;
    transform: none;
    box-shadow: 0 4px 14px rgba(88, 12, 32, .12);
}

.razan-slider-arrow:disabled {
    background: rgba(255, 255, 255, .65);
    color: #a99a9d;
    border-color: rgba(120, 100, 105, .12);
    box-shadow: none;
    opacity: .55;
}

.razan-prev { left: 8px; }
.razan-next { right: 8px; }

/* اسکرول‌بار ظریف */
.razan-slider-viewport {
    scrollbar-color: #c8b4b8 #f5f1f1;
    scrollbar-width: thin;
}

.razan-slider-viewport::-webkit-scrollbar {
    height: 4px;
}

.razan-slider-viewport::-webkit-scrollbar-track {
    background: #f5f1f1;
    border-radius: 10px;
}

.razan-slider-viewport::-webkit-scrollbar-thumb {
    background: #c8b4b8;
    border-radius: 10px;
}

.razan-slider-viewport::-webkit-scrollbar-thumb:hover {
    background: #8d6570;
}

.razan-slider-progress {
    width: 92px;
    height: 2px;
    background: #eee8e8;
}

.razan-slider-progress-bar {
    background: #80606a;
}

.razan-slider-hint {
    color: #8b7379;
    letter-spacing: .1px;
}

.razan-hint-arrows {
    color: #80606a;
}

@media (max-width: 575px) {
    .razan-thumbnail {
        flex-basis: 36px;
        width: 36px;
        height: 46px;
    }

    .razan-slider-arrow {
        top: 34%;
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .razan-product-media .razan-main-image,
    .razan-thumbnail,
    .razan-slider-arrow {
        transition: none;
    }
}
