/* --- Product Detail Specific Styles --- */

.product-detail-wrapper {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

/* Image Section */
.product-gallery {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Info Section */
.product-info-panel {
    padding-top: 20px;
}

.product-detail-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-detail-category {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price-box {
    background: #fdfaf5;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.price-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.price-label {
    font-size: 14px;
    color: #888;
    width: 80px;
}

.price-value {
    font-size: 28px;
    color: #d2a45e;
    font-weight: bold;
}

.price-unit {
    font-size: 14px;
    color: #d2a45e;
    margin-left: 5px;
}

.market-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 15px;
}

.product-meta {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.meta-item {
    margin-bottom: 12px;
    font-size: 15px;
}

.meta-label {
    color: #888;
    width: 100px;
    display: inline-block;
}

/* Quantity & Action */
.action-box {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.qty-input-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 45px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.qty-btn:hover { background: #e0e0e0; }

.qty-input {
    width: 60px;
    height: 45px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

.buy-now-btn {
    flex: 1;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.buy-now-btn:hover { opacity: 0.9; }

/* Tabs Section */
.product-tabs {
    margin-bottom: 80px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.tab-link {
    padding: 15px 40px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
    line-height: 2;
    color: #555;
    font-size: 16px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prev/Next Nav */
.product-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 60px;
}

.nav-link-box {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.nav-name {
    font-size: 15px;
    color: var(--text-dark);
}

.nav-name:hover { color: var(--primary-color); }

/* Message Form Section */
.message-section {
    background: #f9f5ef;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

.message-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.message-section p {
    color: #896646;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.form-group-full { grid-column: span 2; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus { border-color: var(--primary-color); }

textarea.form-control { height: 120px; resize: vertical; }

.submit-btn {
    margin-top: 30px;
    padding: 12px 60px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover { background: #866838; }

/* Responsive */
@media (max-width: 992px) {
    .product-main { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { min-height: 350px; }
}

@media (max-width: 768px) {
    .product-detail-wrapper { margin-top: 100px; padding: 0 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group-full { grid-column: span 1; }
    .tab-link { padding: 15px 20px; font-size: 14px; }
}
