/* ===========================================================
   Saki Business Hub - Main Stylesheet
   =========================================================== */

/* CSS Variables */
:root {
    --primary: #1a237e;
    --primary-dark: #0d47a1;
    --primary-light: #3f51b5;
    --secondary: #ff6f00;
    --secondary-light: #ff8f00;
    --accent: #ffc107;
    --gold: #ffd700;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --body-bg: #f5f5f5;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 5px 20px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--body-bg);
    color: #333;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Announcement Bar */
.announcement-bar {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Navigation */
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 5px;
    transition: var(--transition);
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.navbar .cart-count {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    padding: 80px 0 60px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-title {
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.text-gold {
    color: var(--gold);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #ffb300 100%);
    color: var(--dark);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    color: var(--dark);
}

/* Categories Section */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}

.category-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card .category-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card .product-count {
    font-size: 0.8rem;
    color: #888;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.product-card .badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-card .product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fafafa;
    overflow: hidden;
}

.product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.product-card .vendor-name {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.product-card .vendor-name a {
    color: var(--primary-light);
}

.product-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--danger);
}

.product-card .price .old-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.product-card .rating {
    font-size: 0.8rem;
    color: #ffc107;
}

.product-card .add-to-cart-btn {
    width: 100%;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

/* Vendor Cards */
.vendor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
    text-align: center;
}

.vendor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.vendor-card .vendor-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.vendor-card .vendor-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: -40px;
    object-fit: cover;
    background: white;
}

.vendor-card .vendor-info {
    padding: 15px;
}

.vendor-card .store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.vendor-card .vendor-rating {
    color: #ffc107;
    font-size: 0.85rem;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Flash Sale Timer */
.flash-sale-timer {
    background: linear-gradient(135deg, #dc3545, #ff4444);
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.flash-sale-timer .time-part {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 3px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #e65100 100%);
    border: none;
    color: white;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

/* Cart Page */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

/* Checkout */
.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #eee;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

/* Vendor Dashboard */
.sidebar {
    background: linear-gradient(180deg, var(--dark) 0%, #16213e 100%);
    min-height: 100vh;
    padding: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left-color: var(--secondary);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Admin Panel */
.admin-sidebar {
    background: #1a1a2e;
    min-height: 100vh;
}

/* Login / Register */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .auth-header .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

/* Product Detail Page */
.product-gallery {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.product-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.product-detail-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #eee;
}

/* Vendor Store Page */
.vendor-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    color: white;
}

.vendor-header .vendor-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slide {
        min-height: 400px;
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .sidebar {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 350px;
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
    }
    
    .product-card .product-image {
        height: 180px;
    }
    
    .auth-card {
        padding: 25px;
    }
}

/* Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Miscellaneous */
.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #e65100 100%);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Rating Stars */
.star-rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.star-rating .empty {
    color: #ddd;
}

/* Table Responsive */
.table-custom {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.table-custom thead {
    background: var(--primary);
    color: white;
}

.table-custom th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 15px;
}

.table-custom td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    font-weight: 700;
    margin: 0;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Section padding */
.section-padding {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
}

/* Filter sidebar */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-card h6 {
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ===========================================================
   Footer Styles - Sango Market Hub Style
   =========================================================== */
.site-footer {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1a237e 100%);
    color: #ffffff;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6f00, #ffc107, #ff6f00);
}

.site-footer .footer-brand {
    color: #ffffff;
    font-size: 1.4rem;
}

.site-footer .footer-heading {
    color: #ffc107;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffc107;
}

.site-footer .footer-text {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.site-footer .footer-links a,
.site-footer .footer-contact {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

.site-footer .footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-contact i {
    color: #ffc107;
    width: 20px;
}

.site-footer .text-whatsapp {
    color: #25d366 !important;
    font-weight: 500;
}

.site-footer .text-whatsapp:hover {
    color: #1ebe5d !important;
    text-decoration: underline !important;
}

.site-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    border-width: 1px;
    opacity: 1;
}

.site-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-payments {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .footer-payments i {
    font-size: 1rem;
}

.site-footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.site-footer .btn-outline-success {
    border-color: #25d366;
    color: #25d366;
}

.site-footer .btn-outline-success:hover {
    background: #25d366;
    color: #ffffff;
}
