/* ============================
 * Common custom styles
 * ============================ */
.page-background {
    background: var(--primary-soft);
}

.btn-theme-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}
.btn-theme-primary:hover,
.btn-theme-primary:focus {
    background-color: var(--primary-dark);
}

.btn-outline-theme {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-theme:hover,
.btn-outline-theme:focus {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-dark);
}

.text-accent {
    color: var(--accent-warning);
}

.contact-footer {
    color: var(--body-text-color);
}

.fs-18 {
    font-size: 18px;
}

.testi-bottom .h4 {
    font-size: 20px;
}

.sec-title-affiliate {
    font-size: 28px;
}

.sec-description-affiliate {
    font-size: 16px;
    color: var(--body-text-color);
}

.block-step-list {
    color: var(--body-text-color);
}

.testi-style1 .testi-text {
    font-size: 16px;
    color: var(--body-text-color);
    line-height: 1.7;
}

.text-description {
    font-size: 16px;
}

.product-cat-icon {
    width: 140px;
    height: 142px;
}

.widget_title {
    font-size: 18px;
    margin-top: 0;
}

.widget_categories a {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #11200e;
}

.widget_categories a.active {
    color: var(--theme-color);
}

.widget_categories li > span {
    top: 8px;
}

.widget_categories input[type="checkbox"] ~ label::before {
    top: 10px;
    height: 20px;
    width: 20px;
}

.widget_categories label {
    color: #11200e;
    padding-top: 8px;
    padding-bottom: 12px;
}

.product-content p {
    color: var(--body-text-color);
}

.product-content-body p {
    color: var(--body-text-color);
    font-size: 16px;
}

.opacity-10 {
    opacity: 0.1 !important;
}

.opacity-20 {
    opacity: 0.2 !important;
}

/* Product category */
.filter-tag {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 15px;
    font-size: 12px;
}

.filter-tag .remove-filter {
    margin-left: 5px;
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.active-filters {
    margin-bottom: 15px;
}

.sidebar-area .widget {
    margin-bottom: 30px;
}

.price-filter-form .range-slider-area {
    padding: 15px 0;
}

/* Enhanced Breadcrumb Styles */
.breadcumb-wrapper {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.breadcumb-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
    font-size: 58px;
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
    --bs-breadcrumb-item-padding-x: 0.75rem;
}

.breadcrumb-item a {
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.breadcrumb-item.active {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive font sizes */
@media (max-width: 768px) {
    .breadcumb-wrapper {
        min-height: 200px;
    }

    .breadcumb-title {
        font-size: 2rem !important;
    }

    .breadcrumb {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .breadcumb-wrapper {
        min-height: 150px;
    }

    .breadcumb-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .breadcrumb {
        font-size: 0.85rem;
        --bs-breadcrumb-item-padding-x: 0.5rem;
    }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Overlay hover effect */
/* .breadcumb-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    transition: opacity 0.3s ease;
    z-index: 1;
}

.breadcumb-wrapper:hover::before {
    opacity: 0.8;
} */

.breadcumb-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.product-content label {
    font-size: 16px;
}

.quantity.style2 input {
    color: var(--body-text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 48px;
    font-size: 16px;
}

.quantity.style2 .qut-btn {
    color: var(--border-color);
}

/* Related Products Section - Primary Color Theme */
.related-products-section {
    border-top: 1px solid var(--primary-10);
}

.section-header .section-title {
    color: var(--primary-darker);
    position: relative;
}

.section-header .section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-light)
    );
    border-radius: 2px;
}

.section-header .section-subtitle {
    color: var(--primary-dark);
}

.related-product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--primary-10) !important;
    background: var(--primary-surface);
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--primary-20) !important;
    border-color: var(--primary-light) !important;
    background: #ffffff;
}

.product-image-wrapper {
    overflow: hidden;
    height: 200px;
    background: var(--primary-soft);
    border-bottom: 1px solid var(--primary-10);
}

.product-image {
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    background: var(--primary-40);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid var(--primary-light) !important;
    color: var(--primary-color) !important;
}

