@import url('https://fonts.googleapis.com/css2?family=Krona+One&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

* {
    box-sizing: border-box;
}
body {
    background-color: #faf6f0;
    font-family: 'Urbanist', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: 1.2s ease;
    height: 100%;

    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
.pagetitle {
    text-align: center;
}
/* header.php */
#banner {
    width: 100%;
    background-color: #c0392b;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.bannercontent {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}
#countdown {
    font-weight: 700;
    margin-left: 6px;
}
header {
    text-align: center;
    color: #4c4742;
}
header h1 {
    font-family: 'Krona One', Impact, 'Arial Narrow Bold', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: -10px;
    margin-top: -10px;
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
}
header img {
    max-width: 95px;
    height: auto;
    margin-bottom: 10px;
}
nav {
    text-align: center;
}
nav a{
    text-decoration: none;
    padding: 15px;
    color: #8c8276;
}
nav a:hover {
    text-decoration: underline;
    color: #4c4742;
}
/* index.php */
.herocontent p{
    text-align: center;
    font-style: italic;
}
#container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}
#container ol {
    position: absolute;
    display: flex;
    left: 0;
    bottom: 20px;
    width: 300px;
}
#container ol li {
    list-style-type: none;
    margin: 0;
    margin-left: 1rem;
}
#container ol li button {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    opacity: 0.3;
    transition: .3s;
    cursor: pointer;
}
#container ol li button:hover {
    opacity: 0.9;
}
#carousel {
    display: flex;
    border: 1px solid #4c4742;
    border-radius: 5px;
    overflow: hidden;
    overflow-x: scroll;
    line-height: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    margin: 0 auto;
}
#carousel li {
    list-style-type: none;
    margin: 0;
    flex: 0 0 100%;
    scroll-snap-align: center;
}
#carousel li img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* vendors.php */
#vendorlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 1200px;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    padding: 1rem;
}
.vendorcard {
    max-width: 300px;
    margin: 0 auto;
    height: auto;
    text-align: center;
    padding: 10px;
}
.vendorcard:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.vendorcard img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* vendordetail.php */
#vendorbody {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: flex-start;
}
#vendordetail {
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 10px;
    flex-shrink: 0;
}
#vendordetail img {
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
#vendordetail h3 {
    margin: 10px 0;
    color: #c0392b;
    font-size: 1.1rem;
}
#vendordetail p {
    margin: 6px 0;
    line-height: 1.5;
    color: #4c4742;
    font-size: 0.95rem;
}
#vendordetail a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #4c4742;
    color: #faf6f0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s ease;
}
#vendordetail a:hover {
    background: #3b3733;
}
.venprodgrid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.venprodgrid h3 {
    grid-column: 1/-1;
    margin-bottom: 15px;
    color: #3b3733;
    font-size: 1.5rem;
}
.venprodgrid figure {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: 0.2s ease;
}
.venprodgrid figure:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0 6px 12px;
}
.venprodgrid img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.venprodgrid figcaption {
    font-size: 0.95rem;
    color: #333;
}
/* products.php */
#productlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}
figure {
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    transition: 0.2s ease;
}
figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
figure img {
    width: 100%;
    max-width: 180px;
    margin-bottom: 10px;
}
figcaption {
    margin: 3px 0;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    width: 100%;
}
.pagination a {
    padding: 8px 14px;
    text-decoration: none;
    color: #4c4742;
    border: 1px solid #4c4742;
    border-radius: 6px;
    transition: 0.2s ease;
}
.pagination a:hover {
    background: #4c4742;
    color: #faf6f0;
}
/* productdetail.php*/
#maindetail {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: flex-start;
}
#prodimage img{
    max-width: 450px;
    width: 100%;
    border-radius: 10px;
}
.prodtitle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.prodslug {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    font-style: italic;
}
.prodprice {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b3733;
    margin-bottom: 15px;
}
.vendorinfo {
    margin-bottom: 15px;
}   
.vendorlink {
    font-weight: 600;
    text-decoration: none;
    color: #4c4742;
}
.vendorlink:hover {
    text-decoration: underline;
}
.boothnumber {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 5px;
    color: #c0392b;
}
.proddes {
    margin: 20px 0;
    line-height: 1.5;
}
.addtocart {
    padding: 12px 20px;
    background: #4c4742;
    color: #faf6f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s ease-in-out;
}
.addtocart:hover {
    background: #3b3733;
}
#variants {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}
#variants ul {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
}
#variants li {
    text-align: center;
}
#variants figure {
    margin: 0;
}
#variants img {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s ease;
}
#variants img:hover {
    transform: scale(1.05);
}
#variants img.selected {
    border-color: #c0392b;
}
.allproducts, .allcategories, .allvendors {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    padding: 12px 22px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: 0.2s ease;
}
.allproducts:hover, .allcategories:hover, .allvendors:hover {
    background: #333;
    color: #fff;
}
.cartitem img{
    max-width: 250px;
    width: 100%;
    height: auto;
}
/* categories.php */
#categorylist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px,1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.category {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) 0.3s ease;
    transform: 0.3s ease;
    cursor: pointer;
}
.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.category a {
    text-decoration: none;
    color: #3b3733;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    width: 100%;
    display: block;
}
/* categorieslist.php */
.catlistgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.catprodlist figure {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    transform: 0.3s ease;
    box-shadow: 0.3s ease;
}
.catprodlist figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.catprodlist img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.catdesc {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.5;
}

