/* General Styles */
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    background-color: #b76e79;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #9a265e;
    padding: 10px 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #c3c3c3;
}

#search-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

#search {
    width: 250px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
}

/* Welcome Section with Semi-Transparent Slideshow */
.welcome-section {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 100%;
    transition: left 1.5s ease-in-out;
    opacity: 0.5; /* Semi-transparent */
}

.slideshow-container img.active {
    left: 0;
}

.welcome-title {
    position: relative;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-title h1 {
    font-size: 80px;
    margin: 0;
}

.welcome-title h4 {
    font-size: 35px; /* smaller than h1  */
    margin: 10px 0 0; /* Adjust the top margin to reduce the gap */
}
.best{
    font-size: 85px;
    text-align: center;
}
/* Product Catalog */
#catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
    flex: 1;
}

.product {
    background: rgb(14, 152, 167);
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product h3 {
    font-size: 20px;
    color: #141313;
    margin: 10px 0;
}

.product p {
    font-size: 14px;
    color: #646161;
    margin: 5px 0;
}

.product span {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.product button {
    margin-top: 10px;
    padding: 10px 15px;
    background: #a951a6;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
    width: 100%;
    color: #ffffff;
}

.product button:hover {
    background: #da5aa9;
}

/* Cart Page Styles */
.cart-container {
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 1400px;
    padding: 20px;
    flex: 1;
    gap: 20px;
}

.receipt {
    flex: 1.5;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-header img {
    height: 60px;
    margin-bottom: 10px;
}

.receipt-header h2 {
    font-size: 24px;
    color: #333;
}

.receipt-items h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.receipt-items ul {
    list-style: none;
    padding: 0;
}

.receipt-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.receipt-items li button {
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.receipt-items li button:hover {
    background: #ff1a1a;
}

.receipt-totals {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.receipt-totals p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
}

.receipt-totals strong {
    font-size: 18px;
}

.payment {
    flex: 1;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.payment label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.payment input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.payment input:invalid {
    border-color: #ff4d4d; /* Red border for invalid fields */
}

.payment input:valid {
    border-color: #4CAF50; /* Green border for valid fields */
}

.payment button {
    width: 100%;
    padding: 10px;
    background: #da64b2;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
    color: #fbfafa; /* Ensure text is visible */
}

.payment button:hover {
    background: #d67dc7;
}

.payment button:disabled {
    background: #fafafa;
    cursor: not-allowed;
}

/* Error Message Styles */
.payment input.invalid + .error-message {
    display: block;
    color: #ff4d4d;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.payment input + .error-message {
    display: none; /* Hide error message by default */
}

/* Contact Section Styles */
#contact {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.contact-info {
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
}

.contact-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.contact-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-column {
    flex: 1;
}

.contact-column ul {
    list-style: none;
    padding: 0;
}

.contact-column ul li {
    margin-bottom: 10px;
}

.contact-column ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s;
}

.contact-column ul li a:hover {
    color: #dcd9d9;
}

.contact-info p {
    font-size: 16px;
    color: #2f2c2c;
    margin: 10px 0;
}

.contact-info a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #f04bdd;
    color: #fbf9f9; /* Ensure text is visible */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-info a:hover {
    background-color: #912291;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.modal p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.modal button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#confirm-payment {
    background: #4CAF50;
    color: #fff;
}

#confirm-payment:hover {
    background: #4CAF50;
}

#cancel-payment {
    background: #ff4d4d;
    color: #fff;
}

#cancel-payment:hover {
    background: #ff1a1a;
}

/* Footer */
footer {
    background: #9a265e;
    color: white;
    padding: 15px;
    text-align: center;
    margin-top: auto;
}
/* Search Bar Styles */
#search-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

#search {
    width: 250px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search:focus {
    border-color: #c5267e;
    box-shadow: 0 0 5px rgba(169, 69, 105, 0.5);
}
.about{
    font-size: 50px;
}
.aboutstones{
    text-align: center;
}

/* ===== Updated RGB Body Background ===== */
body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #000000;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== Updated Navigation Bar ===== */
nav {
    background: linear-gradient(-45deg, #ff758c, #ff7eb3, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    padding: 15px 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Updated Footer ===== */
footer {
    background: linear-gradient(-45deg, #ff758c, #ff7eb3, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    padding: 30px 15px;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* ===== Product Cards ===== */
.product {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 20px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* ===== Cart and Receipt Styles ===== */
.receipt, .payment {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Text Contrast Adjustments ===== */
.receipt-header h2, 
.receipt-items h3, 
.payment h3,
.receipt-totals p,
.receipt-totals strong,
.product h3,
.product p,
.product span {
    color: #333; /* Dark text for better readability on light backgrounds */
}

/* ===== Button Styles ===== */
.product button,
.payment button,
.contact-info a {
    background: linear-gradient(45deg, #ff758c, #ff7eb3);
    color: white;
    transition: all 0.3s;
}

.product button:hover,
.payment button:hover,
.contact-info a:hover {
    background: linear-gradient(45deg, #ff7eb3, #ff758c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}