/* ================================================
   Ecommerce Custom Styling
   ================================================ */

/* Hero Slider Image Sizing Fix */
.main-slider-style3 .image-layer {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

.main-slider-style3__inner-bg {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
}

.main-slider-style3 .swiper-slide {
    overflow: hidden !important;
}



/* Footer 4 Columns in 1 Row */
.single-footer-widget-style3 {
    margin-bottom: 40px !important;
}

@media (min-width: 1200px) {
    .footer-main__inner .row .col-xl-3.single-widget {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Quantity Input Styling - Matches Template Theme */
.single-shop-style1__quantity-input input.quantity-spinner {
    width: 100%;
    padding: 0;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 600;
    color: #a29f98;
}

.single-shop-style1__quantity-input input.quantity-spinner:focus {
    outline: none;
    box-shadow: none;
}

/* Hide Touchspin buttons for cleaner look */
.single-shop-style1__quantity-input .bootstrap-touchspin .input-group-btn-vertical {
    display: none !important;
}

/* Touchspin buttons styling */
.single-shop-style1__quantity-input .bootstrap-touchspin .input-group-btn-vertical .btn:focus,
.single-shop-style1__quantity-input .bootstrap-touchspin .input-group-btn-vertical .btn:active {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Product Details Page Quantity Input */
.product-quantity-box .input-box .quantity-spinner {
    padding: 10px 15px;
    border: 1px solid var(--thm-border-color-1);
    border-radius: 4px;
    background: var(--thm-white);
    color: var(--thm-black);
    font-weight: 600;
}

.product-quantity-box .input-box .quantity-spinner:focus {
    outline: none;
    border-color: var(--thm-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

/* Cart Page Quantity Input */
.cart-qty {
    padding: 8px 12px;
    border: 1px solid var(--thm-border-color-1);
    border-radius: 4px;
    background: var(--thm-white);
    color: var(--thm-black);
    font-weight: 600;
    text-align: center;
}

.cart-qty:focus {
    outline: none;
    border-color: var(--thm-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25);
}

.cart-qty::-webkit-outer-spin-button,
.cart-qty::-webkit-inner-spin-button {
    -webkit-appearance: outer-spin-button;
    opacity: 1;
}

/* Hover effects */
.single-shop-style1:hover .single-shop-style1__quantity {
    background-color: var(--thm-gray-bg-2);
    transition: all 300ms ease;
}

/* Notification Toast Styling */
.cart-notification {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    font-weight: 600;
}

/* Discount Badge */
.discount-badge {
    animation: badgePop 0.3s ease-out !important;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Product Card Hover Effects */
.single-shop-style1:hover {
    transition: all 300ms ease;
}

.single-shop-style1:hover .single-shop-style1__quantity-input {
    border-color: var(--thm-primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .single-shop-style1__quantity-input {
        width: 65px;
        height: 45px;
    }

    .single-shop-style1__quantity-input input.quantity-spinner.form-control {
        width: 65px;
        height: 45px;
        font-size: 14px;
    }

    .cart-qty {
        width: 50px;
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Button Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus {
    box-shadow: none;
    outline: none;
}

/* Hide Number Input Spinner (+ and - buttons) */
input[type="number"].quantity-spinner::-webkit-outer-spin-button,
input[type="number"].quantity-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

input[type="number"].quantity-spinner {
    -moz-appearance: textfield;
}

/* Loading state for adding to cart */
.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Cart item row hover */
.cart-table tbody tr:hover {
    background-color: rgba(39, 174, 96, 0.05);
    transition: background-color 200ms ease;
}

/* Form control styling for consistency */
.form-control.quantity-spinner {
    padding: 0;
    text-align: center;
    border: none;
    background: transparent;
}

/* Category Filter Active State */
.product-page__sidebar-categories-list li.active a {
    color: var(--thm-primary-color);
    font-weight: 700;
    border-bottom-color: var(--thm-primary-color);
}

.product-page__sidebar-categories-list li.active a span {
    color: var(--thm-primary-color);
    font-weight: 700;
}

/* Product Grid Layout - Better spacing */
.product-page__right .row {
    justify-content: flex-start !important;
}

/* Sticky Header Cart Button Visibility Fix */
.sticky-header__content {
    overflow: visible !important;
}

.sticky-header__content .main-header-style3__content-bottom-right {
    display: flex !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
}

/* Cart Badge Styling */
.cart-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: relative !important;
    display: none !important;
}

.cart-badge.show {
    display: inline-flex !important;
}

.stricky-header .main-header-style3__content-bottom-middle {
    flex: 1;
    min-width: 0;
}

/* Screen-reader-only label utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Contact page: center titles, form and Telefon/Program cards */
.main-contact-form .sec-title {
    text-align: center;
}
.main-contact-form .sec-title .sub-title {
    margin-left: auto;
    margin-right: auto;
}
.main-contact-form .row > .contact-form {
    margin: 0 auto;
}
.main-contact-form #contact-form .checked-box1 {
    justify-content: center;
}

/* Contact info cards (Telefon / Program) — clean, icon-based */
.location-info .info-cards-row {
    justify-content: center;
}
.info-card {
    background: #ffffff;
    border: 1px solid #e6e1d3;
    border-radius: 16px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(28, 32, 23, 0.05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
    position: relative;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(28, 32, 23, 0.10);
    border-color: var(--thm-primary-color);
}
.info-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--thm-primary-color, #4a8b3a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}
.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--thm-black, #1c2017);
    text-transform: capitalize;
}
.info-card__sub {
    color: #7a8175;
    font-size: 14px;
    margin: 0 0 6px;
}
.info-card__primary {
    font-size: 19px;
    font-weight: 600;
    color: var(--thm-black, #1c2017);
    margin: 0 0 14px;
}
.info-card__primary a {
    color: inherit;
    text-decoration: none;
}
.info-card__primary a:hover {
    color: var(--thm-primary-color, #4a8b3a);
}
.info-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--thm-primary-color, #4a8b3a);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.info-card__cta:hover {
    color: var(--thm-black, #1c2017);
}
.info-card__cta .icon-arrow {
    font-size: 18px;
    line-height: 0;
}

/* Reduce gap between Location Info and Contact Form sections */
.location-info {
    padding-bottom: 40px;
}
.main-contact-form {
    padding-top: 50px;
}

/*=====================================================
   Cart Page – Card Layout
=====================================================*/
.cart-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 40px;
}

.cart-cards__loading {
    text-align: center;
    padding: 40px 20px;
    background: var(--thm-gray-bg);
    border-radius: 14px;
    border: 1px solid #ede9d8;
    color: var(--thm-body-font-color);
}

.cart-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "title"
        "image"
        "meta"
        "actions";
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ede9d8;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(26, 14, 5, 0.04);
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.cart-card:hover {
    box-shadow: 0 6px 18px rgba(26, 14, 5, 0.08);
}

.cart-card__title {
    grid-area: title;
    margin: 0;
    font-family: var(--thm-font-2);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--thm-black);
    text-align: center;
}

.cart-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 250ms ease;
}

.cart-card__title a:hover {
    color: var(--thm-primary-color);
}

.cart-card__image {
    grid-area: image;
    display: block;
    justify-self: center;
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ede9d8;
    border-radius: 12px;
    background: var(--thm-gray-bg);
}

.cart-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.cart-card__image:hover img {
    transform: scale(1.05);
}

.cart-card__meta {
    grid-area: meta;
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px dashed #ede9d8;
    border-bottom: 1px dashed #ede9d8;
}

.cart-card__meta > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cart-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--thm-body-font-color);
}

.cart-card__value {
    font-family: var(--thm-font-2);
    font-size: 17px;
    font-weight: 700;
    color: var(--thm-black);
}

.cart-card__subtotal .cart-card__value {
    color: var(--thm-primary-color);
}

.cart-card__actions {
    grid-area: actions;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-card__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ede9d8;
    border-radius: 999px;
    background: var(--thm-gray-bg);
    overflow: hidden;
}

.cart-card__qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--thm-black);
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.cart-card__qty-btn:hover {
    background: var(--thm-primary-color);
    color: #fff;
}

.cart-card__qty .cart-qty {
    width: 44px;
    height: 38px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--thm-font-2);
    font-size: 16px;
    font-weight: 700;
    color: var(--thm-black);
    -moz-appearance: textfield;
    outline: none;
}

.cart-card__qty .cart-qty::-webkit-outer-spin-button,
.cart-card__qty .cart-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-card__remove {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1px solid #ede9d8;
    border-radius: 999px;
    background: #fff;
    color: var(--thm-body-font-color);
    font-family: var(--thm-font-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cart-card__remove i {
    font-size: 14px;
}

.cart-card__remove:hover {
    background: #d81e05;
    border-color: #d81e05;
    color: #fff;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--thm-gray-bg);
    border-radius: 14px;
    border: 1px solid #ede9d8;
}

.cart-empty h3 {
    font-family: var(--thm-font-2);
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--thm-black);
}

.cart-empty p {
    margin-bottom: 18px;
}

.cart-empty .btn-one {
    display: inline-block;
}

@media (min-width: 768px) {
    .cart-card {
        grid-template-columns: 130px 1.4fr 1.6fr auto;
        grid-template-areas:
            "image title meta actions";
        gap: 22px;
        align-items: center;
        padding: 22px;
    }

    .cart-card__title {
        text-align: left;
        font-size: 19px;
    }

    .cart-card__image {
        max-width: 130px;
    }

    .cart-card__meta {
        padding: 0;
        border: none;
    }

    .cart-card__meta > div {
        align-items: flex-start;
    }

    .cart-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cart-card__remove {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .cart-card {
        grid-template-columns: 140px 2fr 1.6fr auto;
        gap: 30px;
        padding: 26px 30px;
    }
    .cart-card__actions {
        flex-direction: row;
        align-items: center;
    }
}
