/* PärCel — Shop Theme */
/* Colors come from CSS custom properties set by tenant config */
/* Typography: Space Grotesk (headlines) + Inter (body) from Pärception family */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1C1C1E;
    background: #fdfdfd;
    line-height: 1.6;
}

h1, h2, h3, .logo-text, .stat-number {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, #1C1C1E 0%, #2a2a2e 100%);
    color: #fff;
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--primary, #FF1B89);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--primary, #FF1B89);
    text-shadow: 0 1px 12px rgba(255, 27, 137, 0.3);
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.6;
    flex: 1;
    font-style: italic;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s;
}

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

.cart-link {
    position: relative;
}

.cart-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15em 0.5em;
    margin-left: 0.25rem;
    box-shadow: 0 0 8px rgba(255, 27, 137, 0.4);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2.5rem 0;
}

.product-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 27, 137, 0.12);
    border-color: rgba(255, 27, 137, 0.2);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #FFE5F1 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.9rem;
}

.placeholder-image.large {
    aspect-ratio: auto;
    min-height: 400px;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.product-price {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.main-image img {
    width: 100%;
    border-radius: 12px;
}

.thumbnail-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thumb {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    width: 64px;
    height: 64px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.thumb:hover, .thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 27, 137, 0.2);
}

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

.product-info-detail h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(255, 27, 137, 0.15);
}

.description {
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.7;
}

.variant-selector {
    margin-bottom: 1.25rem;
}

.variant-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.color-swatch:hover, .color-swatch.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 27, 137, 0.25);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}

.size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.size-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 27, 137, 0.3);
}

.quantity-row {
    margin-bottom: 1.5rem;
}

.quantity-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.quantity-row input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.15s;
}

.quantity-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 27, 137, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255, 27, 137, 0.25);
}

.btn-primary:hover {
    background: #e01777;
    box-shadow: 0 4px 20px rgba(255, 27, 137, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Cart */
.cart-table {
    margin: 2rem 0;
}

.cart-row {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 600px) {
    .cart-row {
        grid-template-columns: 60px 1fr auto;
        gap: 0.5rem;
    }
    .cart-item-total, .cart-item-quantity { grid-column: 2; }
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.variant-name, .item-price {
    font-size: 0.85rem;
    color: #666;
}

.cart-item-quantity input {
    width: 60px;
    padding: 0.35rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.cart-item-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #ccc;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s;
}

.btn-remove:hover {
    color: #e44;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.cart-total {
    font-size: 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: #999;
}

.empty-state h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #1C1C1E;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
}

.site-footer strong {
    color: var(--primary);
}

/* Forms */
.inline-form {
    display: inline;
}