.related-product-card:hover .quick-view-btn {
    opacity: 1 !important;
    transform: scale(1.05);
    background: var(--primary-color) !important;
    color: white !important;
}

.discount-badge .badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: var(--accent-danger) !important;
}

.product-info {
    padding: 1rem !important;
    background: var(--primary-surface);
}

.related-product-card:hover .product-info {
    background: #ffffff;
}

.product-name a {
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--primary-darker);
}

.product-name a:hover {
    color: var(--primary-color) !important;
}

.star-rating-display {
    display: flex;
    gap: 1px;
}

.star-rating-display .fa-star {
    font-size: 0.75rem !important;
}

.star-rating-display .fa-star.text-warning {
    color: var(--accent-warning) !important;
}

.rating-text {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    color: var(--primary-dark);
}

.product-price {
    margin-bottom: 0.75rem;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.85rem;
    color: var(--primary-dark);
}

.price-group .current-price {
    color: var(--accent-danger);
}

/* Responsive adjustments for related products */
@media (max-width: 576px) {
    .product-image-wrapper {
        height: 160px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 0.75rem !important;
    }

    .product-name a {
        font-size: 0.9rem;
    }

    .current-price {
        font-size: 0.95rem;
    }

    .section-header .section-title {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-image-wrapper {
        height: 180px;
    }

    .product-image {
        height: 180px;
    }
}

@media (min-width: 1200px) {
    .related-product-card:hover {
        transform: translateY(-10px);
    }

    .related-product-card:hover .add-to-cart-btn {
        transform: translateY(-2px);
    }
}

/* Focus states for accessibility */
.related-product-card:focus-within {
    outline: 2px solid var(--primary-focus);
    outline-offset: 2px;
}

.product-name a:focus,
.add-to-cart-btn:focus,
.quick-view-btn:focus {
    outline: 2px solid var(--primary-focus);
    outline-offset: 2px;
}

/* Animation for section load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-product-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.related-product-card:nth-child(1) {
    animation-delay: 0.1s;
}
.related-product-card:nth-child(2) {
    animation-delay: 0.2s;
}
.related-product-card:nth-child(3) {
    animation-delay: 0.3s;
}
.related-product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.widget_shopping_cart .cart_list a:not(.remove) {
    font-size: 16px;
}

.total .amount {
    color: var(--accent-danger);
}

/* Cart Item Removal Animation Styles */
.mini_cart_item {
    transition: all 0.3s ease;
    position: relative;
}

.mini_cart_item.removing {
    transform: translateX(-10px);
    opacity: 0.7;
}

.mini_cart_item .remove {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.mini_cart_item .remove:hover {
    opacity: 1;
    color: var(--accent-danger);
    transform: scale(1.1);
}

.mini_cart_item .remove.removing {
    pointer-events: none;
    opacity: 0.5;
}

/* Cart badge animation */
#cart-badge {
    transition: all 0.3s ease;
}

#cart-badge.animate__pulse {
    animation: pulse 0.6s ease-in-out 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart total amount animation */
#cart-total-amount {
    transition: color 0.3s ease;
}

#cart-total-amount.updating {
    color: var(--accent-danger);
    font-weight: bold;
}

/* Sidebar content updating state */
#sidebar-cart-content.updating {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

/* ========== Cart Navigation Styles ========== */

/* Navigation cart badge styling */
#nav-cart-badge {
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Navigation cart link styling */
.main-menu a[href*="gio-hang"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.main-menu a[href*="gio-hang"]:hover {
    color: var(--primary-color) !important;
}

.main-menu a[href*="gio-hang"] i {
    margin-right: 5px;
    font-size: 16px;
}

/* Mobile responsive cart navigation */
@media (max-width: 991px) {
    .main-menu a[href*="gio-hang"] {
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #nav-cart-badge {
        margin-left: auto;
    }
}

/* Animation for badge updates */
#nav-cart-badge.updating {
    animation: badgeUpdate 0.3s ease-in-out;
}

@keyframes badgeUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.vs-btn-primary {
    background-color: var(--color-blue-600);
    color: #fff;
}

