/* Detail Page - Modern Minimalist Style - Seamless Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #000000;
    --primary-text: #1a1a1a;
    --secondary-text: #666666;
    --border-color: #e8e8e8;
    --bg-main: #f8e8f0;
    --accent-pink: #ec407a;
    --accent-purple: #ab47bc;
    --white: #ffffff;
    --card-bg: #ffffff;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--primary-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Main Wrapper - Full seamless layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    flex: 1;
}

.detail-container {
    max-width: 1100px;
}

/* Page Header - Seamless with content */
.page-header {
    text-align: center;
    padding: 35px 20px 20px;
    background: var(--bg-main);
}

.page-header-titles {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 25px;
    flex-wrap: wrap;
}

.page-header-titles h1 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: lowercase;
    letter-spacing: -1px;
    margin: 0;
}

.page-header-titles h1:nth-child(1) {
    color: var(--primary-dark);
}

.page-header-titles h1:nth-child(2) {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-pink);
}

.page-header-titles h1:nth-child(3) {
    color: var(--accent-purple);
}

/* Back Link - Inline with flow */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: all 0.3s ease;
    padding: 10px 22px;
    border: 2px solid var(--primary-dark);
    border-radius: 30px;
    background: transparent;
}

.back-link:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Main Content Card - Unified seamless card */
.main-content-card {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

/* Detail Layout - Side by side seamless */
.detail-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    align-items: start;
}

/* Left Column - Image with integrated decoration */
.left-column {
    position: sticky;
    top: 40px;
}

.detail-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.detail-image::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.03) 45%, rgba(0, 0, 0, 0.03) 47%, transparent 47%),
        radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.05) 65%, rgba(0, 0, 0, 0.05) 67%, transparent 67%),
        radial-gradient(circle at center, transparent 85%, rgba(0, 0, 0, 0.08) 85%);
    z-index: 0;
}

.detail-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 6px solid var(--white);
}

.no-image-placeholder {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: var(--white);
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.no-image-placeholder.large {
    width: 300px;
    height: 300px;
}

/* Decorative asterisk - Positioned within left column */
.decoration-asterisk {
    text-align: center;
    margin-top: 30px;
    font-size: 3.5rem;
    color: var(--primary-dark);
    font-weight: 900;
    line-height: 1;
}

/* Right Column - All info flows together */
.right-column {
    display: flex;
    flex-direction: column;
}

/* Info Section - No gaps, flowing design */
.info-section {
    margin-bottom: 25px;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--secondary-text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.detail-description {
    color: var(--secondary-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Price Display - Flows with content */
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 20px 0 25px;
}

.price-label {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.price-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

/* Purchase Section - Integrated, no separate card */
.purchase-section {
    padding-top: 0;
}

.purchase-section h2 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 18px;
    text-transform: lowercase;
}

.purchase-note {
    background: rgba(255, 152, 0, 0.1);
    color: #e65100;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border-left: 3px solid #ff9800;
    line-height: 1.5;
}

/* Form Styles - Clean underline style */
.purchase-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 14px 0;
    border: none;
    border-bottom: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 0;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-dark);
}

.error-message {
    color: #d32f2f;
    font-size: 0.75rem;
    min-height: 16px;
}

/* Submit Button - Full width, bold */
.btn-payment {
    background: var(--primary-dark);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-payment::after {
    content: '↗';
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-payment:hover:not(:disabled) {
    background: #333;
}

.btn-payment:hover::after {
    transform: translate(3px, -3px);
}

.btn-payment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Social Section - Integrated at bottom of card */
.social-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.social-section h3::before {
    content: '✳';
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Footer - Seamless with page */
.detail-footer {
    background: var(--bg-main);
    padding: 60px 20px 40px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: lowercase;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

.footer-column h3 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: lowercase;
    color: var(--primary-dark);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-column h3::after {
    content: '↗';
    font-size: 0.85rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-column a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 232, 240, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 420px;
    text-align: center;
    border: 2px solid var(--primary-dark);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 12px;
    text-transform: lowercase;
}

.modal-content p {
    color: var(--secondary-text);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-content strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.btn-primary,
.btn-secondary {
    padding: 16px 35px;
    border: 2px solid var(--primary-dark);
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .left-column {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-content-card {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .detail-image img,
    .no-image-placeholder {
        width: 260px;
        height: 260px;
    }

    .detail-image::before {
        width: 290px;
        height: 290px;
    }

    .decoration-asterisk {
        margin-top: 20px;
        font-size: 2.5rem;
    }

    .page-header-titles h1 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-column h3 {
        justify-content: center;
    }

    .social-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    .page-header {
        padding: 40px 15px 25px;
    }

    .back-link {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .main-content-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .detail-image img,
    .no-image-placeholder {
        width: 220px;
        height: 220px;
    }

    .detail-image::before {
        width: 250px;
        height: 250px;
    }

    .page-header-titles {
        gap: 12px;
    }

    .page-header-titles h1 {
        font-size: 1.4rem;
    }
}