﻿/* ============================================
   STORE PAGES STYLING
   Covers: Checkout, Compare, Product Detail, Products, Orders, Dashboard
   ============================================ */

/* ========== Product Detail Page (New) ========== */
.product-page-wrapper {
    background: #ffffff;
    padding: 20px 0;
    min-height: 100vh;
}

.product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-section a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-section a:hover {
    color: #1d4ed8;
}

.breadcrumb-section span {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 600;
}

.product-detail-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
    align-items: start;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.2s;
    background: white;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    width: fit-content;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars span:first-child {
    color: #fbbf24;
    font-size: 18px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.price-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.price-original {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-original {
    text-decoration: line-through;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.price-note {
    font-size: 13px;
    color: #666;
}

.options-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.option-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
}

.option-btn:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.option-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.color-box:hover {
    border-color: #2563eb;
    transform: scale(1.1);
}

.color-name {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    padding: 14px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-wishlist {
    padding: 14px 20px;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 160px;
}

.btn-wishlist:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.benefit-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: #2563eb;
    flex-shrink: 0;
}

.benefit-icon.special {
    color: #8b5cf6;
}

.benefit-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.related-section {
    padding: 40px 30px;
    border-top: 1px solid #e5e7eb;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #ddd;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price-original {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.product-price-current {
    color: #2563eb;
    font-weight: 700;
    font-size: 15px;
}

.product-price-current.no-discount {
    color: #1f2937;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.product-rating-star {
    color: #fbbf24;
}

.product-rating-count {
    color: #999;
}

.product-rating-empty {
    color: #bbb;
    font-size: 12px;
}

/* ========== Checkout Page ========== */
.ldm-checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.ldm-checkout-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ldm-checkout-form h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.ldm-checkout-section {
    margin-bottom: 30px;
}

.ldm-payment-methods {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.ldm-payment-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.ldm-payment-option:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.ldm-payment-option input[type="radio"] {
    margin-right: 8px;
}

.ldm-payment-option label {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ldm-order-summary {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    top: 20px;
    position: sticky;
}

.ldm-order-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.ldm-order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ldm-order-item:last-child {
    border-bottom: none;
}

.ldm-order-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.ldm-checkout-btn {
    width: 100%;
    padding: 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.ldm-checkout-btn:hover {
    background: #1d4ed8;
}

/* ========== Compare Page ========== */
.ldm-compare-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ldm-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ldm-compare-table thead {
    background: #f5f5f5;
}

.ldm-compare-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #ddd;
}

.ldm-compare-table th:first-child {
    width: 150px;
}

.ldm-compare-table td {
    padding: 15px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #e0e0e0;
}

.ldm-compare-product {
    text-align: center;
}

.ldm-compare-product img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ldm-compare-spec-label {
    font-weight: 600;
    color: #333;
}

.ldm-compare-spec-value {
    color: #666;
}

.ldm-compare-action {
    text-align: center;
}

.ldm-compare-btn {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ldm-compare-btn:hover {
    background: #1d4ed8;
}

/* ========== Product Detail Page ========== */
.ldm-product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ldm-product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ldm-product-main-image {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ldm-product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ldm-product-thumbnails {
    display: flex;
    gap: 10px;
}

.ldm-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ldm-thumbnail:hover,
.ldm-thumbnail.active {
    border-color: #2563eb;
}

.ldm-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldm-product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ldm-product-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.ldm-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

.ldm-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldm-stars {
    color: #f59e0b;
    font-size: 16px;
}

.ldm-rating-count {
    color: #666;
    font-size: 14px;
}

.ldm-product-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ldm-option-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.ldm-option-values {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ldm-option-value {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-weight: 500;
}

.ldm-option-value:hover {
    border-color: #2563eb;
}

.ldm-option-value.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ldm-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldm-quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.ldm-quantity-btn:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

.ldm-quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ldm-add-to-cart-btn {
    padding: 15px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.ldm-add-to-cart-btn:hover {
    background: #1d4ed8;
}

.ldm-wishlisted {
    padding: 15px 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.ldm-wishlisted:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.ldm-specifications {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.ldm-specifications h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.ldm-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.ldm-spec-row:last-child {
    border-bottom: none;
}

.ldm-spec-label {
    font-weight: 600;
    color: #333;
}

.ldm-spec-value {
    color: #666;
}

.ldm-reviews {
    margin-top: 30px;
}

.ldm-reviews h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.ldm-review-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.ldm-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ldm-review-author {
    font-weight: 600;
    color: #333;
}

.ldm-review-rating {
    color: #f59e0b;
}

.ldm-review-text {
    color: #666;
    line-height: 1.6;
}

/* ========== Products List Page ========== */
.ldm-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.ldm-filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: fit-content;
}

.ldm-filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.ldm-filter-group:last-child {
    border-bottom: none;
}

.ldm-filter-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.ldm-filter-option {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.ldm-filter-option input[type="checkbox"],
.ldm-filter-option input[type="radio"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.ldm-filter-option label {
    cursor: pointer;
    flex: 1;
    color: #666;
}

.ldm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ldm-product-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.ldm-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.ldm-product-card-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ldm-product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ldm-product-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ldm-product-card-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldm-product-card-price {
    font-weight: 700;
    color: #2563eb;
    font-size: 16px;
    margin-bottom: 10px;
}

.ldm-product-card-footer {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.ldm-product-card-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ldm-product-card-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ========== Orders / Order Tracking ========== */
.ldm-orders-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.ldm-orders-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.ldm-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.ldm-order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ldm-order-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ldm-order-card-header,
.ldm-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ldm-order-product-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.ldm-order-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ldm-order-product-image,
.ldm-order-product-placeholder {
    width: 72px;
    height: 72px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ldm-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldm-order-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ldm-order-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
}

.ldm-order-product-meta span {
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 500;
}

.ldm-order-product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.ldm-order-product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: 140px;
    text-align: right;
    margin-left: auto;
}

.ldm-order-product-quantity,
.ldm-order-product-total {
    font-size: 13px;
    color: #4b5563;
    margin-left: auto;
}

.ldm-order-product-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    text-align: right;
}

.ldm-od-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ldm-od-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.ldm-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.ldm-order-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ldm-order-product-preview {
        gap: 8px;
    }

    .ldm-order-product-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ldm-order-product-right {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }

    .ldm-order-product-quantity,
    .ldm-order-product-total {
        margin-left: 0;
    }
}

.ldm-order-product-extra {
    font-size: 13px;
    color: #6b7280;
}

.ldm-order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ldm-order-detail-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
}

.ldm-order-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 6px;
}

.ldm-order-detail-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.ldm-order-items {
    margin-bottom: 15px;
}

.ldm-order-item,
.ldm-order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.ldm-order-item:last-child,
.ldm-order-item-row:last-child {
    border-bottom: none;
}

.ldm-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ldm-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.ldm-order-btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ldm-order-btn-secondary {
    background: #eef2ff;
    color: #1d4ed8;
    border-color: #dbeafe;
}

.ldm-order-btn:hover {
    transform: translateY(-1px);
}

.ldm-orders-empty {
    text-align: center;
    padding: 40px 24px;
    border: 1px dashed #dbeafe;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
}

.ldm-orders-empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    stroke: #2563eb;
}

.ldm-orders-empty h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.ldm-orders-empty p {
    margin-bottom: 18px;
    color: #475569;
}

.ldm-orders-empty .ldm-order-btn-primary {
    width: auto;
}

.ldm-order-number {
    font-weight: 700;
    color: #333;
}

.ldm-order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ldm-order-status.status-pending {
    background: #fef08a;
    color: #92400e;
}

.ldm-order-status.status-processing {
    background: #bfdbfe;
    color: #1e40af;
}

.ldm-order-status.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.ldm-order-status.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.ldm-order-status.status-cancelled {
    background: #fee2e2;
    color: #7f1d1d;
}

.ldm-order-date {
    color: #666;
    font-size: 13px;
}

.ldm-order-items {
    margin-bottom: 15px;
}

.ldm-order-item-row {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ldm-order-item-row:last-child {
    border-bottom: none;
}

.ldm-order-item-image {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ldm-order-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ldm-order-item-details {
    flex: 1;
}

.ldm-order-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ldm-order-item-meta {
    font-size: 13px;
    color: #666;
}

.ldm-order-item-price {
    text-align: right;
    font-weight: 600;
}

.ldm-order-total {
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    padding: 15px 0;
    border-top: 2px solid #e0e0e0;
}

.ldm-order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ldm-order-action-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.ldm-order-action-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ========== Dashboard / User Profile ========== */
.ldm-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ldm-dashboard-header {
    margin-bottom: 30px;
}

.ldm-dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.ldm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ldm-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ldm-stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.ldm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.ldm-dashboard-sections {
    display: grid;
    gap: 30px;
}

.ldm-dashboard-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.ldm-dashboard-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .ldm-checkout-container,
    .ldm-product-detail-container {
        grid-template-columns: 1fr;
    }

    .ldm-products-container {
        grid-template-columns: 1fr;
    }

    .ldm-filters-sidebar {
        display: none;
    }

    .ldm-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .ldm-order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* New Product Detail Responsive */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .benefits-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        min-width: auto;
        width: 100%;
    }

    .product-name {
        font-size: 22px;
    }

    .price-current {
        font-size: 24px;
    }


    .ldm-order-item-row {
        flex-direction: column;
        gap: 10px;
    }

    .ldm-checkout-form,
    .ldm-order-summary {
        position: static;
    }
}
/* ========== From checkout.css ========== */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.checkout-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.checkout-grid > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #7c3aed;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error message styling */
.error-message {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    padding: 8px 12px;
    background-color: #fee2e2;
    border-left: 3px solid #dc2626;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: "âŒ";
    flex-shrink: 0;
}

/* Apply red border to form inputs with errors */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Alert styling */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #dc2626;
    color: #7f1d1d;
    border-left: 3px solid #dc2626;
}

.alert-danger p {
    margin: 4px 0;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
    border-left: 3px solid #10b981;
}



.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #7c3aed;
    background: #f9f5ff;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.payment-option input[type="radio"]:checked {
    accent-color: #7c3aed;
}

.payment-option.active {
    border-color: #7c3aed;
    background: #f9f5ff;
}

.payment-label {
    flex: 1;
}

.payment-label strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.payment-label small {
    color: #666;
    font-size: 12px;
}

.product-card {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.product-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #ccc;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-qty {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
}

.product-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    padding-bottom: 15px;
}

.summary-value {
    font-weight: 500;
    color: #333;
}

.summary-value.highlight {
    color: #e63946;
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-place-order {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-place-order:active {
    transform: translateY(0);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: #7c3aed;
    border: 2px solid #7c3aed;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: #f9f5ff;
}

.required {
    color: #e63946;
}

.ldm-checkout-addr-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ldm-border);
    border-radius: 12px;
    background: var(--ldm-white);
}

.ldm-checkout-addr-icon i {
    font-size: 22px;
    color: var(--ldm-primary);
}

.ldm-checkout-addr-info {
    flex: 1;
}

.ldm-checkout-addr-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 2px;
}

.ldm-checkout-addr-phone {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-bottom: 6px;
}

.ldm-checkout-addr-detail {
    font-size: 14px;
    color: var(--ldm-text);
    line-height: 1.5;
}

.ldm-checkout-addr-badge {
    display: inline-block;
    background: var(--ldm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.ldm-checkout-addr-change {
    background: none;
    border: 1px solid var(--ldm-primary);
    color: var(--ldm-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Signika', sans-serif;
}

.ldm-checkout-addr-change:hover {
    background: var(--ldm-primary);
    color: #fff;
}

/* ==================== Products Section ==================== */
.ldm-checkout-products {
    display: flex;
    flex-direction: column;
}

.ldm-checkout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ldm-border);
}

.ldm-checkout-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Äá»“ng bá»™ vá»›i .ldm-cart-item-img */
.ldm-checkout-item-img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.ldm-checkout-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldm-checkout-item-img .ldm-checkout-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.ldm-checkout-item-info {
    flex: 1;
    min-width: 0;
}

.ldm-checkout-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.ldm-checkout-item-variant {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-bottom: 2px;
}

.ldm-checkout-item-qty {
    font-size: 14px;
    color: var(--ldm-text-light);
}

.ldm-checkout-item-price {
    text-align: right;
    white-space: nowrap;
}

.ldm-checkout-item-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
}

.ldm-checkout-item-original {
    font-size: 13px;
    color: var(--ldm-text-light);
    text-decoration: line-through;
    margin-top: 2px;
}

/* ==================== Payment Methods ==================== */
.ldm-checkout-payments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.ldm-checkout-pay-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--ldm-border);
    border-radius: 8px;
    background: var(--ldm-white);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.ldm-checkout-pay-opt:hover:not(.disabled) {
    border-color: var(--ldm-primary);
}

.ldm-checkout-pay-opt.selected {
    border-color: var(--ldm-primary);
    background: rgba(169, 204, 240, 0.08);
}

.ldm-checkout-pay-opt.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.ldm-checkout-pay-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ldm-card-bg);
    border: 1px solid var(--ldm-border);
}

.ldm-checkout-pay-icon i {
    font-size: 20px;
    color: var(--ldm-primary);
}

.ldm-checkout-pay-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ldm-text);
    line-height: 1.3;
}

.ldm-checkout-pay-label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--ldm-text-light);
    margin-top: 2px;
}

.ldm-checkout-pay-check {
    margin-left: auto;
    font-size: 22px;
    color: #10b981;
    display: none;
    flex-shrink: 0;
    line-height: 1;
}

.ldm-checkout-pay-opt.verified .ldm-checkout-pay-check {
    display: flex;
}

.ldm-checkout-pay-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.ldm-checkout-pay-selected-text {
    font-size: 14px;
    color: var(--ldm-text);
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(169, 204, 240, 0.1);
    border: 1px dashed var(--ldm-primary);
}

.ldm-checkout-pay-selected-text strong {
    color: var(--ldm-primary);
}

/* ==================== VietQR Box ==================== */
.ldm-checkout-qr-box {
    margin-top: 16px;
    background: var(--ldm-white);
    border: 2px solid var(--ldm-primary);
    border-radius: 12px;
    overflow: hidden;
    animation: qhQrSlideIn 0.3s ease;
}

