main {
    padding-top: 0;
}

/* ===================================================================== */
/* Lazy Load Animation System */
/* ===================================================================== */
.lazy-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.lazy-element.lazy-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variations for staggered animations */
.lazy-element:nth-child(1) {
    transition-delay: 0.1s;
}
.lazy-element:nth-child(2) {
    transition-delay: 0.2s;
}
.lazy-element:nth-child(3) {
    transition-delay: 0.3s;
}
.lazy-element:nth-child(4) {
    transition-delay: 0.4s;
}
.lazy-element:nth-child(5) {
    transition-delay: 0.5s;
}
.lazy-element:nth-child(6) {
    transition-delay: 0.6s;
}

.index-hero {
    height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .index-hero {
        height: 31vh;
    }
}

.index-hero__video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.index-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgb(10 10 15 / 33%) 0%,
        rgb(10 10 15 / 18%) 50%,
        rgb(10 10 15 / 19%) 100%
    );
    z-index: -1;
}

.index-hero__content {
    animation: fadeIn 1.5s 0.5s ease-out forwards;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    padding: 0 1rem;
    box-sizing: border-box;
    text-align: center;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .index-hero__content {
        display: none;
    }
}

.index-hero__title {
    font-size: calc(26px + 2.5vw);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(212, 175, 55, 0.4);
}

.index-hero__title span {
    color: var(--rz-primary-accent, #d4af37);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.index-hero__subtitle {
    font-size: calc(14px + 0.25vw);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 1rem auto 2.5rem auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    color: #0a0a0f;
    padding: 1rem 3rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--rz-primary-accent, #d4af37);
}

.btn-hero:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5),
        0 6px 16px rgba(212, 175, 55, 0.3);
}

.product-section {
    padding: 37px 0;
    background: linear-gradient(
        180deg,
        var(--rz-bg, #0a0a0f) 0%,
        var(--rz-surface, #12121a) 50%,
        var(--rz-bg, #0a0a0f) 100%
    );
    position: relative;
}

.product-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(212, 175, 55, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: calc(15px + 2vw);
    font-weight: 700;
    color: var(--rz-text-dark);
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: calc(22px + 2vw);
    }
}

.section-subtitle {
    color: var(--rz-text-light);
}

.product-card {
    background: linear-gradient(
        135deg,
        var(--rz-surface-card, #1e1e2e) 0%,
        var(--rz-surface-elevated, #1a1a24) 100%
    );
    border: 1.5px solid var(--rz-border, rgba(212, 175, 55, 0.2));
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--rz-text-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(212, 175, 55, 0.1);
    position: relative;
    margin-bottom: 25px;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        145deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(212, 175, 55, 0.3);
    border-color: var(--rz-primary-accent, #d4af37);
}

.product-card__image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.product-card__image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-card__image::after {
    opacity: 1;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.12);
}

.product-card__content {
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        180deg,
        var(--rz-surface-card, #1e1e2e) 0%,
        var(--rz-surface-elevated, #1a1a24) 100%
    );
}

.product-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rz-text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__cta {
    display: inline-flex;
    width: 120px;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674) 0%,
        var(--rz-primary-accent, #d4af37) 50%
    );
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4), 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: none;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--rz-primary-accent, #d4af37);
}

.product-card__cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.product-card__cta:hover::before {
    left: 100%;
}

.product-card__cta i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.product-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5),
        0 4px 12px rgba(212, 175, 55, 0.3);
    background: linear-gradient(
        135deg,
        var(--rz-primary-accent, #d4af37) 0%,
        var(--rz-gold-dark, #b8924a) 100%
    );
}

.product-card__cta:hover i {
    transform: translateX(3px);
}

.product-card:hover .product-card__cta {
    animation: pulse-gold 1.5s infinite;
}

@keyframes pulse-gold {
    0%,
    100% {
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 10px 28px rgba(212, 175, 55, 0.7);
    }
}

.product-card:focus-visible .product-card__cta,
.product-card:active .product-card__cta {
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .product-card__title {
        font-size: 0.85rem;
        min-height: 2.8em;
    }

    .product-card__cta {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }

    .product-card__content {
        padding: 1rem 0.75rem;
    }
}

/* Stone Divider with Wavy Lines */
.stone-divider-container {
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.stone-divider-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.stone-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wave-line-full {
    width: 100%;
    height: 15px;
}

.wave-line-full path {
    animation: wave-flow 4s ease-in-out infinite;
    stroke: var(--rz-primary-accent, #9d8461);
    filter: drop-shadow(0 1px 3px rgba(157, 132, 97, 0.2));
}

@keyframes wave-flow {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .stone-divider-container {
        padding: 15px 0;
    }

    .wave-line-full {
        height: 12px;
    }
}

@media (max-width: 575.98px) {
    .stone-divider-container {
        padding: 10px 0;
    }

    .wave-line-full {
        height: 10px;
    }
}

/* About Summary Section */
.about-summary {
    padding: 60px 0;
    background: linear-gradient(
        180deg,
        var(--rz-surface-elevated, #1a1a24) 0%,
        var(--rz-surface, #12121a) 100%
    );
    position: relative;
}

.about-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.about-summary__title {
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--rz-text-dark);
}

.about-summary__text {
    color: var(--rz-text-dark);
    line-height: 2;
}

.about-summary__text--bordered {
    position: relative;
    padding: 20px 25px;
    border-top: 1.5px solid #9d8461;
    border-right: 1.5px solid #9d8461;
    border-top-right-radius: 4px;
}

.about-summary__text--bordered::before {
    content: "";
    position: absolute;
    top: -6px;
    right: -6px;
    width: 40px;
    height: 40px;
    border-top: 2px solid #b89968;
    border-right: 2px solid #b89968;
    border-top-right-radius: 4px;
    opacity: 0.4;
}

.about-summary__text p {
    margin: 0 0 6px 0;
}

.about-summary__btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #0a0a0f;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674) 0%,
        var(--rz-primary-accent, #d4af37) 100%
    );
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--rz-primary-accent, #d4af37);
}

.about-summary__btn:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5),
        0 6px 16px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--rz-primary-accent, #d4af37) 0%,
        var(--rz-gold-dark, #b8924a) 100%
    );
}

@media (max-width: 767.98px) {
    .about-summary {
        padding: 37px 0;
    }
}

/* 3D Gallery Styles */
.gallery-3d {
    position: relative;
    width: 100%;
    user-select: none;
}

/* Gallery header styles */
.gallery-header {
    margin-bottom: 18px;
    text-align: right;
}

.gallery-header__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rz-text-dark);
    margin: 0 0 6px 0;
}

.gallery-header__subtitle {
    margin: 0;
    color: var(--rz-text-light);
    font-size: 0.95rem;
}

.gallery-3d__viewport {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 1200px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .gallery-3d__viewport {
        height: 350px;
    }
}

.gallery-3d__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    max-width: 350px;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.gallery-3d__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transition: opacity 0.3s ease;
}

