/* =========================================================
   FOOTER
   ========================================================= */
footer { background: var(--accent-bg); color: var(--on-accent-bg); margin-top: 40px; padding-top: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }

.footer-top .brand-col p { font-size: 13px; opacity: 0.8; line-height: 1.6; max-width: 260px; }
.footer-top .fsocial { display: flex; gap: 10px; margin-top: 16px; }
.footer-top .fsocial span { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-top h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.65; margin: 0 0 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; opacity: 0.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0 calc(20px + env(safe-area-inset-bottom,0px)); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; opacity: 0.75; flex-wrap: wrap; gap: 12px; }
.payment-icons { display: flex; gap: 8px; }
.payment-icons span { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 10px; font-size: 11px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.main-products__pagination { margin: 32px 0; }
.main-products__pagination nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.main-products__pagination .text-muted { font-size: 13px; color: var(--text-secondary); }
.main-products__pagination ul.pagination { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.main-products__pagination .page-item,
.main-products__pagination .active-page { display: flex; }
.main-products__pagination .page-link {
    display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
    padding: 0 8px; border-radius: var(--radius, 8px); font-size: 13px; color: var(--text-secondary);
    background: transparent; border: 1px solid transparent; text-decoration: none;
}
.main-products__pagination a.page-link:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.main-products__pagination .active-page .page-link { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.main-products__pagination .page-item.disabled .page-link { color: var(--text-muted); cursor: default; }

/* =========================================================
   NOTIFY (jQuery notify toasts)
   ========================================================= */
.notifyjs-corner {
    z-index: 99999 !important;
    /* header-in altında: səbət / bəyəndiklərim düymələrini örtməsin.
       --site-header-h main.js-də header-in real hündürlüyündən yazılır. */
    top: calc(var(--site-header-h, 72px) + 12px) !important;
    right: 18px !important;
}
@media (max-width: 760px) {
    .notifyjs-corner { left: 12px !important; right: 12px !important; }
    .notifyjs-corner .notifyjs-wrapper { display: flex; justify-content: center; }
    .notifyjs-parfumshop-success-base,
    .notifyjs-parfumshop-error-base,
    .notifyjs-parfumshop-warning-base,
    .notifyjs-parfumshop-info-base { min-width: 0; max-width: 100%; }
}
/* parfumshopNotify(): dolu rəngli fon, ağ mətn (hər iki temada eyni).
   Rənglər --*-solid dəyişənlərindən gəlir, ağ mətnlə kontrast ≥ 4.5:1. */
.notifyjs-parfumshop-success-base { --toast: var(--success-solid); }
.notifyjs-parfumshop-error-base   { --toast: var(--danger-solid); }
.notifyjs-parfumshop-warning-base { --toast: var(--warning-solid); }
.notifyjs-parfumshop-info-base    { --toast: var(--info-solid); }

.notifyjs-parfumshop-success-base,
.notifyjs-parfumshop-error-base,
.notifyjs-parfumshop-warning-base,
.notifyjs-parfumshop-info-base {
    min-width: 260px; max-width: 360px;
    padding: 14px 18px;
    border: 0; border-radius: 10px;
    background: var(--toast);
    color: var(--on-solid);
    box-shadow: 0 10px 30px -6px rgba(0,0,0,.35);
    font-size: 14px; font-weight: 600; line-height: 1.4;
}
.ps-notify { display: flex; align-items: center; gap: 10px; }
.ps-notify__check {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 23px; width: 23px; height: 23px; border-radius: 50%;
    background: var(--on-solid);
    color: var(--toast);
    font-size: 13px; font-weight: 800; line-height: 1;
    font-variant-emoji: text; /* ✓ emoji kimi göstərilməsin */
}

/* =========================================================
   SELECT2
   ========================================================= */
.select2-container { width: 100% !important; }

/* seçim sahəsi */
.select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center;
    height: var(--side-row-h) !important;
    padding: 0 44px 0 18px !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--bg) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text) !important;
    font-size: 15px;
    font-weight: 700;
    padding: 0 !important;
    line-height: 1.2 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

/* ox – chevron */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 18px !important;
    width: 12px !important;
    height: 100% !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 7px; height: 7px;
    border-right: 1.6px solid var(--text-secondary);
    border-bottom: 1.6px solid var(--text-secondary);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .2s;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    transform: translate(-50%, -30%) rotate(-135deg);
}

/* dropdown */
.select2-container--default .select2-dropdown {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: var(--surface) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    overflow: hidden;
}
.select2-container--default .select2-search--dropdown {
    padding: 10px;
    background: var(--surface);
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 38px !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    padding: 0 12px !important;
    font-size: 16px; /* iOS zoom olmasın */
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--accent) !important;
}
.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px;
    color: var(--text) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--accent) !important;
    color: var(--on-accent) !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--surface-2) !important;
    color: var(--accent) !important;
    font-weight: 600;
}

/* Credit application modal (installment application dialog) */
.credit-application-dialog {
    width: min(1040px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 80px rgba(0,0,0,.2);
    overflow-y: auto;
}
.credit-application-dialog::backdrop { background: rgba(0,0,0,.65); }

.credit-modal-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    padding: 26px 30px; border-bottom: 1px solid var(--border);
}
.credit-modal-head h2 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; color: var(--text); }
.credit-modal-head p { margin: 0; color: var(--text-secondary); }
.credit-modal-close { background: transparent; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--text); }

.credit-modal-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 26px; padding: 28px 30px; }

.credit-modal-field { margin-bottom: 20px; }
.credit-modal-field label { display: block; font-weight: 600; margin-bottom: 9px; color: var(--text); }

