﻿html {
    font-size: 14px;
}

html, body {
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    direction: rtl;
    text-align: right;
    font-family: 'Vazir', 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
}

.card-title, h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0;
}

.price-old {
    color: #888;
    text-decoration: line-through;
}

.price-new {
    color: #d63384;
    font-weight: 700;
}

.product-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border-radius: .75rem;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,.08);
    }

.table {
    background-color: transparent;
}

.card {
    border: none;
    border-radius: .75rem;
}

    .card .card-header {
        background-color: transparent;
        font-weight: 600;
    }

.badge-status {
    font-size: .85rem;
    padding: .5em .6em;
    border-radius: .5rem;
}

.badge-pending {
    background-color: #ffe08a;
    color: #7a5c00;
}

.badge-confirmed {
    background-color: #b3e5fc;
    color: #01579b;
}

.badge-completed {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.badge-cancelled {
    background-color: #eceff1;
    color: #455a64;
}


/* Theme: navbar and footer */
.site-navbar {
    background: linear-gradient(135deg, #1b1b1b, #1b1b1b);
}

    .site-navbar .nav-link {
        color: #eee;
    }

        .site-navbar .nav-link:hover {
            color: #f1c40f;
        }

.site-footer {
    background: #0f1116;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #d6d6d6;
}

    .site-footer a {
        color: #f0d58a;
        text-decoration: none;
    }

        .site-footer a:hover {
            color: #ffe08a;
        }

/* Rich footer elements */
.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    padding: .25rem;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .75rem;
}

.footer-links li {
    margin-bottom: .5rem;
}

.footer-links a {
    color: #d6d6d6;
}

    .footer-links a:hover {
        color: #ffe08a;
        text-decoration: none;
    }

.social-links .icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    transition: all .15s ease;
}

    .social-links .icon:hover {
        background: rgba(255,255,255,.14);
        color: #ffe08a;
        border-color: rgba(255,255,255,.2);
    }

.footer-sep {
    border-color: rgba(255,255,255,.08);
}

.footer-bottom .small a {
    color: #f0d58a;
}
/* eNamad seal styling */
.enamad-wrap {
    display: inline-block;
}

.enamad-seal {
    width: 120px;
    height: auto;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    padding: .25rem;
}

/* ====== Auth pages (modern form) ====== */
.auth-wrap {
    min-height: 50vh;
}

.auth-card {
    min-height: 420px;
    border-radius: 1rem;
}

.auth-input {
    border-radius: .75rem;
    padding: .75rem 1rem;
}

    .auth-input::placeholder {
        color: rgba(0,0,0,.5);
    }

.auth-actions .btn {
    min-height: 46px;
    border-radius: .75rem;
}

.input-icon {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.08);
}


/* Buttons */
.btn-gold {
    background-color: #4f4706;
    color: #fff;
    border-color: #4f4706;
}

    .btn-gold:hover {
        background-color: #6a6111;
        border-color: #6a6111;
        color: #fff;
    }

/* Product cards */
.badge-discount {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: #d9534f;
    color: #fff;
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-size: .75rem;
}

.card-img-overlay .icon-btn {
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .card-img-overlay .icon-btn:hover {
        background: rgba(0,0,0,.65);
    }


/* ====== RishSefid Home (additions) ====== */
:root {
    --gold: #d4af37;
    --dark: #0f0f10;
    --muted: #6c757d;
    --hero-grad: linear-gradient(135deg, #16181d 0%, #1f2230 100%);
}


.btn-gold {
    background: var(--gold);
    color: #111;
    border: none;
}

    .btn-gold:hover {
        filter: brightness(.95);
        color: #111;
    }

.section-title {
    font-weight: 800;
    letter-spacing: -.3px;
}

.feature-card {
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

.feature-icon {
    width: 58px;
    height: 58px;
    line-height: 58px;
    text-align: center;
    background: rgba(212,175,55,.12);
    color: #bfa131;
    border-radius: 12px;
    font-size: 26px;
}

.gallery-grid .tile {
    position: relative;
}

    .gallery-grid .tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.02);
        transition: transform .35s ease, filter .35s ease;
    }

    .gallery-grid .tile:hover img {
        transform: scale(1.06);
        filter: saturate(1.05);
    }

.tile-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: .5rem .75rem;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.testimonial-card {
    border: 1px solid rgba(212,175,55,.22);
    background: #1a1a1a;
    border-radius: 14px;
    color: #e6e6e6;
}

.brand-strip {
    background: #121212;
    border: 1px dashed rgba(212,175,55,.25);
}

/* Packages cards (dark, gold accent) */
.package-card {
    background: #37363669;
    border-radius: 16px;
    color: #e6e6e6;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .package-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 34px rgba(0,0,0,.28);
    }

.package-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,.14);
    color: #d4af37;
    font-size: 22px;
    margin-bottom: .75rem;
}