.gallery-3d__item img.lazy-gallery {
    opacity: 0;
}

.gallery-3d__item img.lazy-gallery.loaded {
    opacity: 1;
}

.gallery-3d__caption {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 70%,
        transparent 100%
    );
    color: #fff;
    padding: 18px 12px 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 16px 16px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-3d__item--left .gallery-3d__caption,
.gallery-3d__item--right .gallery-3d__caption {
    font-size: 0.72rem;
    padding: 12px 8px 6px 8px;
}

@media (max-width: 767.98px) {
    .gallery-3d__caption {
        font-size: 0.82rem;
        padding: 18px 11px 14px 10px;
    }

    .gallery-3d__item--left .gallery-3d__caption,
    .gallery-3d__item--right .gallery-3d__caption {
        font-size: 0.68rem;
        padding: 12px 8px 6px 8px;
    }
}

.gallery-3d__item--center {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(0.7) rotateY(0deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
        0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Left preview */
.gallery-3d__item--left {
    z-index: 2;
    opacity: 0.7;
    pointer-events: auto;
    transform: translate(-115%, -50%) scale(0.63) rotateY(20deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-3d__item--left:hover {
    opacity: 1;
    transform: translate(-115%, -50%) scale(0.58) rotateY(18deg);
}

/* Right preview */
.gallery-3d__item--right {
    z-index: 2;
    opacity: 0.7;
    pointer-events: auto;
    transform: translate(15%, -50%) scale(0.63) rotateY(-20deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-3d__item--right:hover {
    opacity: 1;
    transform: translate(15%, -50%) scale(0.58) rotateY(-18deg);
}

/* Hidden items */
.gallery-3d__item--hidden {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
}

/* Indicators/Dots */
.gallery-3d__indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.gallery-3d__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-3d__dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.gallery-3d__dot--active {
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

/* Lightbox Styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    color: #0a0a0f;
    border: 1px solid var(--rz-primary-accent, #d4af37);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.gallery-lightbox__close:hover {
    background: linear-gradient(
        135deg,
        var(--rz-primary-accent, #d4af37),
        var(--rz-gold-dark, #b8924a)
    );
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.6);
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.9),
        rgba(212, 175, 55, 0.7)
    );
    color: #0a0a0f;
    border: 1px solid var(--rz-primary-accent, #d4af37);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.gallery-lightbox__nav:hover {
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.6);
}

.gallery-lightbox__nav--prev {
    left: 20px;
}

.gallery-lightbox__nav--next {
    right: 20px;
}

.gallery-lightbox__counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #0a0a0f;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid var(--rz-primary-accent, #d4af37);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 767.98px) {
    .gallery-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-lightbox__nav--prev {
        left: 10px;
    }

    .gallery-lightbox__nav--next {
        right: 10px;
    }

    .gallery-lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-lightbox__counter {
        bottom: 10px;
        font-size: 14px;
        padding: 6px 16px;
    }
}

@media (max-width: 767.98px) {
    .gallery-3d__item {
        width: 75%;
    }

    .gallery-3d__item--center {
        transform: translate(-50%, -50%) scale(0.7) rotateY(0deg);
    }

    .gallery-3d__item--left {
        transform: translate(-125%, -50%) scale(0.7) rotateY(25deg);
        opacity: 0.8;
    }

    .gallery-3d__item--left:hover {
        transform: translate(-125%, -50%) scale(0.75) rotateY(23deg);
    }

    .gallery-3d__item--right {
        transform: translate(25%, -50%) scale(0.7) rotateY(-25deg);
        opacity: 0.8;
    }

    .gallery-3d__item--right:hover {
        transform: translate(25%, -50%) scale(0.75) rotateY(-23deg);
    }

    .gallery-3d__indicators {
        margin-top: 20px;
        gap: 8px;
    }

    .gallery-3d__dot {
        width: 10px;
        height: 10px;
    }
}

/* Features Cards Section */
.features-cards {
    padding: 80px 0;
    background: linear-gradient(
        180deg,
        var(--rz-bg, #0a0a0f) 0%,
        var(--rz-surface, #12121a) 50%,
        var(--rz-bg, #0a0a0f) 100%
    );
    position: relative;
}

.features-cards::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 70% 30%,
        rgba(212, 175, 55, 0.06) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.feature-card {
    height: 100%;
}

/* Make cards more compact on desktop while keeping them responsive on small screens */
.feature-card__inner {
    --accent-1: var(--rz-primary-accent, #d4af37);
    --accent-2: rgba(212, 175, 55, 0.35);
    position: relative;
    background: linear-gradient(
        135deg,
        var(--rz-surface-card, #1e1e2e) 0%,
        var(--rz-surface-elevated, #1a1a24) 100%
    );
    border: 1px solid var(--rz-border, rgba(212, 175, 55, 0.2));
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: right;
    padding: 20px 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(212, 175, 55, 0.1);
    min-height: 190px;
}

/* Keep a square-ish layout on very small screens */
@media (max-width: 575.98px) {
    .feature-card__inner {
        aspect-ratio: 1 / 1.6;
        padding: 16px 14px;
        min-height: auto;
        max-height: none;
        justify-content: flex-start;
        gap: 8px;
    }
}

/* Align icon/title/desc vertically with consistent spacing */
.feature-card__media {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .feature-card__media {
        flex-direction: column;
        align-items: flex-start;
    }
}

.feature-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #b89968, #9d8461);
    box-shadow: 0 4px 12px rgba(157, 132, 97, 0.25);
    color: #ffffff;
    border: 1px solid #9d8461;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.feature-icon:hover {
    opacity: 1;
    box-shadow: 0 6px 16px rgba(157, 132, 97, 0.35);
}

@media (max-width: 575.98px) {
    .feature-icon {
        width: 40px;
        height: 40px;
    }
}

.feature-icon i {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    opacity: 0.95;
}

@media (max-width: 575.98px) {
    .feature-icon i {
        font-size: 1.1rem;
    }
}

.feature-card__title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--rz-text-dark);
    margin: 0;
    position: relative;
    padding-bottom: 8px;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .feature-card__title {
        font-size: 0.95rem;
        padding-bottom: 6px;
    }
}

.feature-card__title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2.5px;
    background: linear-gradient(
        90deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37),
        transparent
    );
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.feature-card__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(
        145deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card__inner:hover::before {
    opacity: 1;
}

.feature-card__inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(212, 175, 55, 0.3);
    border-color: var(--rz-primary-accent, #d4af37);
}

/* remove older icon sizing rule; handled by .feature-icon */

/* title styles consolidated above; avoid duplicate rules */

.feature-card__desc {
    color: var(--rz-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 10px 0 0 0;
}

@media (max-width: 575.98px) {
    .feature-card__desc {
        font-size: 0.88rem;
        line-height: 1.65;
        margin: 8px 0 0 0;
    }
}

/* Decorative radial glows similar to About cards */
.feature-card__inner .glow-top,
.feature-card__inner .glow-bottom {
    display: none;
}

.feature-card__inner::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.15),
        rgba(212, 175, 55, 0) 60%
    );
    pointer-events: none;
}

/* Product Types Section */
.product-types-section {
    padding: 40px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-types-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(212, 175, 55, 0.03) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(212, 175, 55, 0.02) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    font-family: "Vazirmatn", sans-serif;
}

@media (max-width: 768px) {
    .section-header__title {
        font-size: 1.8rem;
    }
}

.section-header__subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-family: "Vazirmatn", sans-serif;
}

@media (max-width: 768px) {
    .section-header__subtitle {
        font-size: 0.95rem;
    }
}

.product-type-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 15px;
    padding: 13px 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.product-type-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at top right,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-type-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.15);
}

.product-type-card:hover::before {
    opacity: 1;
}

.product-type-card--featured {
    background: linear-gradient(145deg, #1f1f1f 0%, #141414 100%);
    border-color: rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .product-type-card--featured {
        transform: scale(1);
    }
}

.product-type-card--featured:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
    .product-type-card--featured:hover {
        transform: translateY(-5px) scale(1);
    }
}

.product-type-card__icon-wrapper {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.12) 0%,
        rgba(212, 175, 55, 0.04) 100%
    );
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
}

.product-type-card__icon-wrapper::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-type-card:hover .product-type-card__icon-wrapper {
    transform: scale(1.08) rotate(8deg);
}

.product-type-card:hover .product-type-card__icon-wrapper::before {
    opacity: 0.3;
}

.product-type-card__icon {
    font-size: 1.6rem;
    color: #d4af37;
    transition: all 0.3s ease;
}

.product-type-card:hover .product-type-card__icon {
    transform: scale(1.08);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.product-type-card__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    margin-bottom: 18px;
    font-family: "Vazirmatn", sans-serif;
    position: relative;
    padding-bottom: 10px;
}

.product-type-card__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

@media (max-width: 768px) {
    .product-type-card__title {
        font-size: 1.2rem;
    }
}

.product-type-card__content {
    /* text-align: right; */
    position: relative;
}

.product-type-card__item {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: "Vazirmatn", sans-serif;
}

.product-type-card__item:last-child {
    margin-bottom: 0;
}

.product-type-card:hover .product-type-card__item {
    color: #e0e0e0;
}

.product-type-card__item i {
    color: #d4af37;
    font-size: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-type-card:hover .product-type-card__item i {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .product-type-card__item {
        font-size: 0.85rem;
    }
}

/* Section Footer Line */
.section-footer-line {
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    position: relative;
}

.section-footer-line__bar {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent 0%, #d4af37 100%);
    position: relative;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.section-footer-line__bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.section-footer-line__text {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    font-family: "Vazirmatn", sans-serif;
}

@media (max-width: 768px) {
    .section-footer-line {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 15px;
    }

    .section-footer-line__text {
        text-align: center;
        font-size: 1.1rem;
    }

    .section-footer-line__bar::after {
        right: 50%;
        transform: translate(50%, -50%);
    }
}

/* Floating Support Button */
.floating-support-btn {
    position: fixed;
    bottom: 20px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(100px) scale(0.5);
    pointer-events: none;
    text-decoration: none;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-support-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-support-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6),
        0 6px 16px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
}

.floating-support-btn i {
    font-size: 28px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-15deg);
    }

    20%,
    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

.floating-support-btn::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .floating-support-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .floating-support-btn i {
        font-size: 24px;
    }
}

.section-header--fancy {
    position: relative;
    padding: 28px 0 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-header--fancy::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.08),
        rgba(212, 175, 55, 0.03)
    );
    z-index: 0;
}

