:root {
    --primary: #18a957;
    --primary-dark: #108645;
    --secondary: #6c757d;
    --success: #18a957;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --dark: #212529;
    --light: #f8f9fa;
    --body-bg: #ffffff;
    --body-color: #212529;
    --border-color: #dee2e6;
    --card-radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--body-bg);
    color: var(--body-color);
    overflow-x: hidden;
}

a { transition: var(--transition); }

/* Hero Slider */
.hero-slider .swiper-slide {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Product Card - Amazon-style */
.product-card {
    border: 1px solid #e7e7e7;
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: #fff;
    height: 100%;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card .product-image {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    aspect-ratio: 1 / 1;
}

.product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: none;
    mix-blend-mode: multiply;
}

.product-card .product-body {
    padding: 0 10px 10px;
}

.product-card .product-name {
    font-size: 0.85rem;
    font-weight: 400;
    color: #0f1111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
    margin-bottom: 4px;
}

.product-card .product-name:hover {
    color: #108645;
    text-decoration: none;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    font-size: 0.75rem;
}

.product-card .product-rating .stars .rating-stars,
.product-rating .stars .text-warning,
.product-rating .stars i {
    color: #108645 !important;
}

.product-card .product-rating .review-count {
    color: #007185;
    font-size: 0.75rem;
}

.product-card .product-price {
    font-size: 1rem;
    font-weight: 400;
    color: #0f1111;
    margin-bottom: 6px;
}

.product-card .product-price .price-symbol {
    font-size: 0.65rem;
    vertical-align: super;
    line-height: 1;
}

.product-card .product-price .price-whole {
    font-size: 1.15rem;
    font-weight: 500;
}

.product-card .product-price .price-fraction {
    font-size: 0.65rem;
    vertical-align: super;
    line-height: 1;
}

.product-card .product-price .original-price {
    font-size: 0.75rem;
    font-weight: 400;
    color: #565959;
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card .product-price .discount-badge {
    font-size: 0.72rem;
    color: #cc0c39;
    font-weight: 600;
    margin-left: 6px;
}

.product-card .btn-add-cart {
    width: 100%;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    border: 1px solid #e7a400;
    background: #ffd814;
    color: #0f1111;
    transition: background 0.15s;
}

.product-card .btn-add-cart:hover {
    background: #f7ca00;
    border-color: #e7a400;
    color: #0f1111;
}

.product-card .btn-add-cart:disabled {
    background: #f0f2f2;
    border-color: #d5d9d9;
    color: #565959;
    cursor: not-allowed;
}

.product-card .badge-free-shipping {
    font-size: 0.68rem;
    color: #565959;
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.wishlist-btn:hover {
    background: #dc3545;
    color: #fff;
}

.wishlist-btn.active {
    background: #dc3545;
    color: #fff;
}

/* Category Card */
.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: var(--transition);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: var(--body-color);
    display: block;
    height: 100%;
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    color: var(--primary);
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.category-card .category-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.category-card .category-count {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--card-radius);
    transition: var(--transition);
}

.feature-box:hover {
    background: var(--light);
}

.feature-box .feature-icon {
    font-size: 2rem;
    color: var(--primary);
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: rgba(24,169,87,0.1);
    margin: 0 auto 1rem;
}

.feature-box h6 {
    font-weight: 700;
}

.feature-box p {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6610f2 100%);
    border-radius: var(--card-radius);
    padding: 3rem;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-item {
    background: var(--dark);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    min-width: 56px;
}

.countdown-item .countdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.countdown-item .countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Seller Card */
.seller-card {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    background: #fff;
    height: 100%;
}

.seller-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.seller-card .seller-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    background: var(--light);
}

.seller-card .seller-name {
    font-weight: 700;
    font-size: 1rem;
}

.seller-card .seller-meta {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Shop Sidebar */
.filter-section {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
}

.filter-section h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-section .list-group-item {
    border: none;
    padding: 0.375rem 0;
    font-size: 0.9rem;
}

.filter-section .list-group-item a {
    color: var(--body-color);
    text-decoration: none;
}

.filter-section .list-group-item a:hover {
    color: var(--primary);
}

.star-rating {
    color: var(--warning);
    font-size: 0.9rem;
    cursor: pointer;
}

.star-rating input { display: none; }
.star-rating label { cursor: pointer; font-size: 1.1rem; }
.star-rating label i { transition: var(--transition); }
.star-rating label:hover i,
.star-rating label:hover ~ label i,
.star-rating input:checked ~ label i { color: var(--warning); }
.star-rating { direction: rtl; display: inline-flex; }

/* Price Range */
.price-range-slider {
    width: 100%;
}

/* Product Detail - Amazon style */
.product-gallery-amz {
    display: flex;
    gap: 12px;
}

.thumb-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 56px;
    flex-shrink: 0;
}

.thumb-item-amz {
    width: 56px;
    height: 56px;
    border: 2px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: border-color 0.15s;
}

.thumb-item-amz:hover,
.thumb-item-amz.active {
    border-color: #108645;
}

.thumb-item-amz img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.main-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    min-height: 400px;
    padding: 20px;
}

