:root {
    --pop-red: #D32F2F;
    --pop-black: #1A1A1A;
    --pop-grey: #F5F5F5;
    --pop-white: #FFFFFF;
    --pop-border: #E0E0E0;
    --pop-success: #2E7D32;
    --pop-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--pop-grey);
    color: var(--pop-black);
    line-height: 1.6;
}

header {
    background-color: var(--pop-black);
    color: var(--pop-white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--pop-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-location {
    font-size: 0.7rem;
    display: block;
    color: #AAA;
    font-weight: 400;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

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

.product-card {
    background: var(--pop-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--pop-shadow);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    background-color: #EEE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: #999;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--pop-red);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background-color: #CCC;
    cursor: not-allowed;
}

/* Product Detail Page */
.customizer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--pop-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--pop-shadow);
}

@media (max-width: 900px) {
    .customizer-layout {
        grid-template-columns: 1fr;
    }
}

/* Preview Area */
.preview-container {
    position: sticky;
    top: 100px;
}

.canvas-mockup {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #f9f9f9;
    border: 1px solid var(--pop-border);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* View Selector Tags */
.view-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.view-btn {
    padding: 10px 24px;
    border: 1px solid var(--pop-border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-btn.active {
    background: var(--pop-red);
    color: white;
    border-color: var(--pop-red);
}

/* Layered Mockup */
.product-view-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-view-layer.active {
    opacity: 1;
    visibility: visible;
}

/* Print Zone Overlays with Clipping */
.print-area-overlay {
    position: absolute;
    border: 2px dashed var(--pop-red);
    background: rgba(211, 47, 47, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.clipping-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Drop Zone Styling */
.drop-zone {
    width: 100%;
    height: 120px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed var(--pop-border);
    border-radius: 10px;
    transition: all 0.3s;
}

.drop-zone--over {
    border-style: solid;
    border-color: var(--pop-red);
    background: #FFF8F8;
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.draggable-logo {
    width: 50%;
    position: absolute;
    cursor: move;
    z-index: 11;
    pointer-events: auto;
}

.zone-tag {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: var(--pop-red);
    white-space: nowrap;
    font-weight: bold;
    text-transform: uppercase;
}

/* Configurator Form */
.config-section {
    margin-bottom: 2.5rem;
}

.section-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--pop-red);
    padding-bottom: 5px;
    width: max-content;
}

.btn-link {
    background: none;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.2s;
    padding: 5px 0;
}

.btn-link:hover {
    color: var(--pop-red);
    text-decoration: underline;
}

/* Size Matrix */
.size-matrix {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-item {
    flex: 1;
    min-width: 70px;
    border: 1px solid var(--pop-border);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: border-color 0.2s;
}

.size-item:focus-within {
    border-color: var(--pop-red);
    background-color: #FFF8F8;
}

.size-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.qty-input {
    width: 100%;
    border: 1px solid var(--pop-border);
    padding: 8px 4px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.extra-price {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-top: 4px;
}

/* Zones */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.zone-option {
    border: 1px solid var(--pop-border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: none;
}

.zone-option.view-active {
    display: block;
}

.zone-option.active {
    border-color: var(--pop-red);
    background: #FFF8F8;
}

.zone-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.zone-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.zone-price {
    display: block;
    font-size: 0.75rem;
    color: var(--pop-red);
    font-weight: 600;
}

/* Price Summary */
.price-summary-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--pop-border);
    margin-top: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-total {
    border-top: 1px solid var(--pop-border);
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pop-black);
}

.vat-info {
    text-align: right;
    font-size: 0.7rem;
    color: #666;
    line-height: 1.2;
}

.animate-fade {
    animation: fadeIn 0.3s ease;
}

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