/* Premium Busana Module Styles (Jewelry-Dojo Aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Montserrat:wght@300;400;600&display=swap');

/* Main Grid Layout */
.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0;
}

/* Individual Product Card */
.product-card {
    background-color: #111111; /* Dark charcoal */
    border: 1px solid rgba(197, 160, 89, 0.4); /* Subtle gold border */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(197, 160, 89, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: inset 0 0 30px rgba(197, 160, 89, 0.15), 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(197, 160, 89, 0.8);
}

/* Image Wrapper for Scaling Effect */
.product-card .image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #080808;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.product-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve aspect ratio of merchandise */
    padding: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .image-wrapper img {
    transform: scale(1.1); /* Subtle zoom in */
}

/* Content Area */
.product-card .content {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Typography elements */
.product-card .product-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 70%, #fbf5b7 85%, #aa771c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card .product-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #a0aec0; /* Soft gray */
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-card .product-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Badges (Coming Soon, New) */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #bf953f 0%, #aa771c 100%);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Action Buttons */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #C5A059;
    border: 1px solid #C5A059;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-btn i {
    font-size: 1.25rem;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #bf953f 0%, #aa771c 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .product-card .image-wrapper {
        height: 280px;
    }
    
}

/* =========================================
   PREMIUM BUSANA MODULE ADDITIONS
   ========================================= */

/* Filter Buttons */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #a0aec0;
    padding: 8px 24px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, #bf953f 0%, #aa771c 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Image Swap on Hover (Idea 2) */
.product-card .image-wrapper img {
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card .img-primary {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.product-card .img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
}

.product-card:hover .img-primary {
    opacity: 0;
}

.product-card:hover .img-secondary {
    opacity: 1;
    transform: scale(1.05); /* Secondary image zooms slightly */
}

/* Quick View Modal (Idea 3) */
.quick-view-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.quick-view-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 16px;
    display: flex;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(212, 175, 55, 0.05);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.quick-view-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #a0aec0;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-close:hover {
    color: #D4AF37;
}

.modal-image-col {
    width: 45%;
    background: #080808;
    position: relative;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-col {
    width: 55%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2rem;
    color: #C5A059;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: #a0aec0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.size-selector {
    margin-bottom: 2rem;
}

.size-selector h4 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.size-options {
    display: flex;
    gap: 0.8rem;
}

.size-btn {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    border: 1px solid #4a5568;
    background: transparent;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover, .size-btn.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
}

.checkout-btn {
    margin-top: auto;
    background: linear-gradient(135deg, #bf953f 0%, #aa771c 100%);
    color: #000;
    border: none;
    padding: 15px 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.checkout-btn i {
    font-size: 1.4rem;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    .modal-image-col {
        width: 100%;
        height: 250px;
    }
    .modal-info-col {
        width: 100%;
        padding: 2rem 1.5rem;
    }
}