/* about.php */
#about {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}
#about img {
    max-width: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}
#about p {
    max-width: 400px;
    text-align: justify;
    margin-bottom: 1rem;
}

/* footer */
footer {
    background-color: #4c4742;
    color: #faf6f0;
    padding: .5rem;
    text-align: center;
    margin-top: 2rem;
}

/* cart.php */
.cartitems {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cartitem {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 8px;
}
.cartitem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.cartitem p {
    margin: 2px 0;
    font-size: 0.95rem;
    color: #4c4742;
}
.cartitem form {
    margin-left: auto;
}
.cartitem form button {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s ease;
}
.cartitem form button:hover {
    background: #a83228;
}
.itemname, .itemprice {
    font-size: 2rem;
    font-weight: bold;
}
#shoppingcart {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}
#itemsorder {
    flex: 2;
}
#orderinfo {
    flex: 1;
}
#orderinfo form {
    width: 100%;
    max-width: 350px;
}

/* order.php */
form {
    max-width: 400px;
    margin: 2rem auto;
    font-family: 'Urbanist', sans-serif;
}
fieldset {
    border: 1px solid #ccc;
    padding: 1rem 1.2rem;
    border-radius: 8px;
}
legend {
    font-weight: 600;
    padding: 0 5px;
    color: #4c4742;
}
label {
    display: block;
    margin: 0.7rem 0 0.3rem;
    font-weight: 500;
}
.inputtext {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1rem;
}
input:focus {
    border-color: #4c4742;
    outline: none;
}
.inputsubmit {
    display: block;
    margin: 1rem auto 0;
    padding: 10px 18px;
    background-color: #4c4742;
    color: #faf6f0;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
.inputsubmit:hover {
    background-color: #3b3733;
}
/* processorder.php */
#thankyou {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    margin-bottom: 2rem;
}
#thankyou p {
    text-align: center;
    font-size: 2rem;
    line-height: 50px;

}
/* media queries */
@media (max-width: 768px) {
    #vendorbody {
        flex-direction: column;
        align-items: center;
    }
    #vendordetail {
        width: 90%;
        text-align: center;
        margin-bottom: 20px;
    }
    #vendordetail img{
        max-width: 70%;
    }
    .venprodgrid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .venprodgrid h3 {
        text-align: center;
    }
    #maindetail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #proddetails {
        max-width: 90%;
    }
    #variants ul {
        justify-content: center;
    }
    #about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #about img {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;
    }
    #about p {
        text-align: center;
    }
    .allvendors, .allproducts {
        margin-bottom: 10px;
    }
    #shoppingcart {
        flex-direction: column;
        align-items: center;
    }
    #itemsorder, #orderinfo {
        width: 100%;
        max-width: 500px;
    }
}
@media (max-width: 500px) {
    .cartitem {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        text-align: center;
    }
    .cartitem img {
        margin-bottom: 10px;
    }
    .cartitem form {
        margin-left: 0;
    }
}