/* ---- Custom Luxury Styling V6 with 7-Day Rates ---- */

:root {
    --gold: #caa070;
    --dark-blue: #314257;
    --beige: #e9e2d4;
    --white: #ffffff;
    --light-gray-text: #6c757d;
}

body {
    font-family: "Lato", sans-serif;
    background-color: var(--beige);
    color: var(--light-gray-text);
    font-weight: 400;
    padding-top: 38px;
}

/* IMPORTANT: This pushes your main navbar down to make space for the ticker */
.navbar.fixed-top {
    top: 38px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    color: var(--dark-blue);
}

/* -- Navigation Bar -- */
.navbar {
    background-color: rgba(49, 66, 87, 0.9);
    transition: background-color 0.5s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(49, 66, 87, 0.9);
    /* Semi-transparent dark blue */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 1px;
}

.navbar.scrolled .navbar-brand {
    color: var(--gold) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .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%28202, 160, 112, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Fresh Hero Carousel Styling ---- */
.hero-section .carousel,
.hero-section .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-section .carousel-item {
    background-size: cover;
    background-position: center;
}

/* Specific slide backgrounds */
.hero-section .slide-1 {
    background-image: url("https://placehold.co/1920x1080/314257/e9e2d4?text=Mahamaya+Jewellers");
}
.hero-section .slide-2 {
    background-image: url("https://placehold.co/1920x1080/3a4e63/e9e2d4?text=Rings");
}
.hero-section .slide-3 {
    background-image: url("https://placehold.co/1920x1080/4a617a/e9e2d4?text=Necklaces");
}

/* Gradient overlay from bottom for better text readability */
.hero-section .carousel-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(25, 37, 50, 0.7), transparent);
    z-index: 1;
}

/* Styling the caption (text content) */
.hero-section .carousel-caption {
    bottom: 15%;
    right: 10%;
    left: auto;
    width: 80%;
    max-width: 700px;
    text-align: right;
    z-index: 2; /* Ensure caption is above the overlay */
}

/* Animation setup */
.hero-section .carousel-item .animated-heading,
.hero-section .carousel-item .animated-subheading,
.hero-section .carousel-item .animated-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation trigger on active slide */
.hero-section .carousel-item.active .animated-heading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}
.hero-section .carousel-item.active .animated-subheading {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}
.hero-section .carousel-item.active .animated-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.hero-section .carousel-caption h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-section .carousel-caption p {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Style carousel controls and indicators */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 3;
}

.carousel-indicators {
    bottom: 5%;
    left: auto;
    right: 10%;
    margin-left: 0;
    margin-right: 0;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--gold);
    transform: scale(1.2);
}

/* Responsive adjustments for the carousel heading */
@media (max-width: 992px) {
    .hero-section .carousel-caption {
        left: 5%;
        right: 5%;
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section .carousel-caption h1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-caption h1 {
        font-size: 2.5rem;
    }
    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
}

/* -- Buttons -- */
.btn-gold {
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: var(--white);
    padding: 12px 35px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
}

.btn-gold:hover {
    background-color: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}
.section-padding {
    padding: 100px 0;
}
.section-margin-top {
    margin-top: 100px;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: "Lato", sans-serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Accordion Styling */
.accordion-item {
    background-color: var(--white);
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    font-family: "Playfair Display", serif;
}

.accordion-button {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    background-color: var(--white);
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--dark-blue);
    color: var(--gold);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Customizing the accordion icon */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23314257'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23caa070'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
}

.care-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.care-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.care-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.care-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-gray-text);
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* -- Section Styling -- */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: "Lato", sans-serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
}

.section-padding {
    padding: 100px 0;
}

/* -- Live Gold/Silver Rates Section -- */
.live-rates-section {
    background-color: var(--white);
    padding: 50px 0;
}