@keyframes qhQrSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ldm-checkout-qr-header {
    background: rgba(169, 204, 240, 0.12);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ldm-text);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--ldm-border);
}

.ldm-checkout-qr-header i {
    font-size: 20px;
    color: var(--ldm-primary);
}

.ldm-checkout-qr-body {
    display: flex;
    padding: 20px;
    gap: 24px;
    align-items: flex-start;
}

.ldm-checkout-qr-img {
    width: 200px;
    min-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ldm-border);
    background: #fff;
}

.ldm-checkout-qr-img img {
    width: 100%;
    height: auto;
    display: block;
}

.ldm-checkout-qr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldm-checkout-qr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--ldm-border);
}

.ldm-checkout-qr-row:last-child {
    border-bottom: none;
}

/* ========== Order Success Page ========== */
.ldm-os-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ldm-page-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.ldm-os-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ldm-os-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.ldm-os-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.ldm-os-icon svg {
    width: 80px;
    height: 80px;
    stroke: white;
    stroke-width: 2;
}

.ldm-os-hero h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.ldm-os-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.ldm-os-info {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
}

.ldm-os-info-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.ldm-os-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ldm-os-row:last-child {
    border-bottom: none;
}

.ldm-os-row .label {
    font-weight: 600;
    color: #666;
}

.ldm-os-row .value {
    color: #333;
}

/* Status Badge Classes */
.ldm-status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

.ldm-status-pending {
    background: #fbbf24;
    color: #78350f;
}

.ldm-status-approved {
    background: #60a5fa;
    color: white;
}

.ldm-status-shipped {
    background: #a78bfa;
    color: white;
}

.ldm-status-completed {
    background: #34d399;
    color: white;
}

.ldm-status-cancelled {
    background: #f87171;
    color: white;
}

.ldm-os-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
}

.ldm-os-btn {
    padding: 12px 20px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.ldm-os-btn:hover {
    background: #f3f4f6;
    border-color: #999;
}

.ldm-os-btn.primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ldm-os-btn.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.ldm-os-footer {
    background: #f0f9ff;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e0e7ff;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ldm-os-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .ldm-page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .ldm-os-wrapper {
        border-radius: 8px;
    }

    .ldm-os-hero {
        padding: 30px 15px;
    }

    .ldm-os-hero h2 {
        font-size: 20px;
    }

    .ldm-os-icon svg {
        width: 60px;
        height: 60px;
    }

    .ldm-os-actions {
        flex-direction: row;
    }

    .ldm-os-btn {
        flex: 1;
    }
}

.ldm-checkout-qr-row span {
    color: var(--ldm-text-light);
}

.ldm-checkout-qr-row strong {
    color: var(--ldm-text);
    font-weight: 600;
    text-align: right;
}

.ldm-checkout-qr-row strong.ldm-qr-amount {
    color: var(--ldm-primary);
    font-size: 16px;
    font-weight: 700;
}

.ldm-checkout-qr-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--ldm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(169, 204, 240, 0.06);
}

.ldm-checkout-qr-timer {
    font-size: 14px;
    color: var(--ldm-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ldm-checkout-qr-timer i {
    font-size: 18px;
}

.ldm-checkout-qr-timer span {
    font-weight: 700;
    color: #ef4444;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.ldm-checkout-qr-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.ldm-checkout-qr-notice i {
    font-size: 18px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 1px;
}

/* QR Success State */
.ldm-checkout-qr-success {
    padding: 40px 20px;
    text-align: center;
}

.ldm-checkout-qr-success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 12px;
    line-height: 1;
}

.ldm-checkout-qr-success-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 6px;
}

.ldm-checkout-qr-success-desc {
    font-size: 14px;
    color: var(--ldm-text-light);
}

@media (max-width: 768px) {
    .ldm-checkout-qr-body {
        flex-direction: column;
        align-items: center;
    }

    .ldm-checkout-qr-img {
        width: 180px;
        min-width: 180px;
    }

    .ldm-checkout-qr-footer {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==================== Right Sidebar - Summary ==================== */
/* Äá»“ng bá»™ vá»›i .ldm-cart-summary */
.ldm-checkout-right {
    position: sticky;
    top: 100px;
}

.ldm-checkout-summary {
    background: var(--ldm-card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ldm-checkout-summary-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 20px;
}

.ldm-checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--ldm-text-light);
}

.ldm-checkout-summary-row.total {
    border-top: 2px solid var(--ldm-border);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-text);
}

.ldm-checkout-summary-val {
    color: var(--ldm-text);
    font-weight: 600;
}

.ldm-checkout-summary-row.total .ldm-checkout-summary-val {
    color: var(--ldm-primary);
    font-size: 22px;
}

.ldm-checkout-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--ldm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    font-family: 'Signika', sans-serif;
}

.ldm-checkout-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ldm-checkout-back-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--ldm-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.ldm-checkout-back-link:hover {
    color: var(--ldm-primary);
}

/* ==================== No Address Modal ==================== */
.ldm-checkout-noaddr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ldm-checkout-noaddr-box {
    background: var(--ldm-white);
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: qhNoAddrFadeIn 0.3s ease;
}

@keyframes qhNoAddrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ldm-checkout-noaddr-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(169, 204, 240, 0.15);
    border: 2px solid var(--ldm-primary);
}

.ldm-checkout-noaddr-icon i {
    font-size: 32px;
    color: var(--ldm-primary);
}

.ldm-checkout-noaddr-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 10px;
}

.ldm-checkout-noaddr-desc {
    font-size: 14px;
    color: var(--ldm-text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ldm-checkout-noaddr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ldm-primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Signika', sans-serif;
    text-decoration: none;
}

.ldm-checkout-noaddr-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ldm-checkout-noaddr-btn i {
    font-size: 18px;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
    .ldm-checkout-grid {
        grid-template-columns: 1fr;
    }

    .ldm-checkout-right {
        position: static;
    }

    .ldm-checkout-payments {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ldm-checkout-item-img {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .ldm-checkout-noaddr-box {
        padding: 28px 20px;
    }
}



/* ========== From checkout_simple.css ========== */
/* ==================== CHECKOUT SIMPLE PAGE - Inline Styles from checkout_simple.html ==================== */
.checkout-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

.checkout-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #7c3aed;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #7c3aed;
    background: #f9f5ff;
}

.payment-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.payment-option input[type="radio"]:checked {
    accent-color: #7c3aed;
}

.payment-option.active {
    border-color: #7c3aed;
    background: #f9f5ff;
}

.payment-label {
    flex: 1;
}

.payment-label strong {
    display: block;
    color: #333;
    margin-bottom: 2px;
}

.payment-label small {
    color: #666;
    font-size: 12px;
}

.product-card {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.product-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #ccc;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-qty {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-price-current {
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
}

.product-price-original {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding-top: 15px;
    padding-bottom: 15px;
}

.summary-value {
    font-weight: 500;
    color: #333;
}

.summary-value.highlight {
    color: #e63946;
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-place-order {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.btn-place-order:active {
    transform: translateY(0);
}

.btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: #7c3aed;
    border: 2px solid #7c3aed;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    background: #f9f5ff;
}

.required {
    color: #e63946;
}



/* ========== From compare.css ========== */
/* ========================================================
   MOBILE STORE â€“ Compare Page
   ======================================================== */

/* ========== Header ========== */
.ldm-compare-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ldm-compare-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--ldm-text);
    margin: 0;
}

.ldm-compare-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ldm-bg);
    color: var(--ldm-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ldm-compare-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(169, 204, 240, 0.3);
    color: var(--ldm-text);
}

/* ========== Columns grid ========== */
/* LÆ°u Ã½: grid-template-columns Ä‘Æ°á»£c xá»­ lÃ½ inline do sá»­ dá»¥ng Django template tag */
.ldm-compare-grid {
    gap: 20px;
    align-items: start;
}

/* ========== Each product column ========== */
.ldm-compare-col {
    background: var(--ldm-white);
    border-radius: var(--ldm-radius);
    box-shadow: 0 4px 16px var(--ldm-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ========== Product card header ========== */
.ldm-compare-col-header {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid var(--ldm-border);
    position: relative;
}

.ldm-compare-col-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--ldm-radius);
    margin: 0 auto 12px;
    display: block;
    background: var(--ldm-bg);
}

.ldm-compare-col-img-empty {
    width: 120px;
    height: 120px;
    border-radius: var(--ldm-radius);
    background: var(--ldm-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: #ccc;
}

.ldm-compare-col-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.ldm-compare-col-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 2px;
}

.ldm-compare-col-oldprice {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.ldm-compare-col-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--ldm-border);
    background: var(--ldm-white);
    color: var(--ldm-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.ldm-compare-col-remove:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    transform: scale(1.1);
}

/* ========== Spec groups ========== */
.ldm-compare-spec-group {
    padding: 0;
}

.ldm-compare-spec-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ldm-white);
    padding: 10px 20px;
    margin: 0;
    background: linear-gradient(135deg, var(--ldm-primary));
}

.ldm-compare-spec-group table {
    width: 100%;
    border-collapse: collapse;
}

.ldm-compare-spec-group tr {
    border-bottom: 1px solid #f1f1f1;
}

.ldm-compare-spec-group tr:last-child {
    border-bottom: 1px solid var(--ldm-border);
}

.ldm-compare-spec-group td {
    padding: 10px 20px;
    font-size: 13px;
    vertical-align: top;
    font-family: 'Signika', sans-serif;
}

.ldm-compare-spec-group td:first-child {
    width: 45%;
    color: var(--ldm-text-light);
    font-weight: 400;
}

.ldm-compare-spec-group td:last-child {
    color: var(--ldm-text);
    font-weight: 500;
}

/* ========== Empty state ========== */
.ldm-compare-col-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ========== Filter bar ========== */
.ldm-compare-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ldm-compare-filter label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ldm-text);
}

.ldm-compare-filter select {
    height: 40px;
    padding: 0 36px 0 14px;
    border: 2px solid var(--ldm-border);
    border-radius: var(--ldm-radius-sm);
    font-family: 'Signika', sans-serif;
    font-size: 14px;
    color: var(--ldm-text);
    background: var(--ldm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ldm-compare-filter select:focus {
    outline: none;
    border-color: var(--ldm-primary);
    box-shadow: 0 4px 12px rgba(169, 204, 240, 0.3);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .ldm-compare-grid {
        grid-template-columns: 1fr;
    }

    .ldm-compare-header h1 {
        font-size: 22px;
    }
}



/* ========== From home.css ========== */
/* ==================== Product Card - Clean Layout ==================== */
.ldm-product-card {
    background: var(--ldm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ldm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ldm-product-card:hover .ldm-product-image img {
    transform: scale(1.08);
}

.ldm-product-card .ldm-product-image img {
    transition: transform 0.4s ease;
    transform: scale(1);
}

.ldm-product-card.out-of-stock {
    opacity: 0.75;
}

/* ==================== Discount Ribbon ==================== */
.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.discount-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid #ef4444;
    border-bottom: 6px solid transparent;
}

/* ==================== Wishlist Heart Button ==================== */
/* default absolute-style used in product listings on other pages */
.wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.ldm-product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.wishlist-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    fill: none;
    transition: all 0.3s ease;
}

.wishlist-btn:hover svg {
    stroke: #ef4444;
    transform: scale(1.1);
}

.wishlist-btn.liked svg {
    stroke: #ef4444;
    fill: #ef4444;
}

/* ==================== Inline wishlist button (for home page) ==================== */
.wishlist-btn-inline {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s, transform 0.2s;
}

.wishlist-btn-inline:hover {
    color: #ef4444;
}

.wishlist-btn-inline.liked svg,
.wishlist-btn-inline.liked {
    color: #ef4444;
    fill: #ef4444;
}

/* ==================== Out of Stock Overlay ==================== */
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.out-of-stock-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #6b7280;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 6;
}

/* ==================== Compare Button ==================== */
.ldm-compare-btn {
    font-family: 'Signika', sans-serif;
}

/* ==================== Brand list (homepage) ==================== */
.ldm-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.ldm-brand-pill {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ldm-brand-pill:hover {
    background: #f0f0f0;
}

.ldm-brand-pill-active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.ldm-brand-pill-active:hover {
    background: #1d4ed8;
}

.ldm-compare-btn:hover {
    background: var(--ldm-primary) !important;
    border-color: var(--ldm-primary) !important;
    color: var(--ldm-text) !important;
}

.ldm-compare-btn.active {
    background: var(--ldm-primary) !important;
    border-color: var(--ldm-primary-dark) !important;
    color: var(--ldm-text) !important;
    font-weight: 600;
}

/* ==================== HERO VIDEO SLIDER ==================== */
.ldm-hero-slider {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 12px;
    padding: 0;
}

.ldm-hero-slider-wrap {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
}

.ldm-hero-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: clamp(240px, 42vw, 520px);
    min-height: 240px;
    max-height: 520px;
    background: #111827;
}

.ldm-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ldm-hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.ldm-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #0f172a;
    transform: scale(1);
    transition: transform 0.7s ease;
}

.ldm-hero-slide.active .ldm-hero-video {
    transform: scale(1);
}

.ldm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(72, 71, 71, 0.55), rgba(110, 110, 110, 0));
    display: flex;
    align-items: center;
}

.ldm-hero-text {
    padding-left: 80px;
    max-width: 600px;
}

.ldm-hero-text h2 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #fff;
    margin: 0 0 12px;
}

.ldm-hero-text p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.ldm-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.ldm-hero-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.ldm-hero-nav.prev {
    left: 12px;
}

.ldm-hero-nav.next {
    right: 12px;
}

.ldm-hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.ldm-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ldm-hero-dot:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.08);
}

.ldm-hero-dot.active {
    background: rgba(255, 255, 255, 0.95);
}

/* Fallback text when video fails */
.ldm-hero-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .ldm-hero-slider {
        padding: 0;
    }

    .ldm-hero-text {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ldm-hero-text h2 {
        font-size: 28px;
    }

    .ldm-hero-text p {
        font-size: 15px;
    }
}

/* ==================== Featured Brands Row ==================== */
.ldm-featured-brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0 auto 28px auto;
    padding: 0 0 8px 0;
    max-width: 1400px;
}

