:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 15px 0;
}

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

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.cart-badge {
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

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

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    background: white;
}

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

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

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-card-price .original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Product Detail Page */
.product-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.variant-selector {
    margin-bottom: 20px;
}

.variant-selector label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-option {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.variant-option:hover,
.variant-option.active {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: white;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
}

.quantity-btn:hover {
    background-color: var(--light-color);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

/* Cart Page */
.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    margin-right: 20px;
}

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

.cart-item-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-item-variant {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.cart-item-total {
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 20px;
}

.cart-item-remove:hover {
    color: #c0392b;
}

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: none;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

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

footer a:hover {
    color: var(--secondary-color);
}

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

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

.footer-subscribe input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 70%;
}

.footer-subscribe button {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-subscribe button:hover {
    background-color: #2980b9;
}

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

/* About Us Page */
.about-section {
    padding: 60px 0;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Contact Us Page */
.contact-section {
    padding: 60px 0;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.contact-info-item i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Policy Pages */
.policy-section {
    padding: 60px 0;
}

.policy-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.policy-section h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.policy-section p,
.policy-section ul {
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cart-item-quantity {
        margin: 15px 0;
    }
    
    .cart-item-remove {
        margin-left: 0;
        margin-top: 15px;
    }
}
