* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(to bottom, #fff5f8 0%, #ffffff 100%);
    color: #333;
    min-height: 100vh;
    overflow-x: hidden; /* Chỉ ẩn scroll ngang */
    overflow-y: auto; /* Cho phép scroll dọc */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible; /* Cho phép dropdown hiển thị */
}

/* Header */
header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1;
    text-align: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.05);
}

.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
}

.search-box button {
    padding: 12px 16px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.search-box button:hover {
    background: #fff0f5;
    transform: scale(1.05);
}

.search-box .search-btn {
    padding: 12px 20px;
    border-radius: 0;
}

/* Scan button - camera icon */
.scan-btn {
    padding: 12px 16px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    border-radius: 0 30px 30px 0;
    flex-shrink: 0;
}

.scan-btn:hover {
    background: #fff0f5;
    transform: scale(1.05);
}

/* Scanner overlay */
.scanner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

.scanner-overlay.active {
    display: flex;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    z-index: 2;
}

.scanner-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.scanner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-close:hover {
    background: rgba(255,255,255,0.3);
}

#scannerContainer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #111;
}

#scannerContainer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-result {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.85);
    color: #0f0;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    display: none;
    z-index: 2;
    border: 1px solid rgba(0,255,0,0.3);
}

.scanner-result.show {
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scan-btn {
        padding: 4px 8px;
        font-size: 16px;
    }
}

/* Search Dropdown */
.search-dropdown {
    display: none;
    position: fixed;
    top: auto;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    max-height: 420px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #fff0f5;
}