.ldm-featured-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 10px 24px;
    transition: box-shadow 0.25s, transform 0.22s;
    border: 1.5px solid #f3f4f6;
    min-width: 110px;
    min-height: 56px;
    cursor: pointer;
}

.ldm-featured-brand:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px) scale(1.04);
    border-color: #e0e7ef;
}

.ldm-featured-brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.22s;
}

.ldm-featured-brand:hover img {
    transform: scale(1.08);
}

.ldm-featured-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 12px;
}

.ldm-featured-title {
    font-size: 22px;
    font-weight: 800;
    color: #222;
    letter-spacing: 1.2px;
    font-family: 'Signika', sans-serif;
    background: linear-gradient(90deg, #565555 0%, #626161 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0 18px;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
}

.ldm-featured-title::before,
.ldm-featured-title::after {
    content: '';
    display: inline-block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #626161 0%, #626161 100%);
    vertical-align: middle;
    margin: 0 10px;
    animation: qh-title-bar-move 2.2s infinite alternate;
}

.ldm-featured-title::after {
    animation-delay: 1.1s;
}

@keyframes qh-title-bar-move {
    0% {
        width: 44px;
        opacity: 1;
    }

    100% {
        width: 80px;
        opacity: 0.5;
    }
}

/* ==================== Flash Sale / Suggest Products ==================== */
.flash-sale-section {
    background: #01A400;
    border-radius: 20px;
    overflow: hidden;
    margin: 36px 0 32px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.flash-banner {
    width: 100%;
    background: #01A400;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.flash-banner img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin-bottom: 0;
}

.product-box {
    background: #fff;
    width: 100%;
    padding: 18px 8px 18px 8px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    box-shadow: none;
}

.ldm-suggest-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-shadow: 2px 4px 0 #0b5c1a;
    color: #01A400;
}

.ldm-suggest-sub {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #222;
}

.ldm-suggest-products {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.product-card {
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    width: 210px;
    padding: 16px 14px 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #f6f6f6;
}

.badge-stock {
    display: inline-block;
    background: linear-gradient(90deg, #ff5722 60%, #ff9800 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 3px 12px;
    margin: 0 auto 10px auto;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 1px 4px rgba(255, 87, 34, 0.10);
}

.price-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.price-new {
    color: #e53935;
    font-size: 1.25rem;
    font-weight: 800;
}

.price-old {
    color: #888;
    font-size: 1.05rem;
    text-decoration: line-through;
}

.discount {
    background: #ffe082;
    color: #d32f2f;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 7px;
    padding: 2px 8px;
    margin-left: 2px;
}

.product-name {
    font-size: 1.08rem;
    font-weight: 700;
    text-align: center;
    margin: 8px 0 14px 0;
    min-height: 40px;
}

.cta-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #01A400 60%, #0b5c1a 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    padding: 10px 0;
    margin-top: auto;
    cursor: pointer;
    transition: background 0.18s;
}

.cta-btn:hover {
    background: linear-gradient(90deg, #0b5c1a 60%, #01A400 100%);
}

@media (max-width: 1200px) {
    .ldm-suggest-products {
        gap: 12px;
    }

    .product-card {
        width: 19vw;
        min-width: 170px;
        max-width: 220px;
    }
}

@media (max-width: 900px) {
    .product-card {
        width: 28vw;
        min-width: 150px;
    }
}

@media (max-width: 600px) {
    .ldm-suggest-products {
        gap: 8px;
    }

    .product-card {
        width: 90vw;
        min-width: 0;
        max-width: 100vw;
    }
}



/* ========== From order_success.css ========== */
/* ========================================================
   MOBILE STORE â€“ Order Success Page
   ======================================================== */

/* ========== Page wrapper ========== */
/* ========== Outer wrapper box ========== */
.ldm-os-wrapper {
    background: var(--ldm-card-bg, var(--ldm-white));
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ========== Hero: icon + title ========== */
.ldm-os-hero {
    text-align: center;
    padding: 40px 24px 32px;
}

.ldm-os-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qh-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

@keyframes qh-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ldm-os-icon .qhc {
    width: 38px;
    height: 38px;
}

.ldm-os-icon .qhc path {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: qh-draw 0.6s 0.3s ease forwards;
}

@keyframes qh-draw {
    to { stroke-dashoffset: 0; }
}

.ldm-os-hero h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    margin: 0;
}

/* ========== Two equal boxes ========== */
.ldm-os-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1.5px solid var(--ldm-border);
}

/* Left box */
.ldm-os-info {
    padding: 28px 32px;
    border-right: 1.5px solid var(--ldm-border);
}

.ldm-os-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 20px;
}

.ldm-os-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ldm-os-row:last-child {
    border-bottom: none;
}

.ldm-os-row .label {
    font-size: 15px;
    color: var(--ldm-text-light);
    font-weight: 500;
}

.ldm-os-row .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ldm-text);
}

/* Right box */
.ldm-os-actions {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.ldm-os-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--ldm-border);
    background: var(--ldm-white);
    color: var(--ldm-text);
    transition: all 0.2s;
}

.ldm-os-btn:hover {
    border-color: var(--ldm-primary);
    background: rgba(169, 204, 240, 0.08);
}

.ldm-os-btn:active {
    transform: scale(0.98);
}

.ldm-os-btn i {
    font-size: 17px;
}

.ldm-os-btn.primary {
    background: linear-gradient(135deg, var(--ldm-primary), var(--ldm-primary-dark));
    border-color: var(--ldm-primary-dark);
    box-shadow: 0 4px 12px rgba(169, 204, 240, 0.4);
}

.ldm-os-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(169, 204, 240, 0.5);
}

/* ========== Footer message ========== */
.ldm-os-footer {
    text-align: center;
    padding: 28px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ldm-text);
    line-height: 1.6;
    border-top: 1.5px solid var(--ldm-border);
}

/* ========== Confetti ========== */
.ldm-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: qh-fall 2s ease forwards;
    opacity: 0;
}

@keyframes qh-fall {
    0%   { transform: translateY(-20px) rotate(0); opacity: 1; }
    100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

/* ========== Responsive ========== */
@media (max-width: 640px) {
    .ldm-os-grid {
        grid-template-columns: 1fr;
    }

    .ldm-os-info {
        border-right: none;
        border-bottom: 1.5px solid var(--ldm-border);
    }

    .ldm-os-info,
    .ldm-os-actions {
        padding: 20px;
    }

    .ldm-os-hero {
        padding: 28px 16px 24px;
    }

    .ldm-os-footer {
        padding: 20px 16px;
        font-size: 14px;
    }
}




/* ========== From order_tracking.css ========== */
/* ========================================================
   MOBILE STORE â€“ Order Tracking Page
   ======================================================== */

/* ========== Page wrapper ========== */
.ldm-ot-page .ldm-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 24px;
}

/* ========== Table ========== */
.ldm-ot-table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ldm-ot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ldm-ot-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ldm-ot-table th {
    padding: 13px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    text-align: left;
}

.ldm-ot-table th.center {
    text-align: center;
}

.ldm-ot-table th.right {
    text-align: right;
}

.ldm-ot-table td {
    padding: 13px 14px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ldm-ot-table td.center {
    text-align: center;
}

.ldm-ot-table td.right {
    text-align: right;
}

.ldm-ot-table td.stt {
    text-align: center;
    color: #64748b;
}

.ldm-ot-table td.name {
    font-weight: 500;
}

.ldm-ot-table td.qty {
    text-align: center;
    color: #64748b;
}

.ldm-ot-table td.color {
    text-align: center;
    color: #64748b;
}

.ldm-ot-table td.storage {
    text-align: center;
    color: #64748b;
}

.ldm-ot-table td.price {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.ldm-ot-table td.date {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.ldm-ot-table td.code {
    color: #3b82f6;
    font-weight: 600;
    font-family: monospace;
    font-size: 13px;
    white-space: nowrap;
}

.ldm-ot-table td.detail-cell {
    text-align: center;
}

/* ========== Status badges ========== */
.ldm-ot-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ldm-ot-badge.awaiting_payment {
    background: #fef9c3;
    color: #854d0e;
}

.ldm-ot-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.ldm-ot-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.ldm-ot-badge.shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.ldm-ot-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.ldm-ot-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ldm-ot-badge.refunding {
    background: #fce7f3;
    color: #9d174d;
}

/* ========== Detail button ========== */
.ldm-ot-detail-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Signika', sans-serif;
    transition: background 0.2s;
}

.ldm-ot-detail-btn:hover {
    background: #2563eb;
}

/* ========== Filter bar ========== */
.ldm-ot-filter-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ldm-ot-filter-btn {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    font-family: 'Signika', sans-serif;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-align: center;
}

.ldm-ot-filter-btn:hover {
    background: #f8fafc;
}

.ldm-ot-filter-btn.active {
    color: #3b82f6;
    font-weight: 600;
    border-bottom-color: #3b82f6;
}

/* ========== Detail Modal ========== */
.ldm-ot-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}

.ldm-ot-modal-overlay.show {
    display: flex;
}

.ldm-ot-modal {
    background: white;
    border-radius: 12px;
    width: 700px;
    max-width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ldm-ot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.ldm-ot-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Signika', sans-serif;
    margin: 0;
    color: #1e293b;
}

.ldm-ot-modal-close {
    padding: 8px 16px;
    background: #f1f5f9;
    color: #334155;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Signika', sans-serif;
}

.ldm-ot-modal-close:hover {
    background: #e2e8f0;
}

/* ========== Custom Confirm Modal ========== */
.ldm-ot-confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 21000;
    align-items: center;
    justify-content: center;
}

.ldm-ot-confirm-overlay.show {
    display: flex;
}

.ldm-ot-confirm-modal {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    padding: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ldm-ot-confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    color: #ef4444;
}

.ldm-ot-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.ldm-ot-confirm-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.ldm-ot-confirm-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ldm-ot-confirm-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
}

.ldm-ot-confirm-btn.cancel {
    background: #f1f5f9;
    color: #64748b;
}

.ldm-ot-confirm-btn.cancel:hover {
    background: #e2e8f0;
}

.ldm-ot-confirm-btn.danger {
    background: #ef4444;
    color: white;
}

.ldm-ot-confirm-btn.danger:hover {
    background: #dc2626;
}

.ldm-ot-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.ldm-ot-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ========== Detail sections ========== */
.ldm-ot-detail-block {
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.ldm-ot-detail-block h4 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 10px;
}

.ldm-ot-detail-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ldm-ot-detail-items-table thead tr {
    background: #f1f5f9;
    text-align: left;
}

.ldm-ot-detail-items-table th,
.ldm-ot-detail-items-table td {
    padding: 8px 10px;
}

.ldm-ot-detail-items-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.ldm-ot-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

.ldm-ot-info-label {
    color: #64748b;
}

.ldm-ot-info-value {
    color: #1e293b;
    text-align: right;
}

.ldm-ot-total-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== Cancel btn in modal ========== */
.ldm-ot-modal-cancel-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
}

.ldm-ot-modal-cancel-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* ========== Empty State ========== */
.ldm-ot-empty {
    background: var(--ldm-card-bg, var(--ldm-white));
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ldm-ot-empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    color: #d1d5db;
}

.ldm-ot-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 8px;
}

.ldm-ot-empty p {
    font-size: 16px;
    color: var(--ldm-text-light);
    margin-bottom: 24px;
}

/* ========== Order group separator ========== */
#otTableBody tr.order-group-start td {
    border-top: 2px solid #e2e8f0;
}

#otTableBody tr.order-group-start:first-child td {
    border-top: none;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .ldm-ot-table {
        font-size: 13px;
    }

    .ldm-ot-table th,
    .ldm-ot-table td {
        padding: 10px 8px;
    }

    .ldm-ot-filter-btn {
        font-size: 12px;
        padding: 12px 4px;
    }

    .ldm-ot-modal {
        width: 95%;
    }
}



