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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.screen {
    min-height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hidden {
    display: none;
    visibility: hidden;
}

/* Loading Screen */
.loading-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

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

.logo-loading {
    height: 4rem;
    margin-bottom: 1rem;
    filter: brightness(0);
}

.logo-text {
    color: black;
    font-size: 1.125rem;
}

.loading-animation {
    position: relative;
    width: 8rem;
    height: 8rem;
    margin: 2rem auto;
}

.loading-circle-outer {
    position: absolute;
    inset: 0;
    border: 4px solid black;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.loading-circle-inner {
    position: absolute;
    inset: 0.5rem;
    border: 4px solid black;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: bounce 1s infinite;
}

.progress-section {
    width: 20rem;
    margin: 0 auto;
}

.progress-bar {
    background: black;
    border-radius: 9999px;
    height: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    background: linear-gradient(to right, white, #e5e7eb);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-out;
    width: 0%;
}

.progress-text {
    color: black;
    font-weight: 500;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.progress-status {
    color: black;
    animation: pulse 2s infinite;
}

.status-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #6b7280;
    color: #d1d5db;
    transition: all 0.3s;
}

.status-item.active .status-icon {
    background: black;
    color: #fbbf24;
    animation: pulse 2s infinite;
}

.status-item.completed .status-icon {
    background: black;
    color: #fbbf24;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.3s;
}

.status-item.active .status-dot {
    background: black;
    animation: pulse 2s infinite;
}

.status-item.completed .status-dot {
    background: black;
}

/* Header */
.header {
    background: #fbbf24;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #f59e0b;
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    height: 4rem;
}

.back-button {
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.back-button:hover {
    background: #f59e0b;
}

.header-logo {
    height: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: black;
    padding: 3rem 0;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: black;
    border-radius: 50%;
}

/* Catalog */
.catalog-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

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

.catalog-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transform: translateY(-0.5rem);
}

.stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
    background: black;
    color: #fbbf24;
}

.product-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
    background: white;
    padding: 1rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-actions {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.view-details-btn {
    background: white;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.view-details-btn:hover {
    background: #fbbf24;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: bold;
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: #d97706;
}

.product-category {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.star {
    width: 1rem;
    height: 1rem;
    color: #d1d5db;
}

.star.filled {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.choose-gift-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: black;
}

.choose-gift-btn:hover {
    background: linear-gradient(to right, #f59e0b, #d97706);
    transform: scale(1.05);
}

.choose-gift-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

/* Product Detail */
.product-detail-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.product-detail-section {
    margin-bottom: 2rem;
}

.product-image-section {
    margin-bottom: 1rem;
}

.main-product-image {
    width: 100%;
    height: 24rem;
    object-fit: contain;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 1rem;
    max-width: 32rem;
    margin: 0 auto;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    justify-content: center;
    margin-top: 1rem;
}

.thumbnail {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: #fbbf24;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    padding: 0.25rem;
}

.gift-selection-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 32rem;
    margin: 0 auto;
}

.size-selection {
    margin-bottom: 1rem;
}

.size-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.size-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #fbbf24;
}

.size-btn.selected {
    border-color: #fbbf24;
    background: #fef3c7;
    color: black;
}

.main-gift-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: bold;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    color: black;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.main-gift-btn:hover {
    background: linear-gradient(to right, #f59e0b, #d97706);
    transform: scale(1.05);
}

.main-gift-btn:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.product-info-section {
    max-width: 64rem;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

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

.category-badge {
    font-size: 0.875rem;
    font-weight: 500;
    color: black;
    background: #fef3c7;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #f3f4f6;
    color: #9ca3af;
}

.action-btn:hover {
    color: #d97706;
}

.action-btn.active {
    background: #fecaca;
    color: #dc2626;
}

.product-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.detail-stars {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.75rem;
}

.detail-star {
    width: 1.25rem;
    height: 1.25rem;
    color: #d1d5db;
}

.detail-star.filled {
    color: #fbbf24;
}

.detail-rating-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

.detail-reviews {
    color: #6b7280;
    margin-left: 0.5rem;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.free-gift-price {
    font-size: 2.25rem;
    font-weight: bold;
    color: #059669;
}

.gift-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: bold;
    font-size: 1.125rem;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #fef3c7;
    color: black;
}

.section-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.75rem;
}

.description-text {
    color: #374151;
    line-height: 1.625;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    color: #d97706;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.feature-text {
    color: #374151;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.trust-badge {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.trust-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
}

.trust-icon.shipping { color: #d97706; }
.trust-icon.warranty { color: #059669; }
.trust-icon.return { color: #ea580c; }

.trust-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.trust-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 2rem;
    margin: 0 auto 1rem;
    filter: invert(1);
}

.footer-text {
    color: #9ca3af;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
    }
    
    .main-product-image {
        height: 20rem;
    }
}