.section-header--fancy .section-title {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 12px 32px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    color: #0a0a0f;
    font-weight: 900;
    box-shadow: 0 12px 36px rgba(212, 175, 55, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.3);
    font-size: calc(16px + 1.2vw);
    letter-spacing: 0.4px;
    white-space: nowrap;
    border: 1px solid var(--rz-primary-accent, #d4af37);
}

.section-header--fancy .section-title strong {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    padding: 6px 10px;
    border-radius: 999px;
    margin-left: 0.35rem;
}

.section-header--fancy .section-subtitle {
    position: relative;
    z-index: 1;
    color: var(--rz-text-light);
    font-size: 0.95rem;
    margin: 0;
    direction: rtl;
}

@media (max-width: 575.98px) {
    .section-header--fancy .section-title {
        font-size: 1.2rem;
        padding: 8px 18px;
    }
}

/* Product Gallery Carousel Styles */
.product-gallery-carousel {
    position: relative;
    width: 100%;
    user-select: none;
    padding: 0px 0;
}

.product-gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.product-gallery-header__main-title {
    font-size: calc(20px + 2vw);
    font-weight: 800;
    color: var(--rz-text-dark);
    margin: 0 0 30px 0;
    text-shadow: 0 3px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.product-gallery-header__main-title::before,
.product-gallery-header__main-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--rz-primary-accent, #d4af37) 50%,
        transparent 100%
    );
}

