:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #cbd5e1;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 24px;
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --success: #16a34a;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

#paw-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.paw {
    position: absolute; width: 40px; height: 40px;
    filter: brightness(0); opacity: 0.4;
    animation: floatPawSolo 10s linear forwards;
}

@keyframes floatPawSolo {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% {
        transform: translateY(-120vh) rotate(45deg) scale(1.1);
        opacity: 0;
    }
}

/* --- LAYOUT --- */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- HEADER --- */
.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.logo-link {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.main-content {
    flex: 1;
    padding: 10px 0 40px 0;
}

.product-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 40px;
    width: 100%;
}

.product-image-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.zoomable-media {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.product-image-box:hover .zoomable-media {
    transform: scale(1.03);
}

.product-info h1 {
    margin: 0 0 1.5rem 0;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.in-stock { background: #dcfce7; color: var(--success); }
.out-of-stock { background: #fee2e2; color: var(--danger); }

.solo-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 30px;
}

.solo-price-wrapper .price-single-normal {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.solo-price-old {
    font-size: 1.3rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.solo-price-new {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--danger);
    letter-spacing: -1px;
}

.buy-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}
.buy-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

.media-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.media-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: zoomIn 0.3s forwards;
}
@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* --- MOBILE --- */
@media (max-width: 900px) {
    .container { padding: 0 12px; }
    .header { margin-bottom: 15px; }

    .product-wrapper {
        display: block;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .product-image-box {
        width: 100%;
        margin-bottom: 15px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .product-info {
        width: 100%;
        background: white;
        padding: 24px;
        border-radius: 24px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .product-info h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .stock { margin-bottom: 20px; }
    .solo-price-new { font-size: 2.3rem; }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

.footer {
    background: #94a3b8; color: #f1f5f9;
    text-align: center; padding: 25px; width: 100%;
    margin-top: 40px;
}

.buy-btn:disabled {
    background: #94a3b8;
    color: #f1f5f9;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.8;
}

.buy-btn:disabled:hover {
    transform: none;
    background: #94a3b8;
}