*{box-sizing:border-box}
body{margin:0;font-family:Arial,sans-serif;background:#faf9f7;color:#222}
.announcement{background:#222;color:white;text-align:center;padding:10px;font-size:12px;letter-spacing:1px}
header{display:flex;justify-content:space-between;align-items:center;padding:24px 5%;background:white;border-bottom:1px solid #eee}
.logo{font-size:21px;font-weight:bold;letter-spacing:2px;color:#222;text-decoration:none}
button,.primary{background:#222;color:white;border:0;padding:13px 20px;cursor:pointer;text-decoration:none;font-size:14px}
.hero{text-align:center;background:#e8e1d8;padding:75px 20px}
.hero h1{font-family:Georgia,serif;font-size:clamp(38px,6vw,72px);font-weight:normal;margin:20px 0}
.hero p{margin-bottom:28px}
main{max-width:1400px;margin:auto;padding:40px 5%}
.filters{display:flex;gap:12px;margin:25px 0;flex-wrap:wrap}
input,select{padding:13px;border:1px solid #ddd;background:white;font-size:15px;max-width:100%}
.filters input{flex:1}
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px}
.product{background:white;border:1px solid #eee;padding-bottom:18px}
.product img{width:100%;aspect-ratio:3/4;object-fit:contain;background:#f3f1ee}
.product-info{padding:15px;display:grid;gap:10px}
.product-info h3{margin:0;font-size:16px}
.price{font-size:21px;font-weight:bold}
#cart{position:fixed;right:0;top:0;height:100%;width:min(440px,100%);background:white;box-shadow:-10px 0 40px #0002;padding:25px;overflow:auto;z-index:10}
.cart-header{display:flex;justify-content:space-between;align-items:center}
.cart-item{padding:15px 0;border-bottom:1px solid #ddd}
footer{text-align:center;padding:40px;background:#222;color:white;font-size:13px;letter-spacing:2px}
@media(max-width:600px){
header{padding:18px 12px}
.logo{font-size:14px;letter-spacing:1px}
header button{padding:10px}
.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.product-info{padding:10px}
.hero{padding:50px 15px}
}


/* Catalogue improvements */
.hero {
    padding: 35px 20px;
}

.hero h1 {
    font-size: clamp(32px,5vw,54px);
}

.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
}

.product img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    background: #f3f1ee;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    min-height: 40px;
    line-height: 1.4;
}

.product-info button {
    margin-top: auto;
    border-radius: 4px;
}

.product-info select {
    width: 100%;
    min-width: 0;
}

@media(max-width:600px) {
    main {
        padding: 20px 12px;
    }

    .hero {
        padding: 25px 15px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-info select {
        font-size: 13px;
        padding: 10px 5px;
    }

    .product-info button {
        padding: 12px 5px;
    }
}

[hidden]{display:none!important}

.product-cover{
    display:block;
    position:relative;
    color:inherit;
    text-decoration:none;
}

.product-cover video{
    width:100%;
    aspect-ratio:3/4;
    object-fit:contain;
    background:#f3f1ee;
}

.media-count{
    position:absolute;
    bottom:8px;
    right:8px;
    padding:5px 8px;
    background:#ffffffed;
    border-radius:4px;
    font-size:11px;
}

.product-name{
    color:#222;
    text-decoration:none;
    font-weight:600;
    line-height:1.4;
    min-height:40px;
}

.view-product{
    display:block;
    margin-top:auto;
    text-align:center;
    border-radius:4px;
}

.back-link{
    display:inline-block;
    margin-bottom:25px;
    color:#555;
    text-decoration:none;
}

.product-layout{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    gap:45px;
    align-items:start;
}

.gallery{min-width:0}

.gallery-stage{
    position:relative;
    background:#f3f1ee;
    border-radius:8px;
    overflow:hidden;
    touch-action:pan-y;
}

#main-media{
    height: min(65vh,680px);
    min-height:300px;
    display:flex;
    justify-content:center;
    align-items:center;
}

#main-media img,
#main-media video{
    width:100%;
    height:100%;
    object-fit:contain;
}

#main-media img{cursor:zoom-in}

.gallery-prev,.gallery-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:#ffffffed;
    color:#222;
    padding:14px;
    border-radius:50%;
    z-index:2;
}

.gallery-prev{left:10px}
.gallery-next{right:10px}

#gallery-counter{
    text-align:center;
    color:#777;
    font-size:13px;
    padding:12px;
}

.thumbnails{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(65px,1fr));
    gap:8px;
    max-height:250px;
    overflow:auto;
}

.thumbnail{
    background:#eee;
    color:#222;
    padding:2px;
    border:2px solid transparent;
    border-radius:5px;
    aspect-ratio:3/4;
    overflow:hidden;
}

.thumbnail.selected{border-color:#222}

.thumbnail img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.product-details h1{
    font-family:Georgia,serif;
    font-size:clamp(25px,3vw,40px);
    font-weight:normal;
    margin:15px 0;
}

.detail-price{
    font-size:30px;
    font-weight:600;
}

.availability{
    color:#58664e;
    background:#edf0e9;
    padding:12px;
    border-radius:4px;
}

#product-form{
    display:grid;
    gap:10px;
    margin:25px 0;
}

#product-form label{
    font-size:14px;
    font-weight:600;
}

#product-form select,
#product-form input{
    width:100%;
    border-radius:4px;
}

.add-button{
    padding:17px;
    border-radius:5px;
    margin-top:10px;
}

.share-button{
    background:transparent;
    border:1px solid #ccc;
    color:#222;
    width:100%;
}

.description{
    white-space:pre-line;
    line-height:1.75;
    font-size:14px;
    overflow-wrap:anywhere;
}

#lightbox{
    width:100%;
    height:100%;
    max-width:100%;
    max-height:100%;
    margin:0;
    padding:45px;
    border:0;
    background:#151515;
}

#lightbox::backdrop{background:#151515}

#lightbox-media{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

#lightbox-media img,
#lightbox-media video{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.lightbox-close{
    position:absolute;
    top:10px;
    right:10px;
    z-index:3;
}

