/* SocialBoost.Asia Product Page - Hasaki Style Redesign */
/* =========================================================
   Tương thích với cấu trúc Bootstrap Row của setting-account.php
   ========================================================= */

:root {
    --text-primary: #333333;
    --text-secondary: #0000008A;
    --price-color: #ff424e;
    --brand-color: #326e51;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --border-color: #ebebeb;
    --star-color: #fdd835;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.product-breadcrumb {
    padding: 10px 0;
    margin-bottom: 12px;
    background: transparent;
    font-size: 14px;
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.product-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
}

/* =========================================================
   GALLERY SECTION - Styles moved to gallery.php for encapsulation
   ========================================================= */

/* =========================================================
   PRODUCT INFO SECTION
   ========================================================= */
.product-info-section {
    padding: 20px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--brand-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #212529;
}

.bg-flash-sale {
    background: linear-gradient(90deg, #ff424e 0%, #fd820a 100%);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-box {
    background: #fef9f9;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #fce4ec;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--price-color);
    line-height: 1;
}

.original-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 15px;
    margin-left: 10px;
}

.discount-tag {
    background: #fff0f1;
    color: var(--price-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    border: 1px solid #ffcdd0;
}

/* =========================================================
   QUANTITY & ACTIONS
   ========================================================= */
.quantity-wrapper {
    margin-bottom: 20px;
}

.quantity-control {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-input {
    width: 50px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-add-cart {
    flex: 1;
    background: #ffeeef !important;
    border: 1px solid var(--price-color) !important;
    color: var(--price-color) !important;
    height: 48px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: #ffd6d8 !important;
}

.btn-buy-now {
    flex: 1;
    background: var(--price-color) !important;
    color: white !important;
    height: 48px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-buy-now:hover {
    background: #e63946 !important;
}

/* =========================================================
   SIDEBAR / SHOP INFO
   ========================================================= */
.shop-info-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    background: white;
    margin-bottom: 16px;
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.shop-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.shop-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.shop-actions {
    display: flex;
    gap: 8px;
}

.shop-actions button {
    flex: 1;
    font-size: 13px;
}

/* Trust Badges */
.trust-badges {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.trust-item iconify-icon {
    color: var(--brand-color);
    font-size: 20px;
}

/* =========================================================
   CONTENT SECTION (Description, Reviews)
   ========================================================= */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #212529;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #4a4a4a;
    position: relative;
    overflow: hidden;
}

.product-description.collapsed {
    max-height: 400px;
}

.product-description.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.btn-show-more {
    display: block;
    margin: 16px auto 0;
    padding: 10px 40px;
    border: 1px solid #5d87ff;
    color: #5d87ff;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-show-more:hover {
    background: #5d87ff;
    color: white;
}

/* =========================================================
   MOBILE STICKY BOTTOM BAR
   ========================================================= */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 8px;
    z-index: 1050;
}

/* Hide mobile bar on large screens */
@media (min-width: 992px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 991px) {
    .product-title {
        font-size: 18px;
    }

    .current-price {
        font-size: 24px;
    }

    .product-gallery-section,
    .product-info-section {
        padding: 12px;
    }
}

/* Custom scrollbar for thumbnail list */
.thumbnail-list::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}