/* Reset and Base Styles */
:root {
    --primary-color: #080046;
    --secondary-color: #333;
    --accent-color: #ff4d4d;
    --background-color: #fff;
    --text-color: #080046;
    --border-color: #e5e5e5;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --max-width: 1200px;
    --header-height: 80px;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

section {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

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

/* Announcement Bar */
.announcement-bar {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.announcement-bar__message {
    margin: 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
}

.navbar__logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.navbar__logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    height: 100%;
    width: auto;
    transition: transform 0.2s ease;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo {
        height: 35px;
    }

    .nav-links {
        gap: 1rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Featured Collections */
.featured-collections {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

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

.collection-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.collection-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.collection-card:hover .collection-card__image {
    transform: scale(1.05);
}

.collection-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.collection-card__title {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Featured Products */
.featured-products {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

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

.product-card {
    text-decoration: none;
    color: var(--text-color);
}

.product-card__image-container {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.product-card__title {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-card__price {
    font-weight: 600;
    color: var(--primary-color);
}

.product-card__compare-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

/* Newsletter Section */
.newsletter {
    background-color: #f8f8f8;
    padding: 60px 0;
    margin: 60px 0;
}

.newsletter__content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.newsletter__title {
    font-size: 32px;
    margin-bottom: 20px;
}

.newsletter__form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter__input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #080046;
    color: white;
    padding: 60px 0 30px;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer__section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer__section p {
    color: #ccc;
    line-height: 1.6;
}

.footer__section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__section ul li {
    margin-bottom: 10px;
}

.footer__section a {
    color: white;
    text-decoration: none;
}

.footer__section a:hover {
    text-decoration: underline;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.payment-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1) !important;
}

.payment-icon:hover {
    transform: translateY(-2px);
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: -320px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
}

.cart-notification.visible {
    right: 20px;
}

.cart-notification__content {
    padding: 20px;
}

.cart-notification__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-right: 30px;
}

.cart-notification__icon {
    color: #4CAF50;
    font-size: 20px;
}

.cart-notification__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.cart-notification__product {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-notification__product img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-notification__product-info {
    flex-grow: 1;
}

.cart-notification__product-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-notification__product-price {
    color: #666;
}

.cart-notification__buttons {
    display: flex;
    gap: 10px;
}

.cart-notification__buttons .button {
    flex: 1;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer__content {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

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

.button--primary:hover {
    background-color: #333;
}

.button--secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter__form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .collections-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
}

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

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
}

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

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

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.cart-modal.active {
    transform: translateX(0);
}

.cart-modal-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-item__details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item__variant {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item__quantity button {
    background: none;
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Cart Page Styles */
.cart-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.cart-item__info {
    flex-grow: 1;
}

.cart-item__title {
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.cart-item__price {
    color: #666;
    margin-bottom: 10px;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item__quantity input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item__remove {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2em;
    transition: color 0.2s;
}

.cart-item__remove:hover {
    color: #ff0000;
}

.cart-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-summary__row:last-child {
    border-bottom: none;
    font-weight: bold;
}

.product-options {
    margin-top: 1rem;
}

.option-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.option-button {
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 44px;
}

.option-button:hover,
.option-button.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.large-logo {
    display: none;
}

.logo-overlay {
    display: none;
}