.cart-product{
    display:flex;
    align-items:start;
    gap:12px;
}

.cart-product img{
    width:75px;
    height:95px;
    object-fit:contain;
    background:#eee;
}

.cart-product a{
    color:#222;
    font-weight:600;
    text-decoration:none;
}

.quantity-controls{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.quantity-controls button{
    padding:8px 12px;
}

.quantity-controls button:last-child{
    margin-left:auto;
    background:#eee;
    color:#222;
}

@media(max-width:700px){
    .product-layout{
        grid-template-columns:1fr;
        gap:25px;
    }

    #main-media{
        height:50vh;
        min-height:260px;
    }

    .thumbnails{
        grid-template-columns:repeat(auto-fill,minmax(55px,1fr));
        max-height:190px;
    }

    .product-name{
        font-size:13px;
    }

    .view-product{
        padding:12px 5px;
        font-size:12px;
    }

    #lightbox{padding:35px 5px}
}


.shipping-progress{
    margin:22px 0;
    padding:16px;
    background:#f3f5ef;
    border-radius:8px;
}

.shipping-message{
    font-size:14px;
    line-height:1.5;
    color:#45583b;
}

.shipping-track{
    height:8px;
    background:#dce2d5;
    border-radius:10px;
    overflow:hidden;
    margin:14px 0 10px;
}

.shipping-fill{
    height:100%;
    background:#687e57;
    border-radius:10px;
    transition:width .3s ease;
}

.shipping-progress small{
    font-size:11px;
    color:#68735e;
}

.recommendations{
    margin:24px 0;
}

.recommendations h3{
    font-size:17px;
    margin-bottom:6px;
}

.recommendations p{
    font-size:12px;
    color:#777;
    margin-top:0;
}

.recommendation-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}

.recommendation-card{
    display:flex;
    flex-direction:column;
    border:1px solid #e8e5e0;
    border-radius:6px;
    overflow:hidden;
    color:#222;
    text-decoration:none;
    background:white;
}

.recommendation-card img{
    width:100%;
    aspect-ratio:3/4;
    object-fit:contain;
    background:#f3f1ee;
}

.recommendation-info{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:7px;
    padding:8px;
}

.recommendation-info strong{
    font-size:11px;
    line-height:1.4;
    overflow-wrap:anywhere;
}

.recommendation-info span{
    font-size:13px;
}

.shipping-saving{
    color:#58734b;
    font-size:10px;
}

.recommendation-button{
    display:block;
    text-align:center;
    padding:9px 3px;
    margin-top:auto;
    background:#222;
    color:white;
    border-radius:3px;
}

.order-summary{
    border-top:1px solid #ddd;
    padding-top:18px;
}

.order-summary > div{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:15px;
    font-size:14px;
}

.order-summary .grand-total{
    border-top:1px solid #ddd;
    padding-top:18px;
    font-size:21px;
}

.free-shipping{
    color:#58734b;
}

@media(max-width:600px){
    .recommendation-grid{
        display:flex;
        overflow-x:auto;
        scroll-snap-type:x mandatory;
        padding-bottom:8px;
    }

    .recommendation-card{
        flex:0 0 43%;
        scroll-snap-align:start;
    }
}

