/* Base Styles */
:root {
    --primary-color: #5c2d91;
    --secondary-color: #00b4d8;
    --accent-color: #f72585;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f4f7f9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background: #4a2275;
    color: white;
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #0098b8;
}

.btn-add-cart {
    background: var(--success-color);
}

.btn-add-cart:hover {
    background: #218838;
}

.btn-details {
    background: var(--gray-color);
}

.btn-details:hover {
    background: #5a6268;
}

.btn-text {
    background: transparent;
    color: var(--dark-color);
    box-shadow: none;
}

.btn-text:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
    transform: none;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: -3px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-link svg {
    margin-right: 5px;
}

#cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -8px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Advantages Section */
.advantages {
    padding: 5rem 0;
    background: white;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.advantage {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: #f9f9f9;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.advantage .icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.advantage h3 {
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 4rem 0;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.advantages .btn {
    display: block;
    max-width: 300px;
    margin: 0 auto;
}

/* About Products Section */
.about-products {
    padding: 5rem 0;
    background: #f4f7f9;
}

.about-products h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-products p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.certifications {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.certifications h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.certifications ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.certifications ul li {
    margin-bottom: 0.5rem;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background: white;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

.product-card a {
    color: inherit;
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    padding: 0 1.5rem 1.5rem;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: #f4f7f9;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    display: flex;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
}

.cta {
    text-align: center;
}

.cta .btn {
    margin: 0 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    width: 100px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

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

address {
    font-style: normal;
    margin-bottom: 1rem;
}

address p {
    margin-bottom: 0.5rem;
}

address a {
    color: rgba(255, 255, 255, 0.8);
}

address a:hover {
    color: white;
}

.company-info {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px;
}

.cookie-more-info {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.rating-select {
    display: flex;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
}

.rating-option input {
    margin-right: 5px;
}

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

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-detail-info h1 {
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    margin-bottom: 2rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features h3 {
    margin-bottom: 1rem;
}

.product-features ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.product-features ul li {
    margin-bottom: 0.5rem;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.quantity label {
    margin-right: 1rem;
    font-weight: 600;
}

.quantity-input {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: #f1f1f1;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.quantity-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.quantity-value {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

/* Cart Page */
.cart-page {
    padding: 4rem 0;
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
}

.cart-empty p {
    margin-bottom: 2rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--danger-color);
    font-size: 1.2rem;
}

.cart-summary {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
}

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

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Checkout Page */
.checkout-page {
    padding: 4rem 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.checkout-form h2,
.order-summary h2 {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.order-summary {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    align-self: start;
}

.order-items {
    margin-bottom: 2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-item-details {
    display: flex;
    align-items: center;
}

.order-item-quantity {
    background: #eee;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.85rem;
}

.order-item-name {
    font-weight: 600;
}

.order-item-price {
    font-weight: 600;
}

/* Success Page */
.success-page {
    text-align: center;
    padding: 5rem 0;
}

.success-icon {
    color: var(--success-color);
    font-size: 5rem;
    margin-bottom: 2rem;
}

.success-message h2 {
    margin-bottom: 1.5rem;
}

.success-message p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.contact-form h2 {
    margin-bottom: 2rem;
}

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

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-intro h1 {
    margin-bottom: 1.5rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.value-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.value-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.team-section {
    padding: 4rem 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--gray-color);
}

.team-member p:first-of-type {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 10;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .advantages-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        row-gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
    }
}