/* ========== From product_detail.css ========== */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.product-detail-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.product-detail-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.product-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-detail-image {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-category {
    display: inline-block;
    background: #e8eaf6;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-detail-price {
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.product-price-current {
    font-size: 40px;
    font-weight: 700;
    color: #667eea;
}

.product-price-currency {
    font-size: 20px;
    margin-left: 8px;
}

.product-detail-description {
    margin: 20px 0;
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

.product-detail-specs {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.product-detail-specs h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
    flex: 0 0 150px;
}

.spec-value {
    color: #666;
    flex: 1;
    text-align: right;
}

.product-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-add-cart,
.btn-buy-now,
.btn-wishlist {
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-buy-now {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    grid-column: span 1;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-add-cart {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    grid-column: span 1;
}

.btn-add-cart:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.btn-wishlist {
    background: white;
    color: #e91e63;
    border: 2px solid #e91e63;
    grid-column: span 2;
    margin-top: 10px;
}

.btn-wishlist:hover {
    background: #fce4ec;
    transform: translateY(-2px);
}

.btn-wishlist.active {
    background: #e91e63;
    color: white;
}

.related-products {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #e0e0e0;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.product-card-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 15px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 36px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
}

.product-card-link {
    display: inline-block;
    width: 100%;
    padding: 8px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card-link:hover {
    background: #764ba2;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-actions {
        grid-template-columns: 1fr;
    }

    .btn-wishlist {
        grid-column: span 1;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Images Column ========== */
.pd-images {
    position: sticky;
    top: 20px;
}

.pd-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 380px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
}

.pd-main-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

.pd-main-image img.pd-fade-out {
    opacity: 0;
}

.pd-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.pd-img-nav:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pd-img-nav.prev {
    left: 10px;
}

.pd-img-nav.next {
    right: 10px;
}

.pd-img-nav svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

/* ========== Info Column ========== */
/* Price */
.pd-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.pd-price-current {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
}

.pd-price-original {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
}

.pd-sku-inline {
    font-size: 13px;
    color: #64748b;
    margin-left: auto;
}

/* Installment */
.pd-installment {
    font-size: 13px;
    color: #059669;
    margin-bottom: 20px;
    font-family: 'Signika', sans-serif;
}

/* ========== Variant Sections (Storage & Color) ========== */
.pd-variant-section {
    margin-bottom: 20px;
}

.pd-variant-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

/* ---- Storage buttons (fixed 4 equal columns) ---- */
.pd-storage-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pd-storage-btn {
    padding: 12px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    font-family: 'Signika', sans-serif;
    box-sizing: border-box;
}

.pd-storage-btn:hover {
    border-color: #dc2626;
}

.pd-storage-btn.selected {
    border-color: #dc2626;
    background: #fff;
}

.pd-storage-btn.selected::after {
    content: 'âœ“';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    border-radius: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-storage-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.pd-storage-price {
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

/* ---- Color buttons (fixed 4 equal columns) ---- */
.pd-color-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.pd-color-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-family: 'Signika', sans-serif;
    box-sizing: border-box;
}

.pd-color-btn:hover {
    border-color: #dc2626;
}

.pd-color-btn.selected {
    border-color: #dc2626;
}

.pd-color-btn.selected::after {
    content: 'âœ“';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    border-radius: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-color-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.pd-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-color-info {
    text-align: left;
}

.pd-color-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* ========== Buy Section (2 equal buttons) ========== */
.pd-buy-section {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-btn-buy,
.pd-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Signika', sans-serif;
    white-space: nowrap;
}

.pd-btn-buy:hover,
.pd-btn-cart:hover {
    background: #b91c1c;
}

.pd-btn-buy svg,
.pd-btn-cart svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========== Bottom Tabs (under product image, JS sets columns) ========== */
.pd-bottom-tabs {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.pd-bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 6px;
    border-radius: 10px;
    transition: all 0.2s;
    min-height: 78px;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    background: #f8fafc;
}

.pd-bottom-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pd-bottom-tab.active {
    background: #f0fdfa;
    border-color: #14b8a6;
}

.pd-bottom-tab-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pd-bottom-tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-bottom-tab-icon svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.pd-bottom-tab-label {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    font-family: 'Signika', sans-serif;
}

/* ========== Gallery Lightbox ========== */
.pd-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Signika', sans-serif;
}

.pd-gallery-overlay.show {
    display: flex;
}

.pd-gallery-box {
    background: #fff;
    border-radius: 16px;
    max-width: 1060px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pdGalleryIn 0.25s ease;
    overflow: hidden;
}

@keyframes pdGalleryIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Color tabs row */
.pd-gallery-color-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.pd-gallery-color-tab {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-family: 'Signika', sans-serif;
}

.pd-gallery-color-tab:hover {
    color: #1e293b;
}

.pd-gallery-color-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
}

.pd-gallery-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pd-gallery-close:hover {
    background: #e2e8f0;
}

.pd-gallery-close svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

/* Main image area */
.pd-gallery-main-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0;
    min-height: 0;
    background: #fff;
}

.pd-gallery-main-img {
    max-width: 80%;
    max-height: 55vh;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.pd-gallery-main-img.pd-slide-out {
    opacity: 0;
    transform: scale(0.95);
}

.pd-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.pd-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.12);
}

.pd-gallery-nav svg {
    width: 22px;
    height: 22px;
    color: #334155;
}

.pd-gallery-nav.prev {
    left: 16px;
}

.pd-gallery-nav.next {
    right: 16px;
}

/* Thumbnail strip */
.pd-gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 14px 20px 18px;
    overflow-x: auto;
    border-top: 1px solid #f1f5f9;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.pd-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.pd-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.pd-gallery-thumb:hover {
    border-color: #94a3b8;
}

.pd-gallery-thumb.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}

.pd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* ========== Spec Panel (slide from right) ========== */
.pd-spec-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: none;
    font-family: 'Signika', sans-serif;
}

.pd-spec-overlay.show {
    display: block;
}

.pd-spec-panel {
    position: fixed;
    top: 0;
    right: -540px;
    width: 520px;
    max-width: 92vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-spec-overlay.show .pd-spec-panel {
    right: 0;
}

.pd-spec-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.pd-spec-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Signika', sans-serif;
}

.pd-spec-panel-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pd-spec-panel-close:hover {
    background: #e2e8f0;
}

.pd-spec-panel-close svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

/* Spec Tabs */
.pd-spec-tabs {
    display: flex;
    gap: 0;
    padding: 0 22px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.pd-spec-tabs::-webkit-scrollbar {
    display: none;
}

.pd-spec-tab {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Signika', sans-serif;
}

.pd-spec-tab:hover {
    color: #1e293b;
}

.pd-spec-tab.active {
    color: #1e293b;
    border-bottom-color: #1e293b;
    font-weight: 700;
}

/* Spec Panel Body */
.pd-spec-panel-body {
    overflow-y: auto;
    padding: 0;
    flex: 1;
    scroll-behavior: smooth;
}

.pd-spec-group {
    padding: 0;
}

.pd-spec-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    padding: 16px 22px 10px;
    margin: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    font-family: 'Signika', sans-serif;
}

.pd-spec-group table {
    width: 100%;
    border-collapse: collapse;
}

.pd-spec-group tr {
    border-bottom: 1px solid #f1f1f1;
}

.pd-spec-group td {
    padding: 12px 22px;
    font-size: 14px;
    vertical-align: top;
    font-family: 'Signika', sans-serif;
}

.pd-spec-group td:first-child {
    width: 42%;
    color: #6b7280;
    font-weight: 400;
}

.pd-spec-group td:last-child {
    color: #111827;
    font-weight: 500;
}

.pd-spec-group tr:last-child {
    border-bottom: 1px solid #e2e8f0;
}

/* Multi-line spec value as bullet list */
.pd-spec-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
    font-family: 'Signika', sans-serif;
}

.pd-spec-list li {
    padding: 1px 0;
    line-height: 1.5;
}

/* ========== Promo Banner ========== */
.pd-promo-banner {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    height: 82px;
}

.pd-promo-banner-img {
    flex: 1;
    min-width: 0;
    height: 100%;
    line-height: 0;
}

.pd-promo-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-promo-banner-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Signika', sans-serif;
    flex-shrink: 0;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.pd-promo-banner-btn:hover {
    color: #dc2626;
}

.pd-promo-banner-btn svg {
    flex-shrink: 0;
}

/* ========== Description Section ========== */
.pd-spec-section {
    margin-top: 32px;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

.pd-spec-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .pd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pd-images {
        position: static;
    }

    .pd-product-name {
        font-size: 18px;
    }

    .pd-price-current {
        font-size: 24px;
    }

    .pd-main-image {
        aspect-ratio: auto;
        min-height: 300px;
    }

    .pd-storage-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-color-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-buy-section {
        grid-template-columns: 1fr;
    }
}

/* ========== Product Content Panel Body (rich HTML from CKEditor) ========== */
.pd-content-body {
    padding: 20px 22px;
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.8;
}

.pd-content-body h1,
.pd-content-body h2,
.pd-content-body h3,
.pd-content-body h4 {
    color: #0f172a;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Signika', sans-serif;
    line-height: 1.4;
}

.pd-content-body h1 {
    font-size: 22px;
    font-weight: 700;
}

.pd-content-body h2 {
    font-size: 19px;
    font-weight: 700;
}

.pd-content-body h3 {
    font-size: 17px;
    font-weight: 600;
}

.pd-content-body h4 {
    font-size: 15px;
    font-weight: 600;
}

.pd-content-body p {
    margin-bottom: 12px;
}

.pd-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.pd-content-body ul,
.pd-content-body ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.pd-content-body li {
    margin-bottom: 4px;
}

.pd-content-body blockquote {
    border-left: 4px solid #3b82f6;
    padding: 10px 16px;
    margin: 12px 0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.pd-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.pd-content-body table td,
.pd-content-body table th {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 14px;
}

.pd-content-body table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #334155;
}

.pd-content-body a {
    color: #2563eb;
    text-decoration: underline;
}

.pd-content-body strong,
.pd-content-body b {
    font-weight: 700;
    color: #0f172a;
}

/* ========== Video + Cam káº¿t sáº£n pháº©m Section ========== */
.pd-extra-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: stretch;
}

.pd-extra-box {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pd-extra-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'Signika', sans-serif;
}

.pd-extra-title svg {
    color: #dc2626;
    flex-shrink: 0;
}

.pd-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    flex: 1;
}

.pd-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.pd-commit-content {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-commit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-commit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: #334155;
    line-height: 1.55;
    font-family: 'Signika', sans-serif;
}

.pd-commit-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 50%;
}

.pd-commit-icon i {
    font-size: 16px;
    color: #dc2626;
}

/* ---- Review Section (inside pd-extra-box) ---- */
.pd-review-summary {
    font-size: 13px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 8px;
}

.pd-review-body {
    padding: 20px;
}

.pd-review-avg {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.pd-review-avg-stars {
    display: flex;
    gap: 2px;
}

.pd-star {
    width: 22px;
    height: 22px;
    fill: #e2e8f0;
    transition: fill 0.15s;
}

.pd-star.filled {
    fill: #f59e0b;
}

.pd-review-avg-text {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    font-family: 'Signika', sans-serif;
}

.pd-review-avg-count {
    font-size: 13px;
    color: #94a3b8;
    font-family: 'Signika', sans-serif;
}

/* Review Form */
.pd-review-form-area {
    margin-bottom: 20px;
}

.pd-review-login-msg,
.pd-review-done-msg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #64748b;
    font-family: 'Signika', sans-serif;
    line-height: 1.55;
}

.pd-review-login-msg svg,
.pd-review-done-msg svg {
    color: #dc2626;
    flex-shrink: 0;
}

.pd-review-login-msg a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
}

.pd-review-login-msg a:hover {
    text-decoration: underline;
}

.pd-review-done-msg {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.pd-review-done-msg svg {
    color: #15803d;
}

.pd-review-done-stars {
    display: flex;
    gap: 2px;
    margin-left: 4px;
}

.pd-review-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pd-review-label {
    font-size: 14px;
    color: #334155;
    margin: 0;
    font-family: 'Signika', sans-serif;
}

.pd-review-stars {
    display: flex;
    gap: 4px;
}

.pd-star-btn {
    width: 32px;
    height: 32px;
    fill: #e2e8f0;
    cursor: pointer;
    transition: fill 0.15s, transform 0.15s;
}

.pd-star-btn:hover,
.pd-star-btn.hover {
    fill: #fbbf24;
    transform: scale(1.15);
}

.pd-star-btn.selected {
    fill: #f59e0b;
}

.pd-review-submit {
    padding: 8px 24px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Signika', sans-serif;
    transition: background 0.2s, opacity 0.2s;
}

.pd-review-submit:hover {
    background: #b91c1c;
}

.pd-review-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pd-review-msg {
    font-size: 13px;
    font-family: 'Signika', sans-serif;
    min-height: 20px;
}

.pd-review-msg.success {
    color: #15803d;
}

.pd-review-msg.error {
    color: #dc2626;
}

/* Review List */
.pd-review-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pd-review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e2e8f0;
}

.pd-review-item:last-child {
    border-bottom: none;
}

.pd-review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ldm-primary, #A9CCF0), var(--ldm-secondary, #D3BAFF));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pd-review-user-info {
    display: flex;
    flex-direction: column;
}

.pd-review-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Signika', sans-serif;
}

.pd-review-date {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'Signika', sans-serif;
}

.pd-review-rating {
    display: flex;
    gap: 2px;
}

.pd-star-sm {
    width: 16px;
    height: 16px;
    fill: #e2e8f0;
}

.pd-star-sm.filled {
    fill: #f59e0b;
}

/* ---- Related Products Body (inside pd-extra-box) ---- */
.pd-extra-box:has(.pd-related-body) {
    overflow: visible;
}

.pd-related-body {
    padding: 20px;
}

/* Product Card - y há»‡t home */
.ldm-product-card {
    background: var(--ldm-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ldm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ldm-product-card.out-of-stock {
    opacity: 0.75;
}

/* Discount Ribbon */
.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.discount-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid #ef4444;
    border-bottom: 6px solid transparent;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.out-of-stock-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #6b7280;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 6;
}

@media (max-width: 768px) {
    .pd-extra-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pd-video-wrapper {
        aspect-ratio: 16 / 9;
    }

    .pd-review-body,
    .pd-related-body {
        padding: 16px;
    }

    .pd-related-body .ldm-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .ldm-product-card:hover {
        transform: translateY(-2px);
    }

    .pd-review-input {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}





/* ========== From profile.css ========== */
/* ==================== PROFILE PAGE STYLES ==================== */

/* Page Container */
/* ---- User Info Card (top) ---- */
.ldm-pf-info-card {
    background: var(--ldm-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
}

/* Avatar + Basic Info */
.ldm-pf-user {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 260px;
    padding-right: 28px;
    border-right: 1px solid var(--ldm-border);
}

.ldm-pf-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--ldm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ldm-pf-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--ldm-text-light);
}

.ldm-pf-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 2px;
}

.ldm-pf-detail {
    font-size: 14px;
    color: var(--ldm-text-light);
    line-height: 1.6;
}

/* Stats */
.ldm-pf-stats {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
}

.ldm-pf-stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 20px;
    border-right: 1px solid var(--ldm-border);
}

.ldm-pf-stat:last-child {
    border-right: none;
}

.ldm-pf-stat-icon {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--ldm-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    color: var(--ldm-text-light);
    font-size: 24px;
}

.ldm-pf-stat-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.ldm-pf-stat-content {
    display: flex;
    flex-direction: column;
}

.ldm-pf-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    line-height: 1.3;
}

.ldm-pf-stat-label {
    font-size: 13px;
    color: var(--ldm-text-light);
    margin-top: 2px;
    white-space: nowrap;
}

/* Rank Badge */
.ldm-pf-rank-icon {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--ldm-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    font-size: 24px;
}

.ldm-pf-rank-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.ldm-pf-rank-icon.bronze {
    color: #b87333;
}

.ldm-pf-rank-icon.silver {
    color: #9ca3af;
}

.ldm-pf-rank-icon.gold {
    color: #f59e0b;
}

.ldm-pf-rank-icon.diamond {
    color: #3b82f6;
}

.ldm-pf-rank-label {
    font-size: 15px;
    font-weight: 600;
}

.ldm-pf-rank-label.bronze {
    color: #b87333;
}

.ldm-pf-rank-label.silver {
    color: #9ca3af;
}

.ldm-pf-rank-label.gold {
    color: #f59e0b;
}

