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

:root {
    --primary-color: #7c5c42;
    --primary-hover: #5a4230;
    --secondary-color: #f5f0e8;
    --accent-color: #d4a574;
    --text-color: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background: var(--white);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    height: 120px;
    width: auto;
    max-width: 500px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.15rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 8px;
    font-style: italic;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

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

.upload-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

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

.step-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--accent-color);
    margin: 0 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0d8cf;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 92, 66, 0.1);
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.upload-form button[type="submit"] {
    align-self: center;
}

.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0d8cf;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 92, 66, 0.1);
}

.upload-area {
    border: 3px dashed #d4c5b5;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(124, 92, 66, 0.05);
}

.upload-placeholder {
    color: var(--text-light);
}

.upload-placeholder svg {
    color: var(--accent-color);
    margin-bottom: 16px;
}

.upload-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.upload-placeholder span {
    display: block;
    margin: 12px 0;
    color: #999;
}

.preview-container {
    position: relative;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e74c3c;
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

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

.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-card h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.result-image-container {
    margin-bottom: 20px;
}

.result-image-container img {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.result-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
}

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

.products-header {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.artwork-preview {
    border: 2px solid #ddd;
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-preview img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 4px;
    object-fit: contain;
}

.artwork-info h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    aspect-ratio: 1;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.product-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-mockup img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.cart-sidebar.hidden {
    transform: translateX(100%);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--primary-color);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-info p {
    color: var(--text-light);
    font-size: 0.85rem;
}

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

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cart-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-toggle.has-items {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e74c3c;
    color: var(--white);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s;
    z-index: 1001;
}

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

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

.checkout-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.checkout-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 25px 30px;
}

.checkout-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkout-product {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.checkout-product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
}

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

.checkout-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

.checkout-notice {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff3cd;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.notice-icon {
    color: #856404;
}

.notice-content h4 {
    color: #856404;
    margin-bottom: 5px;
}

.notice-content p {
    color: #856404;
    font-size: 0.9rem;
}

.checkout-info-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #d4edda;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.info-icon {
    color: #155724;
    flex-shrink: 0;
}

.info-content h4 {
    color: #155724;
    margin-bottom: 5px;
}

.info-content p {
    color: #155724;
    font-size: 0.9rem;
}

.order-success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    color: #28a745;
    margin-bottom: 20px;
}

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

.order-success p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.order-id {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.printful-badge {
    margin-top: 15px;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.mockup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-light);
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.checkout-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.checkout-summary {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.summary-row.total {
    border-top: 2px solid var(--accent-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-note::before {
    content: "🔒";
    font-size: 0.9rem;
}

footer {
    background: var(--primary-hover);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .step-text {
        display: none;
    }
    
    .step-line {
        width: 30px;
    }
    
    .upload-card {
        padding: 25px;
    }
    
    .products-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .checkout-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
