/* Customer Facing Frontend Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

p {
    color: var(--text-muted);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    background: white !important;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.hero-image {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Product Cards */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.product-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-body {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-light {
    background: white;
    color: var(--text-dark);
    border: 2px solid white;
}

.btn-light:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-secondary {
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline-secondary:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 11px 11px 0 0 !important;
}

.card-header h5 {
    margin: 0;
    color: var(--text-dark);
}

.card-body {
    padding: 20px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table thead {
    background: var(--light-bg);
}

.table thead th {
    border: none;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    color: var(--text-dark);
}

.table tbody td {
    padding: 15px;
    border-color: var(--border-color);
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.02);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

/* Sections */
section {
    padding: 60px 0;
}

section.py-5 {
    padding: 80px 0;
}

section.bg-light {
    background-color: var(--light-bg);
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
}

footer h5 {
    color: white;
    margin-bottom: 15px;
}

footer a {
    color: #9ca3af;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table tbody td {
        padding: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-section {
        min-height: auto;
    }

    .sticky-top {
        position: relative !important;
    }
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

.min-vh-100 {
    min-height: 100vh;
}

.text-muted {
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Loading Animation */
.spinner-border {
    color: var(--primary-color);
}

/* Input Groups */
.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.input-group .btn {
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.input-group .btn-outline-secondary {
    color: var(--text-dark);
}

/* Additional Product Details Styles */
.product-gallery {
    margin-bottom: 30px;
}

.product-gallery .main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--light-bg);
}

.product-gallery .thumbnails img {
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-gallery .thumbnails img:hover {
    border-color: var(--primary-color);
}

.price-section {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.addons-list {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.addons-list .form-check {
    padding: 10px 0;
}

.order-totals {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-top: 20px;
}

.order-totals p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-dark);
}