.ldm-pf-rank-label.diamond {
    color: #3b82f6;
}

/* Logout Button in top card */
.ldm-pf-logout-section {
    padding-left: 24px;
    flex-shrink: 0;
}

.ldm-pf-logout-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--ldm-border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--ldm-text-light);
    font-family: 'Signika', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.ldm-pf-logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.ldm-pf-logout-btn svg {
    width: 28px;
    height: 28px;
}

/* ---- Tab Navigation ---- */
.ldm-pf-tabs {
    background: var(--ldm-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    margin-bottom: 24px;
}

/* Tab Panels Order - Sáº¯p xáº¿p thá»© tá»± hiá»ƒn thá»‹ */
.ldm-pf-tab-panel {
    display: none;
}

.ldm-pf-tab-panel.active {
    display: block;
}

/* Order: Sá»• Ä‘á»‹a chá»‰ máº­t -> Äá»•i máº­t kháº©u -> Student -> Coupon -> History -> Refund */
#tab-address {
    order: 1;
}

#tab-password {
    order: 2;
}

#tab-student {
    order: 3;
}

#tab-coupon {
    order: 4;
}

#tab-history {
    order: 5;
}

#tab-refund {
    order: 6;
}

#tab-address.active {
    display: block;
}

#tab-password.active {
    display: block;
}

#tab-student.active {
    display: block;
}

#tab-coupon.active {
    display: block;
}

#tab-history.active {
    display: block;
}

#tab-refund.active {
    display: block;
}

.ldm-pf-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ldm-text-light);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.ldm-pf-tab:hover {
    color: var(--ldm-text);
    background: var(--ldm-bg);
}

.ldm-pf-tab.active {
    color: var(--ldm-primary-dark);
    border-bottom-color: var(--ldm-primary);
    font-weight: 600;
}

.ldm-pf-tab svg,
.ldm-pf-tab i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

/* ---- Tab Content Area ---- */
.ldm-pf-content {
    background: var(--ldm-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 32px;
    min-height: 200px;
}

/* Empty state inside tab */
.ldm-pf-empty {
    text-align: center;
    padding: 40px 0;
}

.ldm-pf-empty svg {
    width: 80px;
    height: 80px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.ldm-pf-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 8px;
}

.ldm-pf-empty p {
    font-size: 15px;
    color: var(--ldm-text-light);
    margin-bottom: 20px;
}

/* ---- Address Book ---- */
.ldm-pf-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.ldm-pf-addr-section {
    display: flex;
    flex-direction: column;
}

.ldm-pf-addr-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-pf-addr-title i {
    font-size: 20px;
    color: var(--ldm-primary);
}

.ldm-pf-addr-form .ldm-form-group {
    margin-bottom: 16px;
}

.ldm-pf-addr-form .ldm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ldm-pf-addr-form select.ldm-input {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.ldm-pf-addr-form .ldm-addr-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ldm-pf-addr-form .ldm-addr-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ldm-primary);
    cursor: pointer;
}

.ldm-pf-addr-form .ldm-addr-checkbox-row label {
    font-size: 14px;
    color: var(--ldm-text);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* Address List */
.ldm-pf-addr-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ldm-pf-addr-card {
    border: 1.5px solid var(--ldm-border);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    transition: all 0.2s;
}

.ldm-pf-addr-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ldm-pf-addr-card.is-default {
    border-color: var(--ldm-primary);
    background: rgba(169, 204, 240, 0.05);
}

.ldm-pf-addr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ldm-pf-addr-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ldm-text);
}

.ldm-pf-addr-phone {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-left: 8px;
}

.ldm-pf-addr-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--ldm-primary);
    color: white;
}

.ldm-pf-addr-detail {
    font-size: 13px;
    color: var(--ldm-text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.ldm-pf-addr-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-pf-addr-actions button {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--ldm-border);
    background: white;
    color: var(--ldm-text);
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ldm-pf-addr-actions button:hover {
    border-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.ldm-pf-addr-actions button.ldm-addr-del:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.ldm-pf-addr-actions button.ldm-addr-set-default {
    border-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.ldm-pf-addr-actions button.ldm-addr-set-default:hover {
    background: var(--ldm-primary);
    color: white;
}

/* ---- Change Password Form ---- */
.ldm-pf-pw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.ldm-pf-pw-section {
    display: flex;
    flex-direction: column;
}

.ldm-pf-pw-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-pf-pw-title i {
    font-size: 20px;
    color: var(--ldm-primary);
}

.ldm-pf-form {
    max-width: 100%;
}

.ldm-pf-form .ldm-form-group {
    margin-bottom: 20px;
}

/* Password History */
.ldm-pf-pw-history {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ldm-pf-pw-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ldm-border);
}

.ldm-pf-pw-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ldm-border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ldm-text);
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
}

.ldm-pf-pw-page-btn:hover {
    border-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.ldm-pf-pw-page-btn.active {
    background: var(--ldm-primary);
    border-color: var(--ldm-primary);
    color: white;
}

.ldm-pf-pw-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ldm-pf-pw-page-btn:disabled:hover {
    border-color: var(--ldm-border);
    color: var(--ldm-text);
}

.ldm-pf-pw-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ldm-border);
}

.ldm-pf-pw-item:last-child {
    border-bottom: none;
}

.ldm-pf-pw-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.ldm-pf-pw-item-info {
    flex: 1;
    min-width: 0;
}

.ldm-pf-pw-item-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--ldm-text);
}

.ldm-pf-pw-item-detail {
    font-size: 12px;
    color: var(--ldm-text-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Order History (inside tab) ---- */
.ldm-pf-order {
    border: 1px solid var(--ldm-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.2s;
}

.ldm-pf-order:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ldm-pf-order:last-child {
    margin-bottom: 0;
}

.ldm-pf-order-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ldm-pf-order-id {
    font-size: 16px;
    font-weight: 600;
    color: var(--ldm-text);
}

.ldm-pf-order-id span {
    color: var(--ldm-primary-dark);
}

.ldm-pf-order-date {
    font-size: 13px;
    color: var(--ldm-text-light);
}

.ldm-pf-order-product {
    font-size: 13px;
    color: var(--ldm-text);
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldm-pf-order-more {
    font-size: 12px;
    color: var(--ldm-primary-dark);
    font-style: italic;
}

.ldm-pf-order-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ldm-pf-order-amount {
    font-size: 17px;
    font-weight: 700;
    color: #dc2626;
}

/* Status badge (reuse order tracking) */
.ldm-pf-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ldm-pf-status.awaiting_payment {
    background: #fef9c3;
    color: #854d0e;
}

.ldm-pf-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.ldm-pf-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.ldm-pf-status.shipped {
    background: #e0e7ff;
    color: #4f46e5;
}

.ldm-pf-status.delivered {
    background: #d1fae5;
    color: #059669;
}

.ldm-pf-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* ---- Coupon Grid 3x3 ---- */
.ldm-pf-coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ldm-pf-coupon-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    border: 1px solid #e2e8f0;
}

.ldm-pf-coupon-pagination .ldm-pf-pw-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ldm-border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ldm-text);
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
}

.ldm-pf-coupon-pagination .ldm-pf-pw-page-btn:hover {
    border-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.ldm-pf-coupon-pagination .ldm-pf-pw-page-btn.active {
    background: var(--ldm-primary);
    border-color: var(--ldm-primary);
    color: white;
}

.ldm-pf-coupon-pagination .ldm-pf-pw-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ldm-pf-coupon-pagination .ldm-pf-pw-page-btn:disabled:hover {
    border-color: var(--ldm-border);
    color: var(--ldm-text);
}

/* Responsive Coupon Grid */
@media (max-width: 1024px) {
    .ldm-pf-coupon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ldm-pf-coupon-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Order History Grid 3x3 ---- */
.ldm-pf-order-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ldm-pf-order-card {
    background: var(--ldm-white);
    border: 1px solid var(--ldm-border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s;
}

.ldm-pf-order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ldm-pf-order-card .ldm-pf-order-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--ldm-text);
}

.ldm-pf-order-card .ldm-pf-order-id span {
    color: var(--ldm-primary-dark);
}

.ldm-pf-order-card .ldm-pf-order-date {
    font-size: 12px;
    color: var(--ldm-text-light);
}

.ldm-pf-order-card .ldm-pf-order-product {
    font-size: 12px;
    color: var(--ldm-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ldm-pf-order-card .ldm-pf-order-more {
    font-size: 11px;
    color: var(--ldm-primary-dark);
    font-style: italic;
}

.ldm-pf-order-card .ldm-pf-order-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--ldm-border);
}

.ldm-pf-order-card .ldm-pf-order-amount {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
}

.ldm-pf-order-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ldm-border);
}

.ldm-pf-order-pagination .ldm-pf-pw-page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ldm-border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ldm-text);
    font-family: 'Signika', sans-serif;
    transition: all 0.2s;
}

.ldm-pf-order-pagination .ldm-pf-pw-page-btn:hover {
    border-color: var(--ldm-primary);
    color: var(--ldm-primary);
}

.ldm-pf-order-pagination .ldm-pf-pw-page-btn.active {
    background: var(--ldm-primary);
    border-color: var(--ldm-primary);
    color: white;
}

.ldm-pf-order-pagination .ldm-pf-pw-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ldm-pf-order-pagination .ldm-pf-pw-page-btn:disabled:hover {
    border-color: var(--ldm-border);
    color: var(--ldm-text);
}

/* Responsive Order Grid */
@media (max-width: 1024px) {
    .ldm-pf-order-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ldm-pf-order-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .ldm-pf-info-card {
        flex-wrap: wrap;
        gap: 20px;
    }

    .ldm-pf-user {
        border-right: none;
        padding-right: 0;
        min-width: unset;
        flex: 1 1 100%;
    }

    .ldm-pf-stats {
        flex: 1 1 100%;
    }

    .ldm-pf-logout-section {
        padding-left: 0;
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
    }

    .ldm-pf-logout-btn {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ldm-pf-info-card {
        padding: 20px;
    }

    .ldm-pf-stats {
        flex-wrap: wrap;
    }

    .ldm-pf-stat {
        flex: 1 1 50%;
        padding: 12px 8px;
        border-right: none;
        border-bottom: 1px solid var(--ldm-border);
    }

    .ldm-pf-tab {
        padding: 14px 16px;
        font-size: 14px;
    }

    .ldm-pf-content {
        padding: 20px;
    }

    .ldm-pf-order {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ldm-pf-order-right {
        width: 100%;
        justify-content: space-between;
    }

    .ldm-pf-addr-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ldm-pf-addr-form .ldm-form-row {
        grid-template-columns: 1fr;
    }

    .ldm-pf-pw-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Refund Section ---- */
.ldm-pf-refund-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ldm-pf-refund-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.ldm-pf-refund-list h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 16px;
}

.ldm-pf-refund-history {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
}

.ldm-pf-refund-history h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 16px;
}

/* Refund Table */
.ldm-refund-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.ldm-refund-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.ldm-refund-table th {
    padding: 8px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
}

.ldm-refund-table td {
    padding: 8px;
    border-bottom: 1px solid #f1f5f9;
}

/* ---- Student Verification ---- */
.ldm-pf-student-verified {
    display: none;
}

.ldm-pf-student-verified-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ldm-pf-student-verified-icon svg {
    width: 32px;
    height: 32px;
}

.ldm-pf-student-verified-title {
    display: block;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 24px;
}

.ldm-pf-student-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #d1fae5;
    color: #059669;
    border-radius: 8px;
    font-weight: 500;
}

.ldm-pf-student-status-badge svg {
    width: 20px;
    height: 20px;
}

.ldm-pf-student-desc {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-bottom: 20px;
}

.ldm-pf-student-message {
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 20px;
}

.ldm-pf-student-voucher-code {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border-radius: 12px;
}

.ldm-pf-student-voucher-code-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 16px;
}

.ldm-pf-student-voucher-code-discount {
    font-size: 36px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 8px;
}

.ldm-pf-student-voucher-code-limit {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-bottom: 16px;
}

.ldm-pf-student-voucher-code-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ldm-pf-student-voucher-code-label {
    font-size: 12px;
    color: var(--ldm-text-light);
    margin-bottom: 4px;
}

.ldm-pf-student-voucher-code-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-primary);
    letter-spacing: 2px;
}

.ldm-pf-student-voucher-code-expire {
    font-size: 13px;
    color: var(--ldm-text-light);
}

.ldm-pf-student-voucher-used {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: #fef3c7;
    border-radius: 12px;
}

.ldm-pf-student-voucher-used-icon {
    width: 24px;
    height: 24px;
    color: #d97706;
}

.ldm-pf-student-voucher-used-text {
    font-size: 16px;
    font-weight: 600;
    color: #d97706;
}

.ldm-pf-student-voucher-expired {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: #fee2e2;
    border-radius: 12px;
}

.ldm-pf-student-voucher-expired-icon {
    width: 24px;
    height: 24px;
    color: #dc2626;
}

.ldm-pf-student-voucher-expired-text {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
}

/* ============================================
   MODAL STYLES (dÃ¹ng chung cho QHConfirm)
   ============================================ */
.ldm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ldm-modal.active {
    display: flex;
}

.ldm-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: qhModalFadeIn 0.2s ease;
}

@keyframes qhModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ldm-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 12px;
}

.ldm-modal-text {
    font-size: 14px;
    color: var(--ldm-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.ldm-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ldm-btn-cancel {
    background: #E0E0E0;
    color: #333;
}

.ldm-btn-cancel:hover {
    background: #d0d0d0;
}

.ldm-btn-primary {
    background: var(--ldm-primary);
    color: white;
}

.ldm-btn-primary:hover {
    background: #2563eb;
}

/* ==================== PROFILE PAGE - Inline Styles from profile.html ==================== */

.profile-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.profile-tab-btn svg {
    width: 18px;
    height: 18px;
}

.profile-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-form-group {
    margin-bottom: 24px;
}

.profile-form-group:last-child {
    margin-bottom: 0;
}

.profile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.profile-form-input,
.profile-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.profile-form-input:focus,
.profile-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-form-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-form-button {
    padding: 12px 32px;
    background: #5b4eff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.profile-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.form-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 4px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .profile-header {
        padding: 30px 20px;
    }
    
    .profile-header h1 {
        font-size: 24px;
    }
}



/* ========== From search.css ========== */
/* ==================== SEARCH PAGE STYLES ==================== */

/* Page Container */
.ldm-search-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Title */
.ldm-search-page .ldm-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 20px;
}

