*{
    user-select: none;
}

/* ===== CART DRAWER ===== */
#cart-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10010; opacity: 0;
    pointer-events: none; transition: opacity 0.3s ease;
}
#cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }

#cart-drawer {
    position: fixed; top: 0; right: -400px; width: 380px; max-width: 90vw;
    height: 100%; background: #fff; z-index: 10011; display: flex;
    flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cart-drawer.open { right: 0; }

.cd-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%); color: white;
}
.cd-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.cd-close {
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.cd-close:hover { background: rgba(255,255,255,0.4); }

.cd-body { flex: 1; overflow-y: auto; padding: 16px; }
.cd-empty { text-align: center; padding: 60px 20px; color: #999; }

.cd-item {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    border: 1px solid #f0f0f0; border-radius: 10px; margin-bottom: 10px;
    background: #fafafa; transition: 0.2s;
}
.cd-item:hover { border-color: #D4AF37; }
.cd-item img {
    width: 56px; height: 56px; object-fit: contain; border-radius: 8px;
    background: #fff; border: 1px solid #eee;
}
.cd-item-info { flex: 1; min-width: 0; }
.cd-item-name {
    display: block; font-weight: 600; font-size: 0.9rem; color: #333;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-qty-row {
    display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.cd-qty-row button {
    width: 28px; height: 28px; border: 1px solid #ddd; border-radius: 6px;
    background: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #388e3c; transition: 0.15s;
}
.cd-qty-row button:hover { background: #e8f5e9; border-color: #388e3c; }
.cd-qty-row span { font-weight: 700; font-size: 0.95rem; min-width: 20px; text-align: center; }
.cd-remove {
    background: none; border: none; cursor: pointer; font-size: 1.1rem;
    opacity: 0.5; transition: 0.2s; padding: 4px;
}
.cd-remove:hover { opacity: 1; transform: scale(1.2); }

.cd-footer { padding: 16px; border-top: 1px solid #eee; display: flex; gap: 10px; flex-wrap: wrap; }
.cd-clear {
    flex: 1; padding: 12px; background: #fff; border: 2px solid #e74c3c;
    border-radius: 8px; color: #e74c3c; font-weight: 600; cursor: pointer;
    transition: 0.2s; font-size: 0.9rem;
}
.cd-clear:hover { background: #e74c3c; color: #fff; }
.cd-enquiry {
    flex: 2; padding: 12px; background: linear-gradient(135deg, #991B1B, #7F1D1D);
    border: none; border-radius: 8px; color: #fff; font-weight: 700;
    text-decoration: none; text-align: center; font-size: 0.95rem;
    transition: 0.2s; cursor: pointer;
}
.cd-enquiry:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,0,0,0.3); }

/* ===== BACK TO TOP ===== */
#back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 48px; height: 48px;
    border-radius: 50%; border: none; background: linear-gradient(135deg, #D4AF37, #B8941F);
    color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer;
    z-index: 9998; opacity: 0; transform: translateY(20px);
    transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(212,175,55,0.4);
    display: flex; align-items: center; justify-content: center;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 6px 18px rgba(212,175,55,0.5); }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    position: fixed; bottom: 110px; right: 30px; z-index: 10020;
    display: flex; flex-direction: column-reverse; gap: 8px;
    pointer-events: none;
}
.global-toast {
    background: #222; color: #fff; padding: 12px 20px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; opacity: 0; transform: translateX(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 8px;
    pointer-events: auto;
}
.global-toast.show { opacity: 1; transform: translateX(0); }
.global-toast.success { background: #2e7d32; }
.global-toast.info { background: #1565c0; }

/* ===== MOBILE STICKY CART BAR ===== */
#mobile-sticky-cart {
    position: fixed; bottom: -60px; left: 0; width: 100%; height: 50px;
    background: linear-gradient(135deg, #991B1B, #7F1D1D); color: white;
    display: none; align-items: center; justify-content: space-between;
    padding: 0 20px; z-index: 10005; box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    transition: bottom 0.3s ease; box-sizing: border-box;
}
#mobile-sticky-cart.visible { bottom: 0; }
#mobile-sticky-cart span { font-weight: 600; font-size: 0.95rem; }
#mobile-sticky-cart button {
    background: #D4AF37; color: #111; border: none; padding: 8px 20px;
    border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer;
    transition: 0.2s;
}
#mobile-sticky-cart button:hover { background: #B8941F; }

@media (max-width: 768px) {
    #mobile-sticky-cart { display: flex; }
    #back-to-top { left: auto; right: 20px; bottom: 170px; width: 40px; height: 40px; font-size: 1.1rem; }
    #toast-container { bottom: 20px; right: 15px; }
}

/* ===== PRODUCT MODAL ===== */
#product-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10015; display: none; align-items: center; justify-content: center;
}
#product-modal.open { display: flex; }
.pm-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); animation: fadeIn 0.2s;
}
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pm-content {
    position: relative; background: #fff; border-radius: 16px; max-width: 700px;
    width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: pmSlideUp 0.3s ease; z-index: 1;
}
@keyframes pmSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pm-close {
    position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
    border-radius: 50%; border: none; background: rgba(0,0,0,0.08);
    font-size: 1.5rem; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: 0.2s; z-index: 2; color: #333;
}
.pm-close:hover { background: rgba(0,0,0,0.15); }

#product-modal .pm-content img {
    width: 100%; max-height: 400px; object-fit: contain; border-radius: 16px 16px 0 0;
    background: #f9f9f9; padding: 20px; box-sizing: border-box;
}
.pm-details { padding: 24px; }
.pm-details h2 { color: #991B1B; margin: 0 0 12px 0; font-size: 1.5rem; }
.pm-details p { color: #666; line-height: 1.7; margin: 0 0 20px 0; }
.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-share-btn {
    background: #25d366; color: white; border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: 600; cursor: pointer; display: flex;
    align-items: center; gap: 8px; transition: 0.2s; font-size: 0.9rem;
}
.pm-share-btn:hover { background: #128c7e; transform: translateY(-2px); }

/* ===== PRODUCT SEARCH BAR (Product Pages) ===== */
.product-search-wrapper {
    padding: 20px 10% 0 10%;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.search-box {
    flex: 1; min-width: 220px; position: relative; display: flex; align-items: center;
}
.search-icon {
    position: absolute; left: 16px; width: 20px; height: 20px; fill: #999;
    pointer-events: none; transition: fill 0.3s;
}
.search-box:focus-within .search-icon { fill: #991B1B; }
.product-search-input {
    width: 100%; padding: 14px 44px 14px 46px; border: 2px solid #e0e0e0;
    border-radius: 14px; font-size: 1rem; outline: none; transition: all 0.3s;
    background: #fff; font-family: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.product-search-input:focus {
    border-color: #991B1B; box-shadow: 0 0 0 4px rgba(153,27,27,0.08), 0 4px 12px rgba(0,0,0,0.06);
}
.product-search-input::placeholder { color: #aaa; font-weight: 400; }
.search-clear-btn {
    position: absolute; right: 10px; width: 28px; height: 28px;
    border-radius: 50%; border: none; background: #eee; color: #666;
    font-size: 18px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: 0.2s; line-height: 1;
}
.search-clear-btn:hover { background: #ddd; color: #333; }
.product-count-text {
    font-size: 0.85rem; color: #888; font-weight: 600; white-space: nowrap;
}

@media (max-width: 768px) {
    .product-search-wrapper { padding: 15px 3% 0 3%; }
    .product-search-input { padding: 12px 40px 12px 42px; font-size: 0.9rem; }
    .search-icon { left: 14px; width: 18px; height: 18px; }
    .search-clear-btn { right: 8px; width: 26px; height: 26px; font-size: 16px; }
}

/* ===== PRODUCT BADGES ===== */
.product-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px;
    border-radius: 6px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; z-index: 2;
}
.badge-bestseller { background: #ff6f00; color: #fff; }
.badge-new { background: #2e7d32; color: #fff; }
.badge-popular { background: #1565c0; color: #fff; }
.product-card { position: relative; }

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
    padding: 80px 10%; text-align: center; 
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
}
.why-choose-section h2 {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
    color: #991B1B; margin-bottom: 15px;
}
.why-choose-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #B8941F);
    margin: 12px auto 35px;
    border-radius: 2px;
}
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}
.why-card {
    padding: 45px 35px; border-radius: 20px; background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
    border: 2px solid transparent;
}
.why-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #B8941F);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.why-card:hover::before {
    transform: scaleX(1);
}
.why-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px rgba(153, 27, 27, 0.12);
    border-color: #D4AF37;
}
.why-icon { 
    font-size: 3.5rem; margin-bottom: 25px; display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}
.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
}
.why-card h3 { 
    color: #991B1B; font-size: 1.35rem; margin-bottom: 15px; 
    font-weight: 700; letter-spacing: -0.3px;
}
.why-card p { 
    color: #64748B; line-height: 1.8; font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .why-choose-section { padding: 45px 5%; }
    .why-choose-section h2 { font-size: 1.8rem; margin-bottom: 10px; }
    .why-choose-section h2::after { margin: 10px auto 25px; width: 60px; height: 3px; }
    .why-grid { gap: 20px; grid-template-columns: 1fr; }
    .why-card { padding: 28px 20px; }
    .why-icon { font-size: 2.5rem; margin-bottom: 15px; }
    .why-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .why-card p { font-size: 0.9rem; line-height: 1.5; }
}