/* Color Variables */
:root {
    --pure-white: #FFFFFF;  /* Pure white for backgrounds and text */
    --off-white: #F5F5F5;   /* Slightly off-white for backgrounds */
    --gold: #D4AF37;        /* Elegant gold for accents */
    --dark-gold: #B8860B;   /* Darker gold for hover states */
    --charcoal: #2C2C2C;    /* Dark charcoal for main header */
    --jet-black: #000000;   /* True black for accents and footer */
}

/* Base Styles */
body {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--jet-black);
    background-color: var(--off-white);
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--charcoal);
    color: var(--pure-white);
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: center;
}

.top-bar .brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 10px;
    color: var(--gold);
    letter-spacing: 1px;
}

.top-bar .bible-verse {
    font-style: italic;
    font-size: 0.85rem;
    display: inline-block;
    color: var(--pure-white);
    max-width: 70%;
    margin: 0 auto;
}



/* Navbar Styles */
.navbar {
    background-color: var(--jet-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 100px;
}

.navbar-brand img {
    height: 70px;
    background-color: var(--jet-black);
    padding: 5px;
    border-radius: 5px;
}

.navbar-nav .nav-link {
    color: var(--pure-white);
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--gold);
}

.navbar-nav .nav-link.active {
    color: var(--gold);
}

.navbar-icons {
    display: flex;
    align-items: center;
}

.navbar-icon {
    color: var(--pure-white);
    font-size: 1.3rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar-icon:hover {
    color: var(--gold);
}

.navbar-toggler {
    border-color: var(--gold);
    box-sizing: border-box; /* Ensure consistent box model */
}

.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(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button Styles */
.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--jet-black);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10; /* Added z-index to ensure buttons appear above overlays */
}

.product-info .btn-primary {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
    width: calc(100% - 50px);
}

.btn-primary:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--charcoal);
}

.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--jet-black);
}

/* Hero Section */
.hero {
    background-color: var(--jet-black);
    position: relative;
    padding: 175px 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; /* Default for desktop */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1; /* Added z-index to ensure overlay is below content */
}

@media (max-width: 767.98px) {
    .hero {
        /* Adjust this value for custom left/right positioning on mobile */
        background-position: 20% center!important; /* Example: 25% from left, centered vertically */
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        background-position: 20% center!important; /* Adjust as needed */
    }
}

.hero h1, .hero p {
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5; /* Added z-index to ensure text appears above overlay */
}

.hero h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    max-width: 100%;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--gold);
}

/* Mission Section */
.mission {
    padding: 80px 0;
    background-color: var(--off-white);
}

.mission h2 {
    color: var(--charcoal);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-card {
    background-color: var(--pure-white);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.mission-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--charcoal);
    letter-spacing: 0.5px;
}

.mission-card p {
    color: var(--jet-black);
    line-height: 1.6;
}

