/* GLOBAL STYLING */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #fff8f7;
    color: #333;
    line-height: 1.6;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #c62828;
}

.btn {
    display: inline-block;
    background: #c62828;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn:hover {
    background: #a31f1f;
}

/* HEADER */
header {
    background: #c62828;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 26px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: white;
}

/* MOBILE MENU */
#mobileMenu {
    display: none;
    flex-direction: column;
    background: #b71c1c;
    width: 100%;
    padding: 15px 20px;
}

#mobileMenu a {
    padding: 12px 0;
    border-bottom: 1px solid #ff9999;
    color: white;
    text-decoration: none;
}

#mobileMenu.show {
    display: flex;
}

/* HOME SECTION */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 5%;
    background: #fff3f2;
    gap: 30px;
}

.home-text {
    flex: 1;
}

.home-text h2 {
    margin: 0 0 15px;
    font-size: 40px;
    color: #c62828;
}

.home-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.home-img {
    flex: 1;
}

.home-img img {
    width: 100%;
    border-radius: 10px;
}

/* ABOUT */
.about {
    padding: 40px 7%;
    background: #fff;
    text-align: center;
    font-size: 18px;
}

/* CONTACT */
.contact {
    padding: 40px 7%;
}

.contact-form {
    max-width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px;
    border: 1px solid #ffc5c2;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* CART */
#cartSection {
    padding: 40px 5%;
    background: #fff5f5;
}

.payment-box {
    background: white;
    padding: 20px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ffe0dc;
}


@media (max-width: 768px) {
    nav { display: none; }
    .hamburger { display: flex; }

    .home-text h2 {
        font-size: 30px;
    }
}

/* CART ITEM */
.cart-item {
    padding: 10px;
    margin: 10px 0;
    background: #f5f5f5;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-btn {
    background: red !important;
}

/* POPUP */
.popup,
#previewPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    justify-content: center;
    align-items: center;
    z-index: 4000;
}

.popup-content {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    animation: popIn 0.3s ease;
}

#previewPopup .popup-content {
    max-width: 520px;
    padding: 18px;
    border-radius: 12px;
}

#previewImage {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
}

.close-btn {
    background: #555 !important;
    margin-top: 10px;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* WHATSAPP BUTTON */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #25D366; /* WhatsApp green */
    padding: 12px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 5000;
    transition: 0.3s, transform 0.3s;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.whatsapp-button img.whatsapp-icon {
    width: 30px;
    height: 30px;
}

/* FOOTER */
footer {
    background: #c62828;
    color: white;
    padding: 40px 20px 20px 20px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-section h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-section a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #ffccbc;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 10px;
    font-size: 13px;
    color: #ffe0dc;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.admin-link {
    background: #ff6600;
    padding: 6px 14px;
    color: white !important;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
    transition: 0.3s ease;
}

.admin-link:hover {
    background: #d45500;
}


/* Overlay Background */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Popup Box */
#popup-box {
    position: relative;
    background: #fff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    max-width: 450px;
    width: 90%; /* Mobile responsive */
    overflow: hidden;
}

/* Popup Image */
#popup-box img {
    width: 100%;
    display: block;
}

/* Close Button */
#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 22px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

/* SHOW POPUP */
#popup-overlay.show {
    visibility: visible;
    opacity: 1;
}


.menu-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #c62828 ;
    margin: 20px 0;
    
}

#searchInput {
    width: 100%;
    max-width: 450px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin: 20px auto;
    display: block;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.icon {
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 2px solid #ddd;
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* Solid colors so they show clearly */
.facebook svg { fill: #1877F2; }
.tiktok svg { fill: #000000; }
.instagram svg { fill: #E1306C; }
.linkedin svg { fill: #0A66C2; }

/* Hover effect */
.icon:hover {
  transform: scale(1.12);
  transition: 0.2s;
  border-color: #999;
}

#productContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}


/* Optional: reduce spacing on very small phones */
@media (max-width: 480px) {
    #productContainer {
        gap: 8px;
    }
}

.product {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;

    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 480px) {
    .home {
        padding: 20px 4%;
        gap: 15px;
    }

    .home-text h2 {
        font-size: 26px;
    }

    .home-text p {
        font-size: 15px;
    }
}






