/* AVM19 shop — shop-default.html layout, theme via --avm-* tokens */

.avm-shop-page-title {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 1rem;
}

.avm-shop-page-title h1 {
    font-family: var(--avm-font-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 0.5rem;
    color: var(--avm-text);
}

.avm-shop-page-title__desc {
    color: var(--avm-text-muted);
    font-size: 0.9375rem;
    max-width: 42rem;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.avm-shop-search-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.avm-shop-search-form input[type="search"] {
    flex: 1;
    height: 48px;
    border: 1px solid var(--avm-border);
    border-radius: 999px;
    padding: 0 1.25rem 0 2.75rem;
    background: var(--avm-surface);
    color: var(--avm-text);
    font-size: 0.9375rem;
}

.avm-shop-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--avm-primary);
    box-shadow: 0 0 0 3px var(--avm-primary-soft);
}

.avm-shop-search-form__wrap {
    flex: 1;
    position: relative;
}

.avm-shop-search-form__wrap > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--avm-text-muted);
    pointer-events: none;
}

.avm-shop-search-form .avm-btn {
    flex-shrink: 0;
    border-radius: 999px;
    min-width: 110px;
}

.avm-shop-section {
    padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.avm-shop-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.65rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--avm-border);
    background: var(--avm-bg);
    position: sticky;
    top: 72px;
    z-index: 1020;
}

.avm-shop-btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    background: var(--avm-surface);
    color: var(--avm-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--avm-transition), border-color var(--avm-transition);
}

.avm-shop-btn-filter:hover {
    background: var(--avm-surface-alt);
    border-color: var(--avm-text-muted);
    color: var(--avm-text);
}

.avm-shop-control__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.avm-shop-layout {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.avm-shop-layout__btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--avm-radius-sm);
    background: var(--avm-surface-alt);
    color: var(--avm-text-muted);
    cursor: pointer;
    transition: background var(--avm-transition), color var(--avm-transition);
}

.avm-shop-layout__btn:hover,
.avm-shop-layout__btn.is-active {
    background: var(--avm-text);
    color: #fff;
}

.avm-shop-sort .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    background: var(--avm-surface);
    color: var(--avm-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.avm-shop-sort .dropdown-menu {
    border-color: var(--avm-border);
    border-radius: var(--avm-radius-sm);
    box-shadow: var(--avm-shadow-soft);
    min-width: 220px;
}

.avm-shop-sort .dropdown-item.active,
.avm-shop-sort .dropdown-item:active {
    background: var(--avm-primary-soft);
    color: var(--avm-primary);
}

.avm-shop-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--avm-text-muted);
}

.avm-shop-meta__divider {
    width: 1px;
    height: 14px;
    background: var(--avm-border);
}

.avm-shop-meta__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--avm-danger);
    font-weight: 500;
}

.avm-shop-meta__clear:hover {
    color: var(--avm-danger);
    opacity: 0.85;
}

.avm-shop-meta__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--avm-primary-soft);
    color: var(--avm-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ——— Product grid ——— */
.avm-shop-grid {
    display: grid;
    gap: 1.5rem 1rem;
}

.avm-shop-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.avm-shop-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.avm-shop-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .avm-shop-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .avm-shop-grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .avm-shop-grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ——— Product list ——— */
.avm-shop-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.avm-shop-card--list {
    display: grid;
    grid-template-columns: minmax(120px, 200px) 1fr;
    gap: 1rem 1.25rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--avm-border);
}

@media (min-width: 768px) {
    .avm-shop-card--list {
        grid-template-columns: 220px 1fr;
        gap: 1.5rem;
    }
}

/* ——— Modave product cards (shop-default) inside AVM shop ——— */
.avm-shop-modave .card-product .price-new.text-primary {
    color: var(--avm-primary) !important;
}

.avm-shop-modave .product-badge_item.sale {
    background: var(--avm-primary);
    color: #fff;
}

.avm-shop-modave .product-badge_item.personalized {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 52%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 0.38rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.42);
}

.avm-shop-modave .product-badge_item.personalized i {
    font-size: 0.95em;
    line-height: 1;
}

.avm-shop-modave .product-badge_item.personalized--emphasis {
    font-size: 0.78rem;
    padding: 0.48rem 0.85rem;
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
    animation: avm-personalized-badge-glow 2.8s ease-in-out infinite;
}

