/* ===== Toaster (replaces alert) ===== */
#toaster-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toaster-toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 360px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toaster-toast.toaster-visible {
    opacity: 1;
    transform: translateX(0);
}

.toaster-toast.toaster-success {
    background: #25D366;
    color: #fff;
}

.toaster-toast.toaster-error {
    background: #e74c3c;
    color: #fff;
}

.toaster-toast.toaster-info {
    background: #3498db;
    color: #fff;
}

/* ===== Product cards: fixed aspect ratio so image size doesn't break layout ===== */
.product-item.style-one .product-thumbnail,
.product-item.style-two .product-thumbnail,
.product-item.style-three .product-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 16px;
}

.product-item.style-one .product-thumbnail img,
.product-item.style-two .product-thumbnail img,
.product-item.style-three .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.product-item.style-one .product-thumbnail:hover img,
.product-item.style-two .product-thumbnail:hover img,
.product-item.style-three .product-thumbnail:hover img {
    transform: scale(1.06);
}

.product-item.style-one .product-thumbnail,
.product-item.style-two .product-thumbnail,
.product-item.style-three .product-thumbnail {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.product-item.style-one .product-thumbnail:hover,
.product-item.style-two .product-thumbnail:hover,
.product-item.style-three .product-thumbnail:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-item.style-one .product-info-wrap,
.product-item.style-two .product-info-wrap,
.product-item.style-three .product-info-wrap {
    min-height: auto;
}

/* ===== Cart page: correct table and thumbnail styling ===== */
.cart-section .cart-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cart-section .cart-table {
    margin: 0;
}

.cart-section .cart-table .table {
    margin: 0;
}

.cart-section .cart-table .table thead th {
    background: #f8f9fa;
    font-weight: 600;
    padding: 16px 12px;
    border-bottom: 2px solid #eee;
}

.cart-section .cart-table .table tbody td {
    padding: 16px 12px;
    vertical-align: middle;
}

.cart-section .cart-table .table tbody tr {
    border-bottom: 1px solid #eee;
}

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

/* Cart table: fixed product thumbnail size */
.cart-section .cart-table .product-thumbnail {
    width: 90px;
}

.cart-section .cart-table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.cart-section .cart-table .product-name a {
    font-weight: 500;
    color: inherit;
}

.cart-section .cart-table .product-name small {
    color: #666;
    font-size: 13px;
}

.cart-section .cart-table .product-remove a {
    color: #999;
    font-size: 18px;
}

.cart-section .cart-table .product-remove a:hover {
    color: #e74c3c;
}

.cart-section .cart-total-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cart-section .cart-total-box .title {
    margin-bottom: 20px;
}

.cart-section .cart-total-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-section .cart-total-box ul li:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1em;
}

@media (max-width: 767px) {
    .cart-section .cart-table .table thead {
        display: none;
    }

    .cart-section .cart-table .table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 12px;
    }

    .cart-section .cart-table .table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
    }

    .cart-section .cart-table .table .product-thumbnail {
        margin-bottom: 8px;
    }

    .cart-section .cart-table .table .product-thumbnail img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }
}

/* ===== Footer: ensure images display and don't break layout ===== */
.footer-shape.shape-one span {
    display: block;
    line-height: 0;
}

.footer-shape.shape-one img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
}

.mini-gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.mini-gallery-item a {
    display: block;
}

/* ===== Mini cart: vertical space between View Cart and Checkout ===== */
.cart-button-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-button-box .theme-btn.style-one {
    width: 100%;
    margin: 0;
}

/* ===== Cart page: editable quantity input ===== */
.cart-section .cart-table .quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e1e1e1;
    border-radius: 50px;
    overflow: hidden;
    max-width: 120px;
}

.cart-section .cart-table .quantity-input .cart-qty-down,
.cart-section .cart-table .quantity-input .cart-qty-up {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-section .cart-table .quantity-input .cart-qty-down:hover,
.cart-section .cart-table .quantity-input .cart-qty-up:hover {
    background: #eee;
}

.cart-section .cart-table .quantity-input .quantity {
    width: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid #e1e1e1;
    border-right: 1px solid #e1e1e1;
    font-size: 14px;
    padding: 6px 4px;
}

.cart-section .cart-table .quantity-input .quantity::-webkit-outer-spin-button,
.cart-section .cart-table .quantity-input .quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-section .cart-table .quantity-input .quantity[type=number] {
    -moz-appearance: textfield;
}

/* ===== Checkout: payment option selected style ===== */
.payment-method-wrapper #paymentMethod li {
    padding: 14px 16px 14px 40px;
    margin-bottom: 10px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
    list-style: none;
}

.payment-method-wrapper #paymentMethod li:last-child {
    margin-bottom: 0;
}

.payment-method-wrapper #paymentMethod li:has(.form-check-input:checked) {
    border-color: var(--primary-color, #F84B2F);
    background: rgba(248, 75, 47, 0.06);
}

.payment-method-wrapper #paymentMethod li .form-check-label {
    cursor: pointer;
    font-weight: 600;
}

.payment-method-wrapper #paymentMethod li .collapse p {
    margin: 8px 0 0;
    font-weight: normal;
}

/* ===== Fixed telephone button (mirrors back-to-top on opposite side) ===== */
/* Back-to-top is bottom: 40px; right: 40px; 45px circle — phone is same, left side */
.fixed-contact-buttons {
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 9999;
    display: flex;
}

.fixed-contact-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    opacity: 0.95;
}

.fixed-contact-btn i {
    font-size: 1.2rem;
}

.fixed-contact-phone {
    background: #CC0D39;
}

.fixed-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204, 13, 57, 0.4);
    opacity: 1;
    background: #CC0D39;
}

@media (max-width: 575.98px) {
    .fixed-contact-buttons {
        left: 20px;
        bottom: 20px;
    }

    .fixed-contact-btn {
        width: 42px;
        height: 42px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }
}