.main-image-wrapper img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Amazon-style product info */
.product-title-amz {
    font-size: 1.35rem;
    font-weight: 400;
    color: #0f1111;
    line-height: 1.3;
    margin-bottom: 8px;
}

.rating-row-amz {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-row-amz .rating-stars,
.rating-row-amz .stars i,
.rating-row-amz .stars .text-warning {
    color: #108645 !important;
}

.review-count-link {
    color: #007185;
    font-size: 0.82rem;
    text-decoration: none;
}

.review-count-link:hover {
    color: #108645;
    text-decoration: underline;
}

.divider-amz {
    border: none;
    border-top: 1px solid #e7e7e7;
    margin: 10px 0;
}

.price-box-amz {
    margin-bottom: 4px;
}

.price-display-amz {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0f1111;
}

.price-current .price-symbol {
    font-size: 0.75rem;
    vertical-align: super;
    line-height: 1;
}

.price-current .price-whole {
    font-size: 1.75rem;
    font-weight: 500;
}

.price-current .price-fraction {
    font-size: 0.75rem;
    vertical-align: super;
    line-height: 1;
}

.price-original {
    font-size: 0.82rem;
    color: #565959;
    text-decoration: line-through;
}

.discount-badge-amz {
    font-size: 0.82rem;
    color: #cc0c39;
    font-weight: 600;
}

.price-meta-amz {
    margin-top: 2px;
}

.save-text {
    font-size: 0.78rem;
    color: #cc0c39;
}

.stock-section-amz {
    margin-bottom: 8px;
}

.in-stock-amz {
    color: #007600;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-qty-amz {
    color: #565959;
    font-size: 0.78rem;
}

.out-of-stock-amz {
    color: #cc0c39;
    font-size: 0.9rem;
    font-weight: 500;
}

.description-bullets-amz {
    margin-bottom: 8px;
}

.description-bullets-amz ul {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 0;
}

.description-bullets-amz li {
    font-size: 0.82rem;
    color: #0f1111;
    line-height: 1.5;
    margin-bottom: 3px;
}

.free-shipping-amz {
    font-size: 0.82rem;
    color: #007600;
    font-weight: 500;
    margin-bottom: 12px;
}

.action-section-amz {
    margin-bottom: 12px;
}

.qty-selector-amz {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f2f2;
}

.qty-selector-amz button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #0f1111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector-amz button:hover {
    background: #e3e6e6;
}

.qty-selector-amz input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #d5d9d9;
    border-right: 1px solid #d5d9d9;
    font-weight: 400;
    font-size: 0.85rem;
}

/* ===== Cart quantity stepper =====
   The cart page renders its +/- in the SAME classes
   (.quantity-selector > .qty-decrease / .qty-increase)
   originally styled only for the product page (.qty-selector-amz).
   Add matching, cart-scoped rules so the arrows against the
   .cart-qty-update AJAX handler look like the Amazon steppers. */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d9d9;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f2f2;
}

.quantity-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #0f1111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.quantity-selector button:hover {
    background: #e3e6e6;
}

.quantity-selector input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #d5d9d9;
    border-right: 1px solid #d5d9d9;
    font-weight: 400;
    font-size: 0.85rem;
}

/* ===== Product page quantity stepper (Amazon-stock styling) =====
   Mirror of the block above, but scoped to the product page's
   .qty-selector-amz wrapper so the two steppers never share selectors. */

.btn-cart-amz,
.btn-buy-amz {
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 20px;
    height: 38px;
    line-height: 1;
    transition: background 0.15s;
}

.btn-cart-amz {
    border: 1px solid #bfe7ce;
    background: #e9f8ef;
    color: #108645;
}

.btn-cart-amz:hover {
    background: #daf7e7;
    border-color: #bfe7ce;
    color: #108645;
}

.btn-buy-amz {
    border: 1px solid #18a957;
    background: #18a957;
    color: #fff;
}

.btn-buy-amz:hover {
    background: #108645;
    border-color: #108645;
    color: #fff;
}

.seller-box-amz {
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 10px 12px;
}

.seller-label-amz {
    font-size: 0.72rem;
    color: #565959;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seller-name-amz {
    font-size: 0.82rem;
    color: #007185;
    text-decoration: none;
    font-weight: 500;
}

.seller-name-amz:hover {
    color: #108645;
    text-decoration: underline;
}

