﻿.tt-img {
    height: 400px !important;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .tt-logo {
        height: 40px !important;
    }

    .tt-img {
        height: 200px !important;
    }

    .tt-mobile-header .tt-header-row {
        justify-content: space-between !important;
    }

    .tt-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    footer .tt-footer-custom:last-child {
        padding: 0 !important;
    }

    footer .tt-mobile-collapse .tt-collapse-title {
        display: none !important;
    }

    footer .tt-mobile-collapse .tt-collapse-content {
        display: block !important;
    }

    .tt-stuck-nav .tt-header-row {
        justify-content: space-between !important;
    }

        .tt-stuck-nav .tt-header-row .tt-stuck-parent-account {
            display: none !important;
        }

    .modal-md {
        width: auto !important;
    }
}


/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Container adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Table transformation */
    .tt-shopcart-table table {
        width: 100%;
        display: block;
        border-collapse: collapse;
    }

    .tt-shopcart-table tbody {
        display: block;
        width: 100%;
    }

    .tt-product {
        display: flex;
        flex-direction: column;
        border: 1px solid #eee;
        margin-bottom: 20px;
        padding: 15px;
        position: relative;
    }

        .tt-product td {
            display: block;
            padding: 8px 0;
            width: 100% !important;
            text-align: left !important;
            border: none;
        }

            /* First line: Image, title, delete button */
            .tt-product td:nth-child(1), /* Delete button */
            .tt-product td:nth-child(2), /* Image */
            .tt-product td:nth-child(3) { /* Title and prices */
                display: inline-block;
                width: auto !important;
                vertical-align: middle;
                padding: 0;
            }

            /* Delete button positioning */
            .tt-product td:first-child {
                position: absolute;
                top: 10px;
                right: 10px;
                z-index: 1;
            }

    .tt-product-img {
        display: none !important;
    }

    /* Product image adjustments */
    .tt-product-img {
        display: inline-block;
        margin-right: 10px;
        vertical-align: middle;
    }

        .tt-product-img img {
            max-width: 60px;
            height: auto;
        }

    /* Title container */
    .tt-product td:nth-child(3) {
        display: inline-block;
        width: calc(100% - 120px) !important;
        padding-right: 30px;
        vertical-align: middle;
    }

    /* Title adjustments */
    .tt-title {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    /* Price information - hide on first line */
    .tt-product td:nth-child(3) .tt-price,
    .tt-product td:nth-child(3) .tax-info {
        display: none;
    }

    /* Mobile row containers */
    .tt-product .mobile-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 0;
    }

    /* Price row */
    .tt-product .price-row {
        border-bottom: 1px dashed #eee;
    }

    /* Quantity row */
    .tt-product .qty-row {
        border-bottom: 1px dashed #eee;
    }

    /* Total row */
    .tt-product .total-row {
        font-weight: bold;
        padding-top: 10px;
    }

    /* Label styling */
    .mobile-label {
        font-size: 14px;
        color: #666;
        font-weight: normal;
    }

    /* Value styling */
    .mobile-value {
        font-size: 14px;
        color: #333;
    }

    /* Total value styling */
    .total-row .mobile-value {
        font-weight: bold;
        font-size: 16px;
    }

    /* Quantity counter */
    .tt-input-counter.style-01 {
        margin: 0;
        max-width: 100px;
    }

    /* Cart buttons */
    .tt-shopcart-btn {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

        .tt-shopcart-btn .col-left,
        .tt-shopcart-btn .col-right {
            width: 100%;
            text-align: center;
        }

    /* Summary box */
    .tt-shopcart-box {
        margin-top: 30px;
    }

    .tt-shopcart-table01 {
        width: 100%;
    }

    /* Tax info adjustments */
    .tax-info {
        font-size: 12px;
        color: #666;
    }

    /* Discount percentage */
    .discount-percentage {
        font-size: 12px;
        color: green;
        margin-left: 5px;
    }

    /* Empty cart styling */
    .tt-empty-cart {
        text-align: center;
        padding: 40px 20px;
    }
}

/* Additional small mobile adjustments */
@media (max-width: 480px) {
    .tt-title-subpages.noborder {
        font-size: 24px !important;
        text-align: center;
    }

    .tt-product {
        padding: 10px;
    }

    .tt-product-img {
        display: none !important;
    }

    .tt-product-img img {
        max-width: 50px;
    }

    .tt-product td:nth-child(3) {
        width: calc(100% - 110px) !important;
    }

    .tt-shopcart-table01 th,
    .tt-shopcart-table01 td {
        padding: 8px 5px;
        font-size: 14px;
    }

    .mobile-label,
    .mobile-value {
        font-size: 13px;
    }

    .total-row .mobile-value {
        font-size: 14px;
    }
}