/* ==========================================
   assets/style.css
   Rice World Services - B2B Wholesale Theme
========================================== */

/* --- 1. VARIABLES --- */
:root {
    --primary-color: #1b4d3e;       
    --primary-hover: #12352a;
    --secondary-color: #2c3e50;     
    --accent-color: #d4af37;        
    --bg-light: #f4f7f6;            
    --surface-color: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- 2. BASE STYLES --- */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--secondary-color);
}

a { 
    text-decoration: none; 
}

/* --- 3. NAVBAR --- */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--primary-color);
}

.nav-link {
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover { 
    color: var(--primary-color) !important; 
}

/* --- 4. WHOLESALE SLIDER --- */
.wholesale-slider { 
    height: 75vh; 
    min-height: 500px; 
}

.carousel-item { 
    height: 75vh; 
    min-height: 500px; 
    background-color: #000000; 
}

.carousel-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    opacity: 0.5; 
}

.slider-caption {
    position: absolute; 
    top: 50%; 
    left: 10%;
    transform: translateY(-50%);
    max-width: 700px; 
    text-align: left; 
    z-index: 10;
}

.slider-caption h1 {
    font-size: 3.5rem; 
    color: #ffffff; 
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7); 
    border-left: 5px solid var(--accent-color); 
    padding-left: 20px;
}

.slider-caption p {
    font-size: 1.2rem; 
    color: #f8f9fa; 
    margin: 1.5rem 0; 
    font-weight: 600;
}

/* --- 5. STATS BAR --- */
.stats-bar {
    background-color: var(--primary-color);
    color: #ffffff; 
    padding: 20px 0; 
    border-bottom: 4px solid var(--accent-color);
}

.stat-box { 
    border-right: 1px solid rgba(255,255,255,0.2); 
}

.stat-box:last-child { 
    border-right: none; 
}

/* --- 6. PRODUCT CARDS --- */
.product-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 100%;
}

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

.product-card img {
    width: 100%; 
    height: 260px; 
    object-fit: contain; 
    margin-bottom: 15px;
}

.bag-size-tag {
    background: var(--secondary-color); 
    color: #ffffff;
    font-size: 0.8rem; 
    font-weight: bold; 
    padding: 4px 10px; 
    border-radius: 4px;
    display: inline-block; 
    margin-bottom: 10px;
}

/* --- 7. CART & CHECKOUT PAGES --- */
.summary-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
    position: sticky;
    top: 90px;
}

.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.table th {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

/* --- 8. BUTTONS --- */
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
}

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

.btn-gold { 
    background-color: var(--accent-color); 
    color: #000000; 
    font-weight: bold; 
    border: none; 
}

.btn-gold:hover { 
    background-color: #bfa032; 
    color: #000000; 
}

.btn-bulk-order {
    background-color: var(--bg-light); 
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    font-weight: 700; 
    width: 100%;
    transition: 0.3s ease;
}

.btn-bulk-order:hover { 
    background-color: var(--primary-color); 
    color: #ffffff; 
}

/* --- 9. INFRASTRUCTURE SECTION --- */
.infra-section { 
    background-color: #ffffff; 
    border-top: 1px solid #e0e0e0; 
    border-bottom: 1px solid #e0e0e0; 
}

.infra-icon { 
    font-size: 2.5rem; 
    color: var(--accent-color); 
    margin-bottom: 15px; 
}

/* --- 10. FOOTER --- */
footer { 
    background-color: var(--secondary-color) !important; 
}