.credit-modal-options { display: flex; flex-wrap: wrap; gap: 10px; }
.credit-modal-pill { position: relative; cursor: pointer; margin: 0 !important; }
.credit-modal-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.credit-modal-pill span {
    display: block; border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 12px 17px;
    background: var(--surface-2); color: var(--text); font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}
.credit-modal-pill:hover span { border-color: var(--accent); }
.credit-modal-pill input:checked + span {
    border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.credit-modal-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.credit-modal-summary { background: var(--surface-2); border-radius: 12px; padding: 16px; margin: 22px 0; }
.credit-modal-summary .credit-modal-product {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 2px 0 14px; margin-bottom: 5px; border-bottom: 0;
}
.credit-modal-summary .credit-modal-product strong { font-size: 13px; color: var(--text-secondary); }
.credit-modal-summary .credit-modal-product span { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text); }
.credit-modal-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: var(--text); }
.credit-modal-summary > div:not(.credit-modal-product) + div:not(.credit-modal-product) { border-top: 1px solid var(--border); }

.credit-modal-accept { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; color: var(--text); }
.credit-modal-accept input { margin-top: 4px; accent-color: var(--accent); }

.credit-modal-submit { width: 100%; margin-top: 20px; }
.credit-modal-mobile-submit { display: none; }
.credit-modal-message { font-size: 14px; margin: 14px 0 0; }
.credit-modal-message--success { color: var(--success); }
.credit-modal-message--error { color: var(--danger); }

.credit-modal-rules {
    background: var(--surface-2); border-radius: 12px; padding: 20px; align-self: start;
    height: min(540px, calc(100dvh - 230px)); min-height: 260px;
    display: flex; flex-direction: column; overflow: hidden;
}
.credit-modal-rules-scroll {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px;
    scrollbar-width: thin; scrollbar-color: var(--accent) var(--border);
}
.credit-modal-scroll-hint {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0;
    font-size: 12px; font-weight: 600; color: var(--accent); padding: 10px 4px 0;
}
.credit-modal-scroll-hint span:last-child { font-size: 22px; line-height: 1; }
.credit-modal-scroll-hint[hidden] { display: none; }
.credit-modal-rules-accept { flex-shrink: 0; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 12px; }
.credit-modal-rules h3 { font-size: 17px; margin: 0 0 18px; color: var(--text); }
.credit-rule-text { border-top: 1px solid var(--border); padding: 13px 0; margin: 0; line-height: 1.65; white-space: pre-line; font-size: 14px; color: var(--text-secondary); }

/* Credit-profile-required dialog (small confirmation modal) */
.credit-profile-dialog {
    width: min(460px, calc(100vw - 32px));
    max-width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 20px 80px rgba(0,0,0,.2);
    background: var(--surface);
    color: var(--text);
}
.credit-profile-dialog::backdrop { background: rgba(0,0,0,.65); }
.credit-profile-dialog__body { padding: 28px; position: relative; text-align: center; }
.credit-profile-dialog__close {
    position: absolute; right: 16px; top: 10px; border: 0; background: transparent;
    font-size: 28px; cursor: pointer; color: var(--text);
}
.credit-profile-dialog__title { margin: 12px 0 16px; font-size: 23px; color: var(--text); }
.credit-profile-dialog__text { line-height: 1.65; margin-bottom: 24px; color: var(--text-secondary); }

/* One-click purchase: match the customer login phone input. */
#oneClickDialog .one-click-mobile {
    display: block;
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    margin: 4px 0 16px;
    padding: 0 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    text-align: left;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .5px;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s, box-shadow .15s;
}
#oneClickDialog .one-click-mobile::placeholder { color: var(--text-muted); font-weight: 400; }
#oneClickDialog .one-click-mobile:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
#oneClickDialog label[for="oneClickMobile"] {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 8px;
}

#oneClickDialog #oneClickForm > button[type="submit"] {
    display: block;
    margin-top: 16px;
}

/* Banner slayderi (includes/banner-slider.blade.php + js/banner-slider.js).
   Lent scroll-snap ilə sürüşür: toxunma/trackpad sürüşdürməsi JS-siz işləyir. */
.hero-banner { margin: 10px 0; overflow: hidden; border-radius: 16px; aspect-ratio: var(--banner-ratio); position: relative; }
.hero-banner--mobile { display: none; }
.hero-banner__track {
    display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hero-banner__track::-webkit-scrollbar { display: none; }
.hero-banner__track:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.hero-banner__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.hero-banner img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

.hero-banner__arrow {
    position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px;
    margin-top: -19px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .85); color: #1a1520; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    opacity: 0; transition: opacity .2s ease;
}
.hero-banner__arrow--prev { left: 14px; }
.hero-banner__arrow--next { right: 14px; }
.hero-banner:hover .hero-banner__arrow, .hero-banner__arrow:focus-visible { opacity: 1; }

.hero-banner__dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; gap: 6px; transform: translateX(-50%); }
.hero-banner__dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); transition: width .25s ease, background-color .25s ease;
}
.hero-banner__dot[aria-current="true"] { width: 22px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .hero-banner__track { scroll-behavior: auto; }
}

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 16px; }
.section-head h2 { font-size: 19px; margin: 0; }
.section-head a { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Hissə-hissə: məbləğə uyğun olmayan aylar (CreditPeriod::availableFor) gizlədilir */
.installment__period[hidden],
.credit-modal-pill[hidden],
.installment-table tr[hidden] { display: none !important; }
