/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #edeae3;
    color: #333;
}

/* ================= NAVBAR ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  
    background-color: #111;
}

.logo {
    z-index: 2;
    margin-left: 1%;
    font-size: 32px;
    color: #bc9667;
    font-family: 'Pacifico', cursive;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 31.5px;
}

.navbar li {
    margin-left: 30px;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.navbar a:hover,
.navbar a.active {
    color: orange;
}

/* ================= HEADER ================= */
.page-header {
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: #555;
}

/* ================= PRODUCTS ================= */
.products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 10px 60px 30px 60px; /* top right bottom left */
}

.img-box {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.product-card {
   position: relative;
    perspective: 1000px;
}
.price-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #bc9667, orange);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 2;
}
.card-inner {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);


    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;


}

.product-card:hover .card-inner {
    transform: rotateX(10deg) rotateY(-10deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}

.card-inner img {
    width: 100%;
    max-width: 220px;
    margin-bottom: 20px;
}

.card-inner h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.card-inner p {
    font-size: 14px;
    color: #777;
}
.explore-more {
    text-align: center;
    margin: 60px 0;
}

.explore-more a {
    font-size: 18px;
    text-decoration: none;
    color: orange;
    border-bottom: 2px solid orange;
    padding-bottom: 4px;
}

.explore-more a:hover {
    color: #bc9667;
    border-color: #bc9667;
}
/* ================= EXPANDABLE PRODUCTS ================= */

.more-products {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.6s ease;
}

.more-products.show {
    max-height: 2000px;
    opacity: 1;
}

/* Explore button styling */
#exploreBtn {
    background: transparent;
    border: 2px solid orange;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    color: orange;
    transition: all 0.3s ease;
    
}

#exploreBtn:hover {
    background: orange;
    color: white;
}


/* Modal overlay */
/* Modal overlay */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}

/* Modal content */
.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 500px; /* larger card */
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Close button */
.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
}

/* Image */
.modal-img img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 15px;
    margin-bottom: 15px;
    object-fit: cover;
}

/* Price */
.modal-price {
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.2em;
}

.modal-img-wrapper {
    position: relative;
    width: 100%;
}

.modal-img-wrapper img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

/* Left / Right arrow buttons */
.modal-img-wrapper .prev,
.modal-img-wrapper .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

.modal-img-wrapper .prev {
    left: 10px;
}

.modal-img-wrapper .next {
    right: 10px;
}

.modal-img-wrapper .prev:hover,
.modal-img-wrapper .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.modal-nav button:hover {
    background-color: #555;
}

/* Pop-in animation */
@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* ================= FOOTER ================= */
.container4 {
    background: url(images/background.png);
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

#contacth {
    font-family: Soffee2;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 30px;
}

.container4 p {
    margin: 10px 0;
}

#mailto,
#telto {
    color: white;
    text-decoration: underline;
}

.footer-love {
    margin-top: 30px;
    font-size: 18px;
}

.footer-love i {
    color: red;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px 20px 20px;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .products-container {
        grid-template-columns: 1fr;
        padding: 30px 15px 15px 15px;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar ul {
        margin-top: 15px;
    }
}
/* ================= MOBILE FIRST IMPROVEMENTS ================= */

/* ---------- Tablets & down ---------- */
@media (max-width: 900px) {

    /* Navbar */
    .navbar {
        padding: 10px 0;
    }

    .logo {
        font-size: 26px;
        margin: 0;
    }

    .navbar ul {
        margin: 10px 0;
    }

    .navbar li {
        margin-left: 20px;
    }

    /* Header */
    .page-header {
        padding: 60px 15px;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .page-header p {
        font-size: 16px;
    }

    /* Cards */
    .card-inner {
        padding: 22px;
        min-height: auto;
    }

    .img-box {
        height: 180px;
    }

    /* Disable heavy hover transforms on touch */
    .product-card:hover .card-inner {
        transform: none;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin: 8px 0;
    }

    .navbar li {
        margin: 8px 12px;
    }

    .navbar a {
        font-size: 14px;
    }

    /* Products grid */
    .products-container {
        grid-template-columns: 1fr;
        padding: 20px 14px;
        gap: 18px;
    }

    /* Card */
    .price-tag {
        font-size: 12px;
        padding: 5px 12px;
        top: -10px;
        right: 14px;
    }

    .card-inner h3 {
        font-size: 20px;
    }

    .card-inner p {
        font-size: 13px;
    }

    /* Explore button */
    #exploreBtn {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* ---------- MODAL ---------- */
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 18px;
        border-radius: 16px;
    }

    .modal .close {
        font-size: 22px;
        top: 8px;
        right: 10px;
    }

    .modal-img-wrapper img {
        max-height: 220px;
    }

    .modal-img-wrapper .prev,
    .modal-img-wrapper .next {
        width: 34px;
        height: 34px;
        font-size: 18px;
        line-height: 34px;
    }

    .modal-price {
        font-size: 1em;
    }

    /* Footer */
    .footer {
        padding: 20px 10px;
        font-size: 14px;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 360px) {

    .logo {
        font-size: 22px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .card-inner h3 {
        font-size: 18px;
    }
}
