/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #d35400;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a04000;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f5fa;
    background-image: url('../images/backgroundpic.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* Add Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #d35400;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

a {
    text-decoration: none;
    color: #d35400;
    transition: color 0.3s;
}

a:hover {
    color: #a04000;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #d35400;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #a04000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.logo-text p {
    font-style: italic;
    color: #ecf0f1;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 20px;
    margin-bottom: 5px;
}

nav ul li a {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
}

nav ul li a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: #d35400;
    color: white;
}

.cart-icon {
    position: relative;
}

#cart-count {
    background-color: #d35400;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: relative;
    top: -8px;
}

/* Messages */
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.feature {
    flex: 1;
    padding: 20px;
    min-width: 250px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 50%;
    color: white;
}

.quality-icon {
    background-color: #d35400;
}

.style-icon {
    background-color: #2980b9;
}

.warranty-icon {
    background-color: #27ae60;
}

.feature h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Featured Products Section */
.featured-products {
    padding: 60px 5%;
    background-color: #f0f5fa;
    text-align: center;
}

.featured-products h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product h3 {
    margin: 15px 0;
    color: #2c3e50;
}

.product p {
    padding: 0 15px;
    margin-bottom: 15px;
}

.product .price {
    font-weight: bold;
    color: #d35400;
    font-size: 1.2rem;
    margin: 10px 0;
}

.product .btn {
    margin: 0 5px 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
    color: #2c3e50;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.customer {
    font-style: italic;
    margin-top: 15px;
    color: #7f8c8d;
}

/* Page Header */
.page-header {
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.3) 0%, rgba(44, 62, 80, 0.3) 100%);
    z-index: -1;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Products Page */
.product-filters {
    background-color: #ffffff;
    padding: 20px 5%;
    border-bottom: 1px solid #e1e1e1;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filters li a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f5fa;
    border-radius: 20px;
    color: #2c3e50;
    transition: all 0.3s;
}

.category-filters li a:hover,
.category-filters li a.active {
    background-color: #d35400;
    color: white;
}

.products {
    padding: 40px 5%;
}

.no-products {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* Form Styles */
.signup-section,
.login-section,
.contact-section {
    padding: 60px 5%;
    background-color: #f0f5fa;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 8px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d35400;
    box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.login-link,
.signup-link,
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.demo-credentials {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

/* Contact Page */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 20px;
}

.info-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 60px 5% 30px;
    backdrop-filter: blur(10px);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #ecf0f1;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    margin-right: 10px;
    color: #bdc3c7;
}

.social-icon:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* Cart Page */
.cart-section {
    padding: 40px 5%;
    background-color: #f0f5fa;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.cart-table th {
    background-color: #2c3e50;
    color: white;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #f0f5fa;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.quantity {
    margin: 0 10px;
    font-weight: bold;
}

.remove-btn {
    background-color: transparent;
    color: #e74c3c;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.cart-summary {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e1e1e1;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: none;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #e1e1e1;
}

.checkout-btn {
    width: 100%;
    margin-bottom: 10px;
}

.secondary-btn {
    width: 100%;
    background-color: #7f8c8d;
}

.secondary-btn:hover {
    background-color: #6c7a7d;
}

.empty-cart-message {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-message h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-cart-message p {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product, .feature, .testimonial {
    animation: fadeIn 0.6s ease-out forwards;
}

.product:nth-child(2) {
    animation-delay: 0.2s;
}

.product:nth-child(3) {
    animation-delay: 0.4s;
}

.feature:nth-child(2) {
    animation-delay: 0.2s;
}

.feature:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        justify-content: center;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px;
    }
}