.vs-btn-primary:hover,
.vs-btn-primary::after {
    background-color: var(--color-blue-900);
}
.vs-btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.5);
}
.vs-btn-primary:disabled {
    background-color: var(--color-blue-300);
    cursor: not-allowed;
}

.sec-text {
    color: var(--body-text-color);
    font-size: 16px;
}

.sec-text--strong {
    color: var(--primary-color);
}

.sec-title4 {
    font-size: 36px;
}

.blog-style2 .blog-title {
    font-size: 18px;
    color: var(--body-text-color);
}

.star-rating-text {
    margin-top: -5px;
}

/* ============================
 * Checkout page 
 * ============================ */
input[type="radio"] ~ .payment-label::before {
    top: 20px;
    left: 8px;
    width: 24px;
    height: 24px;
}

input[type="radio"] ~ .payment-label::after {
    width: 12px;
    height: 12px;
    top: 26px;
    left: 14px;
}

.checkout-section .card-header {
    padding-top: 12px;
    padding-bottom: 12px;
}
.checkout-section h4 {
    font-size: 20px;
    color: var(--body-text-color);
}

.checkout-section label {
    font-size: 16px;
    color: var(--body-text-color);
    font-weight: normal;
}

.success-card {
    border: 1px solid var(--primary-20);
    box-shadow: none;
}

.post-content {
    font-size: 16px;
    color: var(--body-text-color);
    line-height: 1.5;
}

.post-content h2 {
    font-size: 26px;
    color: var(--body-text-color);
}

.post-content h3 {
    font-size: 24px;
    color: var(--body-text-color);
}

.post-content h4 {
    font-size: 20px;
    color: var(--body-text-color);
}

.post-content h5 {
    font-size: 18px;
    color: var(--body-text-color);
}

.post-content h6 {
    font-size: 16px;
    color: var(--body-text-color);
}

.post-content p {
    color: var(--body-text-color);
    margin-bottom: 12px;
    line-height: 1.6;
}

.post-content li {
    margin-bottom: 4px;
}

.blog-details .blog-grid .blog-related-content {
    padding: 16px 20px;
}
.post-excerpt-lead {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}

.contact-footer a:hover,
.footer-widget .menu a:hover {
    color: var(--primary-color);
}

.header-buttons .dropdown .dropdown-button {
    border: none;
    background-color: transparent;
    padding: 0 15px 0 13px;
    color: var(--title-color);
    font-size: 20px;
    border-right: 1px solid #cdcdcd;
    margin: 0;
}

/* Customer Menu Dropdown Styles */
.header-buttons .dropdown-toggle::after {
    display: none !important;
}

.header-buttons .dropdown-toggle {
    color: inherit;
    text-decoration: none;
}

.header-buttons .dropdown-toggle:hover {
    color: inherit;
    text-decoration: none;
}

.header-buttons .dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}

.header-buttons .dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.header-buttons .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.header-buttons .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

.header-buttons .dropdown-item-text {
    padding: 10px 20px;
    color: #333;
}

.header-buttons .dropdown-divider {
    margin: 5px 0;
}

/* Register Form Horizontal Layout Styles */
.register-form-horizontal .col-form-label {
    font-weight: 600;
    color: #333;
    padding-top: 1rem;
}

.register-form-horizontal .col-form-label .text-danger {
    margin-left: 2px;
}

.register-form-horizontal .form-control,
.register-form-horizontal .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.register-form-horizontal .form-control:focus,
.register-form-horizontal .form-select:focus {
    border-color: var(--theme-color, #82b440);
    box-shadow: 0 0 0 0.2rem rgba(130, 180, 64, 0.15);
}

.register-form-horizontal .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.register-form-horizontal .text-muted {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mobile responsive for horizontal form */
@media (max-width: 576px) {
    .register-form-horizontal .col-form-label {
        text-align: left !important;
        margin-bottom: 0.5rem;
    }

    .register-form-horizontal .offset-sm-3 {
        margin-left: 0 !important;
    }
}