/* Search Info Box */
.ldm-search-info {
    background: var(--ldm-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ldm-search-info h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 8px;
}

.ldm-search-info p {
    color: var(--ldm-text-light);
    font-size: 14px;
}

/* Brand Badge */
.ldm-brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--ldm-primary), var(--ldm-secondary));
    color: var(--ldm-text);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

/* Product Grid - 5 products per row */
.ldm-search-page .ldm-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Product Card - Clean Layout */
.ldm-product-card {
    background: var(--ldm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--ldm-white);
}

.ldm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ldm-product-card:hover .ldm-product-image img {
    transform: scale(1.08);
}

.ldm-product-card .ldm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.ldm-product-card.out-of-stock {
    opacity: 0.75;
}

/* Product Image */
.ldm-product-card .ldm-product-image {
    position: relative;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
}

/* Discount Ribbon */
.ldm-product-card .discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1;
}

.ldm-product-card .discount-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid #ef4444;
    border-bottom: 6px solid transparent;
}

/* Wishlist Button */
.ldm-product-card .wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.ldm-product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.ldm-product-card .wishlist-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    fill: none;
    transition: all 0.3s ease;
}

.ldm-product-card .wishlist-btn:hover svg {
    stroke: #ef4444;
    transform: scale(1.1);
}

.ldm-product-card .wishlist-btn.liked svg {
    stroke: #ef4444;
    fill: #ef4444;
}

/* Out of Stock Overlay */
.ldm-product-card .out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5;
}

/* Product Info */
.ldm-product-card .ldm-product-info {
    padding: 12px 14px 14px;
    border-top: 1px solid #f0f0f0;
}

/* Product Name */
.ldm-product-card .ldm-product-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 4px;
    line-height: 1.4;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price */
.ldm-product-card .ldm-product-price {
    margin-bottom: 6px;
}

.ldm-product-card .ldm-product-price .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 1px;
}

.ldm-product-card .ldm-product-price .discounted-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

.ldm-product-card .ldm-product-price .regular-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-primary);
}

/* Status Row */
.ldm-product-card .ldm-product-status {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ldm-product-card .ldm-product-status .status-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
}

.ldm-product-card .ldm-product-status .in-stock {
    color: #059669;
    background: #d1fae5;
}

.ldm-product-card .ldm-product-status .installment {
    color: #d97706;
    background: #fef3c7;
}

.ldm-product-card .ldm-product-status .out-of-stock {
    color: #dc2626;
    background: #fee2e2;
}

/* Compare Button */
.ldm-product-card .ldm-compare-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 12px;
    border: 1px solid var(--ldm-border);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Pagination */
.ldm-search-page .ldm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ldm-search-page .ldm-pagination a,
.ldm-search-page .ldm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.ldm-search-page .ldm-pagination a {
    background: var(--ldm-white);
    color: var(--ldm-text);
    border: 1px solid var(--ldm-border);
}

.ldm-search-page .ldm-pagination a:hover {
    background: var(--ldm-primary);
    border-color: var(--ldm-primary);
    color: var(--ldm-text);
}

.ldm-search-page .ldm-pagination .current {
    background: var(--ldm-primary);
    border-color: var(--ldm-primary);
    color: var(--ldm-text);
    font-weight: 600;
}

/* No Results */
.ldm-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--ldm-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ldm-no-results svg {
    width: 80px;
    height: 80px;
    color: var(--ldm-text-light);
    margin-bottom: 20px;
}

.ldm-no-results h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 8px;
}

.ldm-no-results p {
    color: var(--ldm-text-light);
    font-size: 14px;
}

/* Placeholder Image */
.ldm-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ldm-text-light);
}

.ldm-product-placeholder svg {
    width: 64px;
    height: 64px;
}

/* Responsive */
@media (max-width: 1200px) {
    .ldm-search-page .ldm-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .ldm-search-page .ldm-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ldm-search-page .ldm-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ldm-product-card .ldm-product-name {
        font-size: 14px;
        min-height: 36px;
    }

    .ldm-product-card .ldm-product-price .discounted-price,
    .ldm-product-card .ldm-product-price .regular-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ldm-search-page .ldm-product-grid {
        grid-template-columns: 1fr;
    }
}




/* ========== From vietqr_payment.css ========== */
/* ==================== VIETQR PAYMENT PAGE STYLES ====================
   Äá»“ng bá»™: var(--ldm-card-bg), border-radius 12px,
   box-shadow 0 2px 8px, font, spacing giá»‘ng cart/checkout/order_tracking
   ============================================================ */

/* Page container */
.ldm-vqr-page {
    padding: 0;
}

.ldm-vqr-page .ldm-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 24px;
}

/* Wrapper card */
.ldm-vqr-wrapper {
    background: var(--ldm-card-bg, var(--ldm-white));
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ==================== HEADER ==================== */
.ldm-vqr-header {
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--ldm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ldm-vqr-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ldm-vqr-header-left i {
    font-size: 22px;
    color: var(--ldm-primary);
}

.ldm-vqr-header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
}

.ldm-vqr-header-sub {
    font-size: 12px;
    color: var(--ldm-text-light);
    margin-top: 1px;
}

/* Timer badge */
.ldm-vqr-timer-badge {
    background: var(--ldm-white);
    border: 1.5px solid var(--ldm-border);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
}

.ldm-vqr-timer-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--ldm-text-light);
    margin-bottom: 1px;
}

.ldm-vqr-timer-value {
    font-size: 22px;
    font-weight: 800;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.ldm-vqr-timer-value.warning {
    animation: qhVqrBlink 1s ease infinite;
}

@keyframes qhVqrBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==================== QR BODY ==================== */
.ldm-vqr-body {
    padding: 24px;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

/* QR image wrapper */
.ldm-vqr-qr-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ldm-vqr-qr-img {
    width: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ldm-border);
    background: #fff;
}

.ldm-vqr-qr-img img {
    width: 100%;
    height: auto;
    display: block;
}

.ldm-vqr-qr-hint {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--ldm-text-light);
    font-weight: 500;
}

/* Notice in QR wrap */
.ldm-vqr-qr-wrap .ldm-vqr-notice {
    margin-top: 12px;
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    white-space: normal;
}

/* Info section */
.ldm-vqr-info {
    flex: 1;
    min-width: 0;
}

.ldm-vqr-info-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ldm-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldm-vqr-info-title i {
    font-size: 18px;
    color: var(--ldm-primary);
}

.ldm-vqr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ldm-border);
    font-size: 14px;
}

.ldm-vqr-row:last-child {
    border-bottom: none;
}

.ldm-vqr-row .lbl {
    color: var(--ldm-text-light);
    font-weight: 500;
}

.ldm-vqr-row .val {
    color: var(--ldm-text);
    font-weight: 600;
    text-align: right;
}

.ldm-vqr-row .val.amount {
    color: var(--ldm-primary);
    font-size: 16px;
    font-weight: 700;
}

.ldm-vqr-row .val.code {
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==================== FOOTER ==================== */
.ldm-vqr-footer {
    display: none;
}

/* Notice */
.ldm-vqr-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldm-vqr-notice i {
    font-size: 14px;
    color: #f59e0b;
    flex-shrink: 0;
}

/* Status polling indicator */
.ldm-vqr-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ldm-text-light);
    white-space: nowrap;
}

.ldm-vqr-status i {
    font-size: 18px;
    color: var(--ldm-primary);
}

.ldm-vqr-status .dot-pulse {
    display: inline-flex;
    gap: 3px;
}

.ldm-vqr-status .dot-pulse span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ldm-primary);
    animation: qhDotPulse 1.4s infinite ease-in-out both;
}

.ldm-vqr-status .dot-pulse span:nth-child(2) {
    animation-delay: 0.2s;
}

.ldm-vqr-status .dot-pulse span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes qhDotPulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Actions row */
.ldm-vqr-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ldm-border);
}

.ldm-vqr-btn-cancel {
    display: inline-block;
    padding: 10px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ldm-vqr-btn-cancel:hover {
    background: #ef4444;
    border-color: #dc2626;
    color: #fff;
}

/* ==================== EXPIRED STATE ==================== */
.ldm-vqr-expired {
    display: none;
}

.ldm-vqr-expired-hero {
    text-align: center;
    padding: 40px 24px 32px;
}

.ldm-vqr-expired-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: qhVqrPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

@keyframes qhVqrPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ldm-vqr-expired-icon i {
    font-size: 38px;
    color: #fff;
}

.ldm-vqr-expired-hero h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldm-text);
    margin: 0 0 8px;
}

.ldm-vqr-expired-hero p {
    font-size: 14px;
    color: var(--ldm-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Expired actions */
.ldm-vqr-expired-actions {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

/* Buttons */
.ldm-vqr-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: 'Signika', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--ldm-border);
    background: var(--ldm-white);
    color: var(--ldm-text);
    transition: all 0.2s;
}

.ldm-vqr-btn:hover {
    border-color: var(--ldm-primary);
    background: rgba(169, 204, 240, 0.08);
}

.ldm-vqr-btn:active {
    transform: scale(0.98);
}

.ldm-vqr-btn i {
    font-size: 17px;
}

.ldm-vqr-btn.primary {
    background: linear-gradient(135deg, var(--ldm-primary), var(--ldm-primary-dark));
    border-color: var(--ldm-primary-dark);
    box-shadow: 0 4px 12px rgba(169, 204, 240, 0.4);
}

.ldm-vqr-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(169, 204, 240, 0.5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .ldm-vqr-body {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    .ldm-vqr-qr-wrap {
        flex: 1;
        align-items: center;
    }

    .ldm-vqr-qr-img {
        width: 250px;
    }

    .ldm-vqr-info {
        width: 100%;
    }

    .ldm-vqr-actions {
        flex-direction: column;
        gap: 10px;
    }

    .ldm-vqr-btn-cancel {
        width: 100%;
        text-align: center;
    }

    .ldm-vqr-header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .ldm-vqr-header-left {
        justify-content: center;
    }

    .ldm-vqr-expired-actions {
        padding: 0 20px 28px;
    }
}




/* ========== From wishlist.css ========== */
/* ==================== WISHLIST PAGE STYLES ==================== */

/* Wishlist Page Container */
.ldm-wishlist-page {
    padding: 0;
}

/* Page Title */
.ldm-wishlist-page .ldm-page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 24px;
}

/* Product Grid - 5 products per row */
.ldm-wishlist-page .ldm-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Product Card - Clean Layout */
.ldm-product-card {
    background: var(--ldm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--ldm-white);
}

.ldm-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ldm-product-card:hover .ldm-product-image img {
    transform: scale(1.08);
}

.ldm-product-card .ldm-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    transform: scale(1);
}

.ldm-product-card.out-of-stock {
    opacity: 0.75;
}

/* Product Image */
.ldm-product-card .ldm-product-image {
    position: relative;
    aspect-ratio: 1;
    background: #ffffff;
    overflow: hidden;
}

/* Discount Ribbon */
.ldm-product-card .discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ef4444;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    border-radius: 0 0 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    line-height: 1;
}

.ldm-product-card .discount-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid #ef4444;
    border-bottom: 6px solid transparent;
}

/* Wishlist Heart Button */
.ldm-product-card .wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
}

.ldm-product-card:hover .wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

.ldm-product-card .wishlist-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    fill: none;
    transition: all 0.3s ease;
}

.ldm-product-card .wishlist-btn:hover svg {
    stroke: #ef4444;
    transform: scale(1.1);
}

.ldm-product-card .wishlist-btn.liked svg {
    stroke: #ef4444;
    fill: #ef4444;
}

/* Out of Stock Overlay */
.ldm-product-card .out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5;
}

/* Product Info */
.ldm-product-card .ldm-product-info {
    padding: 12px 14px 14px;
    border-top: 1px solid #f0f0f0;
}

/* Product Name */
.ldm-product-card .ldm-product-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--ldm-text);
    margin-bottom: 4px;
    line-height: 1.4;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price */
.ldm-product-card .ldm-product-price {
    margin-bottom: 6px;
}

.ldm-product-card .ldm-product-price .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 1px;
}

.ldm-product-card .ldm-product-price .discounted-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

.ldm-product-card .ldm-product-price .regular-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ldm-primary);
}

/* Status Row */
.ldm-product-card .ldm-product-status {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ldm-product-card .ldm-product-status .status-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    flex: 1;
    text-align: center;
}

.ldm-product-card .ldm-product-status .in-stock {
    color: #059669;
    background: #d1fae5;
}

.ldm-product-card .ldm-product-status .installment {
    color: #d97706;
    background: #fef3c7;
}

.ldm-product-card .ldm-product-status .out-of-stock {
    color: #dc2626;
    background: #fee2e2;
}

/* Compare Button */
.ldm-product-card .ldm-compare-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 12px;
    border: 1px solid var(--ldm-border);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Empty State */
.ldm-wishlist-page .ldm-card {
    padding: 60px;
    text-align: center;
}