.cta-banner {
    background: radial-gradient(1200px 500px at 50% 0%, rgba(212,175,55,.25), rgba(0,0,0,0)), linear-gradient(135deg, #2a2d3a 0%, #1a1c26 100%);
    border: 1px solid rgba(255,255,255,.1);
}

/* Typography coherence */
body {
    font-family: 'Vazir', sans-serif;
}

.container .text-muted {
    color: var(--muted) !important;
}


/* ====== Modern Navbar (glass, underline, icons) ====== */
.glass-navbar {
    background: rgba(23, 25, 33, 0.72);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-bottom: 1rem;
}

    .glass-navbar .navbar-brand {
        color: #fff;
    }

.brand-mark {
    width: 34px;
    height: 34px;
    background: rgba(212,175,55,.18);
    color: #d4af37;
}

.navbar .nav-link {
    color: #eaeaea;
}

    .navbar .nav-link:hover, .navbar .nav-link:focus {
        color: #fff;
    }

.nav-underline {
    position: relative;
}

    .nav-underline::after {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        inset-block-end: -2px;
        width: 0;
        height: 2px;
        background: #d4af37;
        transition: width .2s ease;
    }

    .nav-underline:hover::after, .nav-underline:focus::after {
        width: 100%;
    }

.btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

    .btn-icon:hover {
        background: rgba(255,255,255,.15);
    }

.cart-badge {
    position: absolute;
    inset-inline-end: -6px;
    inset-block-start: -6px;
    font-size: .7rem;
}

/* Redesigned cart button: pill style with label and inline count */
.btn-cart {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    border-radius: 999px;
    padding: .4rem .8rem;
}

    .btn-cart:hover {
        background: rgba(255,255,255,.15);
    }

    .btn-cart i {
        font-size: 1.25rem;
        line-height: 1;
    }

    .btn-cart .badge {
        margin-inline-start: .25rem;
    }

.cart-count {
    font-size: .75rem;
}

.search-group {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    overflow: hidden;
}

    .search-group .search-control {
        background: transparent;
        color: #fff;
        border: none;
        border-radius: 999px;
        padding-inline: 1rem;
    }

        .search-group .search-control:focus {
            box-shadow: none;
        }

        .search-group .search-control::placeholder {
            color: rgba(255,255,255,.7);
        }

    .search-group .btn {
        border: none;
        color: #fff;
    }
/* Improve search interaction: subtle hover/focus, no width jump */
.navbar .search-group {
    width: 240px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .navbar .search-group:hover, .navbar .search-group:focus-within {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.28);
        box-shadow: inset 0 4px 14px rgba(0,0,0,.12);
    }

    .navbar .search-group .search-control {
        padding-block: .45rem;
    }

.compact-search .input-group-text {
    padding-inline: .5rem;
}

.offcanvas.text-bg-dark {
    background: linear-gradient(180deg, #1b1e28 0%, #12151c 100%);
}

.offcanvas .nav-link {
    color: #e0e0e0;
}

    .offcanvas .nav-link:hover {
        color: #fff;
    }

/* Ensure navbar layers below offcanvas properly */
.glass-navbar {
    z-index: 1030;
}

/* Account dropdown (modern, themed) */
.account-dropdown {
    background: linear-gradient(180deg, #1b1e28 0%, #12151c 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    border-radius: 12px;
    min-width: 240px;
}

    .account-dropdown .dropdown-item {
        color: #e0e0e0;
    }

        .account-dropdown .dropdown-item:hover {
            background: rgba(255,255,255,.08);
            color: #fff;
        }

    .account-dropdown .dropdown-divider {
        border-color: rgba(255,255,255,.12);
    }

    .account-dropdown .btn-gold {
        border-radius: 10px;
    }

/* Offcanvas fallback: hide by default, show when toggled */
.offcanvas {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background-clip: padding-box;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    z-index: 1045;
}

    .offcanvas.offcanvas-end {
        inset-inline-end: 0;
    }

    .offcanvas.show {
        visibility: visible;
        transform: none;
    }

/* Backdrop fallback */
.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0,0,0,.5);
    opacity: 1;
}

    .offcanvas-backdrop.fade {
        opacity: 0;
        transition: opacity .15s linear;
    }

    .offcanvas-backdrop.show {
        opacity: 1;
    }

@media (max-width: 991.98px) {
    .offcanvas {
        width: 85vw;
    }
}

/* ====== Mobile navbar/offcanvas fixes ====== */
/* Ensure the offcanvas fills the viewport height and its body scrolls */
.offcanvas {
    height: 100vh;
    max-height: 100vh;
    box-sizing: border-box;
}

.offcanvas-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* Slightly compact navbar padding on small screens to avoid cramped layout */
@media (max-width: 991.98px) {
    .glass-navbar {
        padding-block: .5rem;
    }
}

/* Prevent Bootstrap from inlining the offcanvas into navbar on lg+ */
@media (min-width: 992px) {
    .navbar.navbar-expand-lg .offcanvas {
        position: fixed !important;
        display: none !important;
        visibility: hidden !important;
        transform: translateX(100%) !important;
    }
}

/* Mobile typography tweaks for hero */
@media (max-width: 575.98px) {
    .hero .display-5 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: 1rem;
    }
}