.avm-shop-page--customizable .product-badge_list--personalized {
    gap: 0.35rem;
}

.avm-product-personalized-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(79, 70, 229, 0.16));
    border: 1px solid rgba(109, 40, 217, 0.38);
}

.avm-product-personalized-tag i {
    font-size: 0.9em;
    color: #7c3aed;
}

.avm-product-personalized-tag--emphasis {
    font-size: 0.76rem;
    padding: 0.34rem 0.72rem;
    color: #4c1d95;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.16), rgba(79, 70, 229, 0.22));
    border-color: rgba(91, 33, 182, 0.45);
    box-shadow: 0 2px 10px rgba(109, 40, 217, 0.12);
}

.avm-shop-page--customizable .card-product_info .avm-product-personalized-tag {
    display: inline-flex;
}

@keyframes avm-personalized-badge-glow {
    0%,
    100% {
        box-shadow: 0 6px 20px rgba(109, 40, 217, 0.45);
    }

    50% {
        box-shadow: 0 8px 26px rgba(124, 58, 237, 0.62);
    }
}

.avm-shop-section .wrapper-shop.tf-grid-layout {
    gap: 1.5rem 1rem;
}

/* Mağaza grid — mobil: 2 sütun; tablet: 3; masaüstü: seçilen layout */
.avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-2,
.avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-3,
.avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-3,
    .avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .avm-shop-modave .wrapper-shop.tf-grid-layout.tf-col-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .avm-shop-modave .wrapper-shop.tf-grid-layout {
        column-gap: 0.65rem;
        row-gap: 1.15rem;
    }

    .avm-shop-modave .card-product.grid .name-product {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .avm-shop-modave .card-product.grid .price-new {
        font-size: 0.88rem;
    }

    .avm-shop-modave .card-product.grid .product-action_list {
        display: none;
    }

    .avm-shop-modave .card-product.grid .product-action_bot .tf-btn {
        font-size: 0.72rem;
        padding: 0.45rem 0.5rem;
    }

    .avm-shop-modave .product-badge_item.personalized {
        font-size: 0.58rem;
        padding: 0.28rem 0.45rem;
        gap: 0.2rem;
    }

    .avm-shop-modave .product-badge_item.personalized--emphasis {
        font-size: 0.62rem;
        padding: 0.32rem 0.5rem;
    }

    .avm-shop-modave .avm-product-personalized-tag--emphasis {
        font-size: 0.62rem;
        padding: 0.22rem 0.48rem;
    }
}

.avm-shop-section .tf-list-layout.wrapper-shop {
    gap: 0;
}

/* ——— Product card (legacy avm-shop-card) ——— */
.avm-shop-card {
    position: relative;
}

.avm-shop-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--avm-surface-alt);
    overflow: hidden;
}

.avm-shop-card--list .avm-shop-card__media {
    aspect-ratio: 4 / 5;
}

.avm-shop-card__media a {
    display: block;
    width: 100%;
    height: 100%;
}

.avm-shop-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform var(--avm-transition);
}

.avm-shop-card__media .img-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.avm-shop-card:hover .avm-shop-card__media .img-hover {
    opacity: 1;
}

.avm-shop-card:hover .avm-shop-card__media .img-product {
    transform: scale(1.03);
}

.avm-shop-card__badges {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.avm-shop-card__badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--avm-text);
    color: #fff;
}

.avm-shop-card__badge--sale {
    background: var(--avm-primary);
}

.avm-shop-card__actions {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity var(--avm-transition), transform var(--avm-transition);
}

.avm-shop-card:hover .avm-shop-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.avm-shop-card__action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--avm-surface);
    color: var(--avm-text);
    border: 1px solid var(--avm-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: background var(--avm-transition), color var(--avm-transition);
}

.avm-shop-card__action:hover {
    background: var(--avm-text);
    color: #fff;
    border-color: var(--avm-text);
}

.avm-shop-card .wishlist.addwishlist .avm-shop-card__action {
    background: var(--avm-primary);
    color: #fff;
    border-color: var(--avm-primary);
}

/* Modave quick view (shop layout uses theme.css; canvas rules from Modave) */
#quickView.canvas-quickview {
    display: flex;
    flex-direction: row;
}