.search-dropdown-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-dropdown-info {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.search-dropdown-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-brand {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.search-dropdown-price {
    font-size: 13px;
    font-weight: bold;
    color: #ff6b9d;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile: dropdown full width, text wrap */
@media (max-width: 768px) {
    .search-dropdown {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }

    .search-dropdown-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .search-dropdown-item img {
        width: 40px;
        height: 40px;
    }

    .search-dropdown-info {
        min-width: 0;
        overflow: hidden;
    }

    .search-dropdown-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
        max-height: 2.6em;
    }

    .search-dropdown-price {
        font-size: 12px;
        flex-shrink: 0;
        margin-left: auto;
    }
}

.search-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-dropdown-header {
    padding: 8px 14px;
    font-size: 11px;
    color: #aaa;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px 12px 0 0;
}

.search-dropdown-viewall {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #ff6b9d;
    cursor: pointer;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
}

.search-dropdown-viewall:hover {
    background: #fff0f5;
    border-radius: 0 0 12px 12px;
}

/* Contact Info in Categories */
.category-menu-wrapper {
    display: block;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #333;
    padding: 5px 20px 0;
}

/* Desktop: Contact info bên phải */
@media (min-width: 769px) {
    .category-menu-wrapper {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-direction: row;
    }
    
    .category-menu {
        order: 1;
        flex: 1;
    }
    
    .contact-info {
        order: 2;
        flex-shrink: 0;
        padding: 0 20px 0 15px;
        gap: 3px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 5px 12px;
    border-radius: 15px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: #f5f5f5;
}

.contact-icon {
    font-size: 16px;
    flex-shrink: 0;
    filter: hue-rotate(320deg) saturate(1.5);
}

.contact-icon-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.contact-separator {
    color: #ffb3d1;
    margin: 0 4px;
    font-weight: 300;
}

.contact-text {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.contact-text:hover {
    color: #ff6b9d;
}

.cart-icon {
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Categories Wrapper */
.categories-wrapper {
    position: relative;
    z-index: 50;
    margin-bottom: 20px;
    overflow: visible !important; /* Quan trọng */
}

/* Categories */
.categories {
    background: white;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
    position: relative;
    overflow: visible !important;
    clip-path: none !important;
    border-bottom: none !important;
}

.categories::after {
    display: none !important;
}

.categories .container {
    overflow: visible !important;
    clip-path: none !important;
}

.category-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

/* Category Dropdown */
.category-dropdown {
    position: relative;
    flex-shrink: 0;
}

.category-btn {
    padding: 8px 18px;
    border: 2px solid #ffb3d1;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    color: #ff6b9d;
    font-weight: 600;
    flex-shrink: 0;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border-color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Subcategory Menu */
.subcategory-menu {
    display: none;
    position: fixed !important;
    margin-top: 0px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border: 2px solid #ffb3d1;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999 !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.subcategory-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subcategory-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}

.subcategory-item:last-child {
    border-bottom: none;
}

.subcategory-item:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
}

.subcategory-item:first-child {
    font-weight: 600;
    color: #ff6b9d;
}

.subcategory-item:first-child:hover {
    color: white;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 9px 0 5px 0;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.breadcrumb-nav a {
    color: #ff6b9d;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.breadcrumb-nav a:hover {
    color: #c94b7a;
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: #333;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.25);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #fff5f8;
}

.product-info {
    padding: 15px;
}

.product-brand {
    color: #ff6b9d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    color: #ffa500;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b9d;
}

.product-original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.out-of-stock-badge {
    background: #ff1493;
    color: white;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    display: inline-block;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* Product Detail Page */
.product-detail-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.1);
    margin-bottom: 30px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.product-detail-image {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Quan trọng: cho phép flex item co lại */
    max-width: 100%; /* Giới hạn chiều rộng */
}

.main-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(255, 107, 157, 0.15);
    background: #fff5f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image-container img:hover {
    transform: scale(1.02);
}

/* Product Out of Stock Overlay (Detail Page) */
.product-out-of-stock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffb3d1;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.2);
    z-index: 10;
    color: #ff6b9d;
}

.gallery-nav-btn:hover {
    background: #ff6b9d;
    color: white;
    border-color: #ff6b9d;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
    flex-wrap: nowrap;
    max-width: 100%;
}

.thumbnail-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background: #ff6b9d;
    border-radius: 10px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
    background: #c94b7a;
}

.thumbnail-wrapper {
    position: relative;
    flex-shrink: 0;
}

.thumbnail-wrapper.removed {
    display: none;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #ff6b9d;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #ff6b9d;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.4);
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.product-brand-detail {
    color: #ff6b9d;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-rating-detail {
    color: #ffa500;
    font-size: 16px;
    margin-bottom: 20px;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.price-detail {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b9d;
}

.original-price-detail {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

.original-price {
    color: #999;
    text-decoration: line-through;
}

.product-volume {
    background: #fff5f8;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    border-left: 4px solid #ff6b9d;
}

.product-stock {
    color: #666;
    margin-bottom: 20px;
}

.product-quantity {
    margin-bottom: 25px;
}

.product-quantity label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid #ffb3d1;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #ff6b9d;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 2px solid #ffb3d1;
    border-radius: 10px;
    font-size: 16px;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.add-to-cart-btn-large {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.add-to-cart-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.buy-now-btn {
    flex: 1;
    padding: 15px;
    background: white;
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.buy-now-btn:hover {
    background: #ff6b9d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.product-description-section {
    background: #fff5f8;
    padding: 15px 20px;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b9d;
}

/* Product Info Nav Buttons */
.product-info-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.info-nav-btn {
    padding: 8px 16px;
    border: 2px solid #ffb3d1;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: #ff6b9d;
    white-space: nowrap;
}

.info-nav-btn:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border-color: #ff6b9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* Product Info Section - single stacked layout */
.product-info-section {
    margin-top: 0;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
    border-radius: 10px;
}

.product-info-section::-webkit-scrollbar {
    width: 5px;
}

.product-info-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.product-info-section::-webkit-scrollbar-thumb {
    background: #ffb3d1;
    border-radius: 5px;
}

.product-info-section::-webkit-scrollbar-thumb:hover {
    background: #ff6b9d;
}

.info-block {
    background: #fff5f8;
    border-left: 4px solid #ff6b9d;
    border-radius: 0 10px 10px 0;
    padding: 15px 20px;
    margin-bottom: 12px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h3 {
    color: #ff6b9d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-block p {
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 20px;
    position: relative;
}

.info-block p::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
}

#productDescription p,
#productHuongDan p {
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 20px;
    position: relative;
}

#productDescription p::before,
#productHuongDan p::before {
    content: '🌸';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
}

.product-description-section h2 {
    color: #ff6b9d;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(255, 107, 157, 0.2);
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #fff5f8;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.cart-item-price {
    font-size: 16px;
    color: #ff6b9d;
    font-weight: bold;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #ff6b9d;
    background: white;
    color: #ff6b9d;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.qty-btn:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.cart-item-quantity span {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.remove-btn {
    margin-left: 6px;
    padding: 4px 12px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

.remove-btn:active {
    transform: scale(0.95);
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #fff5f8;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #ff6b9d;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Product image mobile - giảm khoảng trắng */
    .main-image-container {
        height: 350px;
        padding: 5px;
    }
    
    /* Product detail container - giảm padding trái */
    .product-detail-container {
        padding: 20px 20px 20px 15px;
        border-radius: 15px;
    }
    
    /* Header mobile */
    header {
        padding: 3px 0;
    }
    
    .container {
        padding: 0 6px 0 3px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .logo {
        order: 1;
        padding: 0;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 100px);
        background: none;
        border-radius: 0;
    }
    
    .logo-text {
        gap: 0px;
    }
    
    .logo-main {
        font-size: 12px;
        letter-spacing: 0.2px;
        line-height: 1;
    }
    
    .logo-tagline {
        font-size: 5px;
        letter-spacing: 0.1px;
        line-height: 1;
        margin-top: 1px;
    }
    
    .menu-toggle {
        order: 0;
        padding: 5px 8px;
        font-size: 16px;
        white-space: nowrap;
        min-width: 40px;
    }
    
    .menu-toggle::before {
        content: '☰';
    }
    
    .menu-toggle::after {
        content: '';
        display: none;
    }
    
    .menu-text {
        display: none;
    }
    
    .menu-icon {
        font-size: 20px;
    }
    
    .cart-icon {
        order: 2;
        padding: 5px 8px;
        font-size: 16px;
        white-space: nowrap;
        min-width: 50px;
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-emoji {
        font-size: 20px;
    }
    
    .cart-count {
        font-size: 12px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }
    
    .search-box input {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .search-box button {
        padding: 4px 8px;
        font-size: 13px;
    }
    
    /* Categories mobile */
    .categories {
        padding: 6px 0;
    }
    
    .category-menu-wrapper {
        flex-direction: column;
        gap: 6px;
    }
    
    .category-menu {
        padding: 2px 0;
        gap: 5px;
        flex-wrap: wrap;
        max-height: none;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Contact info mobile */
    .contact-info {
        border-top: none;
        padding-left: 0;
        padding-top: 8px;
        width: 100%;
        gap: 4px;
    }
    
    .contact-item {
        font-size: 9px;
        padding: 3px 6px;
        gap: 3px;
        flex-wrap: wrap;
    }
    
    .contact-text {
        font-size: 9px;
        white-space: normal;
        word-break: break-word;
    }
    
    .contact-icon-img {
        width: 14px;
        height: 14px;
    }
    
    .contact-separator {
        margin: 0 2px;
        font-size: 9px;
    }
    
    /* Product cards mobile */
    .product-card-horizontal {
        min-width: 160px;
        max-width: 160px;
    }
    
    .product-card-horizontal .product-image {
        height: 160px;
    }
    
    .product-card-horizontal .product-info {
        padding: 10px;
    }
    
    .product-card-horizontal .product-name {
        font-size: 13px;
        height: 36px;
    }
    
    .product-card-horizontal .price {
        font-size: 16px;
    }
    
    /* Category section mobile */
    .category-header h2 {
        font-size: 20px;
    }
    
    .view-all-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 6px;
    }
    
    .logo {
        padding: 0;
        max-width: calc(100% - 90px);
        background: none;
    }
    
    .logo-main {
        font-size: 13px;
        letter-spacing: 0.2px;
    }
    
    .logo-tagline {
        font-size: 6px;
        letter-spacing: 0.1px;
    }
    
    .menu-toggle {
        padding: 4px 6px;
        font-size: 14px;
        min-width: 35px;
    }
    
    .menu-icon {
        font-size: 16px;
    }
    
    .cart-icon {
        padding: 4px 6px;
        font-size: 14px;
        min-width: 45px;
    }
    
    .cart-emoji {
        font-size: 16px;
    }
    
    .cart-count {
        font-size: 10px;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .contact-item {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .contact-text {
        font-size: 8px;
    }
    
    .contact-icon-img {
        width: 12px;
        height: 12px;
    }
    
    .product-card-horizontal {
        min-width: 140px;
        max-width: 140px;
    }
    
    .product-card-horizontal .product-image {
        height: 140px;
    }
    
    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 10px 12px;
    }
    
    .cart-header h2 {
        font-size: 16px;
    }
    
    .cart-header button {
        font-size: 18px;
    }
    
    .cart-items {
        padding: 10px;
        flex: 1;
        overflow-y: auto;
    }
    
    .cart-item {
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .cart-item img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0;
    }
    
    .cart-item-name {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
        color: #333;
    }
    
    .cart-item-price {
        font-size: 14px;
        color: #ff6b9d;
        font-weight: bold;
        margin-bottom: 6px;
    }
    
    .cart-item-quantity {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
    }
    
    .qty-btn {
        width: 24px;
        height: 24px;
        border: 1px solid #ff6b9d;
        background: white;
        color: #ff6b9d;
        border-radius: 50%;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        padding: 0;
    }
    
    .qty-btn:hover {
        background: #ff6b9d;
        color: white;
        transform: scale(1.1);
    }
    
    .qty-btn:active {
        transform: scale(0.95);
    }
    
    .cart-item-quantity span {
        min-width: 20px;
        text-align: center;
        font-weight: 600;
        font-size: 13px;
    }
    
    .remove-btn {
        margin-left: 4px;
        padding: 3px 8px;
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 11px;
        font-weight: 600;
        transition: all 0.2s;
    }
    
    .remove-btn:hover {
        background: #cc0000;
        transform: scale(1.05);
    }
    
    .remove-btn:active {
        transform: scale(0.95);
    }
    
    .cart-footer {
        padding: 12px;
        background: white;
        position: sticky;
        bottom: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .cart-total {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .checkout-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Category Section */
.category-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6b9d;
}

.category-header h2 {
    font-size: 28px;
    color: #c94b7a;
    font-weight: bold;
}

.category-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-count {
    color: #999;
    font-size: 14px;
}

.view-all-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* Horizontal Scroll Container */
.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c94b7a 0%, #ff6b9d 100%);
}

/* Product Card Horizontal */
.product-card-horizontal {
    min-width: 250px;
    max-width: 250px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-card-horizontal:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.3);
}

.product-card-horizontal .product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-horizontal .product-info {
    padding: 15px;
    padding-top: 25px;
    padding-bottom: 5px;
}

.product-card-horizontal .product-brand {
    color: #ff6b9d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 12px;
}

.product-card-horizontal .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    margin-top: 0;
    color: #333;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-horizontal .product-rating {
    font-size: 13px;
    color: #ffa500;
    margin-bottom: 10px;
}

.product-card-horizontal .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0px;
}

.product-card-horizontal .price {
    font-size: 18px;
    font-weight: bold;
    color: #ff6b9d;
}

.product-card-horizontal .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-card-horizontal .add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.product-card-horizontal .add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

/* New Product Badge */
.new-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #ff1493 0%, #ff6b9d 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 20, 147, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* New Products Section */
.new-products-section {
    background: linear-gradient(135deg, #fff0f5 0%, #fff5f8 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #ff1493;
    box-shadow: 0 4px 20px rgba(255, 20, 147, 0.1);
}

.new-products-section .category-header {
    border-bottom-color: #ff1493;
}

.new-products-section .category-header h2 {
    color: #ff1493;
}

.new-products-count {
    color: #ff6b9d;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 107, 157, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    bottom: 106px;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Out of Stock Overlay for All-Products Page */
#productGrid .product-card .out-of-stock-overlay {
    bottom: 123px;
}

/* Product Info on All-Products Page */
#productGrid .product-card .product-info {
    padding-top: 35px;
}

/* Main Content */
main {
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Menu Toggle Button */
.menu-toggle {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Side Menu */
.side-menu {
    position: fixed;
    left: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #c94b7a 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-menu-header h3 {
    font-size: 20px;
    margin: 0;
}

.side-menu-header button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.side-menu-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.side-menu-content {
    padding: 10px 0;
}

.side-menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.side-menu-item:hover {
    background: #fff5f8;
    border-left-color: #ff6b9d;
}

.side-menu-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.side-menu-text {
    flex: 1;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.side-menu-arrow {
    font-size: 20px;
    color: #999;
}

.side-menu-item.has-submenu:hover .side-menu-arrow {
    color: #ff6b9d;
}

.side-submenu {
    background: #f9f9f9;
    padding: 5px 0;
}

.side-submenu-item {
    padding: 12px 20px 12px 70px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-submenu-item .submenu-icon {
    font-size: 16px;
    min-width: 20px;
}

.side-submenu-item:hover {
    background: #fff5f8;
    color: #ff6b9d;
    padding-left: 75px;
}

/* Side Menu Overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Category Page */
.category-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
}

.category-page-header h1 {
    font-size: 32px;
    color: #c94b7a;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* New Products Section Mobile */
    .new-products-section {
        padding: 12px;
        margin-bottom: 20px;
    }

    .new-products-section .category-header h2 {
        font-size: 18px;
    }

    .new-product-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 6px;
        left: 6px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* Checkout Page */
.checkout-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.checkout-container h2 {
    font-size: 28px;
    color: #ff6b9d;
    margin-bottom: 30px;
    text-align: center;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.checkout-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.1);
}

.checkout-form h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b9d;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ffb3d1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.order-summary {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(255, 107, 157, 0.1);
    height: fit-content;
}

.order-summary h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b9d;
}

.order-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f5f5f5;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.total-row.final {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ff6b9d;
    font-size: 18px;
    color: #ff6b9d;
}

/* Checkout Responsive */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-container {
        padding: 15px;
    }
    
    .checkout-container h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 18px;
    }
    
    .checkout-form h3,
    .order-summary h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .total-row {
        font-size: 14px;
    }
    
    .total-row.final {
        font-size: 16px;
    }
}

/* Related Products Section */
.related-products-section {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 0;
    border-top: 2px solid #ff1493;
    margin-top: 40px;
}

.related-products-header {
    margin-bottom: 25px;
}

.related-products-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Related Products Card - Override styling */
.related-products-section .product-card-horizontal .product-price {
    margin-bottom: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .related-products-section {
        padding: 30px 0;
        margin-top: 30px;
    }

    .related-products-header h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Product Footer */
.product-footer {
    margin-top: 60px;
    padding: 0;
}

.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d 0%, #c94b7a 100%);
    margin: 0;
}

.footer-info {
    background: white;
    padding: 20px;
}

.footer-contact {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-separator {
    margin: 0 8px;
    color: #999;
}

.footer-contact a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .product-footer {
        margin-top: 40px;
    }
    
    .footer-info {
        padding: 15px 10px;
    }
    
    .footer-contact p {
        font-size: 11px;
        gap: 5px;
    }
    
    .footer-icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================ */
/* AI CHAT BOT WIDGET */
/* ============================================================ */

/* Cherry icon widget floating */
/* Chat Widget Container */
.ai-chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 10000;
    padding-right: 12px;
}

.ai-chat-widget {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
    border: 3px solid #ffb3d1;
}

.ai-chat-label {
    font-size: 12px;
    font-weight: 600;
    color: #c94b7a;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 3px 15px rgba(255, 107, 157, 0.25);
    white-space: nowrap;
    animation: chatLabelBounce 2s ease-in-out infinite;
    cursor: pointer;
    border: 1px solid rgba(255, 107, 157, 0.2);
    line-height: 1.3;
}

@keyframes chatLabelBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.chat-open .ai-chat-widget-container {
    opacity: 0;
    pointer-events: none;
}

.ai-chat-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
    border-color: #ff6b9d;
}

.ai-chat-widget:active {
    transform: scale(0.95);
}

.ai-chat-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    border-radius: 50%;
}

/* Pulse animation for widget */
@keyframes aiChatPulse {
    0% { box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 157, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35); }
}

.ai-chat-widget {
    animation: aiChatPulse 2s ease-in-out infinite;
}

.chat-open .ai-chat-widget {
    animation: none;
}

/* Chat popup window */
.ai-chat-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 560px;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transform: scale(0.8);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow: hidden;
}

.ai-chat-popup.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Chat header */
.ai-chat-header {
    background: linear-gradient(135deg, #ff6b9d, #c94b7a);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    object-fit: contain;
    background: white;
    padding: 3px;
}

.ai-chat-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.ai-chat-status {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.ai-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Chat messages area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Individual message */
.ai-message {
    display: flex;
    max-width: 85%;
    animation: aiMsgFadeIn 0.3s ease;
}

@keyframes aiMsgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-bot {
    align-self: flex-start;
}

.ai-user {
    align-self: flex-end;
}

.ai-message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.ai-bot .ai-message-content {
    background: white;
    color: #333;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ai-user .ai-message-content {
    background: linear-gradient(135deg, #ff6b9d, #c94b7a);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

/* Typing indicator */
.ai-chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px 0;
    align-items: center;
    justify-content: center;
}

.ai-chat-typing span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b9d;
    animation: aiTypingBounce 1.4s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Input area */
.ai-chat-input-area {
    border-top: 1px solid #eee;
    padding: 12px 16px;
    background: white;
    flex-shrink: 0;
}

.ai-chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #f0f0f0;
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    transition: box-shadow 0.2s;
}

.ai-chat-input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.3);
}

.ai-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    padding: 8px 0;
    line-height: 1.5;
    color: #333;
}

.ai-chat-input::placeholder {
    color: #aaa;
}

.ai-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff6b9d, #c94b7a);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.ai-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(255, 107, 157, 0.4);
}

.ai-chat-send:active {
    transform: scale(0.95);
}

/* Chat scrollbar styling */
.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Chat link styling */
.chat-link {
    color: #ff6b9d;
    text-decoration: underline;
    font-weight: 600;
    word-break: break-all;
    transition: color 0.2s;
}
.chat-link:hover {
    color: #c94b7a;
}

/* Chat product item (numbered lists) */
.chat-product-item {
    color: #ff6b9d;
    font-weight: 600;
    display: block;
    padding: 1px 0;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.3;
}
.chat-product-item:hover {
    color: #c94b7a;
    transform: translateX(3px);
    text-decoration: underline;
}
.chat-product-item:active {
    transform: scale(0.98);
}

/* Chat product thumbnail below each product line */
.chat-product-thumb {
    display: inline-block;
    margin: 4px 0 6px 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ffb3d1;
    transition: all 0.2s;
    line-height: 0;
}
.chat-product-thumb:hover {
    border-color: #ff6b9d;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}
.chat-product-thumb img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Responsive for mobile */
@media (max-width: 480px) {
    .ai-chat-popup {
        right: 10px;
        bottom: 90px;
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        max-height: calc(100vh - 120px);
        border-radius: 16px;
    }

    .ai-chat-widget {
        width: 52px;
        height: 52px;
    }

    .ai-chat-icon {
        width: 30px;
        height: 30px;
    }

    .chat-product-thumb img {
        width: 90px;
        height: 90px;
    }

    .ai-chat-messages {
        padding: 12px;
    }

    .ai-message-content {
        font-size: 13px;
        padding: 10px 14px;
    }

    .ai-chat-header {
        padding: 12px 16px;
    }

    .ai-chat-avatar {
        width: 36px;
        height: 36px;
    }

    .ai-chat-title {
        font-size: 15px;
    }
}
