/*
 * VITRIN (PORTO) TEMASI — cekirdek
 * ---------------------------------------------------------------------
 * Taban store*.css'ten SONRA yuklenir, her kural body.theme-porto
 * altina kapsanir. Dil: Poppins, KOSESIZ (radius 0), bej/koyu kontrast,
 * kucuk tipografi, cercevesiz urun kartlari.
 */

body.theme-porto {
    --pt-dark: var(--store-header-dark, #222529);
    --pt-beige: var(--store-footer-bg, #f0ebe2);
    --pt-panel: var(--store-muted, #f4f4f4);
    --pt-line: #e7e7e7;
    --pt-text: var(--store-text, #666);
    --pt-head: #444;
    --pt-mute: #999;

    background: #fff;
    color: var(--pt-text);
    font-size: 14px;
}

.theme-porto .pt-container,
.theme-porto .store-container {
    width: 100%;
    max-width: var(--store-container, 1540px);
    margin-inline: auto;
    padding-inline: 20px;
}

.theme-porto h1, .theme-porto h2, .theme-porto h3,
.theme-porto h4, .theme-porto h5 {
    font-family: var(--store-heading-font);
    color: var(--pt-head);
    text-transform: none;
    letter-spacing: 0;
}

.theme-porto a { text-decoration: none; }

/* --------------------------------------------------------- butonlar */

.theme-porto .btn-store,
.theme-porto .pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding-inline: 24px;
    border: 0;
    border-radius: 0;
    background: var(--pt-dark);
    color: #fff;
    font-family: var(--store-heading-font);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.theme-porto .btn-store:hover,
.theme-porto .pt-btn:hover { background: var(--store-primary); color: #fff; }

.theme-porto .pt-btn--light { background: #fff; color: var(--pt-dark); }
.theme-porto .pt-btn--light:hover { background: var(--store-secondary); color: #fff; }

.theme-porto .btn-store--outline {
    background: transparent;
    color: var(--pt-dark);
    border: 1px solid var(--pt-dark);
}
.theme-porto .btn-store--outline:hover { background: var(--pt-dark); color: #fff; }
.theme-porto .btn-store--block { width: 100%; }
.theme-porto .btn-store--sm { height: 36px; font-size: 11px; }
.theme-porto .btn-store--lg { height: 50px; font-size: 13px; }

/* ---------------------------------------------------------- formlar */

.theme-porto input[type="text"],
.theme-porto input[type="email"],
.theme-porto input[type="search"],
.theme-porto input[type="tel"],
.theme-porto input[type="number"],
.theme-porto input[type="password"],
.theme-porto select,
.theme-porto textarea {
    border: 1px solid var(--pt-line);
    border-radius: 0;
    background: #fff;
    height: 42px;
    padding: 0 16px;
    font-family: var(--store-font);
    font-size: 13px;
    color: var(--pt-head);
}
.theme-porto textarea { height: auto; padding: 12px 16px; }
.theme-porto input:focus,
.theme-porto select:focus,
.theme-porto textarea:focus {
    outline: 0;
    border-color: var(--store-primary);
    box-shadow: none;
}

/* ===================================================================
   USTBILGI
   =================================================================== */

.theme-porto .pt-header { position: relative; z-index: 60; background: #fff; }
.theme-porto .pt-header.is-sticky { position: sticky; top: 0; }

.theme-porto .pt-topbar { background: var(--pt-beige); font-size: 11.5px; }
.theme-porto .pt-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 36px;
}
.theme-porto .pt-topbar__side { display: flex; align-items: center; gap: 16px; color: var(--pt-head); }
.theme-porto .pt-topbar__side a { color: var(--pt-head); display: inline-flex; align-items: center; gap: 5px; }
.theme-porto .pt-topbar__side a:hover { color: var(--store-primary); }
.theme-porto .pt-topbar__note {
    margin: 0;
    color: var(--pt-dark);
    font-weight: 500;
    text-align: center;
    flex: 1 1 auto;
}

.theme-porto .pt-main { border-bottom: 1px solid var(--pt-line); }
.theme-porto .pt-main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

.theme-porto .pt-burger { background: none; border: 0; font-size: 24px; color: var(--pt-dark); padding: 0; }

.theme-porto .pt-perks { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex: 1 1 0; }
.theme-porto .pt-perks li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pt-text); }
.theme-porto .pt-perks i { font-size: 18px; color: var(--pt-dark); }

.theme-porto .pt-logo { flex: 0 0 auto; }
.theme-porto .pt-logo img { max-height: 40px; width: auto; }
.theme-porto .pt-logo span {
    font-family: var(--store-heading-font);
    font-weight: 700;
    font-size: 27px;
    letter-spacing: .06em;
    color: var(--pt-dark);
    text-transform: uppercase;
}
.theme-porto .pt-logo i { color: var(--store-secondary); font-style: normal; }

.theme-porto .pt-actions { display: flex; align-items: center; gap: 20px; flex: 1 1 0; justify-content: flex-end; }
.theme-porto .pt-actions > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pt-head);
    font-size: 12.5px;
    font-weight: 500;
}
.theme-porto .pt-actions > a:hover { color: var(--store-primary); }
.theme-porto .pt-actions i { font-size: 18px; }

.theme-porto .pt-cart { gap: 10px; }
.theme-porto .pt-cart__sum { font-weight: 600; color: var(--pt-dark); }
.theme-porto .pt-cart__icon { position: relative; font-size: 20px; line-height: 1; }
.theme-porto .pt-cart__icon .badge-count {
    position: absolute;
    top: -7px;
    inset-inline-end: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--store-secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.theme-porto .pt-nav { border-bottom: 1px solid var(--pt-line); }
.theme-porto .pt-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 48px;
}
.theme-porto .pt-nav__menu { display: flex; align-items: stretch; height: 48px; }
.theme-porto .pt-nav__item { position: relative; display: flex; align-items: center; }
.theme-porto .pt-nav__item > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 48px;
    padding-inline: 14px;
    color: var(--pt-dark);
    font-family: var(--store-heading-font);
    font-weight: 600;
    font-size: 14px;
}
.theme-porto .pt-nav__item:first-child > a { padding-inline-start: 0; }
.theme-porto .pt-nav__item > a:hover { color: var(--store-primary); }
.theme-porto .pt-nav__item > a i { font-size: 13px; color: var(--pt-mute); }
.theme-porto .pt-nav__sale { color: var(--store-secondary) !important; }

.theme-porto .pt-nav__drop {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--pt-line);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 70;
}
.theme-porto .pt-nav__item:hover .pt-nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-porto .pt-nav__drop a { display: block; padding: 8px 20px; color: var(--pt-text); font-size: 13px; }
.theme-porto .pt-nav__drop a:hover { color: var(--store-primary); }

.theme-porto .pt-search { position: relative; flex: 0 1 330px; display: flex; }
.theme-porto .pt-search input {
    width: 100%;
    height: 38px;
    border: 0;
    border-bottom: 1px solid var(--pt-line);
    padding: 0 36px 0 0;
    font-size: 13px;
}
.theme-porto .pt-search button {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    height: 38px;
    width: 32px;
    border: 0;
    background: transparent;
    color: var(--pt-dark);
    font-size: 17px;
    cursor: pointer;
}

/* ===================================================================
   URUN KARTI
   =================================================================== */

.theme-porto .pt-card { display: flex; flex-direction: column; background: transparent; }

.theme-porto .pt-card__media {
    position: relative;
    background: var(--pt-panel);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.theme-porto .pt-card__media > a { display: grid; place-items: center; width: 100%; height: 100%; padding: 14px; }
.theme-porto .pt-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.theme-porto .pt-card:hover .pt-card__media img { transform: scale(1.05); }
.theme-porto .pt-card__noimage { color: #ccc; font-size: 34px; }

.theme-porto .pt-card__badges {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    z-index: 2;
}
.theme-porto .pt-card__badge {
    padding: 3px 9px;
    border-radius: 0;
    background: var(--pt-dark);
    color: #fff;
    font-family: var(--store-heading-font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.6;
}
.theme-porto .pt-card__badge--sale { background: #6aa84f; }

.theme-porto .pt-card__tools {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
}
.theme-porto .pt-card:hover .pt-card__tools { opacity: 1; transform: translateX(0); }
.theme-porto .pt-card__tools > * {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    background: #fff;
    color: var(--pt-dark);
    font-size: 15px;
    cursor: pointer;
}
.theme-porto .pt-card__tools > *:hover,
.theme-porto .pt-card__tools .is-active { background: var(--pt-dark); color: #fff; }

.theme-porto .pt-card__cart {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    border: 0;
    background: var(--pt-dark);
    color: #fff;
    font-family: var(--store-heading-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .03em;
    padding: 11px 8px;
    text-align: center;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform .22s ease;
    z-index: 2;
}
.theme-porto .pt-card:hover .pt-card__cart { transform: translateY(0); }
.theme-porto .pt-card__cart:hover { background: var(--store-primary); color: #fff; }
@media (hover: none) { .theme-porto .pt-card__cart { transform: none; } }

.theme-porto .pt-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
}
.theme-porto .pt-card__cat {
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pt-mute);
}
.theme-porto .pt-card__cat:hover { color: var(--store-primary); }

.theme-porto .pt-card__name {
    font-family: var(--store-heading-font);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;
    color: var(--pt-head);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme-porto .pt-card__name:hover { color: var(--store-primary); }

.theme-porto .pt-card__stars { display: inline-flex; gap: 1px; font-size: 11px; color: #f5a623; }
.theme-porto .pt-card__stars .ti-star { color: #dcdcdc; }

.theme-porto .pt-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--store-heading-font);
    margin-top: 2px;
}
.theme-porto .pt-card__price del { color: var(--pt-mute); font-size: 13px; }
.theme-porto .pt-card__price ins {
    color: var(--pt-head);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
}

/* ===================================================================
   ALTBILGI
   =================================================================== */

.theme-porto .pt-footer { background: var(--pt-beige); margin-top: 50px; }

.theme-porto .pt-footer__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, .8fr)) minmax(0, 1.3fr);
    gap: 34px;
    padding-block: 48px;
}

.theme-porto .pt-footer__logo span {
    font-family: var(--store-heading-font);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: .06em;
    color: var(--pt-dark);
    text-transform: uppercase;
}
.theme-porto .pt-footer__logo i { color: var(--store-secondary); font-style: normal; }

.theme-porto .pt-footer__contact { list-style: none; margin: 18px 0 0; padding: 0; }
.theme-porto .pt-footer__contact li { font-size: 13px; margin-bottom: 8px; color: var(--pt-text); }

.theme-porto .pt-footer__social { display: flex; gap: 16px; margin-top: 18px; }
.theme-porto .pt-footer__social a { color: var(--pt-dark); font-size: 17px; }
.theme-porto .pt-footer__social a:hover { color: var(--store-primary); }

.theme-porto .pt-footer__col h5,
.theme-porto .pt-footer__news h5 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pt-dark);
    margin: 0 0 18px;
}
.theme-porto .pt-footer__col ul { list-style: none; margin: 0; padding: 0; }
.theme-porto .pt-footer__col li { margin-bottom: 10px; }
.theme-porto .pt-footer__col a { color: var(--pt-text); font-size: 13px; }
.theme-porto .pt-footer__col a:hover { color: var(--store-primary); }

.theme-porto .pt-footer__news form { display: flex; }
.theme-porto .pt-footer__news input { flex: 1 1 auto; min-width: 0; background: #fff; border-color: transparent; }
.theme-porto .pt-footer__news button {
    flex: 0 0 auto;
    height: 42px;
    padding-inline: 20px;
    border: 0;
    background: var(--pt-dark);
    color: #fff;
    font-family: var(--store-heading-font);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}
.theme-porto .pt-footer__news button:hover { background: var(--store-primary); }
.theme-porto .pt-footer__news small { display: block; margin-top: 12px; font-size: 11.5px; color: var(--pt-text); }
.theme-porto .pt-footer__news small a { color: var(--pt-dark); text-decoration: underline; }

.theme-porto .pt-footer__bottom { border-top: 1px solid rgba(0, 0, 0, .08); }
.theme-porto .pt-footer__bottom .pt-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    font-size: 12px;
    color: var(--pt-text);
}
.theme-porto .pt-footer__pay { display: flex; gap: 10px; font-size: 18px; color: var(--pt-dark); }

/* ===================================================================
   DUYARLI
   =================================================================== */

@media (max-width: 1199px) {
    .theme-porto .pt-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .theme-porto .pt-main__inner { height: 62px; gap: 14px; }
    .theme-porto .pt-logo span { font-size: 21px; }
    .theme-porto .pt-actions { gap: 14px; }
    .theme-porto .pt-actions > a span { display: none; }
}

@media (max-width: 575px) {
    .theme-porto .pt-container,
    .theme-porto .store-container { padding-inline: 14px; }
    .theme-porto .pt-footer__cols { grid-template-columns: 1fr; gap: 26px; }
    .theme-porto .pt-footer__bottom .pt-container { flex-direction: column; }
}
