/* Base Styles and Variables */
:root {
    --primary-color: #1e73be;
    --secondary-color: #00bf6f;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --gray-color: #777;
    --gray-light-color: #eee;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --border-color: #ddd;
    --text-color: #333;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

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

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

ul {
    list-style: none;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: var(--secondary-color);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

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

button, input, select, textarea {
    font-family: 'Poppins', sans-serif;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-apply, .btn-add-cart, .btn-buy-now {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

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

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

.btn-apply {
    background-color: var(--dark-color);
    color: #fff;
}

.btn-add-cart {
    background-color: var(--secondary-color);
    color: #fff;
    width: 100%;
}

.btn-buy-now {
    background-color: var(--primary-color);
    color: #fff;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover, .btn-add-cart:hover, .btn-buy-now:hover {
    filter: brightness(1.1);
}

.btn-secondary:hover, .btn-apply:hover {
    background-color: var(--border-color);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
}

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

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

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    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-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    background-image: linear-gradient(135deg, rgba(30, 115, 190, 0.9) 0%, rgba(0, 191, 111, 0.9) 100%), url('images/logo.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

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

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

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
}

.product-info-block {
    margin: 0 auto 50px;
    max-width: 800px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

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

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

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

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

.product-card h3 {
    font-size: 18px;
    padding: 15px 15px 5px;
    height: 60px;
    margin-bottom: 0;
}

.product-card .price {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 15px;
    margin-bottom: 5px;
}

.product-card .description {
    font-size: 14px;
    color: var(--gray-color);
    padding: 0 15px 15px;
    height: 65px;
    overflow: hidden;
}

.product-card .btn-add-cart, .product-card .btn-buy-now {
    border-radius: 0;
}

/* Product Row for Related Products */
.product-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

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

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

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

.footer-column h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-column p, .footer-column ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-column ul li a:hover {
    color: #fff;
}

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

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

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

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    display: none;
}

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

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

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-accept {
    background-color: var(--success-color);
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.btn-customize {
    background-color: var(--gray-color);
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.btn-reject {
    background-color: var(--danger-color);
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.cookie-more-info {
    margin-top: 10px;
    font-size: 14px;
}

.cookie-more-info a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: #fff;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

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

.breadcrumb {
    margin-bottom: 30px;
    color: var(--gray-color);
}

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

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

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

.product-image {
    text-align: center;
}

.product-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.product-info .price {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-features {
    margin-bottom: 20px;
}

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

.product-color, .product-size, .product-variation {
    margin-bottom: 20px;
}

.color-options, .size-options, .variation-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.color-option.active, .color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.size-option, .variation-option {
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: #fff;
}

.size-option.active, .size-option:hover, .variation-option.active, .variation-option:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

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

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--gray-color);
}

.related-products {
    padding: 60px 0;
    background-color: var(--light-color);
}

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

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

.cart-section h1 {
    margin-bottom: 40px;
    text-align: center;
}

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

.cart-empty p {
    margin-bottom: 20px;
    font-size: 18px;
}

.cart-table {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    background-color: var(--light-color);
    padding: 15px;
    font-weight: 600;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

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

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

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

.cart-remove button {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
}

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

.cart-coupon {
    display: flex;
}

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

.btn-update-cart {
    background-color: var(--gray-light-color);
    color: var(--dark-color);
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.cart-totals {
    float: right;
    width: 400px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.cart-totals h2 {
    margin-bottom: 20px;
}

.totals-table {
    margin-bottom: 20px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.totals-row.total {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
}

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

.checkout-section h1 {
    margin-bottom: 40px;
    text-align: center;
}

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

.checkout-form-container h2, .checkout-order-summary h2 {
    margin-bottom: 30px;
}

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

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.order-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

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

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-item-name {
    max-width: 70%;
}

.order-subtotal, .order-shipping, .order-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.order-total {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.payment-methods {
    margin: 30px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.payment-method input {
    margin-right: 10px;
}

.terms-agreement {
    margin-bottom: 20px;
}

.btn-place-order {
    width: 100%;
}

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

.success-message {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon svg {
    color: var(--success-color);
    width: 64px;
    height: 64px;
}

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

.success-message p {
    margin-bottom: 30px;
    font-size: 18px;
}

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

.order-details h2 {
    margin-bottom: 20px;
    text-align: center;
}

.order-info p {
    margin-bottom: 10px;
}

.email-note {
    font-style: italic;
    font-size: 14px;
    margin-top: 20px;
}

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

.recommended-products {
    padding: 60px 0;
    background-color: var(--light-color);
}

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

/* Contact Page */
.page-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(30, 115, 190, 0.9) 0%, rgba(0, 191, 111, 0.9) 100%), url('images/logo.jpg');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.contact-section {
    padding: 60px 0;
}

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

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

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

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

.info-item h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form h2 {
    margin-bottom: 30px;
}

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

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

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

.about-text h2 {
    color: var(--primary-color);
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 20px;
}

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

.team-section h2 {
    text-align: center;
    margin-bottom: 15px;
}

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

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

.team-member {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
}

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

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

.team-member h3 {
    margin: 15px 0 5px;
    font-size: 20px;
}

.team-member p {
    padding: 0 15px;
    margin-bottom: 15px;
}

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

.team-member .social-icons {
    justify-content: center;
    margin: 15px 0;
}

.team-member .social-icons a {
    background-color: var(--gray-light-color);
    color: var(--dark-color);
    width: 30px;
    height: 30px;
}

.why-choose-us {
    padding: 60px 0;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

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

.feature h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

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

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

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.testimonial-rating {
    color: #ffc107;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .cart-totals {
        float: none;
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }

    .newsletter-form button {
        border-radius: var(--border-radius);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}
