:root {
    --primary: #FFCC00;
    --black: #111;
    --grey: #f4f4f4;
    --dark-grey: #666;
    --dark: #0f0f0f;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    margin: 0;
    color: var(--black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* === HEADER (SOLID DARK ACCENT) === */
.modern-header-accent {
    background-color: var(--dark);
    padding: 60px 0 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.modern-header-accent::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.badge-new {
    background: var(--primary);
    color: var(--dark);
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.modern-header-accent h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
}

.highlight {
    color: var(--primary);
}

.header-description {
    padding-left: 30px;
    border-left: 3px solid var(--primary);
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--dark-grey);
    background-color: var(--white);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--dark-grey);
}

.breadcrumb i {
    vertical-align: middle;
    margin: 0 5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 40px 0;
}

.main-image {
    position: relative;
    background: var(--grey);
    border-radius: 12px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    display: block;
}

.grade-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--black);
    color: #fff;
    padding: 6px 15px;
    font-weight: 800;
    font-size: 12px;
}

.thumbnail-list {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumb.active {
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    font-weight: 600;
    color: var(--dark-grey);
    font-size: 13px;
    text-transform: uppercase;
}

.product-info h1 {
    font-size: 42px;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.1;
}

.stock-status {
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.description {
    color: var(--dark-grey);
    line-height: 1.6;
    margin-bottom: 30px;
}

.spec-table {
    border-top: 1px solid #eee;
    margin-bottom: 40px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.spec-row .label {
    font-weight: 600;
    color: var(--black);
}

.spec-row .value {
    color: var(--dark-grey);
}

.action-area {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-input {
    display: flex;
    border: 2px solid var(--black);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 40px;
    cursor: pointer;
    font-weight: bold;
}

.qty-input input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 800;
    -moz-appearance: textfield;
}

.btn-primary-heavy {
    flex-grow: 1;
    background: var(--black);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s;
    padding: 12px;
}

.btn-primary-heavy:hover {
    background: #656565;
}

.btn-primary-heavy i {
    color: var(--primary);
    font-size: 20px;
}

.guarantee-box {
    display: flex;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.g-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--black);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* === FOOTER COPYRIGHT === */
.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
    position: relative;
}

.footer-bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: #222;
}

/* === FLOATING BACK BUTTON === */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 0;
    border-left: 4px solid var(--primary);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

.floating-back-btn i {
    font-size: 1.4rem;
    color: var(--primary);
}

.floating-back-btn .btn-text {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.floating-back-btn:hover {
    opacity: 1;
    transform: translateX(10px);
    background: #000;
    box-shadow: 15px 15px 0px var(--primary);
}

/* === LOADING === */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.logo-box-loader {
    position: relative;
    width: 120px;
    height: 120px;
    background: #000000;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #222;
}

.logo-icon-loader {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.char-c-loader {
    color: #FFCC00;
}

.char-f-loader {
    color: #FFFFFF;
}

.precision-scanner {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 5px;
    border: 3px solid transparent;
    border-top-color: #FFCC00;
    border-bottom-color: #FFCC00;
    animation: precisionSpin 1.5s linear infinite;
}

@keyframes precisionSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text h4 {
    color: #FFCC00;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.loader-text p {
    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .header-content {
        grid-template-columns: 1fr;
    }

    .modern-header-accent::after {
        display: none;
    }

    .header-description {
        border-left: 3px solid var(--primary);
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .product-info h1 {
        font-size: 32px;
    }
}