/* Featured Products Section */
.featured-products {
    background-color: var(--pure-white);
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-products .container {
    max-width: 95%;
    width: 95%;
}

.featured-products h2 {
    color: var(--charcoal);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card {
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.product-image {
    height: 300px; /* Increased height for images */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--off-white);
    color: var(--charcoal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.product-info h3 {
    font-weight: 600;
    font-size: 1rem; /* Smaller font size */
    margin-bottom: 5px; /* Reduced margin */
    color: var(--charcoal);
    letter-spacing: 0.5px;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.product-description {
    display: none; /* Hide descriptions completely */
}

/* Minimal Product Card Styles */
.product-card-minimal {
    background-color: var(--pure-white);
    margin-bottom: 40px;
    transition: all 0.3s ease;
    padding: 0 5px;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--off-white);
    margin-bottom: 15px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-container:hover img {
    transform: scale(1.05);
}

.add-to-cart-cross {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--pure-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1; /* Temporarily always visible for testing */
    transform: scale(1); /* Temporarily always full size for testing */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10; /* Ensure it's above other elements */
}

.product-image-container:hover .add-to-cart-cross {
    opacity: 1;
    transform: scale(1);
}

.add-to-cart-cross:hover {
    transform: scale(1) rotate(90deg) !important;
    opacity: 1 !important;
}

.add-to-cart-cross.clicked {
    transform: rotate(180deg) scale(1.1);
    background-color: var(--gold);
}

.add-to-cart-cross.clicked i {
    color: var(--pure-white);
}

.add-to-cart-cross i {
    font-size: 18px;
    color: var(--jet-black);
    font-weight: bold;
}

.product-details {
    text-align: center;
    padding: 0 5px;
}

.product-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.product-details .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--jet-black);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--jet-black);
    padding: 80px 0;
}

.testimonials h2 {
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-card {
    background-color: var(--pure-white);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '\201C';
    font-size: 60px;
    color: var(--gold);
    position: absolute;
    left: 0;
    top: -20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.6;
}

.testimonial-author {
    text-align: right;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    margin-top: 15px;
}

.testimonial-author p {
    margin-bottom: 0;
    color: var(--charcoal);
}

.testimonial-author strong {
    color: var(--jet-black);
    font-weight: 700;
}

/* Footer Styles */
footer {
    background-color: var(--jet-black);
    color: var(--pure-white);
    padding: 60px 0 30px;
}

footer h5 {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.input-group .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--pure-white);
}

.input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group .btn {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--jet-black);
    font-weight: 600;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--pure-white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.copyright p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between; /* Distribute items with space between them */
        padding-right: 30px; /* Increased padding to the right */
    }

    .navbar .d-flex.d-lg-none .btn-outline-light {
        height: 40px; /* Set explicit height */
        width: 40px; /* Set explicit width */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0; /* Remove padding to allow fixed height/width to work */
        border-radius: 0.25rem; /* Match Bootstrap button border-radius */
        box-sizing: border-box; /* Ensure consistent box model */
        line-height: 1; /* Ensure consistent line-height */
        border: 1px solid var(--gold); /* Explicitly set border to match toggler */
    }

    .navbar .d-flex.d-lg-none .btn-outline-light .bi-cart {
        font-size: 1.25rem; /* Match navbar-toggler-icon font-size */
    }

    .navbar-collapse {
        background-color: var(--jet-black);
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        height: auto;
        padding: 15px 0;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar .d-flex.d-lg-none .btn-outline-light {
        padding: 5px 10px;
        margin-right: 5px;
    }

    .hero h1 {
        font-size: 2rem;
        white-space: normal;
    }

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

    .mission h2 {
        font-size: 1.8rem;
        white-space: normal;
        letter-spacing: 0.5px;
    }

    .mission-card, .product-card, .testimonial-card, .product-card-minimal {
        margin-bottom: 30px;
    }

    .featured-products .container {
        max-width: 98%;
        width: 98%;
    }

    .product-card-minimal {
        padding: 0 3px;
    }

    .product-name {
        font-size: 0.75rem;
    }

    .add-to-cart-cross {
        width: 35px;
        height: 35px;
        bottom: 8px;
        right: 8px;
    }

    .add-to-cart-cross i {
        font-size: 16px;
    }

    footer {
        text-align: center;
    }

    .footer-newsletter, .footer-social {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 1.75rem;
        white-space: normal;
        padding: 0 10px;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 15px;
    }

    .col-md-10.mx-auto {
        padding: 0 5px;
    }

    .top-bar {
        padding: 10px 0;
    }

    .top-bar .brand-name {
        display: block;
        margin-bottom: 5px;
    }

    .top-bar .bible-verse {
        display: block;
        max-width: 85%;
        margin: 0 auto 5px;
        font-size: 0.8rem;
    }



    .mission h2 {
        font-size: 1.5rem;
        white-space: normal;
        padding: 0 10px;
        letter-spacing: 0.5px;
    }

    .featured-products .container {
        max-width: 99%;
        width: 99%;
    }

    .product-card-minimal {
        padding: 0 2px;
    }

    /* Make products 2 per row on very small screens */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-name {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .product-details .product-price {
        font-size: 0.85rem;
    }

    .add-to-cart-cross {
        width: 30px;
        height: 30px;
        bottom: 6px;
        right: 6px;
    }

    .add-to-cart-cross i {
        font-size: 14px;
    }
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--gold);
    color: var(--jet-black);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.btn-outline-light {
    position: relative;
}

/* Cart Sidebar Styles */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--pure-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--charcoal);
    color: var(--pure-white);
}

.cart-header h5 {
    margin: 0;
    font-weight: 600;
}

.cart-header .btn-close {
    filter: invert(1);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--off-white);
}

.cart-total {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--charcoal);
}

.cart-item-options {
    font-size: 0.8rem;
    color: var(--jet-black);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--gold);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: var(--pure-white);
    color: var(--jet-black);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

.cart-item-quantity input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-left: none;
    border-right: none;
    margin: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--jet-black);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #dc3545;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Product Modal Enhancements */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: var(--charcoal);
    color: var(--pure-white);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
}

/* Responsive Cart Sidebar */
@media (max-width: 767.98px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}