.ldm-empty-heart {
    width: 120px;
    height: 120px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.ldm-wishlist-page .ldm-card h3 {
    color: var(--ldm-text);
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 600;
}

.ldm-wishlist-page .ldm-card p {
    color: var(--ldm-text-light);
    margin-bottom: 24px;
    font-size: 16px;
}

/* Pagination */
.ldm-wishlist-page .ldm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .ldm-wishlist-page .ldm-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .ldm-wishlist-page .ldm-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ldm-wishlist-page .ldm-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ldm-product-card .ldm-product-name {
        font-size: 14px;
        min-height: 36px;
    }

    .ldm-product-card .ldm-product-price .discounted-price,
    .ldm-product-card .ldm-product-price .regular-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ldm-wishlist-page .ldm-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== WISHLIST PAGE - Inline Styles from wishlist.html ==================== */
.wishlist-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.wishlist-header {
    background: white;
    color: #1f2937;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.wishlist-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.wishlist-header p {
    font-size: 16px;
    opacity: 0.9;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.wishlist-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.wishlist-item-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.wishlist-item-remove:hover {
    background: #c2185b;
    transform: scale(1.1);
}

.wishlist-item-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    flex: 1;
}

.wishlist-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.wishlist-item-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.btn-view-detail {
    padding: 10px 16px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
}

.btn-view-detail:hover {
    background: #667eea;
    color: white;
}

.btn-add-cart {
    padding: 10px 16px;
    background: #5b4eff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
}

.empty-wishlist svg {
    width: 100px;
    height: 100px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-wishlist h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-wishlist p {
    color: #666;
    margin-bottom: 30px;
}

.empty-wishlist a {
    display: inline-block;
    padding: 12px 30px;
    background: #5b4eff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-wishlist a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .wishlist-item-image {
        height: 150px;
    }
    
    .wishlist-item-info {
        padding: 15px;
    }
    
    .wishlist-item-actions {
        grid-template-columns: 1fr;
    }
}





/* ========== Dashboard / User Profile Page ========== */
.ldm-dashboard-wrapper {
    background: #f9fafb;
    min-height: 100vh;
    padding: 20px 0;
}

.ldm-dashboard-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.ldm-dashboard-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.ldm-dashboard-header p {
    color: #666;
    font-size: 16px;
}

.ldm-dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
}

.ldm-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ldm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ldm-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.ldm-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ldm-stat-card.card-blue {
    border-left-color: #3b82f6;
}

.ldm-stat-card.card-green {
    border-left-color: #10b981;
}

.ldm-stat-card.card-orange {
    border-left-color: #f59e0b;
}

.ldm-stat-card.card-red {
    border-left-color: #ef4444;
}

.ldm-stat-card.card-purple {
    border-left-color: #8b5cf6;
}

.ldm-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ldm-stat-title {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
}

.ldm-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
}

.ldm-stat-card.card-blue .ldm-stat-icon {
    background: #3b82f6;
}

.ldm-stat-card.card-green .ldm-stat-icon {
    background: #10b981;
}

.ldm-stat-card.card-orange .ldm-stat-icon {
    background: #f59e0b;
}

.ldm-stat-card.card-red .ldm-stat-icon {
    background: #ef4444;
}

.ldm-stat-card.card-purple .ldm-stat-icon {
    background: #8b5cf6;
}

.ldm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.ldm-stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* Products Section */
.ldm-products-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ldm-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ldm-products-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ldm-products-table {
    width: 100%;
    border-collapse: collapse;
}

.ldm-products-table thead tr {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.ldm-products-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
}

.ldm-products-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s;
}

.ldm-products-table tbody tr:hover {
    background: #f9fafb;
}

.ldm-products-table td {
    padding: 16px;
    font-size: 14px;
}

.ldm-product-name {
    font-weight: 500;
    color: #333;
}

.ldm-product-category {
    color: #6b7280;
}

.ldm-product-price {
    color: #3b82f6;
    font-weight: 600;
}

.ldm-action-buttons {
    display: flex;
    gap: 8px;
}

.ldm-btn-edit,
.ldm-btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.ldm-btn-edit {
    background: #dbeafe;
    color: #1e40af;
}

.ldm-btn-edit:hover {
    background: #bfdbfe;
}

.ldm-btn-delete {
    background: #fee2e2;
    color: #991b1b;
    border: none;
}

.ldm-btn-delete:hover {
    background: #fecaca;
}

/* Empty State */
.ldm-empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.ldm-empty-message p {
    font-size: 16px;
    margin-bottom: 20px;
}

.ldm-empty-message a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.ldm-empty-message a:hover {
    text-decoration: underline;
}

/* Sidebar */
.ldm-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ldm-dashboard-sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ldm-sidebar-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.ldm-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldm-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.ldm-sidebar-btn:hover {
    background: #e5e7eb;
    color: #2563eb;
}

.ldm-sidebar-btn span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.ldm-sidebar-btn-users span:first-child {
    background: #3b82f6;
}

.ldm-sidebar-btn-categories span:first-child {
    background: #10b981;
}

.ldm-sidebar-btn-products span:first-child {
    background: #f59e0b;
}

/* Responsive Design for Dashboard */
@media (max-width: 1024px) {
    .ldm-dashboard-main {
        grid-template-columns: 1fr;
    }

    .ldm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .ldm-dashboard-wrapper {
        padding: 10px 0;
    }

    .ldm-dashboard-main {
        padding: 0 10px;
    }

    .ldm-dashboard-header {
        margin-bottom: 20px;
    }

    .ldm-dashboard-header h1 {
        font-size: 24px;
    }

    .ldm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ldm-stat-card {
        padding: 16px;
    }

    .ldm-stat-value {
        font-size: 20px;
    }

    .ldm-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ldm-products-table {
        font-size: 12px;
    }

    .ldm-products-table th,
    .ldm-products-table td {
        padding: 8px 12px;
    }

    .ldm-action-buttons {
        flex-direction: column;
    }

    .ldm-dashboard-sidebar {
        display: none;
    }
}

/* ========== ORDER TRACKING PAGE ========== */
.orders-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.orders-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
}

.order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.order-number {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.order-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.status-pending {
    background: #fef08a;
    color: #713f12;
}

.order-status.status-processing {
    background: #dbeafe;
    color: #082f49;
}

.order-status.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.order-status.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.order-status.status-cancelled {
    background: #fee2e2;
    color: #7f1d1d;
}

/* Order Details */
.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Order Items */
.order-items {
    background: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item span:first-child {
    color: #333;
    font-weight: 500;
    flex: 1;
}

.order-item span:last-child {
    color: #667eea;
    font-weight: 600;
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 12px;
    color: #6b7280;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: #ddd;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .orders-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .orders-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .order-card {
        padding: 16px;
        margin-bottom: 15px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
    }

    .order-details {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }

    .detail-label {
        font-size: 11px;
    }

    .detail-value {
        font-size: 14px;
    }

    .order-items {
        padding: 12px;
        margin-bottom: 15px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }

    .order-item span:last-child {
        width: 100%;
        text-align: left;
    }

    .order-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state svg {
        width: 60px;
        height: 60px;
    }

    .empty-state h3 {
        font-size: 20px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* ========== Product Detail Redesign ========== */
.pd-shell {
    background:
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 28%),
        linear-gradient(180deg, #fff6f6 0%, #f8fafc 22%, #f8fafc 100%);
    padding: 24px 0 56px;
}

.pd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 18px;
}

.pd-breadcrumb a {
    color: #dc2626;
}

.pd-title-wrap h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #111827;
}

.pd-meta-row,
.pd-score,
.pd-shortcuts,
.pd-actions,
.pd-slider-actions,
.pd-review-stars-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-score {
    color: #475569;
}

.pd-star,
.pd-review-stars-line span,
.pd-comment-stars span {
    color: #f59e0b;
}

.pd-ghost-btn {
    border: 1px solid #fecaca;
    background: #fff;
    color: #dc2626;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
}

.pd-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.pd-gallery-col,
.pd-info-col {
    min-width: 0;
}

.pd-gallery-panel,
.pd-buy-box,
.pd-description-card,
.pd-spec-card,
.pd-reviews-card,
.pd-related-card {
    background: #fff;
    border: 1px solid #f1d3d3;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.pd-gallery-panel,
.pd-buy-box,
.pd-description-card,
.pd-spec-card,
.pd-reviews-card {
    padding: 16px;
}

.pd-info-panel {
    position: sticky;
    top: 96px;
    width: 100%;
}

.pd-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff7f7 0%, #f5f7fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-main-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pd-hidden {
    display: none;
}

.pd-media-empty {
    color: #94a3b8;
    font-size: 14px;
}

.pd-zoom-lens {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pd-stage:hover .pd-zoom-lens {
    opacity: 1;
}

.pd-stage.pd-feature-mode .pd-zoom-lens {
    opacity: 0;
}

.pd-feature-panel {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(120deg, #d65d8c 0%, #efb089 100%);
    color: #fff;
}

.pd-feature-panel.pd-hidden {
    display: none;
}

.pd-feature-media {
    height: 100%;
    max-height: 220px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.pd-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pd-feature-copy h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.pd-feature-copy ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    max-height: 10.5em;
    overflow-y: auto;
    padding-right: 8px;
}

.pd-feature-copy li {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 860px) {
    .pd-feature-panel {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        overflow-y: auto;
    }

    .pd-feature-media {
        max-height: 210px;
    }

    .pd-feature-copy h3 {
        font-size: 24px;
    }

    .pd-feature-copy li {
        font-size: 14px;
    }
}

/* Navigation buttons for media gallery */
.pd-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pd-nav-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pd-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.pd-nav-prev {
    left: 12px;
}

.pd-nav-next {
    right: 12px;
}

.pd-thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pd-thumb {
    position: relative;
    height: 82px;
    border: 1px solid #f0d2d2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.pd-thumb.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.pd-thumb img,
.pd-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
}

/* ========== New Media Sections (Videos and Images) ========== */
.pd-media-section {
    margin-top: 18px;
}

.pd-media-section:first-of-type {
    margin-top: 20px;
}

.pd-media-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.pd-video-gallery,
.pd-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 2px;
}

.pd-video-thumb,
.pd-image-thumb {
    position: relative;
    height: 80px;
    width: 100%;
    border: 2px solid #f0d2d2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: block;
}

.pd-video-thumb:hover,
.pd-image-thumb:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.pd-video-thumb.is-active,
.pd-image-thumb.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.pd-video-thumb img,
.pd-video-thumb video,
.pd-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb-badge {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 600;
}

.pd-media-selector-btn {
    position: relative;
    height: 80px;
    width: 100%;
    border: 2px solid #f0d2d2;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.pd-media-selector-btn:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.pd-media-selector-btn.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.pd-media-selector-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.pd-media-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pd-feature-selector-btn {
    position: relative;
    height: 80px;
    width: 100%;
    border: 2px solid #f0d2d2;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.pd-feature-selector-btn:hover {
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.pd-feature-selector-btn.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.pd-feature-selector-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.pd-price-card {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
    border: 1px solid #fecaca;
}

.pd-price-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pd-sale-price {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #dc2626;
}

.pd-old-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pd-old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 15px;
}

.pd-discount-pill {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
}

.pd-tradein {
    min-width: 150px;
    text-align: right;
    color: #2563eb;
}

.pd-tradein span {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.pd-tradein strong {
    font-size: 24px;
    line-height: 1.05;
}

.pd-promo-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #fca5a5;
    color: #475569;
    font-size: 13px;
}

.pd-buy-box {
    display: grid;
    gap: 16px;
}

.pd-option-block {
    border: 1px solid #f1d3d3;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.pd-option-head,
.pd-spec-header,
.pd-section-head,
.pd-comment-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pd-option-block h3,
.pd-description-card h2,
.pd-spec-card h2,
.pd-reviews-card h2,
.pd-section-head h2 {
    font-size: 19px;
    margin: 0 0 10px;
    color: #111827;
}

.pd-option-head h3,
.pd-spec-header h2,
.pd-section-head h2,
.pd-reviews-card h2 {
    margin-bottom: 0;
}

.pd-selected-copy {
    color: #64748b;
    font-size: 14px;
}

.pd-variant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pd-option-card {
    min-height: 58px;
    border: 1px solid #f0d2d2;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.pd-option-card.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.pd-option-main {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.pd-option-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.pd-color-grid {
    display: grid;
    gap: 8px;
}

.pd-color-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #f0d2d2;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
}

.pd-color-card.is-active {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.pd-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

.pd-color-swatch[data-color="#e7e5e4"] {
    background: #e7e5e4;
}

.pd-color-swatch[data-color="#2d2f34"] {
    background: #2d2f34;
}

.pd-color-swatch[data-color="#72879a"] {
    background: #72879a;
}

.pd-color-swatch[data-color="#b6855f"] {
    background: #b6855f;
}

.pd-color-copy strong,
.pd-color-copy small {
    display: block;
}

.pd-color-copy strong {
    color: #111827;
    font-size: 14px;
}

.pd-color-copy small {
    color: #64748b;
    margin-top: 2px;
    font-size: 11px;
}

.pd-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pd-buy-btn,
.pd-cart-btn,
.pd-installment-btn,
.pd-review-submit,
.pd-slider-btn,
.pd-spec-more {
    border: none;
    cursor: pointer;
}

.pd-buy-btn,
.pd-cart-btn,
.pd-installment-btn {
    min-height: 48px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 16px;
}

.pd-buy-btn {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.pd-cart-btn {
    background: #111827;
    color: #fff;
}

.pd-installment-btn {
    grid-column: 1 / -1;
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pd-promo-box {
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
    border: 1px solid #fecaca;
    padding: 18px;
}

.pd-detail-stack {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.pd-promo-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.pd-promo-list {
    display: grid;
    gap: 10px;
}

.pd-promo-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
}

.pd-promo-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.pd-content-grid {
    display: block;
}

.pd-main-content {
    display: contents;
}

.pd-article {
    display: grid;
    gap: 18px;
}

.pd-article-section h3 {
    font-size: 22px;
    color: #111827;
    margin-bottom: 10px;
}

.pd-description-text {
    color: #334155;
    line-height: 1.85;
    font-size: 16px;
}

.pd-inline-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.pd-inline-media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.pd-spec-card {
    height: fit-content;
}

.pd-spec-card-left {
    margin-top: 18px;
}

.pd-reviews-card,
.pd-spec-card {
    width: 100%;
}

.pd-spec-more {
    border-radius: 999px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
}

.pd-spec-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.pd-spec-list-collapsed .pd-spec-extra {
    display: none;
}

.pd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.pd-spec-row:last-child {
    border-bottom: 0;
}

.pd-spec-row span {
    color: #64748b;
}

.pd-spec-row strong {
    text-align: right;
    color: #111827;
}

.pd-reviews-card {
    display: grid;
    gap: 18px;
}

.pd-review-score-big {
    font-size: 42px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
    margin: 8px 0;
}

.pd-review-count {
    color: #64748b;
    font-size: 14px;
}

.pd-review-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff7f7;
    border: 1px solid #fecaca;
    border-radius: 18px;
}

.pd-rating-picker {
    display: grid;
    gap: 10px;
}

.pd-rating-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pd-rate-chip input {
    display: none;
}

.pd-rate-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid #f0d2d2;
    background: #fff;
    color: #111827;
    font-weight: 600;
    cursor: pointer;
}

.pd-rate-chip input:checked + span {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.pd-review-textarea {
    width: 100%;
    border: 1px solid #f0d2d2;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    resize: vertical;
    min-height: 120px;
}

.pd-review-submit {
    justify-self: start;
    min-height: 46px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    padding: 0 22px;
    font-weight: 700;
}

.pd-comment-list {
    display: grid;
    gap: 14px;
}

.pd-comment-item,
.pd-empty-comment {
    border: 1px solid #f1d3d3;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.pd-comment-date {
    font-size: 13px;
    color: #94a3b8;
    margin: 6px 0 10px;
}

.pd-comment-item p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.pd-comment-stars .is-filled {
    color: #f59e0b;
}

.pd-comment-stars span:not(.is-filled) {
    color: #e5e7eb;
}

.pd-related {
    margin-top: 28px;
}

.pd-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 24px;
    line-height: 1;
}

.pd-related-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 270px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    margin-top: 16px;
}

.pd-related-card {
    overflow: hidden;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.pd-related-media {
    aspect-ratio: 1 / 1;
    background: #fff7f7;
}

.pd-related-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-related-body {
    padding: 16px;
}

.pd-related-body h3 {
    font-size: 16px;
    line-height: 1.45;
    color: #111827;
    margin-bottom: 8px;
    min-height: 46px;
}

.pd-related-price {
    font-size: 22px;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 4px;
}

.pd-related-sub {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .pd-main-grid,
    .pd-content-grid {
        grid-template-columns: 1fr;
    }

    .pd-info-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .pd-container {
        padding: 0 14px;
    }

    .pd-title-wrap h1 {
        font-size: 28px;
    }

    .pd-price-top,
    .pd-option-head,
    .pd-spec-header,
    .pd-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pd-tradein {
        text-align: left;
        min-width: 0;
    }

    .pd-sale-price,
    .pd-review-score-big {
        font-size: 34px;
    }

    .pd-variant-grid,
    .pd-inline-media-grid,
    .pd-actions {
        grid-template-columns: 1fr;
    }

    .pd-thumb-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pd-related-track {
        grid-auto-columns: 82%;
    }
}

/* ========== Filter Modal Styling ========== */
.ldm-filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    font-family: inherit;
}

.ldm-filter-modal.active {
    display: block;
}

.ldm-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: pointer;
    z-index: 999;
}

.ldm-filter-container {
    position: fixed;
    background: white;
    width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
    top: 80px;
    right: 20px;
    z-index: 1001;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ldm-filter-container::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.ldm-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.ldm-filter-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ldm-filter-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.ldm-filter-close:hover {
    color: #1f2937;
}

.ldm-filter-form {
    padding: 16px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.ldm-filter-group {
    margin-bottom: 18px;
}

.ldm-filter-group-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ldm-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ldm-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.ldm-filter-checkbox input[type="checkbox"],
.ldm-filter-checkbox input[type="radio"] {
    display: none;
}

.ldm-checkbox-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ldm-filter-checkbox input[type="checkbox"]:checked ~ .ldm-checkbox-custom,
.ldm-filter-checkbox input[type="radio"]:checked ~ .ldm-checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.ldm-filter-checkbox input[type="checkbox"]:checked ~ .ldm-checkbox-custom::after,
.ldm-filter-checkbox input[type="radio"]:checked ~ .ldm-checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.ldm-filter-label {
    font-size: 13px;
    color: #4b5563;
    transition: color 0.2s;
}

.ldm-filter-checkbox:hover .ldm-filter-label {
    color: #1f2937;
}

/* Price Range Slider */
.ldm-filter-price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ldm-price-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ldm-price-inputs input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    color: #374151;
}

.ldm-price-inputs input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.ldm-price-separator {
    color: #d1d5db;
    font-weight: 600;
}

.ldm-slider-container {
    position: relative;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    margin: 6px 0;
}

.ldm-slider {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 3px;
}

.ldm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ldm-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ldm-slider-track {
    position: absolute;
    height: 5px;
    background: #667eea;
    border-radius: 3px;
    top: 0;
}

.ldm-price-display {
    text-align: center;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* Filter Actions */
.ldm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.ldm-filter-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ldm-filter-btn-reset {
    background: #f3f4f6;
    color: #374151;
}

.ldm-filter-btn-reset:hover {
    background: #e5e7eb;
}

.ldm-filter-btn-submit {
    background: #667eea;
    color: white;
}

.ldm-filter-btn-submit:hover {
    background: #5568d3;
}

/* Responsive */
@media (max-width: 768px) {
    .ldm-filter-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .ldm-filter-container {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        top: 60px;
    }

    .ldm-filter-header h2 {
        font-size: 14px;
    }

    .ldm-filter-form {
        padding: 12px;
    }

    .ldm-filter-group {
        margin-bottom: 14px;
    }

    .ldm-filter-actions {
        flex-direction: column;
    }
}



/* ========== Additional Product Detail Styles ========== */
.pd-shell {
    font-family: "Times New Roman", Times, serif;
}

/* Thu nho cot phai (thong tin mua hang) */
.pd-main-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.pd-info-col {
    width: 100%;
    max-width: 540px;
    justify-self: end;
}

.pd-info-col .pd-price-card {
    padding: 12px;
}

.pd-info-col .pd-sale-price {
    font-size: 28px;
}

.pd-info-col .pd-option-block {
    padding: 12px;
}

.pd-info-col .pd-option-head h3 {
    font-size: 17px;
}

.pd-info-col .pd-option-main {
    font-size: 14px;
}

.pd-info-col .pd-option-card small,
.pd-info-col .pd-selected-copy {
    font-size: 12px;
}

.pd-info-col .pd-option-block {
    overflow: hidden;
}

#storage-options,
#ram-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#storage-options .pd-option-card,
#ram-options .pd-option-card {
    min-height: 56px;
    padding: 8px 10px;
    max-width: 100%;
}

#storage-options .pd-option-main,
#ram-options .pd-option-main {
    font-size: 13px;
    line-height: 1.2;
}

#storage-options .pd-option-card small,
#ram-options .pd-option-card small {
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 1024px) {
    .pd-info-col {
        max-width: 100%;
    }
}