#quickView.canvas-quickview .mini-quick-image {
    display: flex;
    width: 100%;
}

#quickView.canvas-quickview .wrap-quick {
    flex-grow: 1;
    overflow-y: auto;
    display: grid;
    gap: 28px;
    padding: 20px 16px;
}

#quickView.canvas-quickview .wrap-quick .image {
    border: 1px solid var(--avm-border, #e5e7eb);
    border-radius: 12px;
    display: flex;
}

#quickView.canvas-quickview .wrap-quick .image img {
    border-radius: 12px;
    aspect-ratio: 340 / 444;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#quickView.canvas-quickview .wrap-canvas {
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    #quickView.canvas-quickview {
        gap: 24px;
        width: min(848px, 96vw) !important;
        max-width: 848px !important;
    }

    #quickView.canvas-quickview .mini-quick-image {
        max-width: 340px;
        direction: rtl;
    }
}

@media (max-width: 767px) {
    #quickView.canvas-quickview {
        flex-direction: column;
    }

    #quickView.canvas-quickview .wrap-quick {
        display: flex;
        overflow-x: auto;
        padding: 15px 16px;
        gap: 8px;
    }

    #quickView.canvas-quickview .wrap-quick .image {
        max-width: 120px;
        width: 100%;
        flex-shrink: 0;
    }
}

.avm-quick-view {
    width: min(420px, 100%);
    background: var(--avm-surface);
    color: var(--avm-text);
}

.avm-quick-view .offcanvas-header {
    padding: 1rem 1.25rem;
}

.avm-quick-view .offcanvas-body {
    padding: 1rem 1.25rem 1.5rem;
}

.avm-quick-view__gallery img:last-child {
    margin-bottom: 0 !important;
}

.avm-shop-card__body {
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.avm-shop-card__name {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--avm-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: transparent;
    transition: color var(--avm-transition), text-decoration-color var(--avm-transition);
}

.avm-shop-card__name:hover {
    color: var(--avm-primary);
    text-decoration-color: currentColor;
}

.avm-shop-card__store {
    font-size: 0.75rem;
    color: var(--avm-text-muted);
}

.avm-shop-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    margin-top: 0.15rem;
}

.avm-shop-card__price-new {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--avm-primary);
}

.avm-shop-card__price-old {
    font-size: 0.8125rem;
    color: var(--avm-text-muted);
    text-decoration: line-through;
}

.avm-shop-card__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.avm-shop-card__variant-pill {
    font-size: 0.6875rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--avm-border);
    border-radius: 999px;
    color: var(--avm-text-muted);
    background: var(--avm-surface);
}

.avm-shop-card--list .avm-shop-card__list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* ——— Filter offcanvas ——— */
.avm-shop-filter.offcanvas {
    width: min(380px, 100%);
    background: var(--avm-surface);
    color: var(--avm-text);
}

.avm-shop-filter .offcanvas-header {
    border-bottom: 1px solid var(--avm-border);
    padding: 1.1rem 1.25rem;
}

.avm-shop-filter .offcanvas-title {
    font-family: var(--avm-font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.avm-shop-filter .offcanvas-body {
    padding: 0;
}

.avm-shop-filter__facet {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--avm-border);
}

.avm-shop-filter__facet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--avm-text);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.avm-shop-filter__facet-title i {
    transition: transform var(--avm-transition);
}

.avm-shop-filter__facet-title[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.avm-shop-filter__links {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.avm-shop-filter__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--avm-text-muted);
}

.avm-shop-filter__links a:hover,
.avm-shop-filter__links a.is-active {
    color: var(--avm-primary);
}

.avm-shop-filter__checks {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avm-shop-filter__checks .form-check-input:checked {
    background-color: var(--avm-primary);
    border-color: var(--avm-primary);
}

.avm-shop-filter__sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.avm-shop-filter__size-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--avm-transition), background var(--avm-transition);
}

.avm-shop-filter__sizes input:checked + .avm-shop-filter__size-label {
    border-color: var(--avm-text);
    background: var(--avm-surface-alt);
}

/* ——— Search modal (shop-default style) ——— */
.avm-search-modal .modal-content {
    border: 0;
    border-radius: 0;
    padding: 0.5rem 0 1rem;
}

