
/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navbar Styles */
.navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand img {
    height: 100px;
}

.nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.cart-badge {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Outline Primary Button */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background-image: url("hero-bg.jpg");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Quiz Section */
.quiz-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.quiz-step {
    display: none;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.05);
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    margin-bottom: 15px;
    color: #222;
}

.quiz-step ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.quiz-step ul li {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

/* Quiz Radio Options */
.quiz-option-radio {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option-radio:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.quiz-option-radio.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.quiz-option-radio input[type="radio"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.quiz-option-radio label {
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    display: block;
    width: 100%;
}

.next-btn {
    margin-top: 20px;
    background: #007bff;
    border: none;
    padding: 10px 18px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.next-btn:hover {
    background: #0056b3;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
}

.error-msg {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* Toe and Handle Type Options */
.toe-type-options,
.handle-type-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.toe-card,
.handle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
}

.toe-card:hover,
.handle-card:hover {
    border-color: #007BFF;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
}

.toe-card input,
.handle-card input {
    display: none;
}

.toe-card img,
.handle-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 5px;
}

.toe-card span,
.handle-card span {
    font-size: 0.9rem;
    font-weight: bold;
}

.toe-card input:checked + img,
.handle-card input:checked + img {
    border: 2px solid #007BFF;
}

.quiz-section {
    background-color: var(--light-color);
}

.quiz-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.quiz-option i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quiz-option h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quiz-option p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

.product-card .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.rating i {
    font-size: 0.8rem;
    margin-right: 0.1rem;
}

/* Customization Form */
.customization-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid #eff6ff;
    padding-bottom: 0.5rem;
}

.custom-radio {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.custom-radio:hover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.custom-radio input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.custom-radio:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.toe-visual, .handle-visual {
    margin-top: 0.5rem;
}

.toe-shape, .handle-shape {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Cart Styles */
.customization-info {
    background-color: #f1f5f9;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.customization-info small {
    color: var(--secondary-color);
}

/* Payment Options */
.payment-methods {
    margin-top: 1rem;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: #3498db;
}

.payment-option input[type="radio"]:checked ~ * {
    border-color: #3498db;
}

.payment-label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
}

/* Enhanced order summary */
.order-summary {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.customer-details {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Quantity controls */
.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer h5 {
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer a:hover {
    color: #3498db;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Button Group Styling */
.button-group {
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
        min-height: 70vh;
        background-position: center top;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 85%;
        max-width: none;
    }
    
    .button-group {
        width: 100%;
    }

    .quiz-option {
        padding: 1.5rem 1rem;
    }

    .toe-card,
    .handle-card {
        width: 45%;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    color: #dc2626;
}

.alert-warning {
    background-color: #fefce8;
    color: #ca8a04;
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

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