.product-gallery-header__main-title::before {
    right: 100%;
    margin-right: 15px;
}

.product-gallery-header__main-title::after {
    left: 100%;
    margin-left: 15px;
}

@media (max-width: 767.98px) {
    .product-gallery-header__main-title {
        font-size: calc(18px + 1.5vw);
        margin-bottom: 25px;
    }

    .product-gallery-header__main-title::before,
    .product-gallery-header__main-title::after {
        width: 40px;
    }
}

@media (max-width: 575.98px) {
    .product-gallery-header__main-title::before,
    .product-gallery-header__main-title::after {
        display: none;
    }
}

.product-gallery-header__actions {
    margin-bottom: 20px;
}

.product-gallery-header__btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    color: #0a0a0f;
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674) 0%,
        var(--rz-primary-accent, #d4af37) 100%
    );
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--rz-primary-accent, #d4af37);
}

.product-gallery-header__btn:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5),
        0 6px 16px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--rz-primary-accent, #d4af37) 0%,
        var(--rz-gold-dark, #b8924a) 100%
    );
}

.product-gallery-header__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--rz-text-dark);
    margin: 0;
    line-height: 2;
}

.product-gallery__viewport {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1200px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    cursor: grab;
    will-change: transform;
}

@media (max-width: 767.98px) {
    .product-gallery__viewport {
        height: 320px;
    }
}

