:root {
    --primary: #4e4ffa;
    --secondary: #2a2d54;
    --light: #f1faee;
    --dark: #1a1a1a;
    --gray: #495057;
    --light-gray: #e9ecef;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container-detail {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.detail-header {
    background: linear-gradient(135deg, #000428, #004e92);
    color: white;
    padding: 150px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
}

.detail-title {
    all: unset;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 1.45rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: white;
}

/* detail Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: -60px auto 80px;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr 350px;
    }
}

/* Main Content */
.detail-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.section-title-detail {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title-detail::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: flex-start;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.specs-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.specs-table td {
    padding: 12px 16px;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 40%;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    max-width: 100%;
    overflow-x: hidden;
}


.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Sidebar */
.detail-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    align-self: start;
    position: sticky;
    top: 87px;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-1px);
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: #e0e1ff;
    transform: translateY(-2px);
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
}

.divider {
    height: 1px;
    background: var(--light-gray);
    margin: 24px 0;
}

/* Features */
.features-list {
    list-style: none;
}

.features-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.features-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.5rem;
    line-height: 0;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}