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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

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

.logo img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

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

.hero .tagline {
    font-size: 1.5rem;
    opacity: 0.9;
}

.hero-video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Sections */
section {
    padding: 60px 0;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

/* Innovations Section */
.innovations {
    background: white;
}

.innovation-showcase {
    text-align: center;
}

.innovation-showcase img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.innovation-showcase p {
    font-size: 1.2rem;
    color: #666;
}

/* Highlights Section */
.highlights {
    background: #f9f9f9;
}

.highlights h2,
.innovations h2,
.sales h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

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

.highlight-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.highlight-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.highlight-card p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
}

/* Products Section */
.products-section,
.sales {
    background: white;
}

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

.products-grid-centered {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.products-grid-centered .product-card {
    width: 450px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-card.sale {
    border: 2px solid #e74c3c;
}

.sale-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-name-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .product-name-single-line {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

.product-card .description {
    color: #666;
    margin-bottom: 20px;
    min-height: 50px;
    flex-grow: 1;
}

.price-container {
    margin-bottom: 20px;
    margin-top: auto;
}

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

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

.current-price {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.about-section {
    background: white;
}

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

.about-text h3 {
    color: #667eea;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.values-section h3 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

/* Contact Section */
.contact-section {
    background: white;
}

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

.contact-form h3,
.contact-info h3 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

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

.info-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

/* Product Card Link */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover {
    text-decoration: none;
}

/* Product Detail Page */
.product-detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.product-detail-header h1 {
    font-size: 2.5rem;
    margin: 20px 0 10px 0;
}

.product-sku {
    font-size: 0.95rem;
    color: #666;
    font-weight: 600;
    margin: 10px 0;
    letter-spacing: 0.5px;
}

.product-sku-small {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
    font-weight: 500;
}

.product-tagline {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.original-price-large {
    text-decoration: line-through;
    font-size: 1.5rem;
    opacity: 0.8;
}

.sale-price-large {
    font-size: 2.5rem;
    font-weight: bold;
}

.current-price-large {
    font-size: 2.5rem;
    font-weight: bold;
}

.savings {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
}

.product-detail-content {
    padding: 60px 0;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.media-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    align-self: start;
}

.image-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 400px;
    height: 400px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
}

.video-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.video-container {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.detail-box h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.full-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.how-it-works-list,
.box-contents-list {
    padding-left: 25px;
}

.how-it-works-list li,
.box-contents-list li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.comparison-box {
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.comparison-image {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.purchase-section {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-large {
    flex: 1;
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Cart Icon in Navigation */
.cart-link {
    position: relative;
}

.cart-count {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

/* Cart Page */
.cart-section {
    background: white;
    min-height: 60vh;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    align-items: center;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.item-sku {
    color: #666;
    font-size: 0.85rem;
    margin: 4px 0 8px 0;
    font-weight: 500;
}

.item-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.item-price {
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-form label {
    font-size: 0.9rem;
    color: #666;
}

.quantity-form input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.btn-update,
.btn-remove {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-update {
    background: #667eea;
    color: white;
}

.btn-update:hover {
    background: #5568d3;
}

.btn-remove {
    background: #e74c3c;
    color: white;
}

.btn-remove:hover {
    background: #c0392b;
}

.cart-item-subtotal {
    text-align: right;
}

.subtotal-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.subtotal-amount {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.cart-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.total-line {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    border-top: 2px solid #667eea;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
}

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

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart h3 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Checkout Page */
.checkout-section {
    background: white;
    min-height: 60vh;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.order-review,
.payment-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.order-review h3,
.payment-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.review-items {
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.review-item-name {
    color: #666;
}

.review-item-price {
    color: #333;
    font-weight: bold;
}

.review-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid #667eea;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.payment-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.payment-secure {
    text-align: center;
    margin-top: 20px;
    color: #27ae60;
    font-weight: 500;
}

.back-to-cart {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container padding for mobile */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        padding: 50px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    /* Page headers */
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Innovation image */
    .innovation-showcase img {
        max-width: 100%;
        height: auto;
    }
    
    /* Highlights */
    .highlights h2,
    .innovations h2,
    .sales h2 {
        font-size: 1.8rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight-card {
        padding: 20px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid-centered {
        max-width: 100%;
    }
    
    .products-grid-centered .product-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 350px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-card h3 {
        font-size: 1.3rem;
    }
    
    /* About page */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    /* Contact page */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Cart and Checkout */
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
    }
    
    .cart-item-image {
        grid-row: 1 / 3;
    }
    
    .cart-item-details {
        grid-column: 2;
        grid-row: 1;
    }
    
    .cart-item-actions {
        grid-column: 1 / 3;
        grid-row: 3;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cart-item-subtotal {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
    
    .cart-summary {
        position: static;
    }
    
    /* Product detail page */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .media-section {
        padding: 20px;
    }
    
    .main-image {
        width: 100%;
        height: 400px;
        max-width: 400px;
    }
    
    .main-image img {
        object-fit: contain;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .detail-box {
        padding: 20px;
    }
    
    .detail-box h2 {
        font-size: 1.5rem;
    }
    
    .product-detail-header {
        padding: 30px 0;
    }
    
    .product-detail-header h1 {
        font-size: 1.6rem;
    }
    
    .product-tagline {
        font-size: 1.1rem;
    }
    
    .price-display {
        flex-wrap: wrap;
    }
    
    .sale-price-large,
    .current-price-large {
        font-size: 2rem;
    }
    
    .original-price-large {
        font-size: 1.2rem;
    }
    
    .purchase-section {
        flex-direction: column;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .comparison-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* Footer */
    footer {
        padding: 20px 0;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .product-detail-header h1 {
        font-size: 1.4rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .main-image img {
        object-fit: contain;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}
