
/* ===== GLOBAL BACKGROUND IMAGE ===== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;

    background: url("../images/backdrowp.jpg") no-repeat center center fixed;
    background-size: cover;

    color: #2f2f2f;
}
/* ===== HEADER ===== */
header {
    background-color: #78866B;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a:hover,
nav a.active {
    background-color: #5a4636 ;
}

/* ===== BASKET STYLES ===== */
.basket-wrapper {
    position: relative;
}

.basket-icon {
    cursor: pointer;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background: #3e3227;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.basket-popup {
    position: absolute;
    top: 60px;
    right: 0;
    width: 350px;
    background: #f4f1ea;
    border: 2px solid #5a4636;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1001;
}

.basket-popup h3 {
    margin-top: 0;
    text-align: center;
    color: #5a4636;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ccc;
    font-size: 1rem;
    color: black;
}

.basket-item:last-child {
    border-bottom: none;
}

/* Remove button in basket */
.remove-btn {
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    line-height: 20px;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #e74c3c;
}

.basket-total {
    font-weight: bold;
    margin-top: 1rem;
    text-align: right;
    color: #5a4636;
    font-size: 1.1rem;
}

.checkout-button {
    margin-top: 1rem;
    background-color: #5a4636;
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
}

.checkout-button:hover {
    background-color: #6e5844;
}

/* ===== MAIN CONTENT CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2.5rem;

    border-radius: 14px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}
.containerhead { 
	margin-top: 1.5rem;
    padding: 1.5rem 2rem;
	display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(244, 241, 234, 0.95);
    border: 2px solid #5a4636;
    border-radius: 30px;
	padding-centre: 50px;
}
.container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
	text-align: center;
}
/* ===== HERO SECTION (IMAGE WITH TEXT BELOW) ===== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    margin-bottom: 2rem;
}

.hero-section img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Text Below Image */
.hero-text {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;

    background: rgba(244, 241, 234, 0.95);
    border: 2px solid #5a4636;
    border-radius: 12px;

    max-width: 700px;
}

.hero-text h2 {
    margin-bottom: 0.8rem;
    color: #5a4636;
    font-size: 2rem;
}

.hero-text p {
    margin: 0;
    font-size: 1.1rem;
    color: #2f2f2f;
}

/* ===== PRODUCT GRID (Shop) ===== */
.gallery-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product, .gallery-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;

    padding: 0;
    position: relative; /* ADD THIS */
}

.product:hover, .gallery-item:hover {
    transform: scale(1.03);
}

.product img, .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* ===== BUTTONS ===== */
.add-button, .button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background-color: #5a4636;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-button:hover, .button:hover {
    background-color: #6e5844;
}

/* ===== CAPTION FOR GALLERY ITEMS ===== */
.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(90, 70, 54, 0.85);
    color: white;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

.caption button.add-button {
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    padding: 15px 22px;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255,255,255,0.2);
}

#prev { left: 20px; }
#next { right: 20px; }

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ===== FOOTER ===== */
footer {
    background-color: #78866B;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .product img, .gallery-item img {
        height: 200px;
    }
    .lightbox-btn {
        font-size: 2rem;
        padding: 12px 18px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        justify-content: flex-start;
    }
    .basket-popup {
        width: 90%;
        right: 0;
    }
}

/* ===== CHECKOUT FORM ===== */
.checkout-form {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-form input,
.checkout-form textarea {
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #5a4636;
    box-shadow: 0 0 5px rgba(90,70,54,0.3);
}

/* ===== CONTACT FORM STYLING ===== */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space between inputs */
    max-width: 800px;
    margin: 2rem auto;
}

#contact-form input,
#contact-form textarea,
#contact-form button {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}

#contact-form textarea {
    resize: vertical; /* user can resize vertically */
    min-height: 120px;
}

#contact-form button {
    background-color: #5a4636;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

#contact-form button:hover {
    background-color: #6e5844;
}

/* Success/error message */
#form-message {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
}

/* ===== CHECKOUT PAGE STYLING (VERTICAL STACKED BOXES) ===== */
.checkout-container {
	width: 100%;
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 4rem; /* spacing between basket and form */
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.checkout-basket,
.checkout-form {
	width: 100%;
    background: #f4f1ea;
    border: 2px solid #5a4636;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.checkout-basket h2,
.checkout-form h2 {
    color: #5a4636;
    margin-bottom: 1rem;
}

.checkout-form label {
	width: 100%;
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: #5a4636;
}

.checkout-form input,
.checkout-form textarea {
	
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
	box-sizing: border-box;
}

.checkout-form button {
	width: 100%;
    margin-top: 1.5rem;
    background-color: #5a4636;
    color: white;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.checkout-form button:hover {
    background-color: #6e5844;
}
/*========contact us heading style =======*/
.contact-t-p {
	padding: 2rem 1.5rem;
}
.contact-heading {
    display: block;       /* full block element */
    margin: 0 auto 5rem;  /* top/bottom 0/spacing and auto left/right */
    padding: 1rem 1.5rem;
    background: rgba(244, 241, 234, 0.95);
    border: 2px solid #5a4636;
    border-radius: 22px;
    color: #5a4636;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 480px;     /* optional, keeps it from stretching too wide */
	text-align: center;
}

.shop-t-p {
	padding: 2rem 1.5rem;
}
.shop-title {
    display: block;       /* full block element */
    margin: 0 auto 5rem;  /* top/bottom 0/spacing and auto left/right */
    padding: 1rem 1.5rem;
    background: rgba(244, 241, 234, 0.95);
    border: 2px solid #5a4636;
    border-radius: 22px;
    color: #5a4636;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 480px;     /* optional, keeps it from stretching too wide */
	text-align: center;
}

.contact-form-border {
	 width: 100%;
    background: #f4f1ea; /* Light background */
    border: 2px solid #5a4636; /* Your border color */
    border-radius: 12px; /* Rounded corners */
    padding: 2.5rem;
    max-width: auto;
    margin: 0 auto; /* Center it */
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	box-sizing: border-box; /* This is the key */
}
/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .checkout-container {
        padding: 0 1rem;
    }

    #contact-form {
        margin: 1.5rem auto;
    }
}