/* Light Theme Product View */
.product-view.dark-theme {
    position: relative;
    border: none;
    border-radius: 1rem;
    background: #fff !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    padding: 2rem;
}

.product-view.dark-theme .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #666 !important;
    font-size: 1rem !important;
}

.product-view.dark-theme .modal-close:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.product-view.dark-theme .view-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-view.dark-theme .view-name a {
    color: #1a1a1a !important;
    text-decoration: none;
}

.product-view.dark-theme .view-price {
    margin-bottom: 1rem;
}

.product-view.dark-theme .view-price del {
    color: #999 !important;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-view.dark-theme .view-price span {
    color: #dc2626 !important;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hot Deal */
.product-view.dark-theme .card-hot-deal {
    background: rgba(220, 38, 38, 0.08) !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.product-view.dark-theme .card-hot-deal span {
    color: #333 !important;
    font-size: 0.85rem;
}

/* Description Toggle */
.product-view.dark-theme .view-desc-container {
    margin-bottom: 1rem;
}

.product-view.dark-theme .view-desc-toggle-btn {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    cursor: pointer;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease;
}

.product-view.dark-theme .view-desc-toggle-btn:hover {
    background: #333 !important;
}

.product-view.dark-theme .view-desc {
    display: none;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 0.5rem !important;
    border-left: 3px solid #dc2626 !important;
    color: #555 !important;
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.product-view.dark-theme .view-desc.show {
    display: block !important;
    max-height: 500px;
    opacity: 1;
    padding: 1rem !important;
    margin-top: 1rem !important;
}

/* Input Field Guide */
.product-view.dark-theme .input-field-guide {
    margin-top: 1rem;
    padding: 1rem !important;
    background: rgba(59, 130, 246, 0.08) !important;
    border-radius: 0.5rem !important;
    border-left: 3px solid #3b82f6 !important;
}

.product-view.dark-theme .input-field-guide h6 {
    margin: 0 0 0.5rem 0 !important;
    color: #1a1a1a !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-view.dark-theme .input-field-guide p {
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #666 !important;
    line-height: 1.5;
}

.product-view.dark-theme .input-field-guide a {
    color: #3b82f6 !important;
}

/* Share */
.product-view.dark-theme .view-list-group {
    margin-top: 1.5rem !important;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.product-view.dark-theme .view-list-title {
    color: #666 !important;
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

.product-view.dark-theme .view-share-list {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-view.dark-theme .view-share-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f5f5f5 !important;
    border-radius: 50%;
    color: #666 !important;
    transition: all 0.2s ease;
}

.product-view.dark-theme .view-share-list li a:hover {
    background: #1a1a1a !important;
    color: #fff !important;
}

/* Purchase Info Table */
.product-view.dark-theme .table {
    background: transparent !important;
    margin: 0;
    width: 100%;
}

.product-view.dark-theme .table td {
    padding: 0.6rem 0.5rem !important;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #555 !important;
    font-size: 0.9rem;
    vertical-align: middle;
}

.product-view.dark-theme .table tr:first-child td {
    padding-top: 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.product-view.dark-theme .table tr:first-child td strong {
    color: #1a1a1a !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-view.dark-theme .table tr:last-child td {
    border-bottom: none !important;
}

.product-view.dark-theme .text-wallet {
    color: #22c55e !important;
}

/* Quantity Input */
.product-view.dark-theme .product-action {
    display: flex;
    align-items: center;
}

.product-view.dark-theme .action-minus1,
.product-view.dark-theme .action-plus1 {
    width: 32px !important;
    height: 32px !important;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-view.dark-theme .action-minus1 {
    border-radius: 0.4rem 0 0 0.4rem !important;
}

.product-view.dark-theme .action-plus1 {
    border-radius: 0 0.4rem 0.4rem 0 !important;
}

.product-view.dark-theme .action-minus1:hover,
.product-view.dark-theme .action-plus1:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}

.product-view.dark-theme .action-input {
    width: 50px !important;
    height: 32px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-left: none !important;
    border-right: none !important;
    color: #1a1a1a !important;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-view.dark-theme .action-input:focus {
    outline: none;
}

/* Form Inputs */
.product-view.dark-theme .form-control-view-product {
    width: 100%;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a1a1a !important;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.product-view.dark-theme .form-control-view-product:focus {
    outline: none;
    border-color: #dc2626 !important;
}

.product-view.dark-theme .form-control-view-product::placeholder {
    color: #999 !important;
}

/* Discount & Total */
.product-view.dark-theme #into_discount {
    color: #dc2626 !important;
}

.product-view.dark-theme #into_pay {
    color: #22c55e !important;
    font-size: 1.1rem;
}

/* Favorite */
.product-view.dark-theme .view-action-group {
    margin: 0.75rem 0;
    padding: 0.65rem 0;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.product-view.dark-theme .input_favorite {
    display: none;
}

.product-view.dark-theme .label_favorite {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #666 !important;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.product-view.dark-theme .label_favorite:hover {
    color: #1a1a1a !important;
}

.product-view.dark-theme .label_favorite svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
}

.product-view.dark-theme .input_favorite:checked + .label_favorite {
    color: #dc2626 !important;
}

.product-view.dark-theme .input_favorite:checked + .label_favorite svg {
    fill: #dc2626;
    stroke: #dc2626;
}

.product-view.dark-theme .label_favorite .option-2 {
    display: none;
}

.product-view.dark-theme .input_favorite:checked + .label_favorite .option-1 {
    display: none;
}

.product-view.dark-theme .input_favorite:checked + .label_favorite .option-2 {
    display: inline;
}

/* Buy Button */
.product-view.dark-theme .view-add-group {
    margin-top: 0.75rem;
}

.product-view.dark-theme .btn-buy {
    width: 100%;
    padding: 0.85rem !important;
    background: #dc2626 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.product-view.dark-theme .btn-buy:hover {
    background: #b91c1c !important;
}

.product-view.dark-theme .btn-buy:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Rating */
.product-view.dark-theme .view-rating {
    margin-bottom: 0.75rem;
}

.product-view.dark-theme .view-rating i {
    color: #ddd;
}

.product-view.dark-theme .view-rating i.active {
    color: #fbbf24;
}

.product-view.dark-theme .view-rating a {
    color: #999 !important;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Purchase Info Box */
.product-view.dark-theme .purchase-info-box {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

/* Row layout fix */
.product-view.dark-theme .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.product-view.dark-theme .row > [class*="col-"] {
    padding: 0 0.75rem;
}

/* View details container */
.product-view.dark-theme .view-details {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .product-view.dark-theme {
        padding: 1.25rem;
    }
    
    .product-view.dark-theme .view-name {
        font-size: 1.1rem;
    }
    
    .product-view.dark-theme .view-price span {
        font-size: 1.25rem;
    }
    
    .product-view.dark-theme .purchase-info-box {
        margin-top: 1.5rem;
    }
}
