@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #dc143c;
    --primary-dark: #8b0000;
    --primary-light: #ff6b6b;
    --secondary: #2c3e50;
    --bg-soft: #f8f9fa;
    --border: #e9ecef;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #2c3e50; background: #fff; }
a { transition: var(--transition); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Topbar */
.topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 7px 0;
    font-size: 13px;
}
.topbar a { color: rgba(255,255,255,0.9); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: white; }

/* Navbar */
.navbar { padding: 12px 0; border-bottom: 2px solid #f0f0f0; }
.navbar-brand { font-size: 1.5rem; font-weight: 800; color: var(--primary) !important; letter-spacing: -0.5px; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; border-radius: 10px; margin-right: 4px; font-size: 16px; }
.search-input { border-radius: 50px 0 0 50px !important; border-right: none !important; padding-left: 20px; background: #f8f9fa; }
.search-input:focus { box-shadow: none; background: #fff; }
.search-input + .btn { border-radius: 0 50px 50px 0 !important; background: var(--primary); border-color: var(--primary); }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px !important; padding: 0; }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--primary); color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nav-link { font-weight: 500; color: #444 !important; padding: 8px 14px !important; border-radius: 8px; transition: var(--transition); }
.nav-link:hover { color: var(--primary) !important; background: rgba(220,20,60,0.06); }

/* Alert Toast */
.alert-toast { position: fixed; top: 80px; right: 20px; z-index: 9999; min-width: 300px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: slideIn .3s ease; border: none; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Bootstrap overrides */
.btn-primary { background: linear-gradient(135deg, var(--primary), #c0102e); border: none; border-radius: 8px; font-weight: 600; letter-spacing: 0.3px; transition: var(--transition); }
.btn-primary:hover { background: linear-gradient(135deg, #c0102e, var(--primary-dark)); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(220,20,60,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.form-control, .form-select { border-radius: 8px; border-color: #e0e0e0; padding: 10px 14px; transition: var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,20,60,0.1); }
.badge { font-weight: 600; letter-spacing: 0.3px; }

/* Product Cards */
.product-card { border-radius: var(--radius-lg); border: 1px solid #f0f0f0; transition: var(--transition); overflow: hidden; background: #fff; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-img { height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img { transform: scale(1.05); }

/* Category Cards */
.hover-lift { transition: var(--transition); border: 2px solid transparent; }
.hover-lift:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 8px 24px rgba(220,20,60,0.1); }

/* Payment Options */
.payment-option-card { display: block; border: 2px solid #e9ecef; border-radius: 16px; padding: 16px 20px; cursor: pointer; transition: var(--transition); }
.payment-option-card:hover { border-color: var(--primary); }
.payment-option-card.active { border-color: var(--primary); background: rgba(220,20,60,0.03); }
.payment-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.bg-success-soft { background: rgba(40,167,69,0.1); }
.bg-primary-soft { background: rgba(220,20,60,0.08); }
.bg-info-soft { background: rgba(23,162,184,0.08); }
.bg-danger-soft { background: rgba(220,53,69,0.1); }
.bg-warning-soft { background: rgba(255,193,7,0.1); }
.text-primary { color: var(--primary) !important; }

/* Cart */
.qty-control button { border: none; background: #f8f9fa; cursor: pointer; font-weight: 700; }
.qty-control button:hover { background: #e9ecef; }

/* Breadcrumb */
.breadcrumb-item a { color: var(--primary); text-decoration: none; }

/* Footer */
.footer { background: #1a1a2e; color: #adb5bd; padding: 60px 0 30px; }
.footer h5, .footer h6 { color: white; }
.footer-links { }
.footer-links a { color: #adb5bd; text-decoration: none; line-height: 2; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1); color: white; text-decoration: none; margin-right: 8px; transition: var(--transition); }
.social-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* Animate pulse */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,20,60,.4); } 50% { box-shadow: 0 0 0 10px rgba(220,20,60,0); } }
.animate-pulse { animation: pulse 2s infinite; }

/* Section Title */
.section-title { font-size: 1.6rem; font-weight: 800; position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 2px; }

/* Profile */
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; font-size: 2.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(220,20,60,.3); }

/* Responsive */
@media (max-width: 768px) {
    .slide-item { height: 300px; }
    .section-title { font-size: 1.3rem; }
    .display-3 { font-size: 2rem !important; }
}
