h1,
.h1 {
    font-family: 'Times New Roman', serif;
}

h2,
.h2 {
    font-family: 'Times New Roman', serif;
}

h3,
.h3 {
    font-family: 'Times New Roman', serif;
}

h4,
.h4 {
    font-family: 'Times New Roman', serif;
}

h5,
.h5 {
    font-family: 'Times New Roman', serif;
}

h6,
.h6 {
    font-family: 'Times New Roman', serif;
}

.custom-paragraph-muted {
    font-family: 'Times New Roman', serif;
    color: Black;
}

.custom-nav {
    background-color: #f4e1c6;
    color: #f4e1c6;
}

html,
body {
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s;
}

.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1199.98px) {
    .product-card {
        max-width: 95%;
    }
}

/* Modern textarea styling start*/

.modern-textarea {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-textarea:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.modern-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.modern-label {
    color: #f8f9fa;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Modern textarea styling END*/

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 15px;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    border-radius: 2px;
}

.premium-header::after {
    background: linear-gradient(45deg, #FFD700, #FFA500);
}

.regular-header::after {
    background: linear-gradient(45deg, #87CEEB, #4169E1);
}

.basic-header::after {
    background: linear-gradient(45deg, #98FB98, #32CD32);
}

.filter-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-reset {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 15px;
}

.pagination-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin: 2rem 0;
}

.product-count-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 10px;
}


input.error {
    border: 2px solid red;
    animation: shake 0.3s;
}

.card {
    font-family: Georgia, serif;
    background-color: #fff5f5;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

/*
.product-card {
    font-family: Georgia, serif;
    width: 300px;
    background-color: #fff5f5;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
*/
.product-card {
    font-family: Georgia, serif;
    width: 100%;
    max-width: 300px;
    /* keep full size on desktop */
    margin: 10px auto;
    /* center on smaller screens */
    background-color: #fff5f5;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}


.address-card {
    font-family: Georgia, serif;
    width: 300px;
    background-color: #fff5f5;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    background: #f0f0f0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.btn-primary {
    background-color: #e67e22;
    border: none;
}

/* Common button style for Add to Cart */
.add-to-cart-btn {
    border: 1px solid #ffd814;
    background-color: #ffd814;
    color: #000;
    border-radius: 20px;
    font-weight: bold;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.add-to-cart-style-btn {
    border: 1px solid #ffd814;
    background-color: #ffd814;
    color: #000;
    border-radius: 20px;
    font-weight: bold;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Hover effect for Add to Cart button */
.add-to-cart-btn:hover {
    background-color: #f7ca00;
    border-color: #f7ca00;
}

/* Delete icon button styling */
.delete-from-cart-btn {
    width: 35px;
    height: 35px;
    background: transparent;
    border: 1px solid #ffd814;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Icon inside delete button */
.delete-from-cart-btn i {
    font-size: 16px;
    color: #000;
}

/* Hover effect for Delete button */
.delete-from-cart-btn:hover {
    background-color: #f7ca00;
    border-color: #f7ca00;
}

.modal-content {
    font-family: Georgia, serif;
    background-color: #ffffff;
}

.modal-Text {
    font-family: Georgia, serif;
    color: rgb(0, 0, 0);
}

.close {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
}

.full-footer {
    background-color: #f4e1c6;
}

/***********************/
/*** Ratings Section ***/
/***********************/
.ratings-section {
    margin-top: 30px;
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
}

.ratings-section-text {
    color: #000000;
}

.star-rating {
    font-size: 24px;
    color: #f39c12;
}

.star-rating .rating-value {
    font-weight: bold;
    font-size: 36px;
}

.star-rating .total-ratings {
    font-size: 16px;
    color: #333;
}

.rating-bars {
    margin-top: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.rating-label {
    width: 60px;
    font-size: 16px;
}

.bar {
    height: 8px;
    background-color: #f39c12;
    border-radius: 5px;
    flex-grow: 1;
}

/***********************/
/*** Ratings Section ***/
/***********************/

/**********************************/
/***  Exclusive for login page  ***/
/**********************************/

.login-card {
    border-radius: 12px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
    max-width: 400px;
    margin: auto;
    margin-top: 10vh;
    text-align: center;
}

.login-footer {
    background-color: #f4e1c6;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#2faAuthCard {
    display: block;
}

.dark-mode .login-card {
    background: #2a2828 !important;
    color: white !important;
}

.dark-mode .login-footer {
    background-color: #333 !important;
}

/**********************************/
/***  Exclusive for login page  ***/
/**********************************/
/*
.product-card-img-top {
    width: 300px;
    height: 300px;
    object-fit: cover;
}
*/
.product-card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}


.toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.dark-mode {
    background-color: #121212 !important;
    color: #ffffff;
}

.dark-navbar {
    background-color: #333 !important;
}

.dark-mode .modal-content {
    background-color: #1e1e1e !important;
}

.dark-mode .modal-Text {
    color: rgb(255, 255, 255);
}

.dark-mode .close {
    background-color: #1e1e1e;
    color: rgb(255, 255, 255);
}

.full-footer {
    background-color: #333;
}

.dark-mode .custom-paragraph-muted {
    font-family: 'Times New Roman', serif;
    color: rgba(255, 255, 255, 0.785);
}

.dark-mode .card {
    background: #2a2828;
    color: white;
}

.dark-mode .product-card {
    background: #2a2828;
    color: white;
}

.dark-mode .address-card {
    background: #2a2828;
    color: white;
}

.dark-mode .promoCardInModal {
    background: #2d2a2a;
}


/***********************/
/****** Dark Mode ******/
/*** Ratings Section ***/
/***********************/
.dark-mode .ratings-section {
    margin-top: 30px;
    background-color: #333;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
}

.dark-mode .ratings-section-text {
    color: #ffffff;
}

.dark-mode .star-rating {
    font-size: 24px;
    color: #f39c12;
}

.dark-mode .star-rating .rating-value {
    font-weight: bold;
    font-size: 36px;
}

.dark-mode .star-rating .total-ratings {
    font-size: 16px;
    color: #ccc;
}

.dark-mode .rating-bars {
    margin-top: 20px;
}

.dark-mode .rating-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.dark-mode .rating-label {
    width: 60px;
    font-size: 16px;
}

.dark-mode .bar {
    height: 8px;
    background-color: #f39c12;
    border-radius: 5px;
    flex-grow: 1;
}

/* ========================= */
/* ===== SWIPER STYLING ==== */
/* ========================= */

.productSwiper {
    width: 100%;
    padding: 40px 60px;
    position: relative;
}

.productSwiper .swiper-slide {
    display: flex;
    justify-content: center;
}

/* Ensure card behaves correctly inside swiper */
.productSwiper .product-card {
    width: 100%;
    max-width: 300px;
}

/* Navigation buttons styled to match your UI */
.productSwiper .swiper-button-next,
.productSwiper .swiper-button-prev {
    width: 42px;
    height: 42px;
    background: #ffffff00;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #000;
}

.productSwiper .swiper-button-next::after,
.productSwiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Position buttons near cards (yellow marker style) */
.productSwiper .swiper-button-prev {
    left: 10px;
}

.productSwiper .swiper-button-next {
    right: 10px;
}

/* Dark mode compatibility */
.dark-mode .productSwiper .swiper-button-next,
.dark-mode .productSwiper .swiper-button-prev {
    background: #ffffff00;
    color: rgba(255, 255, 255, 0);
}


#backToTopBtn {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #ff8c00;
    color: #ff8c00;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

#backToTopBtn:hover {
    background: #ff8c00;
    color: #000;
}


/* Mobile Top and Bottom Navigation */

.search-input {
    height: 50px;
    border-radius: 30px;
    padding-left: 35px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}

.mobile-action-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.mobile-action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    text-decoration: none;
    color: #333;
}

.mobile-action-bar i {
    font-size: 18px;
}

.mobile-top-nav {
    position: fixed;
    width: 100%;
    background: #d2d2d2;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    z-index: 1000;
}

.mobile-top-nav .nav-item {
    text-align: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

.mobile-top-nav i {
    display: block;
    font-size: 18px;
}

.mobile-top-nav .nav-item.active {
    color: #94aed7;
}

.mobile-top-nav a.active {
    color: #94aed7;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #d2d2d2;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    text-align: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
}

.mobile-bottom-nav i {
    display: block;
    font-size: 18px;
}

.mobile-bottom-nav .nav-item.active {
    color: #94aed7;
}