.avm-search-modal .modal-header {
    border: 0;
    padding: 1rem 1.25rem 0.5rem;
}

.avm-search-modal .modal-title {
    font-family: var(--avm-font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.avm-search-modal .modal-body {
    padding: 0 1.25rem 1.25rem;
}

.avm-search-modal__form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--avm-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--avm-surface-alt);
}

.avm-search-modal__form input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    color: var(--avm-text);
}

.avm-search-modal__form input:focus {
    outline: none;
}

.avm-search-modal__form button {
    border: 0;
    background: var(--avm-primary);
    color: #fff;
    width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--avm-transition);
}

.avm-search-modal__form button:hover {
    background: var(--avm-primary-hover);
}

.avm-search-modal__hint {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--avm-text-muted);
}

@media (max-width: 575px) {
    .avm-shop-control {
        top: 64px;
    }

    .avm-shop-control__right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ——— Product detail (product-detail.html) ——— */
.avm-pd-head {
    padding: 1.25rem 0 0.5rem;
    border-bottom: 1px solid var(--avm-border);
    margin-bottom: 1.5rem;
}

.avm-pd-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.avm-pd-head__nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.avm-pd-head__nav a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    color: var(--avm-text-muted);
    transition: background var(--avm-transition), color var(--avm-transition), border-color var(--avm-transition);
}

.avm-pd-head__nav a:hover {
    background: var(--avm-surface-alt);
    color: var(--avm-text);
    border-color: var(--avm-text-muted);
}

.avm-pd-section {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.avm-pd-gallery {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    position: sticky;
    top: 88px;
}

.avm-pd-gallery--single {
    grid-template-columns: 1fr;
}

@media (max-width: 767px) {
    .avm-pd-gallery {
        grid-template-columns: 1fr;
        position: static;
    }
}

.avm-pd-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: min(72vh, 640px);
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 767px) {
    .avm-pd-gallery__thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        order: 2;
    }
}

.avm-pd-gallery__thumb {
    flex: 0 0 auto;
    width: 72px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--avm-border);
    padding: 0;
    background: var(--avm-surface-alt);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--avm-transition);
}

.avm-pd-gallery__thumb.is-active {
    border-color: var(--avm-text);
}

.avm-pd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avm-pd-gallery__main {
    background: var(--avm-surface-alt);
    aspect-ratio: 4 / 5;
    min-height: min(52vh, 520px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avm-pd-gallery__main img {
    width: 100%;
    height: 100%;
    max-height: min(72vh, 720px);
    object-fit: contain;
    cursor: zoom-in;
}

.avm-pd-gallery__expand {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--avm-surface);
    color: var(--avm-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--avm-transition), transform var(--avm-transition);
}

.avm-pd-gallery__main:hover .avm-pd-gallery__expand,
.avm-pd-gallery__expand:focus-visible {
    opacity: 1;
}

.avm-pd-gallery__expand:hover {
    transform: scale(1.05);
    color: var(--avm-primary);
}

.avm-pd-gallery-pswp {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.avm-pd-info-wrap {
    min-height: 1px;
}

.avm-pd-zoom-pane.tf-zoom-main {
    position: absolute;
    top: 0;
    right: 0;
    width: min(48%, 520px);
    pointer-events: none;
    z-index: 5;
}

.avm-pd-zoom-pane .drift-zoom-pane {
    top: 0;
    left: 0;
    height: min(520px, 55vh);
    max-width: 520px;
    width: 100%;
    background: var(--avm-surface);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    pointer-events: auto;
}

.avm-pd-zoom-pane .drift-zoom-pane img {
    object-fit: contain;
}

.section-image-zoom .other-image-zoom {
    transition: opacity 0.3s ease;
}

@media (min-width: 1200px) {
    .section-image-zoom.zoom-active .avm-pd-info.other-image-zoom {
        opacity: 0.35;
    }
}

.drift-bounding-box.drift-open {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.pswp__bg {
    background: var(--avm-surface);
}

.pswp__counter {
    color: var(--avm-text);
}

.avm-pd-info {
    padding-top: 0.25rem;
}

.avm-pd-info__cate {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--avm-text-muted);
    margin-bottom: 0.65rem;
}

.avm-pd-info__title {
    font-family: var(--avm-font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.avm-pd-info__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--avm-text-muted);
    margin-bottom: 1.25rem;
}

.avm-pd-info__meta-divider {
    width: 1px;
    height: 14px;
    background: var(--avm-border);
}

.avm-pd-info__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.avm-pd-info__price-current {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--avm-primary);
    margin: 0;
}

.avm-pd-info__price-old {
    font-size: 1rem;
    color: var(--avm-text-muted);
    text-decoration: line-through;
}

.avm-pd-info__badge-sale {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--avm-primary);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.avm-pd-info__excerpt {
    color: var(--avm-text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.avm-pd-divider {
    border: 0;
    border-top: 1px solid var(--avm-border);
    margin: 1.25rem 0;
}

.avm-pd-variant__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.avm-pd-variant__label span {
    font-weight: 400;
    color: var(--avm-text-muted);
}

.avm-pd-variant__values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.avm-pd-color-swatch {
    width: 56px;
    height: 56px;
    border: 1px solid var(--avm-border);
    padding: 2px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    text-align: center;
    transition: border-color var(--avm-transition);
}

.avm-pd-color-swatch.is-active {
    border-color: var(--avm-text);
}

.avm-pd-color-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avm-pd-color-swatch--hex {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.avm-pd-color-swatch--hex.is-active {
    outline: 2px solid var(--avm-text);
    outline-offset: 2px;
}

.avm-pd-size-btn {
    min-width: 44px;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--avm-transition), background var(--avm-transition);
}

.avm-pd-size-btn:hover,
.avm-pd-size-btn.is-active {
    border-color: var(--avm-text);
    background: var(--avm-surface-alt);
    color: var(--avm-text);
}

.avm-pd-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avm-pd-actions__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
}

.avm-pd-actions__row .avm-qty-input {
    flex-shrink: 0;
}

.avm-pd-actions__row .avm-btn--cart {
    flex: 1;
    min-width: 180px;
    border-radius: 999px;
}

.avm-pd-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.8125rem;
}

.avm-pd-extra-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--avm-text-muted);
}