.wishlist-btn-amz {
    font-size: 0.78rem;
    border-radius: 4px;
    border-color: #d5d9d9;
    color: #0f1111;
    white-space: nowrap;
}

.wishlist-btn-amz:hover {
    background: #f0f2f2;
    border-color: #d5d9d9;
}

/* Section titles */
.section-title-amz {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}

.description-full-amz {
    font-size: 0.88rem;
    color: #0f1111;
    line-height: 1.6;
}

/* Reviews - Amazon style */
.rating-summary-amz {
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 16px;
}

.rating-big {
    font-size: 2.5rem;
    font-weight: 600;
    color: #0f1111;
    line-height: 1;
}

.rating-summary-amz .stars {
    color: #108645;
    font-size: 0.9rem;
    letter-spacing: -2px;
}

.rating-summary-amz .rating-stars,
.rating-summary-amz .text-warning,
.rating-summary-amz i {
    color: #108645 !important;
}

.rating-total {
    font-size: 0.82rem;
    color: #565959;
    margin-bottom: 12px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.rating-bar-label {
    font-size: 0.78rem;
    color: #0f1111;
    width: 30px;
    text-align: right;
}

.rating-bar-track {
    flex: 1;
    height: 14px;
    background: #f0f2f2;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #108645;
    border-radius: 4px;
}

.rating-bar-count {
    font-size: 0.78rem;
    color: #565959;
    width: 24px;
}

.review-form-amz {
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 16px;
}

.review-form-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 10px;
}

.review-item-amz {
    border-bottom: 1px solid #e7e7e7;
    padding: 14px 0;
}

.review-item-amz:last-child {
    border-bottom: none;
}

.review-header-amz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.review-author {
    font-size: 0.85rem;
    color: #0f1111;
}

.review-date {
    font-size: 0.75rem;
    color: #565959;
}

.review-rating .stars {
    color: #108645;
    font-size: 0.8rem;
    letter-spacing: -2px;
}

.review-rating .rating-stars,
.review-rating .text-warning,
.review-rating i {
    color: #108645 !important;
}

.review-text {
    font-size: 0.82rem;
    color: #0f1111;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .product-gallery-amz {
        flex-direction: column-reverse;
    }
    .thumb-strip {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
    .thumb-item-amz {
        flex-shrink: 0;
    }
    .main-image-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .main-image-wrapper {
        min-height: 250px;
    }
    .product-title-amz {
        font-size: 1.1rem;
    }
    .price-current .price-whole {
        font-size: 1.4rem;
    }
}

/* Checkout */
.checkout-step {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.checkout-step h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-method-card {
    border: 2px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method-card:hover {
    border-color: var(--primary);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: rgba(24,169,87,0.05);
}

.payment-method-card .payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Order Confirmation */
.order-success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Cart */
.cart-item {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow);
}

.cart-item .cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--light);
}

.cart-summary {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    background: #fff;
    position: sticky;
    top: 80px;
}

.cart-summary h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state .empty-icon {
    font-size: 5rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    font-weight: 700;
    color: var(--secondary);
}

