* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #faf9f7;
    color: #1e1e2a;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 28px 0 24px;
    border-bottom: 1px solid #e4dfd8;
    margin-bottom: 40px;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: 100%;
}

.tagline {
    font-size: 0.8rem;
    color: #7e7e7e;
    letter-spacing: 0.3px;
    margin-top: 6px;
    font-weight: 400;
}

.cart-icon {
    cursor: pointer;
    background: white;
    padding: 10px 20px;
    border-radius: 48px;
    border: 1px solid #e2dbd2;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}
.cart-icon:hover { background: #fefaf5; border-color: #c7bcae; }
.cart-icon svg { width: 24px; height: 24px; stroke: #2c3e50; stroke-width: 1.8; fill: none; }
.cart-count {
    background: #b1624b;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 40px;
    padding: 2px 8px;
    min-width: 26px;
    text-align: center;
}
.cart-total-preview { font-weight: 600; font-size: 0.9rem; }

/* search & filter */
.search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0 30px;
    align-items: center;
    justify-content: space-between;
}
.search-box {
    flex: 2;
    min-width: 200px;
}
.search-box input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd2c7;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    background: white;
    border-radius: 0px;
}
.filter-box select {
    padding: 12px 24px;
    background: white;
    border: 1px solid #ddd2c7;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 0px;
    cursor: pointer;
}
@media (max-width: 640px) {
    .search-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ASYMMETRIC GRID – hard corners */
.asym-gallery {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.9fr 1fr;
    gap: 24px;
    margin: 30px 0 60px;
}

.photo-card {
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
}
.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
}
.photo-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #eae5de;
    border-radius: 0px;
}
.photo-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.photo-card:hover .photo-img-wrapper img {
    transform: scale(1.03);
}
.photo-info {
    padding: 18px 12px 20px 12px;
    background: white;
}
.photo-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.2px;
}
.photo-price {
    font-weight: 600;
    color: #b1624b;
    margin-top: 6px;
    font-size: 1rem;
}
.vendor-badge {
    font-size: 0.7rem;
    color: #948473;
    margin-top: 5px;
}

.photo-img-wrapper {
    aspect-ratio: 4 / 5;
}
.photo-card:nth-child(1) .photo-img-wrapper { aspect-ratio: 1 / 1.2; }
.photo-card:nth-child(3) .photo-img-wrapper { aspect-ratio: 16 / 19; }
.photo-card:nth-child(5) .photo-img-wrapper { aspect-ratio: 4 / 5; }
.photo-card:nth-child(7) .photo-img-wrapper { aspect-ratio: 3 / 4; }
.photo-img-wrapper img {
    object-position: center 30%;
}

@media (max-width: 1024px) {
    .asym-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .asym-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content {
    background: white;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee6df;
}
.close-lightbox {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}
.lightbox-body {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 28px;
}
.lb-image-area { flex: 1.2; min-width: 220px; }
.lb-image-area img { width: 100%; height: auto; object-fit: contain; }
.lb-purchase-area { flex: 0.8; min-width: 220px; }
.lb-price { font-size: 2rem; font-weight: 700; color: #b1624b; margin: 16px 0; }
.size-selector, .qty-selector { margin: 20px 0; }
select, .qty-selector button {
    padding: 12px;
    border: 1px solid #ddd2c7;
    background: white;
    font-family: inherit;
    border-radius: 0px;
}
.qty-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}
.qty-selector button {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    background: #f0eae4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.qty-selector span {
    font-size: 1.4rem;
    min-width: 40px;
    text-align: center;
}
.add-cart-lb {
    background: #1e2a36;
    color: white;
    border: none;
    padding: 14px 0;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}
.add-cart-lb:hover { background: #b1624b; }

/* Cart modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    z-index: 1050;
    justify-content: center;
    align-items: center;
}
.modal.active { display: flex; }
.modal-content {
    background: white;
    max-width: 880px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 0px;
}
.cart-items-list { margin: 20px 0; max-height: 340px; overflow-y: auto; }
.cart-item {
    display: flex;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e9e2da;
    flex-wrap: wrap;
    align-items: center;
}
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 0px; }
.cart-item-details { flex: 2; }
.cart-item-variant { font-size: 0.75rem; color: #6a5e4f; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f1ede8;
    border: none;
    cursor: pointer;
}
.remove-item { background: none; border: none; font-size: 22px; cursor: pointer; }
.checkout-total { font-size: 1.8rem; font-weight: 800; text-align: right; margin: 20px 0; }
.qr-payment-box {
    background: #fefbf7;
    padding: 24px;
    border: 1px solid #e4dbd2;
    text-align: center;
}
.uen-text { font-family: monospace; background: #f3ede7; padding: 8px; margin-top: 12px; }
.empty-cart { text-align: center; padding: 40px; color: #a28e78; }
.footer-note { text-align: center; margin: 30px 0 30px; font-size: 0.75rem; color: #aa9c8a; }
button:active { transform: scale(0.97); }