.avm-pd-extra-links a:hover {
    color: var(--avm-primary);
}

.avm-pd-store-box {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    background: var(--avm-surface-alt);
    border: 1px solid var(--avm-border);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.avm-pd-tabs {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--avm-border);
}

.avm-pd-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    border-bottom: 1px solid var(--avm-border);
    margin-bottom: 1.5rem;
}

.avm-pd-tabs__nav .nav-link {
    border: 0;
    border-radius: 0;
    padding: 0.65rem 0;
    margin-bottom: -1px;
    font-family: var(--avm-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--avm-text-muted);
    background: transparent;
}

.avm-pd-tabs__nav .nav-link.active {
    color: var(--avm-text);
    border-bottom: 2px solid var(--avm-primary);
}

.avm-pd-tabs__content {
    color: var(--avm-text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.avm-pd-related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--avm-border);
}

.avm-pd-related__title {
    font-family: var(--avm-font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.avm-pd-sticky-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    background: var(--avm-surface);
    border-top: 1px solid var(--avm-border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.65rem 0;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
    transform: translateY(110%);
    transition: transform var(--avm-transition);
}

.avm-pd-sticky-atc.is-visible {
    transform: translateY(0);
}

.avm-pd-sticky-atc__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.avm-pd-sticky-atc__product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.avm-pd-sticky-atc__product img {
    width: 48px;
    height: 60px;
    object-fit: cover;
    background: var(--avm-surface-alt);
    flex-shrink: 0;
}

.avm-pd-sticky-atc__name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.avm-pd-sticky-atc__price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--avm-primary);
}

.avm-pd-sticky-atc__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .avm-pd-sticky-atc {
        /* Mobil alt toolbar (72px) üstünde — footer/nav ile çakışmasın */
        bottom: calc(72px + env(safe-area-inset-bottom, 0));
        padding-bottom: 0.65rem;
    }

    body.avm19-theme:has(.avm-pd-sticky-atc.is-visible) {
        padding-bottom: calc(72px + 76px + env(safe-area-inset-bottom, 0));
    }

    .avm-pd-sticky-atc__name {
        display: none;
    }
}