.live-rates-section .nav-pills .nav-link {
    background-color: transparent;
    color: var(--dark-blue) !important;
    border: 1px solid #ddd;
    border-radius: 50px;
    margin: 0 10px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.live-rates-section .nav-pills .nav-link.active {
    background-color: var(--dark-blue);
    color: var(--white) !important;
    border-color: var(--dark-blue);
}

.live-rates-section .current-rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.live-rates-section .current-rate span {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 700;
}

.historical-rates h6 {
    color: var(--light-gray-text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.day-rate-card {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.day-date {
    font-size: 0.8rem;
    color: var(--light-gray-text);
}

.day-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
}

/* -- Featured Products & Top Sellers Section -- */
.product-card {
    border: none;
    background-color: transparent;
    text-align: center;
    transition: transform 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.product-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.product-card .card-text {
    color: var(--light-gray-text);
    font-size: 0.9rem;
}

.badge.bg-gold {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--gold) !important;
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 5px;
}

/* -- Shop by Occasion -- */
.occasion-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: var(--white);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.occasion-card:hover {
    transform: scale(1.05);
}

.occasion-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.occasion-card .card-content {
    position: relative;
    z-index: 1;
}

.occasion-card h3 {
    color: var(--white);
    font-size: 2rem;
}

/* -- About/Story Section -- */
.about-section {
    background-color: var(--white);
}

.about-section img {
    border-radius: 8px;
    box-shadow: -15px 15px 0px var(--gold);
}

.about-section .lead {
    font-style: italic;
    color: var(--dark-blue);
}

/* -- Why Choose Us Section -- */
.icon-box {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.icon-box i {
    font-size: 2.5rem;
    color: var(--gold);
}

/* -- Testimonials Section -- */
.testimonials-section {
    background-color: var(--white);
}

.testimonial-card {
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100%;
}

.testimonial-card .stars i {
    color: var(--gold);
}

.testimonial-card blockquote {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--dark-blue);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.testimonial-card .blockquote-footer {
    color: var(--light-gray-text);
    margin-top: 1rem;
}

/* -- Contact Section -- */
.contact-section {
    background: linear-gradient(rgba(49, 66, 87, 0.85), rgba(49, 66, 87, 0.85)),
        url("https://placehold.co/1920x1080/e9e2d4/314257?text=") no-repeat
            center center;
    background-size: cover;
    background-attachment: fixed;
}

.contact-section .section-title,
.contact-section .contact-info h4 {
    color: var(--white);
}

.contact-section .contact-info p {
    color: #ccc;
}

.contact-section .contact-info i {
    color: var(--gold);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--white);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    box-shadow: none;
    color: var(--white);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* -- Footer -- */
.footer {
    background-color: var(--dark-blue);
    color: #ccc;
    padding: 80px 0 30px 0;
}

.footer h5 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--gold);
}

.footer .social-icons a {
    font-size: 1.4rem;
    margin-right: 20px;
}

.footer .copyright {
    border-top: 1px solid #4a5a6e;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #aaa;
}

/* -- Animations -- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- Mobile Responsiveness -- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(49, 66, 87, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .about-section img {
        box-shadow: none;
    }

    .contact-section {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }
}

.live-rates-section {
    background-color: var(--white);
    padding: 80px 0;
}

.rate-table {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.rate-table thead {
    background-color: var(--dark-blue);
    color: var(--white);
}

.rate-table thead th {
    font-family: "Lato", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: none;
    padding: 1rem;
}

.rate-table tbody td {
    vertical-align: middle;
    padding: 1rem;
}

.rate-table tbody tr {
    transition: background-color 0.3s ease;
}

.rate-table tbody tr.latest-rate-row {
    background-color: #fdf8ef;
    /* A very light gold/beige */
    font-weight: 700;
}

.rate-table .change-indicator {
    width: 5%;
    text-align: center;
    font-size: 1.5rem;
}

.rate-table .text-success {
    color: #198754 !important;
}

.rate-table .text-danger {
    color: #dc3545 !important;
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.1rem;
    }
}
/* ---- Top Ticker Bar Styling ---- */
.top-ticker {
    background-color: var(--gold);
    color: rgba(255, 255, 255, 1);
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031; /* Ensures it's above other elements like the navbar */
    font-size: 1.1rem;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%; /* Starts the animation off-screen */
    animation: ticker-scroll 50s linear infinite;
}

.ticker-content span {
    display: inline-block;
    vertical-align: middle;
}

.ticker-content .ticker-item {
    margin: 0 1.5rem;
}

.ticker-content .rate-price {
    color: var(--dark-blue);
    font-weight: 700;
}

.ticker-content .ticker-separator {
    color: rgba(202, 160, 112, 0.4);
    margin: 0 1rem;
}

/* Keyframes for the scrolling animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
/* ---- Price History Chart Styling ---- */
.chart-container {
    position: relative;
    height: 450px; /* You can adjust this height */
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* ---- Elegant Collections Page Styling V2 ---- */
.filter-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.filter-title {
    font-family: "Playfair Display", serif;
    color: var(--dark-blue);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group .form-check {
    margin-bottom: 0.5rem;
}

.filter-group .form-check-label {
    font-weight: 400;
}

.form-check-input:checked {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

/* Sticky Filter Sidebar */
@media (min-width: 992px) {
    /* Apply only on large screens and up */
    .sticky-sidebar {
        position: sticky;
        top: 200px; /* Adjust this based on your navbar + ticker height */
        align-self: flex-start; /* Prevents stretching in the flex row */
    }
}

.product-grid-card {
    border: none;
    background-color: transparent;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-grid-card .card-body {
    padding: 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-grid-card .card-title {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.product-grid-card .card-meta-tags {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.product-grid-card .meta-badge {
    color: var(--light-gray-text);
    font-size: 0.9rem;
    font-style: italic;
}
/* ---- Product Detail Page Styling ---- */
.product-detail-image {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}
.product-meta-badge {
    background-color: #f0f0f0;
    color: #555;
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.highlight-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.highlight-list i {
    color: var(--gold);
    font-size: 1.5rem;
    margin-right: 1rem;
}
.product-enquiry-btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}