.pd-ghost-btn {
    padding: 12px 16px;
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    height: 44px;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
    margin: 0;
}

.pd-ghost-btn:hover {
    border-color: #999;
    color: #333;
    background: #f5f5f5;
}

.pd-shortcuts {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-wishlist {
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    min-width: auto !important;
    height: 44px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.btn-wishlist:hover {
    border-color: #999 !important;
    color: #333 !important;
    background: #f5f5f5 !important;
}

.pd-spec-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pd-spec-modal-overlay.is-open {
    display: flex;
}

.pd-spec-modal {
    width: min(980px, 100%);
    max-height: min(88vh, 780px);
    background: #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Times New Roman", Times, serif;
}

.pd-spec-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.pd-spec-modal-header h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #111827;
}

.pd-spec-modal-close {
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #111827;
    font-size: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pd-spec-modal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 14px;
}

.pd-spec-tab-btn {
    border: 0;
    background: transparent;
    color: #4b5563;
    font-size: 24px;
    line-height: 1.2;
    padding: 14px 10px 13px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
}

.pd-spec-tab-btn.is-active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    font-weight: 700;
}

.pd-spec-modal-body {
    padding: 18px;
    overflow-y: auto;
}

.pd-spec-modal-section-title {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 30px;
}

.pd-spec-modal-section {
    margin-bottom: 22px;
    scroll-margin-top: 10px;
}

.pd-spec-modal-section:last-child {
    margin-bottom: 0;
}

.pd-spec-modal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.pd-spec-modal-table th,
.pd-spec-modal-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.pd-spec-modal-table tr:last-child th,
.pd-spec-modal-table tr:last-child td {
    border-bottom: 0;
}

.pd-spec-modal-table th {
    width: 34%;
    text-align: left;
    color: #2563eb;
    background: #f8fafc;
    font-weight: 600;
}

.pd-desc-card {
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
}

.pd-desc-header {
    margin-bottom: 14px;
}

.pd-desc-header h2 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.pd-desc-body {
    color: #374151;
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-line;
    max-height: 190px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.28s ease;
}

.pd-desc-body.is-expanded {
    max-height: 2000px;
}

.pd-desc-body::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pd-desc-body.is-expanded::after {
    opacity: 0;
}

.pd-desc-toggle {
    display: none;
    margin-top: 16px;
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-size: 15px;
    align-items: center;
    gap: 8px;
}

.pd-desc-card.has-long-text .pd-desc-toggle {
    display: inline-flex;
}

.pd-desc-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.pd-desc-toggle.is-expanded svg {
    transform: rotate(180deg);
}

.pd-color-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#color-options {
    display: flex !important;
    gap: 10px;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px;
}

#color-options .pd-color-card {
    flex: 0 0 154px !important;
    max-width: 154px;
    padding: 8px;
}

#color-options .pd-color-copy strong {
    font-size: 13px;
}

#color-options .pd-color-copy small {
    font-size: 11px;
}

@media (max-width: 768px) {
    .pd-spec-modal-overlay {
        padding: 0;
    }

    .pd-spec-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .pd-spec-modal-header h3 {
        font-size: 24px;
    }

    .pd-spec-tab-btn {
        font-size: 17px;
        padding: 12px 8px;
    }

    .pd-spec-modal-section-title {
        font-size: 22px;
    }

    .pd-spec-modal-table th,
    .pd-spec-modal-table td {
        padding: 10px 12px;
        font-size: 15px;
    }

    .pd-spec-empty {
        font-size: 16px;
    }

    #storage-options,
    #ram-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #color-options .pd-color-card {
        flex-basis: 138px;
        max-width: 138px;
    }
}



/* ========== Search Page Styles ========== */
.ldm-search-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.ldm-search-page .ldm-search-header {
    padding: 40px 20px;
    background: white;
    color: #1f2937;
}

.ldm-search-page .ldm-search-header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.ldm-search-page .ldm-search-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ldm-search-page .ldm-search-header p {
    font-size: 16px;
    margin: 0;
}

.ldm-search-page .ldm-search-header p span {
    font-weight: 600;
}

.ldm-search-results {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ldm-search-results .ldm-search-count {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.ldm-search-results .ldm-search-count strong {
    font-weight: 700;
}

.ldm-search-page .ldm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ldm-search-page .ldm-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ldm-search-page .ldm-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.ldm-search-page .ldm-product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.ldm-search-page .ldm-product-image-container {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.ldm-search-page .ldm-product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ldm-search-page .ldm-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.ldm-search-page .ldm-product-image-placeholder svg {
    width: 64px;
    height: 64px;
}

.ldm-search-page .ldm-product-info {
    padding: 15px;
}

.ldm-search-page .ldm-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ldm-search-page .ldm-product-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldm-search-page .ldm-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
}

.ldm-search-page .ldm-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ldm-search-page .ldm-btn-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.ldm-search-page .ldm-btn-view:hover {
    background: #1d4ed8;
}

.ldm-search-page .wishlist-btn-inline {
    padding: 8px 10px;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    color: #667eea;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ldm-search-page .wishlist-btn-inline:hover {
    border-color: #999;
    color: #333;
    background: #f5f5f5;
}

.ldm-search-page .wishlist-btn-inline svg {
    width: 16px;
    height: 16px;
}

.ldm-search-no-results {
    padding: 80px 20px;
    text-align: center;
}

.ldm-search-no-results .container {
    max-width: 1200px;
    margin: 0 auto;
}

.ldm-search-no-results svg {
    width: 80px;
    height: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.ldm-search-no-results h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.ldm-search-no-results p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.ldm-search-no-results a {
    display: inline-block;
    padding: 12px 30px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.ldm-search-no-results a:hover {
    background: #1d4ed8;
}



/* ========== Products Page Styles ========== */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-header {
    margin-bottom: 30px;
}

.products-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.products-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #999;
    color: #333;
    background: #f5f5f5;
}

.filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #999;
    color: #333;
    background: #f5f5f5;
}

.pagination .current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.empty-state .empty-state-link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.empty-state .empty-state-link:hover {
    background: #5a67d8;
}



/* ========== Checkout Page Styles ========== */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1f2937;
}

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

.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-product-summary {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    display: flex;
    gap: 16px;
}

.checkout-product-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-product-placeholder svg {
    width: 40px;
    height: 40px;
    color: #ccc;
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.checkout-product-quantity {
    margin: 0 0 8px;
    font-size: 13px;
    color: #666;
}

.checkout-product-price {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.checkout-product-original-price {
    margin: 4px 0 0;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.checkout-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-cart-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
}

.checkout-cart-item-image {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-cart-item-placeholder {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-cart-item-placeholder svg {
    width: 30px;
    height: 30px;
    color: #ccc;
}

.checkout-cart-item-info {
    flex: 1;
}

.checkout-cart-item-name {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.checkout-cart-item-quantity {
    margin: 0 0 4px;
    font-size: 12px;
    color: #666;
}

.checkout-cart-item-price {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

.checkout-default-address {
    margin-top: 16px;
}

.checkout-default-address label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkout-default-address input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 10px;
}

.checkout-default-address span {
    font-size: 14px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #d1d5db;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.payment-label strong {
    display: block;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.payment-label small {
    font-size: 13px;
    color: #6b7280;
}

.payment-option:has(input:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.checkout-summary {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.checkout-submit {
    width: 100%;
    padding: 14px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.checkout-submit:hover {
    background: #b91c1c;
}

.checkout-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .checkout-product-summary {
        flex-direction: column;
        text-align: center;
    }

    .checkout-cart-item {
        flex-direction: column;
        text-align: center;
    }
}
.order-summary-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.order-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    letter-spacing: 0.02em;
}

.order-summary-voucher {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
}

.order-summary-voucher input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
}

.order-summary-voucher button {
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #334155;
}

.order-summary-row:last-of-type {
    border-bottom: none;
}

.order-summary-value {
    font-weight: 700;
    color: #0f172a;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.order-summary-total span {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.order-summary-total-value {
    color: #dc2626;
    font-size: 20px;
}

.order-summary-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px 0;
    border-radius: 12px;
    background: #dc2626;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.order-summary-back {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.order-summary-back:hover {
    color: #0f172a;
}