.empty-state p {
    color: var(--secondary);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* Review */
.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.review-item .review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    color: var(--body-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Seller Store Header */
.seller-store-header {
    background: linear-gradient(135deg, var(--dark) 0%, #343a40 100%);
    color: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.seller-store-header .store-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
}

/* Seller Store Overlay */
.seller-store-header {
    position: relative;
}

.seller-store-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: var(--card-radius);
}

.seller-store-header .z-1 {
    position: relative;
    z-index: 2;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Toasts / Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* ===== AUTH PAGES (Login / Register / Forgot / Reset) ===== */
.auth-page {
    background: linear-gradient(135deg, #18a957 0%, #108645 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    background: #fff;
}
.auth-card .card-header {
    background: linear-gradient(135deg, #18a957 0%, #108645 100%);
    color: #fff;
    text-align: center;
    border-bottom: none;
    padding: 2.5rem 1.5rem 1.5rem;
}
.auth-card .card-header .auth-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
}
.auth-card .card-header h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.auth-card .card-header p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 0;
}
.auth-card .card-body {
    padding: 2rem 1.75rem;
}
.auth-card .form-floating > .form-control:focus ~ label,
.auth-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #18a957;
}
.auth-card .form-floating > .form-control:focus {
    border-color: #18a957;
    box-shadow: 0 0 0 3px rgba(24,169,87,0.15);
}
.auth-card .form-floating > label i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
    color: #18a957;
}
.btn-auth {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #18a957 0%, #108645 100%);
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
}
.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24,169,87,0.4);
    color: #fff;
}
.btn-auth:active {
    transform: translateY(0);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #adb5bd;
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}
.btn-social {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-social:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}
.btn-social-google:hover {
    border-color: #ea4335;
    color: #ea4335;
}
.btn-social-facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}
.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.auth-links a {
    color: #18a957;
    font-weight: 600;
    text-decoration: none;
}
.auth-links a:hover {
    color: #108645;
    text-decoration: underline;
}
.auth-footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin-top: 1.25rem;
}
/* Success page inside auth */
.success-page {
    text-align: center;
    padding: 1rem 0;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.success-icon.success {
    background: #d4edda;
    color: #18a957;
}
.success-icon.error {
    background: #f8d7da;
    color: #dc3545;
}
.success-page h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.success-page p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}
/* Role toggle (register) */
.role-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.role-toggle .btn-check + label {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    transition: all 0.25s ease;
    background: #fff;
}
.role-toggle .btn-check + label i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.role-toggle .btn-check:checked + label {
    border-color: #18a957;
    background: rgba(24,169,87,0.08);
    color: #18a957;
}
.role-toggle .btn-check:checked + label i {
    color: #18a957;
}
.terms-check {
    margin-bottom: 1rem;
}
.terms-check .form-check-input:checked {
    background-color: #18a957;
    border-color: #18a957;
}
/* Password strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #e9ecef;
    transition: all 0.3s ease;
}
.strength-text {
    font-size: 0.75rem;
    margin-top: 2px;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 575.98px) {
    .auth-card .card-header {
        padding: 2rem 1.25rem 1.25rem;
    }
    .auth-card .card-body {
        padding: 1.5rem 1.25rem;
    }
}

/* ===== TABLES (public frontend) ===== */
.table-wrap {
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--card-radius, 12px);
    overflow: hidden;
    background: #fff;
}

.table-wrap > .table {
    margin-bottom: 0;
}

.table {
    width: 100%;
    font-size: 0.875rem;
    margin-bottom: 0;
    background: #fff;
}

.table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: #f1f5f9;
}

.table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive tables */
@media (max-width: 991.98px) {
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== SHOP TABLE (product listing) ===== */
.shop-table thead th {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* ===== COMPARE TABLE ===== */
.compare-table thead th {
    text-align: center;
    vertical-align: middle;
}

.compare-table thead th img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-slider .swiper-slide { min-height: 320px; }
    .hero-content { padding: 50px 0; }
    .hero-content h1 { font-size: 2rem; }
    .product-gallery .main-image { height: 320px; }
}

/* ===== CMS CONTENT (about / terms / privacy / blog-post) ===== */
.cms-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #212529;
    overflow-wrap: break-word;
}

.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4, .cms-content h5, .cms-content h6 {
    font-weight: 700;
    color: #171717;
    margin: 1.5em 0 0.6em;
    letter-spacing: -0.01em;
}

.cms-content h1 { font-size: 1.75rem; }
.cms-content h2 { font-size: 1.4rem; }
.cms-content h3 { font-size: 1.2rem; }
.cms-content h4 { font-size: 1.05rem; }
.cms-content h5 { font-size: 0.95rem; }
.cms-content h6 { font-size: 0.85rem; }

.cms-content p { margin: 0 0 1rem; }

.cms-content a { color: var(--accent, #18a957); text-decoration: none; }
.cms-content a:hover { text-decoration: underline; }

.cms-content ul, .cms-content ol { margin: 0 0 1rem 1.25rem; padding-left: 0.25rem; }
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li { margin-bottom: 0.25rem; }

.cms-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--accent, #18a957);
    background: #e9f8ef;
    color: #495057;
    border-radius: 0 var(--card-radius, 12px) var(--card-radius, 12px) 0;
}

.cms-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-content code { background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }
.cms-content pre { background: #1e293b; color: #e2e8f0; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.cms-content pre code { background: transparent; color: inherit; padding: 0; }

/* CMS tables mirror the frontend .table design (fonts included) */
.cms-content table {
    width: 100%;
    font-size: 0.875rem;
    margin: 1rem 0;
    border-collapse: collapse;
    background: #fff;
}
.cms-content table thead th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
    vertical-align: middle;
    text-align: left;
}
.cms-content table tbody td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.cms-content table tbody tr:hover { background: #f1f5f9; }
.cms-content table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 767.98px) {
    .cms-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 767.98px) {
    .hero-slider .swiper-slide { min-height: 260px; }
    .hero-content { padding: 30px 0; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content p { font-size: 0.9rem; }
    .newsletter-section { padding: 2rem 1rem; }
    .product-gallery .main-image { height: 250px; }
    .countdown-item { min-width: 44px; padding: 0.35rem 0.5rem; }
    .countdown-item .countdown-value { font-size: 1rem; }
}
