html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f5f0e8;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    overflow-x: hidden;
}

.font-traditional {
    font-family: 'Amiri', serif;
}

.font-luxury {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: #c9a84c;
}

.bg-gold {
    background-color: #c9a84c;
}

.border-gold {
    border-color: #c9a84c;
}

.bg-marble {
    background-color: #f5f0e8;
}

.bg-marble-light {
    background-color: #faf6ef;
}

.bg-deep-black {
    background-color: #0a0a0a;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.main-nav {
    position: relative;
    background: #0a0a0a;
    border-bottom: 2px solid #c9a84c;
}

.main-nav a {
    color: #e8e0d0;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #c9a84c;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 2px solid rgba(201, 168, 76, 0.3);
}

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

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 24px 20px;
}

.sidebar-brand {
    color: #c9a84c;
    font-size: 22px;
    letter-spacing: 0.1em;
}

.sidebar-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-close {
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: #c9a84c;
    transform: rotate(90deg);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    margin: 4px 24px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 28px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.06);
    border-left-color: #c9a84c;
}

.sidebar-nav a svg {
    color: #c9a84c;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 20px 28px 28px;
}

.sidebar-social {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.sidebar-social a {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.sidebar-social a:hover {
    color: #c9a84c;
    transform: scale(1.15);
}

.sidebar-location {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.luxury-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.5s ease;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.luxury-card img {
    transition: transform 1.2s cubic-bezier(0.15, 0, 0.15, 1);
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.luxury-card:hover img {
    transform: scale(1.08);
}

.luxury-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.2);
}

section {
    padding: 120px 0;
}

.bg-royal {
    background-color: #0a0a0a;
}

.transition-divider {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.transition-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

.transition-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

.nav-catalog {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-catalog a {
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-left: 1px solid rgba(201, 168, 76, 0.15);
    transition: all 0.3s ease;
}

.nav-catalog a:first-child {
    border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-catalog a:hover {
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c !important;
}

.nav-catalog a.active-link {
    color: #c9a84c !important;
    border-bottom: 2px solid #c9a84c;
}

.product-card {
    background: #fffdf9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.product-img-wrap {
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: zoom-in;
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0, 0.15, 1);
}

.product-img-wrap .img-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-img-wrap .img-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-img-wrap .img-slider img:first-child {
    opacity: 1;
    z-index: 2;
}

.product-img-wrap .img-slider img:last-child {
    opacity: 0;
    z-index: 1;
}

.product-img-wrap .img-slider.show-detail img:first-child {
    opacity: 0;
}

.product-img-wrap .img-slider.show-detail img:last-child {
    opacity: 1;
}

.img-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.img-nav span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: 1.5px solid rgba(0,0,0,0.25);
}

.img-nav span:hover {
    transform: scale(1.2);
}

.img-nav span.active {
    background: #c9a84c;
    border-color: #c9a84c;
}

.product-card:hover .product-img-wrap > img,
.product-img-wrap > img.zoomed {
    transform: scale(1.1);
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.6;
}

.product-desc {
    font-size: 0.8rem;
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-size {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price {
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #c9a84c;
    margin-bottom: 12px;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #c9a84c;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
}

.product-btn:hover {
    background: #b8953e;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }

    section {
        padding: 60px 0;
    }

    .luxury-card img {
        height: 400px;
    }

    .nav-catalog a {
        padding: 12px 14px;
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-desc {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .product-btn {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
}

@media (max-width: 1024px) {
    .nav-catalog {
        display: none;
    }
}

.rimalisa-card {
    display: flex;
    flex-direction: column;
}

.rimalisa-img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.rimalisa-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rimalisa-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
}
