/* Premium CSS for GO Mart / Superstore */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #0F172A;
    --accent: #F97316;
    --bg-color: #f7f9fa;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-muted: #666666;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 40px 0 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

header h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin: 10px 0 30px;
}

nav {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 18px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

nav a {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Base Main Layout */
main {
    flex: 1;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Typography elements */
h2.page-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-weight: 700;
}

/* Forms (Delivery, Payment, Contact) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.form-container:hover {
    box-shadow: var(--shadow-lg);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: var(--transition);
    background-color: #fbfbfb;
}
.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 80, 158, 0.1);
    background-color: white;
}
.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 80, 158, 0.2);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 136, 255, 0.4);
}

/* Hero Section (Landing Page) */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&q=80&w=2600') center/cover no-repeat;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 45, 94, 0.7);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
}
.hero .btn {
    width: auto;
    padding: 18px 40px;
    font-size: 20px;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.4);
}
.hero .btn:hover {
    background: #ff9533;
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.6);
}

/* Features Grid (Landing Page) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.feature-card h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.feature-card p {
    color: var(--text-muted);
}

/* Product Grid (Products Page) */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}
.product {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.product img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    transition: var(--transition);
}
.product:hover img {
    transform: scale(1.05);
}
.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product h3.title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--text-main);
}
.product p.desc {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 15px;
}
.product h3.price {
    font-size: 24px;
    color: var(--accent);
    font-weight: 700;
    margin: auto 0 25px;
}

footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}
footer a {
    color: var(--primary-light);
    text-decoration: none;
}
