/**
 * Store CSS
 * 
 * Estilos para a loja pública
 * Premium Hobby Shop aesthetic
 */

/* ============================================================================
   VARIABLES
   ============================================================================ */
:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-error: #e74c3c;
    
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg: #ffffff;
    --color-bg-alt: #ecf0f1;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: #d5dbdb;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ============================================================================
   PAGE HEADER
   ============================================================================ */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

/* ============================================================================
   PRODUCTS GRID
   ============================================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.product-card.status-unavailable {
    opacity: 0.6;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-price {
    margin: 15px 0;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.price-original {
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.card-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin: 10px 0;
}

.card-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin: 10px 0;
}

/* ============================================================================
   PRODUCT DETAIL
   ============================================================================ */
.product-main {
    padding: 40px 0;
}

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

.breadcrumb a {
    color: var(--color-secondary);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-image {
    width: 100%;
    height: auto;
}

.discount-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-accent);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.meta-item {
    background: var(--color-bg-alt);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.product-short-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 20px 0;
    color: var(--color-text-light);
}

.price-block {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.price-display {
    margin-bottom: 20px;
}

.price-warning,
.price-info {
    padding: 15px;
    border-radius: var(--radius);
    margin: 15px 0;
}

.seller-info {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.seller-info p {
    margin: 10px 0;
}

.product-description {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-bg-alt);
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-light);
}

.empty-state p {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .page-header {
        padding: 40px 0 20px;
    }
}