.product-gallery__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (max-width: 767.98px) {
    .product-gallery__item {
        width: 220px;
    }
}

.product-gallery__item-inner {
    position: relative;
    width: 100%;
    border: 1.5px solid var(--rz-border, rgba(212, 175, 55, 0.2));
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 3D Transform setup - added for flip functionality */
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.product-gallery__item-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        145deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-gallery__item:hover .product-gallery__item-inner::before {
    opacity: 1;
}

.product-gallery__item:hover .product-gallery__item-inner {
    border-color: var(--rz-primary-accent, #d4af37);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
        0 12px 30px rgba(212, 175, 55, 0.3);
}

.product-gallery__image {
    aspect-ratio: 3/3;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__image img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.product-gallery__item:hover .product-gallery__image img {
    transform: scale(1) translateZ(0);
}

.product-gallery__content {
    padding: 0.75rem;
    text-align: center;
    background: linear-gradient(
        180deg,
        var(--rz-surface-card, #1e1e2e) 0%,
        var(--rz-surface-elevated, #1a1a24) 100%
    );
}

.product-gallery__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rz-text-dark);
    margin: 0;
    line-height: 1.4;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

/* فونت Playfair Display فقط برای زبان انگلیسی */
html[lang="en"] .product-gallery__title,
html[lang="en"] .gallery-3d__caption {
    font-family: "Playfair Display", serif;
    font-style: italic;
}

.product-gallery__item--center {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
}

.product-gallery__item--left-1 {
    z-index: 4;
    opacity: 0.85;
    pointer-events: auto;
    transform: translate(-140%, -50%) scale(0.85) !important;
}

.product-gallery__item--left-2 {
    z-index: 3;
    opacity: 0.6;
    pointer-events: auto;
    transform: translate(-230%, -50%) scale(0.75) !important;
}

.product-gallery__item--right-1 {
    z-index: 4;
    opacity: 0.85;
    pointer-events: auto;
    transform: translate(40%, -50%) scale(0.85) !important;
}

.product-gallery__item--right-2 {
    z-index: 3;
    opacity: 0.6;
    pointer-events: auto;
    transform: translate(130%, -50%) scale(0.75) !important;
}

.product-gallery__item--hidden {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5) !important;
}

.product-gallery__indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
    padding: 0 15px;
}

.product-gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-gallery__dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.product-gallery__dot--active {
    background: linear-gradient(
        135deg,
        var(--rz-gold-light, #f0d674),
        var(--rz-primary-accent, #d4af37)
    );
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.5);
}

@media (max-width: 767.98px) {
    .product-gallery__item--left-1 {
        transform: translate(-125%, -50%) scale(0.8);
    }

    .product-gallery__item--left-2 {
        transform: translate(-220%, -50%) scale(0.7);
    }

    .product-gallery__item--right-1 {
        transform: translate(25%, -50%) scale(0.8);
    }

    .product-gallery__item--right-2 {
        transform: translate(120%, -50%) scale(0.7);
    }

    .product-gallery-header__title {
        font-size: 1rem;
    }

    .product-gallery-header__btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* ========================================================== */
/* 3D FLIP CARD SYSTEM - Render Gallery Cards                */
/* ========================================================== */
*/

/* Gallery 3D Item Inner Container - Flip Wrapper */
.gallery-3d__item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Faces: Front and Back */
.gallery-3d__face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
}

/* Front Face: Default view with image */
.gallery-3d__face--front {
    position: relative;
    transform: rotateY(0deg);
    z-index: 2;
}

/* Back Face: Flipped view with text content */
.gallery-3d__face--back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: rotateY(180deg);
    background: linear-gradient(
        135deg,
        rgba(15, 15, 22, 0.98) 0%,
        rgba(22, 22, 32, 0.98) 50%,
        rgba(15, 15, 22, 0.98) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

/* Flipped State */
.gallery-3d__item--flipped .gallery-3d__item-inner {
    transform: rotateY(180deg);
}

/* Back Content Container */
.gallery-3d__back {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    position: relative;
}

/* Back Close Button */
.gallery-3d__back-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(212, 175, 55, 0.1);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-3d__back-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: rotate(90deg);
}

[dir="rtl"] .gallery-3d__back-close {
    right: auto;
    left: 10px;
}

/* Back Body Content */
.gallery-3d__back-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px; /* more breathing room */
    width: 100%;
    max-width: 340px; /* allow wider back content on desktop */
    padding: 0 8px; /* small horizontal padding to avoid cramped edges */
}

/* Back Title */
.gallery-3d__back-title {
    font-size: 1.25rem; /* slightly larger on desktop */
    font-weight: 700;
    color: #d4af37;
    margin: 0;
    line-height: 1.35; /* a bit tighter but readable */
    text-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.2px;
}

html[lang="en"] .gallery-3d__back-title {
    font-family: "Playfair Display", serif;
    font-style: italic;
}

/* Back Description Text */
.gallery-3d__back-text {
    font-size: 1rem; /* increase readability */
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7; /* more comfortable leading */
    margin: 0;
    padding: 0 10px; /* more horizontal padding */
    text-align: justify; /* nicer block layout */
}

/* Back CTA Button */
.gallery-3d__back-cta {
    display: inline-block;
    padding: 12px 28px; /* larger hit area */
    background: linear-gradient(135deg, #f0d674, #d4af37);
    color: #0a0a0f;
    font-weight: 800;
    font-size: 0.95rem; /* more legible */
    text-decoration: none;
    border-radius: 999px; /* pill */
    border: 1px solid #d4af37;
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 10px;
    cursor: pointer;
    padding-inline: 28px;
}

.gallery-3d__back-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #d4af37, #b89968);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .gallery-3d__back-title {
        font-size: 1.12rem; /* slightly larger on mobile for readability */
    }

    .gallery-3d__back-text {
        font-size: 1.2rem;
        line-height: 1.8;
        padding: 9px 11px;
    }

    .gallery-3d__back-cta {
        font-size: 0.92rem;
        padding: 10px 22px;
        margin-top: 12px;
    }
}
