/* Base Styles */
:root {
    --primary: #8B4513;
    --secondary: #D2B48C;
    --accent: #A0522D;
    --light: #F5F5DC;
    --dark: #3E2723;
    --text: #333333;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo i {
    margin-right: 8px;
    font-size: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 14px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-icons a {
    font-size: 16px;
    transition: color 0.3s;
}

.header-icons a:hover {
    color: var(--primary);
}

.cart-count {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-icon {
    position: relative;
}

/* User Authentication Styles */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.login-btn:hover {
    background: var(--primary);
    color: white;
}

.signup-btn {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.signup-btn:hover {
    background: #A0522D;
    border-color: #A0522D;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
    font-size: 14px;
}

.user-menu a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.user-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-watch-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Page Header */
.page-header {
    background-color: var(--dark);
    color: var(--light);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin: 50px 0 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 300;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 15px auto 0;
    line-height: 1.5;
}

/* Products Grid - 2 columns on mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-img {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    font-weight: 600;
}

.product-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-actions .btn {
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    margin: 0;
}

.add-to-cart {
    background: #D2B48C;
    color: #333;
    font-weight: 600;
}

.add-to-cart:hover {
    background: #A0522D;
    color: white;
}

.text-center {
    text-align: center;
}

/* Stock Badges */
.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.stock-low {
    background: #ffc107;
    color: #333;
}

.stock-out {
    background: #dc3545;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.product-image-container {
    position: relative;
}

/* Benefits Section */
.benefits {
    padding: 70px 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.benefit-card p {
    color: #666;
    line-height: 1.5;
}

/* Live Products Section */
.live-products-section {
    background: #f8f9fa;
    padding: 70px 0;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #D2B48C;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* About Section */
.about {
    background-color: var(--white);
    padding: 70px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 300;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #f8f8f8;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.shop-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-right: 10px;
    background-color: white;
    font-size: 14px;
}

.shop-view span {
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-links {
        justify-content: center;
        gap: 20px;
    }
    
    .header-icons {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .product-actions {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .section-title {
        margin: 40px 0 30px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .product-img {
        height: 180px;
    }
    
    .benefit-card {
        padding: 20px 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
}

/* Mobile-first responsive improvements */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .header-top {
        gap: 15px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 12px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}