/* ===========================
   GLOBAL RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", serif;
    background: #fff;
    color: #1e1e1e;
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 24px;
}

/* ===========================
   HERO
=========================== */
.hero {
    padding: 150px 0 90px;
    text-align: center;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 5vw, 5rem);
    margin-bottom: 18px;
}

.hero p {
    max-width: 820px;
    margin: auto;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ===========================
   SHOP LAYOUT
=========================== */
.shop {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 70px;
    padding-bottom: 120px;
}

/* ===========================
   FILTERS
=========================== */
.filters {
    position: sticky;
    top: 120px;
}

.filter-block {
    margin-bottom: 40px;
}

.filter-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
    font-weight: 700;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.filter-option input {
    accent-color: #1e1e1e;
}

.filters select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #1e1e1e;
    font-family: inherit;
}

/* ===========================
   PRODUCTS HEADER
=========================== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.products-header p {
    font-size: 0.95rem;
    opacity: 0.7;
}

.products-header select {
    border: 1px solid #1e1e1e;
    padding: 8px 10px;
    background: #fff;
    font-family: inherit;
}

/* ===========================
   PRODUCT GRID
=========================== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 35px;
}

.card {
    text-align: center;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1rem;
    margin: 18px 0 6px;
    font-weight: 400;
}

.price {
    color: #9A8049;
    font-weight: 700;
    margin-bottom: 14px;
}

.card input[type="number"] {
    width: 70px;
    padding: 6px;
    margin-bottom: 10px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 10px 26px;
    border: 1px solid #1e1e1e;
    background: #1e1e1e;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    margin: 4px;
}

.btn:hover {
    background: #9A8049;
    border-color: #9A8049;
    color: #1e1e1e;
}

/* ===========================
   TOAST
=========================== */
#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e1e1e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    display: none;
    z-index: 3000;
}

/* =========================
   QUICK VIEW MODAL UPGRADE
   ========================= */

#quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 9998;
}

#quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    display: none;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    opacity: 0;
    transition: all .3s ease;
}

#quick-view-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#quick-view-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #333;
}

#quick-view-main-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 12px;
}

#quick-view-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
}

#quick-view-thumbnails img {
    border-radius: 6px;
    border: 2px solid transparent;
    transition: .2s;
}

#quick-view-thumbnails img:hover {
    border-color: #000;
}

body.modal-open {
    overflow: hidden;
}

/* Mobile */
@media(max-width:768px){
    #quick-view-modal {
        padding: 16px;
    }
}
/* ===========================
   ANIMATION
=========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
    .shop {
        grid-template-columns: 1fr;
    }
    .filters {
        position: relative;
        top: auto;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    #quick-view-modal {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    #quick-view-main-img {
        height: 300px;
    }
}
/* ===========================
   WISHLIST
=========================== */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.wishlist-btn i {
    font-size: 1.1rem;
    color: #1e1e1e;
    transition: 0.3s;
}

.wishlist-btn.active {
    background: #9A8049;
}

.wishlist-btn.active i {
    color: #fff;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}
.wishlist-btn{
    position:absolute;
    top:12px;
    right:12px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:50%;
    width:36px;
    height:36px;
    font-size:18px;
    cursor:pointer;
    transition:.25s;
}
.wishlist-btn:hover{
    transform:scale(1.1);
}
.wishlist-btn.active{
    color:#c0392b;
    border-color:#c0392b;
}