/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* İletişim: footerReveal yalnızca footerdan önceki tek kardeşe margin verir; sarmalayıcı + z-index */
.contact-page-wrap {
    position: relative;
    z-index: 2;
}

/* —— S.S.S akordiyon —— */
#faqAccordion.faq-page-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#faqAccordion.faq-page-accordion .accordion-item {
    margin-bottom: 0;
    border: 1px solid #ededed;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#faqAccordion.faq-page-accordion .accordion-item:hover {
    border-color: #e3e3e3;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.07);
}

#faqAccordion.faq-page-accordion .accordion-button {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    padding: 1.1rem 1.35rem;
    background-color: #fff;
    box-shadow: none;
}

#faqAccordion.faq-page-accordion .accordion-button:not(.collapsed) {
    color: #004dda;
    background-color: rgba(0, 77, 218, 0.07);
    box-shadow: none;
}

#faqAccordion.faq-page-accordion .accordion-button::after {
    background-size: 1.05rem;
    opacity: 0.55;
}

#faqAccordion.faq-page-accordion .accordion-button:not(.collapsed)::after {
    opacity: 0.85;
}

#faqAccordion.faq-page-accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(0, 77, 218, 0.2);
    border-color: transparent;
}

#faqAccordion.faq-page-accordion .faq-page-accordion__body {
    padding: 1.15rem 1.35rem 1.45rem;
    color: #444;
    line-height: 1.7;
    font-size: 0.95rem;
    background-color: #fafbfc;
    border-top: 1px solid #ededed;
}

#faqAccordion.faq-page-accordion .faq-page-accordion__q {
    padding-right: 0.75rem;
    text-align: left;
}

.faq-empty {
    background: #fff;
    border: 1px dashed #e0e0e0;
    border-radius: 10px;
    padding: 3rem 1.5rem;
}

.faq-empty i {
    display: inline-block;
    font-size: 3rem;
    line-height: 1;
    color: #004dda;
    opacity: 0.22;
}

/* Mobil slider: tasma olmasin */
@media (max-width: 767px) {
    #carousel-home {
        width: 100%;
        margin: 0;
        padding: -0 0px !important;
    }

    #carousel-home,
    #carousel-home .owl-carousel,
    #carousel-home .owl-stage-outer,
    #carousel-home .owl-carousel .owl-slide {
        overflow: hidden;
    }

    #carousel-home .owl-carousel .owl-slide {
        height: 280px;
    }

    #carousel-home .owl-stage,
    #carousel-home .owl-item,
    #carousel-home .opacity-mask {
        height: 280px;
    }

    #carousel-home .cover {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-color: transparent !important;
    }

    #carousel-home .opacity-mask {
        background-color: transparent !important;
        padding: 12px 10px;
    }
}

/* Home category images: keep stable crop/alignment */
#banners_grid .img_container .product-category-image {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
}

@media (min-width: 768px) {
    #banners_grid .img_container .product-category-image {
        object-position: center top;
    }
}

.newsletter-input::placeholder {
    color: #d9d9d9 !important;
    opacity: 1;
}

/* Profile edit page */
.profile-edit-page {
    margin-bottom: 80px;
}

.profile-edit-card {
    border: 1px solid #eef1f6;
    border-radius: 14px;
}

.profile-edit-title {
    display: block;
    width: 100%;
    text-align: left !important;
    padding-left: 0 !important;
}

.profile-edit-input {
    height: 46px;
}

.profile-edit-submit {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Address page footer reveal alignment */
.address-page-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 24px !important;
    padding-bottom: 0.5rem;
}

#address-page-wrap + footer.revealed {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
    z-index: 1 !important;
}

/* Blog detail page footer reveal alignment */
.blog-detail-page-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-detail-page-wrap + footer.revealed {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}

/* Blog index page footer reveal alignment */
.blog-index-page-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.blog-index-page-wrap + footer.revealed {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
}

/* Product detail page footer reveal alignment */
#item-content > .product-detail-page-wrap {
    position: relative;
    z-index: 2;
    display: block;
    clear: both;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: #fff;
}

#item-content > .product-detail-page-wrap ~ footer.revealed {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1 !important;
}

/* Global safety: keep revealed footer in normal flow */
#item-content > footer.revealed {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1 !important;
}

/* Cart table column balance fix */
.table.cart-list {
    table-layout: auto;
}

.table.cart-list th:nth-child(1) {
    width: 36%;
}

.table.cart-list th:nth-child(2),
.table.cart-list th:nth-child(3),
.table.cart-list th:nth-child(4),
.table.cart-list th:nth-child(5),
.table.cart-list th:nth-child(6),
.table.cart-list th:nth-child(7) {
    width: auto;
}

.table.cart-list .item_cart {
    margin: 18px 0 0 10px;
}

/* Cart quantity column: keep +/- and qty readable */
.table.cart-list td.cart-qty-cell {
    min-width: 128px;
}

.table.cart-list td.cart-qty-cell .numbers-row {
    width: 118px;
    min-width: 118px;
}

/* Orders page pagination alignment */
.orders-pagination {
    text-align: center;
}

.orders-pagination .pagination {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
}

.whatsapp-float-icon {
    filter: brightness(0) invert(1);
}

/* Desktop cart drawer */
.desktop-cart-drawer-backdrop,
.desktop-cart-drawer {
    display: none;
}

@media (min-width: 992px) {
    .desktop-cart-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1050;
    }

    .desktop-cart-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(420px, 90vw);
        height: 100vh;
        background: #fff;
        box-shadow: -8px 0 26px rgba(0, 0, 0, 0.16);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 1051;
    }

    .desktop-cart-drawer.is-open {
        transform: translateX(0);
    }

    .desktop-cart-drawer-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .desktop-cart-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid #ececec;
    }

    .desktop-cart-drawer-close {
        border: 1px solid #ececec;
        background: #fff;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        line-height: 1;
    }

    .desktop-cart-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 12px 14px;
    }

    .desktop-cart-drawer-items {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .desktop-cart-drawer-footer {
        border-top: 1px solid #ececec;
        padding: 14px;
        background: #fff;
    }

    .desktop-cart-summary {
        border: 1px solid #ededed;
        border-radius: 10px;
        background: #f8f9fb;
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .desktop-cart-summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        line-height: 1.25;
        border-bottom: 1px dashed #e7e7e7;
    }

    .desktop-cart-summary-row:last-child {
        border-bottom: 0;
    }

    .desktop-cart-summary-row strong {
        font-size: 13px;
        font-weight: 600;
        color: #666;
        margin: 0;
    }

    .desktop-cart-summary-row span {
        float: none !important;
        font-size: 14px;
        font-weight: 600;
        color: #111;
        margin: 0;
        white-space: nowrap;
    }

    .desktop-cart-summary-row.total strong,
    .desktop-cart-summary-row.total span {
        font-size: 16px;
        font-weight: 700;
        color: #111;
    }

    .desktop-cart-drawer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .desktop-cart-drawer-actions .btn_1 {
        margin: 0;
        text-align: center;
        padding: 10px 8px;
    }
}

