.back-link {
    font-size: 14px;
    color: #191919;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s;
}

.back-link:hover {
    color: #666;
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 16px;
    background: #fff;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-main-image:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: #fff;
}

.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: #191919;
}

.thumbnail:hover {
    opacity: 0.8;
}

.product-details {
    padding-top: 20px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    color: #191919;
}

.product-detail-price {
    font-size: 22px;
    font-weight: 600;
    color: #191919;
    margin-bottom: 24px;
}

.product-description {
    margin-bottom: 32px;
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.product-colors h3,
.product-sizes h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: #191919;
}

.color-options {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    align-items: center;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
    padding: 0;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #191919;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #191919;
}

.color-label {
    display: none;
}

.product-colors {
    margin-bottom: 24px;
}

.color-name-display {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    min-height: 20px;
}

.product-sizes h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: #191919;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.size-btn {
    width: 52px;
    height: 52px;
    border: 1.5px solid #ccc;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Arimo', sans-serif;
    color: #191919;
}

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

.size-btn.active {
    background: #191919;
    color: #fff;
    border-color: #191919;
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: #191919;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    font-family: 'Arimo', sans-serif;
    transition: background 0.3s ease;
    margin-bottom: 24px;
}

.add-to-cart-btn:hover {
    background: #333;
}

.add-to-cart-btn.added {
    background: #2d6a4f;
}

.product-meta {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.product-meta p {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 16px 60px;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 26px;
    }

    .product-detail-price {
        font-size: 20px;
    }
}
