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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1 !important;
}

.nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db !important;
}

.cart-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Image Styles */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: #3498db;
}

.main-product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
}

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

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .price-section {
    margin-top: auto;
}

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

.sale-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-add-cart {
    width: 100%;
    padding: 0.75rem;
    font-weight: 500;
}

/* Product Detail Page */
.product-detail-section {
    padding: 4rem 0;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.variant-selector {
    margin: 1rem 0;
}

.variant-btn {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 2px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.variant-btn:hover,
.variant-btn.active {
    border-color: #3498db;
    background-color: #3498db;
    color: white;
}

/* Cart Page */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    margin-right: 1rem;
}

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

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

.quantity-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.cart-summary {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

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

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

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

footer h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.subscribe-form button {
    padding: 0.5rem 1rem;
}

/* About Us Page */
.about-section {
    padding: 4rem 0;
}

.about-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #3498db;
}

/* Policy Pages */
.policy-section {
    padding: 4rem 0;
}

.policy-section h2 {
    margin-bottom: 2rem;
}

.policy-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-section p,
.policy-section ul {
    margin-bottom: 1rem;
}

.policy-section ul {
    padding-left: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .main-product-image {
        height: 300px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
