/* Global Styles */
:root {
    --primary-color: #8B4513; /* SaddleBrown */
    --secondary-color: #D2B48C; /* Tan */
    --accent-color: #CD853F; /* Peru */
    --light-color: #F5F5DC; /* Beige */
    --dark-color: #333;
    --white: #fff;
    --gray: #f5f5f5;
    --text-color: #333;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Header */
.header {
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

.search-bar {
    display: flex;
    flex-grow: 1;
    margin: 0 30px;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.search-bar button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

.user-actions a {
    color: var(--dark-color);
    margin-left: 20px;
    font-size: 18px;
    position: relative;
}

.user-actions a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.main-nav a:hover {
    background-color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Categories */
.categories {
    padding: 60px 0;
    text-align: center;
}

.categories h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px;
}

.category-card .btn {
    margin-bottom: 20px;
}

/* Products */
.featured-products {
    padding: 60px 0;
    text-align: center;
    background-color: var(--gray);
}

.featured-products h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 12px;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.product-rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--accent-color);
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    text-align: center;
}

.testimonials h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    color: var(--primary-color);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter button {
    padding: 10px 20px;
    background-color: var(--dark-color);
    color: var(--white);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: #444;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.payment-methods {
    margin-top: 15px;
}

.payment-methods i {
    font-size: 24px;
    margin: 0 10px;
    color: #ddd;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .search-bar {
        margin: 20px 0;
        max-width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .category-grid, .product-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Cart Page Styles */
.cart-items {
    margin: 30px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-image {
    width: 80px;
    margin-right: 20px;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details input {
    width: 50px;
    padding: 5px;
    text-align: center;
}

.cart-item-price {
    font-weight: bold;
    margin: 0 20px;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 16px;
}

.cart-summary {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: right;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.checkout-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 50px;
    color: #777;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Product Card Enhancements */
.product-card {
    position: relative;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-variants {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.variant-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .quick-view {
    opacity: 1;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 5px;
    display: flex;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.modal-image {
    flex: 1;
    padding: 20px;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.modal-details {
    flex: 1;
    padding: 20px;
}

.modal-rating {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
    color: var(--primary-color);
}

.modal-price del {
    font-size: 1rem;
    color: #777;
    margin-left: 10px;
}

.modal-description {
    margin: 20px 0;
    line-height: 1.6;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }
    
    .modal-image, .modal-details {
        flex: none;
        width: 100%;
    }
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text ul {
    margin: 20px 0;
    list-style: none;
}

.about-text li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-text li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.team-section {
    margin: 80px 0;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/contact-bg.jpg');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.contact-form h2, .contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.info-card {
    display: flex;
    margin-bottom: 30px;
}

.info-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.map-section {
    margin: 50px 0;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Cart Page Styles */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.cart-items {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 50px;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-image img {
    width: 100%;
    border-radius: 5px;
}

.cart-item-details h4 {
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 18px;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    align-self: start;
    position: sticky;
    top: 20px;
}

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

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-bottom: none;
}

.continue-shopping {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .about-grid, .contact-grid, .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }
    
    .cart-item-price, .remove-item {
        grid-column: 2;
        text-align: right;
    }
}

/* Checkout Page */
.checkout-page {
    padding: 30px 0;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 50px;
}

.checkout-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
}

.checkout-progress .step span {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.checkout-progress .step.active {
    color: var(--primary-color);
    font-weight: bold;
}

.checkout-progress .step.active span {
    background: var(--primary-color);
    color: white;
}

.secure-badge {
    background: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form section {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.checkout-form section.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.payment-methods {
    margin: 25px 0;
}

.payment-method {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
}

.payment-method.active {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
}

.payment-method input {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.payment-method label img {
    height: 25px;
    margin-right: 15px;
}

.payment-method label i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.payment-terms {
    margin: 25px 0;
    display: flex;
    align-items: center;
}

.payment-terms input {
    margin-right: 10px;
}

.order-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 20px;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item-name {
    flex: 2;
}

.order-item-price {
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.order-totals {
    margin: 20px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.grand-total {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.confirmation-box {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-box i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.order-id {
    font-weight: bold;
    margin: 15px 0;
    font-size: 1.2rem;
}

.whatsapp-banner {
    background: #25D366;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    margin: 20px 0;
}

.whatsapp-banner img {
    height: 30px;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-progress {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}