/* --- Variables for Palette --- */
:root {
    --sky-blue: #0ea5e9;
    --sky-hover: #0284c7;
    --milky-white: #fdfdfd;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.6);
}

.detail-container {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 2rem;
}

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-link:hover { color: var(--sky-blue); }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* --- Image Side --- */
.image-glass-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 48px;
    overflow: hidden;
    background: var(--milky-white);
    border: 8px solid var(--milky-white);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-glass-frame:hover .main-product-img {
    transform: scale(1.08);
}

/* --- Content Side --- */
.category-tag {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sky-blue);
}

.detail-title {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
}

.price-badge {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.price-badge .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.feature-list .icon {
    color: var(--sky-blue);
    margin-right: 12px;
    font-weight: bold;
}

/* --- MODERN AMOUNT BOX & ACTIONS --- */
.detail-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--milky-white);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--sky-blue);
    color: white;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
}

/* Removes arrows from input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    flex-grow: 1;
    background: var(--sky-blue);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-to-cart:hover {
    background: var(--sky-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
    .image-glass-frame { max-width: 500px; margin: 0 auto; }
}