:root {
    --bg-color: #faf9f6;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --accent-color: #000000;
    --primary-btn: #1a1a1a;
    --primary-btn-hover: #333333;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn 1s ease-out forwards; }
.fade-in-up { animation: fadeInUp 1s ease-out forwards; }

.hidden { display: none !important; }

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 2rem;
    letter-spacing: 0.2em;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
}

.cart-icon {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

/* Product Layout */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem;
}

.product-images {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    padding: 3rem;
    height: 600px;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.product-description {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    max-width: 450px;
}

.product-options {
    margin-bottom: 2.5rem;
}

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

.option-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.option-buttons {
    display: flex;
    gap: 0.8rem;
}

.option-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: var(--text-color);
}

.option-btn.active {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

.add-to-cart-btn {
    background-color: var(--primary-btn);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    padding: 1.2rem;
    width: 100%;
    max-width: 450px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-bottom: 2rem;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-btn-hover);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.product-perks {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 450px;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.perk {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.perk svg {
    color: var(--accent-color);
}

/* Modal Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 0.8rem;
}

.form-row input {
    flex: 1;
}

.payment-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #0b7038;
    margin-bottom: 1rem;
}

.card-input-group input {
    margin-bottom: 0;
    border-radius: 0;
}

.card-input-group .card-number {
    border-radius: 4px 4px 0 0;
}

.card-input-group .form-row input:first-child {
    border-top: none;
    border-bottom: none;
    border-right: none;
}

.card-input-group .form-row input:last-child {
    border-top: none;
    border-bottom: none;
}

.card-input-group input:last-child {
    border-radius: 0 0 4px 4px;
}

.order-summary-mini {
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

.submit-order-btn {
    width: 100%;
    background-color: var(--primary-btn);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.submit-order-btn .spinner {
    animation: spin 2s linear infinite;
}

.sold-out-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #fff3f3;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

    .product-images {
        height: auto;
        min-height: 400px;
    }
    
    .add-to-cart-btn, .product-description, .product-perks {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 9;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }

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

/* Secondary Pages (Collections & About) */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

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

.collection-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.collection-item:hover {
    transform: translateY(-5px);
}

.collection-image-wrapper {
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.collection-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.5s ease;
}

.collection-item:hover .collection-image-wrapper img {
    transform: scale(1.05);
}

.collection-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.collection-info .price {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-container {
    max-width: 800px;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.about-content p {
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.about-card {
    padding: 2rem;
    background-color: #ffffff;
    border-top: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
