/* public/assets/css/customer/product-detail.css */
:root {
    --pd-primary: #004b91;
    --pd-primary-dark: #003a70;
    --orange-500: #fe8a02;
    --orange-600: #e67a02;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --light-blue: #ecf1f6;
    --border-radius: 12px;
}

.product-detail-wrapper {
    padding: 30px 0 60px;
    background: var(--slate-50);
}

.product-main-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

/* Image Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.main-image-wrap:hover {
    transform: scale(1.02);
}

.main-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.thumbnail-container {
    padding: 10px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 10px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.thumbnail-list::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-item:hover {
    border-color: var(--slate-300);
}

.thumb-item.active {
    border-color: var(--navy-800);
    box-shadow: 0 4px 12px rgba(0, 75, 145, 0.1);
}

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

/* Product Info */
.product-detail-info {
    padding-left: 10px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--slate-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-divider {
    width: 1px;
    height: 14px;
    background: var(--slate-200);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fca120;
}

.product-price-block {
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-label {
    font-size: 14px;
    color: var(--slate-400);
    font-weight: 500;
}

.original-price {
    font-size: 20px;
    color: var(--slate-400);
    text-decoration: line-through;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy-800);
}

/* Similar Products Section */
.similar-products-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f1f5f9;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0;
}

/* Sidebar Top Selling Products */
.sidebar-product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-product-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 10px;
}

.sidebar-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--navy-200);
}

.sidebar-product-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

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

.sidebar-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-800);
    margin-top: 4px;
}

/* Similar Products Section - Centered Clean Style */
.similar-products-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: none;
    border: 1px solid #f1f5f9;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-800);
}

.similar-product-item {
    text-align: center;
    padding: 10px;
}

.similar-product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
}

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

.similar-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    height: auto;
    margin-bottom: 5px;
}

.similar-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #2d3436;
}

/* See More Button */
.description-section {
    position: relative;
}

.description-text {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.description-text.expanded {
    max-height: none;
}

.description-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #fff);
}

.see-more-wrap {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.btn-see-more {
    background: #fff;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 8px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-see-more:hover {
    background: #3b82f6;
    color: #fff;
}

/* Color Selection */
.color-picker-wrap {
    margin-bottom: 28px;
}

.color-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 12px;
}

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

.color-item {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--slate-200);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-item:hover {
    transform: scale(1.1);
}

.color-item.active {
    box-shadow: 0 0 0 2px var(--navy-800);
    border: 3px solid #fff;
}

.color-item.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.color-item.light-color.active::after {
    color: var(--slate-800);
}

/* Quantity and Buttons */
.purchase-options {
    margin-top: 32px;
}

.qty-selector-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.qty-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-700);
    min-width: 40px;
}

.qty-controls {
    display: flex;
    align-items: center;
    background: var(--light-blue);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--navy-800);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-input {
    width: 48px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-800);
}

.total-price-wrap {
    font-size: 18px;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-price-wrap span {
    color: var(--navy-800);
    font-size: 24px;
}

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

.btn-buy-now {
    flex: 1.5;
    height: 52px;
    background: var(--orange-500);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy-now:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 138, 2, 0.3);
}

.btn-add-cart {
    flex: 1;
    height: 52px;
    background: var(--navy-800);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    padding: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart:hover {
    background: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 75, 145, 0.3);
}

.btn-wishlist-detail {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 18px;
    transition: all 0.3s;
}

.btn-wishlist-detail:hover,
.btn-wishlist-detail.active {
    color: #ef4444;
    border-color: #fecaca;
    background: #fef2f2;
}

/* Sidebar & Trust Badges */
.trust-badges-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--slate-50);
}

.trust-badge-item:last-child {
    border-bottom: none;
}

.trust-badge-item i {
    width: 24px;
    color: var(--navy-800);
    font-size: 20px;
}

.trust-badge-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
}

/* Store Info Redesign */
/* Store Info Card Fix */
.store-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.store-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    padding: 5px;
    flex-shrink: 0;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-800);
}

.store-stats {
    display: flex;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #fff;
}

.stat-item:first-child {
    border-right: 1px solid #f1f5f9;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-800);
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
}

.btn-chat-vendor {
    width: 100%;
    background: var(--navy-800);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-chat-vendor:hover {
    background: var(--navy-900);
    transform: translateY(-2px);
}

/* Tabs Navigation */
.product-tabs-wrap {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tabs-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--slate-100);
}

.tab-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-500);
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--pd-primary);
    background: var(--slate-50);
}

.tab-btn.active {
    color: #ffffff !important;
    background: var(--pd-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 75, 145, 0.2);
}

.tab-content {
    padding: 30px;
}

/* Summernote Content Styling */
.summernote-view {
    font-size: 15px;
    line-height: 1.8;
    color: var(--slate-600);
}

.summernote-view h4 {
    color: var(--slate-800);
    font-weight: 700;
    margin-top: 24px;
}

/* Floating Actions */
.float-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--slate-200);
    color: var(--slate-500);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

/* Login Modal Custom Styles */
.login-modal-icon {
    width: 80px;
    height: 80px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.2);
}

.btn-light-blue {
    background: #e0f2fe;
    color: #0369a1;
    border: none;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-light-blue:hover {
    background: #bae6fd;
    color: #0c4a6e;
}

.btn-sign-in {
    background: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-sign-in:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Summernote Content Rendering Refinement */
.summernote-view {
    color: #475569;
    line-height: 1.8;
}

.summernote-view img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.summernote-view ul,
.summernote-view ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.summernote-view p {
    margin-bottom: 1.2rem;
}

.summernote-view table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summernote-view table td,
.summernote-view table th {
    border: 1px solid #e2e8f0;
    padding: 12px;
}

.summernote-view iframe,
.summernote-view video {
    max-width: 100%;
    border-radius: 8px;
}

.color-item.light-color.active::after {
    color: #000 !important;
}
