/* Sampurn Super Mart - Custom Styles */

:root {
    --primary-green: #2e7d32;
    --primary-green-dark: #1b5e20;
    --primary-green-light: #4caf50;
    --accent-orange: #ff9800;
    --bg-light: #f8f9fa;
}

* {
    -webkit-font-smoothing: antialiased;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: #333;
    background-color: #fff;
    margin-bottom: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 50%, #4caf50 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-image {
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature Icons */
.feature-icon {
    font-size: 3rem;
    display: inline-block;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.product-image-wrapper {
    position: relative;
    background: #f5f5f5;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.out-of-stock {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Contact */
.contact-icon {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #2e7d32;
    flex-shrink: 0;
}

/* QR Container */
.qr-container {
    border: 4px solid var(--primary-green);
    background: white;
}

/* Avatar */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.avatar-circle-lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Buttons */
.btn-success {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
}

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

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

/* Navbar */
.navbar-brand span {
    color: var(--primary-green-dark);
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
}

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

/* Cards */
.card {
    border-radius: 12px;
}

/* Sticky cart */
.sticky-top {
    z-index: 1020;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
    .hero-image { max-height: 250px; }
}

/* Print */
@media print {
    .navbar, footer, .btn { display: none !important; }
}