/* —— Mini cart drawer (Modave popup-shopping-cart) —— */
.popup-shopping-cart.avm-cart-drawer,
.popup-shopping-cart .canvas-wrapper {
    background-color: var(--white, #ffffff);
}

@media (max-width: 767px) {
    .offcanvas.popup-shopping-cart {
        background-color: var(--white, #ffffff) !important;
    }

    .popup-shopping-cart .canvas-wrapper {
        background-color: var(--white, #ffffff);
        min-height: 100%;
    }
}

@media (min-width: 768px) {
    .popup-shopping-cart.avm-cart-drawer {
        background: transparent;
    }

    .popup-shopping-cart.avm-cart-drawer .canvas-wrapper {
        background-color: var(--white, #ffffff);
        max-width: 480px;
        margin-left: auto;
    }
}

.popup-shopping-cart .tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.popup-shopping-cart .tf-btn.animate-btn {
    background: var(--primary, var(--avm-primary, #101010));
    color: var(--white, #ffffff);
}

.popup-shopping-cart .tf-btn.animate-btn:hover {
    background: var(--text, #101010);
    color: var(--white, #ffffff);
}

.popup-shopping-cart .tf-btn.btn-stroke {
    background: transparent;
    color: var(--text, #101010);
    border: 1px solid var(--text, #101010);
}

.popup-shopping-cart .tf-btn.btn-stroke:hover {
    background: var(--text, #101010);
    color: var(--white, #ffffff);
}

.popup-shopping-cart .tf-mini-cart-view-checkout {
    display: flex;
    gap: 16px;
}

.popup-shopping-cart .tf-mini-cart-view-checkout .tf-btn {
    width: 100%;
    padding: 0 14px;
    white-space: nowrap;
}

.avm-cart-drawer {
    width: min(480px, 100vw) !important;
    border: none;
}

.avm-cart-drawer .canvas-wrapper {
    height: 100%;
}

.avm-cart-drawer .popup-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--avm-border);
}

.avm-cart-drawer .popup-header .title {
    font-family: var(--avm-font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--avm-text);
}

.avm-cart-drawer__close {
    border: none;
    background: transparent;
    color: var(--text-2, var(--avm-text-muted, #6b7280));
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem;
}

.avm-cart-drawer__close:hover {
    color: var(--text, var(--avm-text, #101010));
}

.avm-cart-drawer .cart-threshold {
    padding: 1rem;
    background: var(--bg, var(--avm-surface-alt, #f5f5f5));
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-2, var(--avm-text-muted, #6b7280));
}

.avm-cart-drawer__highlight {
    color: var(--avm-primary);
    font-weight: 600;
}

.avm-cart-drawer .tf-progress-ship {
    border-radius: 100px;
    height: 4px;
    background: var(--avm-border);
    margin-top: 0.5rem;
    overflow: hidden;
}

.avm-cart-drawer .tf-progress-ship .value {
    display: block;
    height: 100%;
    background: var(--success, var(--primary, var(--avm-primary, #101010)));
    border-radius: 100px;
    transition: width 0.4s ease;
}

.avm-cart-drawer .tf-mini-cart-main {
    flex: 1 1 auto;
    position: relative;
    min-height: 120px;
}

.avm-cart-drawer .tf-mini-cart-sroll {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: 0 1.5rem;
}

.avm-cart-drawer .tf-mini-cart-items {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem 0;
}

.avm-cart-drawer .tf-mini-cart-items.list-empty {
    justify-content: center;
    align-items: center;
}

.avm-cart-drawer .box-text_empty.type-shop_cart {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 280px;
}

.avm-cart-drawer .shop-empty_top .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--avm-surface-alt);
    color: var(--avm-text-muted);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.avm-cart-drawer .shop-empty_top .text-emp {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--avm-text);
}

.avm-cart-drawer .shop-empty_top .cl-text-2 {
    font-size: 0.875rem;
    color: var(--avm-text-muted);
    margin-bottom: 1.5rem;
}

.avm-cart-drawer .shop-empty_bot {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avm-cart-drawer .tf-mini-cart-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.avm-cart-drawer .tf-mini-cart-item:not(:last-child) {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--avm-border);
}

.avm-cart-drawer .tf-mini-cart-image {
    flex-shrink: 0;
    width: 100px;
}

.avm-cart-drawer .tf-mini-cart-image img,
.avm-cart-drawer .avm-cart-item__placeholder {
    width: 100px;
    height: 133px;
    object-fit: cover;
    background: var(--avm-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--avm-text-muted);
    font-size: 1.5rem;
}

.avm-cart-drawer .tf-mini-cart-info .name,
.avm-cart-drawer .tf-mini-cart-info .title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--avm-text);
    text-decoration: none;
}

.avm-cart-drawer .tf-mini-cart-info .name:hover,
.avm-cart-drawer .tf-mini-cart-info .title:hover {
    color: var(--avm-primary);
}

.avm-cart-drawer .text-caption-01.cl-text-3 {
    font-size: 0.8125rem;
    color: var(--avm-text-muted);
    margin-bottom: 0.5rem;
}

.avm-cart-drawer .wg-quantity {
    border-color: var(--avm-border) !important;
    border-radius: 6px;
}

.avm-cart-drawer .btn-quantity {
    color: var(--avm-text);
    min-width: 28px;
}

.avm-cart-drawer .tf-mini-cart-price {
    min-width: 90px;
    text-align: right;
}

.avm-cart-drawer .tf-btn-line-3.remove {
    color: var(--avm-primary);
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
}

.avm-cart-drawer .tf-mini-cart-price .price {
    color: var(--avm-text);
    font-size: 0.875rem;
}

.avm-cart-drawer .tf-mini-cart-price .tf-mini-card-price {
    color: var(--avm-primary);
}

.avm-cart-drawer .tf-mini-cart-bottom-wrap {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--line, var(--avm-border, #e5e7eb));
    background: var(--white, #ffffff);
}

.avm-cart-drawer .tf-mini-cart-total .text-total {
    font-size: 1rem;
    font-weight: 600;
}

.avm-cart-drawer .avm-cart-total-value {
    color: var(--primary, var(--avm-primary, #101010));
}

.avm-cart-drawer__continue {
    font-size: 0.875rem;
    color: var(--text-2, var(--avm-text-muted, #6b7280));
    text-decoration: none;
}

.avm-cart-drawer__continue:hover {
    color: var(--primary, var(--avm-primary, #101010));
}

/* —— Cart page (Modave view-cart.html) —— */
.avm-cart-page .box-order-summary {
    background: var(--avm-surface, var(--white, #fff));
    border: 1px solid var(--avm-border, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    padding: 1.5rem;
}

.avm-cart-page .tf-table-page-cart .cart_product {
    min-width: 280px;
}

.avm-cart-page .tf-table-page-cart .cart_product .img-prd img,
.avm-cart-page .tf-table-page-cart .cart_product .img-prd .avm-cart-item__placeholder {
    border-radius: 8px;
    object-fit: cover;
}

.avm-cart-page .tf-table-page-cart .cart_remove {
    margin-top: 0.5rem;
    cursor: pointer;
}

.avm-cart-page .fl-sidebar-cart .title,
.avm-cart-page .fl-sidebar-cart .total-order {
    color: var(--avm-text, var(--text, #101010));
}

.avm-cart-page .notification-progress p {
    font-size: 0.875rem;
    color: var(--avm-text-muted, var(--text-2, #6b7280));
    margin-bottom: 0.75rem;
}

.avm-cart-page .progress-cart {
    background: var(--avm-surface-alt, #f4f4f5);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.avm-cart-page .progress-cart .value {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.avm-cart-page .tf-btn.btn-stroke {
    background: transparent;
    color: var(--avm-text, var(--text, #101010));
    border: 1px solid var(--avm-border, var(--text, #101010));
}

.avm-cart-page .tf-btn.btn-stroke:hover {
    background: var(--avm-text, var(--text, #101010));
    color: var(--white, #fff);
}

@media (max-width: 991px) {
    .avm-cart-page .fl-sidebar-cart.sticky-top {
        position: static !important;
    }
}

@media (max-width: 575px) {
    .avm-cart-page .section-page-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .avm-cart-drawer .popup-header,
    .avm-cart-drawer .tf-mini-cart-sroll {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .avm-cart-drawer .tf-mini-cart-bottom-wrap {
        padding: 1rem;
    }

    .avm-cart-drawer .tf-mini-cart-image,
    .avm-cart-drawer .tf-mini-cart-image img,
    .avm-cart-drawer .avm-cart-item__placeholder {
        width: 80px;
        height: 106px;
    }
}
