/* Base Styles */
:root {
    --primary-color: #3f51b5;
    --secondary-color: #7986cb;
    --accent-color: #ff4081;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #999;
    --bg-color: #fff;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --dark-bg: #263238;
    --font-main: 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-heading: 'Playfair Display', 'Times New Roman', serif;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

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

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--hover-shadow);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Header Styles */
header {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

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

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

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

/* Terminology Section */
.terminology {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.terminology h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.term-item {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.term-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.term-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Products Section */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.product-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

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

.product-card h3 {
    padding: 15px 15px 10px;
    font-size: 1.3rem;
}

.product-card p {
    padding: 0 15px;
    flex-grow: 1;
    color: var(--light-text);
}

.product-card .price {
    padding: 10px 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-card .btn {
    margin: 0 15px 15px;
}

/* Product Detail Page */
.product-detail {
    padding: 60px 0;
}

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

.product-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.breadcrumb {
    margin-bottom: 20px;
    color: var(--lighter-text);
}

.breadcrumb a {
    color: var(--lighter-text);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.product-meta {
    margin-bottom: 20px;
    color: var(--light-text);
}

.product-meta p {
    margin-bottom: 5px;
}

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

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.product-availability {
    display: flex;
    align-items: center;
    color: var(--success-color);
}

.product-availability svg {
    margin-right: 5px;
}

.product-description {
    margin-top: 40px;
}

.product-description h2,
.product-description h3 {
    margin-bottom: 20px;
}

.product-description ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.info-box {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
}

.info-box h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* About Page */
.page-header {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.about-intro {
    padding: 80px 0;
}

.about-intro .container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.team-section,
.partners-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

.team-member {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-member h3,
.team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

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

.partner {
    text-align: center;
}

.partner img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

.contact-info {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
}

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

.icon {
    margin-right: 15px;
    color: var(--primary-color);
}

.info-text h3 {
    margin-bottom: 5px;
}

.social-media {
    margin-top: 40px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form-container {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input {
    width: auto;
    margin-right: 10px;
}

.map-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.map-container {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-section {
    padding: 80px 0;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cart Page */
.cart-section {
    padding: 60px 0;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart svg {
    color: var(--lighter-text);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 15px;
}

.empty-cart p {
    margin-bottom: 30px;
    color: var(--light-text);
}

.cart-content {
    margin-bottom: 40px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th {
    text-align: left;
    padding: 15px;
    background-color: var(--light-bg);
    font-weight: 500;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
}

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

.cart-item-info {
    margin-left: 15px;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    margin: 0 10px;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.coupon {
    display: flex;
}

.coupon input {
    width: 200px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
}

.coupon button {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.cart-summary {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* Checkout Page */
.checkout-section {
    padding: 60px 0;
}

.checkout-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    margin-top: 20px;
}

.payment-method {
    margin-bottom: 20px;
}

.payment-method label {
    font-weight: 500;
    margin-left: 10px;
}

.payment-details {
    margin: 15px 0 15px 30px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--radius);
    display: none;
}

.order-summary {
    margin-bottom: 30px;
}

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

.order-item-info {
    display: flex;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-right: 15px;
}

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

.order-item-price {
    color: var(--light-text);
}

.form-actions {
    margin-top: 40px;
}

.order-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Success Page */
.success-section {
    padding: 80px 0;
    text-align: center;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.order-details {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    text-align: left;
}

.order-info {
    margin-top: 20px;
}

.order-status {
    background-color: var(--info-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.next-steps {
    margin-bottom: 40px;
    text-align: left;
}

.steps {
    margin-top: 20px;
}

.step {
    display: flex;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Form Success Message */
.form-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.success-content svg {
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-content h3 {
    margin-bottom: 15px;
}

.success-content p {
    margin-bottom: 30px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--hover-shadow);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: white;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 10px;
}

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

.cookie-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background-color: var(--success-color);
    color: white;
}

.cookie-btn.customize {
    background-color: var(--info-color);
    color: white;
}

.cookie-btn.reject {
    background-color: var(--light-text);
    color: white;
}

.cookie-more-info {
    font-size: 0.9rem;
    color: #ccc;
}

.cookie-more-info a {
    color: white;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-legal h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: #ccc;
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact .social-icons {
    margin-top: 20px;
}

.footer-contact .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-contact .social-icons a:hover {
    background-color: white;
    color: var(--dark-bg);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

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

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
    }
    
    .cart-table td {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 500;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .coupon {
        width: 100%;
    }
    
    .coupon input {
        flex-grow: 1;
    }
    
    .cart-summary {
        max-width: 100%;
    }
    
    .checkout-form {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .term-item {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