/* Media defaults */
img {
    max-width: 100%;
    height: auto;
}

/* ====== Services page responsive tweaks ====== */
@media (max-width: 921px) {
    .services-grid .card {
        border-radius: 12px;
    }

    .services-grid .card-body {
        padding: 1rem;
    }

    .services-grid .time-chip {
        min-width: 72px;
    }

    .btn {
        min-height: 40px;
    }
}

@media (max-width: 575.98px) {
    .services-grid .card-title {
        font-size: 1rem;
    }

    .services-grid .fs-5 {
        font-size: 1rem !important;
    }

    /* ====== Micro animations ====== */
    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    .animate-in {
        opacity: 0;
        transform: translateY(12px);
        animation: fadeUp .5s ease forwards;
    }

    .services-grid > [class*="col-"]:nth-child(1) .animate-in {
        animation-delay: .0s;
    }

    .services-grid > [class*="col-"]:nth-child(2) .animate-in {
        animation-delay: .06s;
    }

    .services-grid > [class*="col-"]:nth-child(3) .animate-in {
        animation-delay: .12s;
    }

    .services-grid > [class*="col-"]:nth-child(4) .animate-in {
        animation-delay: .18s;
    }

    .services-grid > [class*="col-"]:nth-child(5) .animate-in {
        animation-delay: .24s;
    }

    .services-grid > [class*="col-"]:nth-child(6) .animate-in {
        animation-delay: .3s;
    }

    /* ====== Responsive overhaul under 921px ====== */
    @media (max-width: 921px) {
        .container {
            padding-inline: 1rem;
        }

        .card {
            border-radius: 12px;
        }

        .card-body {
            padding: 1rem;
        }

        .product-card .card-body {
            padding: .9rem;
        }

        .btn, .form-control {
            min-height: 42px;
        }

        .input-group .btn {
            min-height: 42px;
        }

        .hero {
            margin-bottom: 1rem;
        }

        .row.g-4 {
            gap: 1rem !important;
        }

        .fs-5 {
            font-size: 1.025rem;
        }
        /* Tables: allow horizontal scroll to avoid layout breaks */
        .table-responsive {
            overflow-x: auto;
        }
    }

    /* Shop cards: mobile-friendly spacing */
    @media (max-width: 575.98px) {
        .product-card .card-title {
            font-size: 1rem;
        }

        .product-card .icon-btn {
            width: 2rem;
            height: 2rem;
        }

        .product-card img.card-img-top {
            border-radius: 10px;
        }
    }

    /* Navbar toggler visibility on dark background */
    .navbar-toggler {
        border-color: rgba(255,255,255,.35);
    }

    .navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Checkout and Cart minor responsive improvements */
    @media (max-width: 921px) {
        .order-summary {
            font-size: .95rem;
        }

            .order-summary .list-group-item {
                padding: .6rem .75rem;
            }
    }
}
/* Fix: prevent product card image overlay from blocking underlying clicks */
.product-card .card-img-overlay {
    pointer-events: none;
}

    .product-card .card-img-overlay .icon-btn,
    .product-card .card-img-overlay a {
        pointer-events: auto;
    }

.wishlist-btn.active i {
    color: #e74c3c;
}
/* Fix cart icon sizing/alignment */
.btn-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

/* Ensure Services/Shop grids maintain ~3-row page height without stretching cards */
@media (min-width: 992px) {
    .services-grid {
        min-height: 1000px;
        align-items: flex-start;
    }

    .shop-grid {
        min-height: 1100px;
        align-items: flex-start;
    }
}

.moving-bg {
    min-height: 14rem;
    background-image: url('/photo/header.jpg');
    background-position: center;
    background-repeat: no-repeat;
    animation: moveCamera 30s ease-in-out infinite alternate;
    margin-bottom: 2rem;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items:flex-start;
    gap:4px;
    padding:50px;
    position:relative;
}
.header-item {
    font-size:1.2rem;
    height:30px;
    display:flex;
    justify-content:center;
    align-items:center;
}
.header-style {
    color:#620808;
    margin:10px;
    font-weight:600;
    font-size:0.9rem;
}
@media (min-width: 800px) {
    .moving-bg {
        min-height: 14rem;
        background-size: contain;
    }
}

@media (min-width: 1800px) {
    .moving-bg {
        min-height: 40rem;
    }
}
/* انیمیشن حرکت و زوم */
@keyframes moveCamera {
    0% {
        background-size: 102%;
        background-position: center center;
    }

    50% {
        background-size: 108%;
        background-position: right top;
    }

    100% {
        background-size: 112%;
        background-position: left bottom;
    }
}
