/* Detail Page Mobile CSS (max-width: 768px) */

/* Hero Section */
.detail-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.detail-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #050505);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px 30px 20px;
    width: 100%;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 5px 0;
    background: linear-gradient(180deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slogan {
    font-size: 1rem;
    opacity: 0.8;
    margin: 5px 0 15px 0;
}

.hero-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

/* Tabs (Scrollable) */
.detail-tabs-wrapper {
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 50px;
    /* Header height offset approx */
    z-index: 90;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-tabs {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    gap: 20px;
    width: max-content;
    /* Allow scroll */
}

.detail-tabs li {
    padding: 15px 5px;
    color: #777;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.detail-tabs li.active {
    color: #fff;
}

.detail-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}

/* Content Area */
.detail-content-area {
    padding: 30px 20px 60px 20px;
}

.content-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 25px 20px;
}

/* Tab Content - Hidden by default */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-left: 3px solid #fff;
    padding-left: 15px;
    color: #fff;
}

.desc-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 30px;
}

/* Highlights (Stacked) */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    background: #0f0f0f;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.highlight-item .label {
    margin: 0;
    font-size: 0.9rem;
}

.highlight-item .value {
    font-size: 1.2rem;
}

/* Specs Table */
.spec-table th,
.spec-table td {
    padding: 12px 10px;
    font-size: 0.9rem;
    display: block;
    /* Stack on very small screens if needed, otherwise keep table row */
}

/* Keep table row for 2-col look on mobile, it fits */
.spec-table th,
.spec-table td {
    display: table-cell;
}

.spec-table th {
    width: 40%;
    background: rgba(255, 255, 255, 0.02);
}

/* Review Form */
.review-form {
    padding: 20px;
    margin-bottom: 30px;
}

.form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.review-form button {
    width: 100%;
    padding: 12px;
}

/* Info Cards */
.info-card {
    padding: 25px 20px;
}

.info-card h3 {
    margin-top: 0;
    color: #fff;
    font-size: 1.1rem;
}

.info-card p {
    color: #888;
    line-height: 1.5;
}

.btn-official,
.btn-catalog {
    display: inline-block;
    padding: 12px 20px;
    background: #cf3030;
    color: white;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 1px solid #222;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 95%;
    max-height: 80%;
}

.lb-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: #555;
}

/* Reviews Section */
.reviews-section {
    background: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid #222;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-write {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.hidden {
    display: none;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.rw-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.rw-author {
    color: #fff;
    font-weight: 600;
}

.rw-date {
    color: #555;
    font-size: 0.85rem;
}

.rw-content {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.no-reviews {
    padding: 30px;
    color: #555;
    text-align: center;
}

.disclaimer-text {
    margin-top: 20px;
    color: #555;
    font-size: 0.85rem;
}