﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* =====================================================
     CONVERSION-SET BUTTONS (cd-btn)
     ===================================================== */
.cd-btn {
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.28s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}
.cd-btn--primary {
    background: #23233a;
    color: #fff;
}
.cd-btn--primary:hover {
    background: #161a2d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35,35,58,0.25);
}
.cd-btn--secondary {
    background: transparent;
    color: #23233a;
    border: 2px solid #23233a;
}
.cd-btn--secondary:hover {
    background: #23233a;
    color: #fff;
}


/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    --theme-footer-bg: #23233a;
    --theme-footer-text: #ffffff;
    --theme-button-bg: #ffc107;
    --theme-button-text: #23233a;
    --theme-button-hover-bg: #111111;
    --theme-button-hover-text: #ffffff;
    --theme-accent: #ffc107;
}

* { box-sizing: border-box; }
html { height: 100%; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

#footer-placeholder {
    position: relative;
    z-index: 20;
    clear: both;
}
/* img { max-width: 100%; height: auto; } */

/* =====================================================
   TOPBAR
   ===================================================== */

.topbar {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    height: 36px;
    display: flex;
    align-items: center;
}

.topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-left a {
    color: #444;
    font-size: 15px;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.topbar-left a:hover {
    color: #111;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.topbar-right a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.topbar-right a:hover {
    color: #111;
}

.topbar-right i {
    font-size: 14px;
}

@media (max-width: 575.98px) {
    .topbar {
        height: auto;
        padding: 6px 0;
    }

    .topbar-shell {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .topbar-right {
        gap: 14px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    padding: 56px 0 24px;
    background: linear-gradient(132deg, #15182a 0%, #23233a 58%, #2d2d4d 100%);
    color: color-mix(in srgb, var(--theme-footer-text) 88%, transparent);
    position: relative;
    z-index: 20;
    clear: both;
}

.footer-top {
    padding-bottom: 34px;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-footer-text) 14%, transparent);
}

.footer-brand-block {
    max-width: 360px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 18px;
    filter: none;
}

.footer-brand-block p {
    margin: 0 0 18px;
    color: color-mix(in srgb, var(--theme-footer-text) 68%, transparent);
    font-size: 14px;
    line-height: 1.7;
}

.footer-utility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: 18px;
    padding-top: 12px;
}

.footer-newsletter {
    flex: 0 0 360px;
    max-width: 360px;
    width: 100%;
}

.footer-payments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 14px;
    max-width: none;
    width: 100%;
    padding-inline: 28px;
    overflow: hidden;
    align-self: flex-end;
}

.footer-payments img {
    flex: 0 0 auto;
    height: 20px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    display: block;
    filter: none;
    opacity: 0.88;
}

.footer-newsletter-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--theme-footer-text) 62%, transparent);
}

.footer-newsletter-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.footer-newsletter-row input {
    flex: 1;
    min-width: 0;
    height: 30px;
    padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--theme-footer-text) 20%, transparent);
    background: rgba(255, 255, 255, 0.08);
    color: var(--theme-footer-text);
    font-size: 14px;
    outline: none;
}

.footer-newsletter-row input::placeholder {
    color: color-mix(in srgb, var(--theme-footer-text) 46%, transparent);
}

.footer-newsletter-row input:focus {
    border-color: color-mix(in srgb, var(--theme-footer-text) 38%, transparent);
}

.footer-newsletter-row button {
    height: 30px;
    padding: 0 18px;
    border: 0;
    background: var(--theme-button-bg);
    color: var(--theme-button-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.footer-newsletter-row button:hover,
.footer-newsletter-row button:focus-visible {
    background: var(--theme-button-hover-bg);
    color: var(--theme-button-hover-text);
}

.footer-newsletter-row button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.footer-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    color: color-mix(in srgb, var(--theme-footer-text) 66%, transparent);
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.footer-newsletter-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--theme-accent);
}

.footer-newsletter-consent span {
    display: block;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.footer-contact-list a,
.footer-contact-list span {
    font-size: 14px;
    color: color-mix(in srgb, var(--theme-footer-text) 84%, transparent);
}

.footer-contact-list a {
    position: relative;
    width: fit-content;
    transition: color 0.24s ease, transform 0.24s ease;
    text-decoration: none;
}

.footer-contact-list a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--theme-accent);
    transform: translateY(-50%);
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-column h3 {
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--theme-footer-text) 58%, transparent);
    transition: color 0.24s ease;
}

.footer-column:hover h3 {
    color: color-mix(in srgb, var(--theme-accent) 86%, #fff 14%);
}

.footer-column a {
    position: relative;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: color-mix(in srgb, var(--theme-footer-text) 84%, transparent);
    transition: color 0.24s ease, transform 0.24s ease;
    text-decoration: none;
    width: fit-content;
}

.footer-column a::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--theme-accent);
    transform: translateY(-50%);
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-column a:hover,
.footer-contact-list a:hover {
    color: color-mix(in srgb, var(--theme-accent) 90%, #fff 10%);
    transform: translateX(4px);
}

.footer-column a:hover::before,
.footer-contact-list a:hover::before,
.footer-column a:focus-visible::before,
.footer-contact-list a:focus-visible::before {
    width: 8px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    border: 1px solid color-mix(in srgb, var(--theme-footer-text) 24%, transparent);
    border-radius: 50%;
    color: color-mix(in srgb, var(--theme-footer-text) 80%, transparent);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-socials a::before {
    display: none;
}

.footer-socials a:hover {
    border-color: color-mix(in srgb, var(--theme-footer-text) 50%, transparent);
    color: var(--theme-footer-text);
    transform: translateY(-1px);
}

.footer-bottom-links a:hover,
.footer-bottom-links-mobile a:hover {
    color: var(--theme-footer-text);
    transform: none;
}

.footer-socials i {
    font-size: 16px;
    line-height: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--theme-footer-text) 56%, transparent);
}

.footer-etbis {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.footer-etbis-image {
    width: auto;
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-bottom-links-mobile {
    display: none;
}

.footer-bottom-links a {
    font-size: 13px;
    color: color-mix(in srgb, var(--theme-footer-text) 64%, transparent);
    text-decoration: none;
}

.footer-contact-list a {
    text-decoration: none;
}

/* ── Orbitex Signoff ─────────────────────────────────────────── */

.orbitex-signoff {
    background: #ffffff;
    border-top: 1px solid rgba(17, 17, 20, 0.08);
    position: relative;
    z-index: 20;
}

.orbitex-signoff-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    color: #111114;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.orbitex-signoff-logo {
    width: 86px;
    height: auto;
    flex: 0 0 auto;
}

/* =====================================================
   FOOTER RESPONSIVE
   ===================================================== */

@media (max-width: 767.98px) {
    .site-footer {
        padding: 44px 0 20px;
    }

    .footer-top {
        padding-bottom: 24px;
    }

    .footer-utility-row {
        display: grid;
        grid-template-columns: 96px repeat(4, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
        gap: 8px 10px;
        min-width: 0;
        align-items: center;
    }

    .footer-etbis {
        grid-column: 1;
        grid-row: 1 / 3;
        justify-content: flex-start;
        align-self: center;
        flex: unset;
        min-width: unset;
    }

    .footer-etbis-image {
        height: 64px;
    }

    .footer-payments {
        display: contents;
    }

    .footer-payments img:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: center; }
    .footer-payments img:nth-child(2) { grid-column: 3; grid-row: 1; justify-self: center; }
    .footer-payments img:nth-child(3) { grid-column: 4; grid-row: 1; justify-self: center; }
    .footer-payments img:nth-child(4) { grid-column: 5; grid-row: 1; justify-self: center; }
    .footer-payments img:nth-child(5) { grid-column: 2; grid-row: 2; justify-self: center; }
    .footer-payments img:nth-child(6) { grid-column: 3; grid-row: 2; justify-self: center; }
    .footer-payments img:nth-child(7) { grid-column: 4; grid-row: 2; justify-self: center; }
    .footer-payments img:nth-child(8) { grid-column: 5; grid-row: 2; justify-self: center; }

    .footer-payments img {
        height: 16px;
        max-width: 52px;
        width: auto;
        align-self: center;
    }

    .footer-newsletter {
        grid-column: 1 / 6;
        grid-row: 3;
        max-width: 100%;
        min-width: 0;
        overflow: visible;
        margin-top: 6px;
    }

    .footer-newsletter-row {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .footer-newsletter-row input {
        width: 100%;
        min-width: 0;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 14px;
        border-radius: 8px;
    }

    .footer-newsletter-row button {
        width: auto;
        min-width: 88px;
        height: 38px;
        padding: 0 14px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
    }

    .footer-newsletter-consent {
        min-width: 0;
    }

    .footer-newsletter-consent span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom p {
        width: 100%;
        text-align: center;
        order: 2;
    }

    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        width: 100%;
        justify-content: center;
        order: 1;
    }

    .footer-bottom .footer-bottom-links {
        display: none;
    }

    .footer-bottom-links-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    .footer-bottom-links-mobile a {
        text-align: center;
        font-size: 13px;
        color: color-mix(in srgb, var(--theme-footer-text) 64%, transparent);
        text-decoration: none;
    }

    .footer-bottom-links a {
        text-align: center;
    }

    .orbitex-signoff-link {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 16px;
    }

    .orbitex-signoff-logo {
        width: 74px;
    }
}

@media (max-width: 575.98px) {
    .orbitex-signoff-link {
        font-size: 11.5px;
    }

    .footer-payments {
        gap: 8px;
        flex-wrap: wrap;
        padding-inline: 0;
    }

    .footer-payments img {
        height: 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-bottom-links {
        gap: 8px 12px;
    }

    .footer-bottom-links a {
        font-size: 12px;
    }

    .footer-column a {
        font-size: 13px;
    }
}

@media (max-width: 359.98px) {
    .container.site-shell,
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 991.98px) {
  #arac-donusum-vitrini .row {
    display: flex;
    flex-direction: column-reverse;
  }
}

/* =====================================================
   MC-BEST (Çok Satanlar)
   ===================================================== */
.mc-best {
  padding: 48px 0;
  background: #fff;
}
.mc-best__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.mc-best__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: #1a1a1a;
}
.mc-best__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-best__ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mc-best__ctrl:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.mc-best__all {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  margin-left: 12px;
}
.mc-best__viewport {
  overflow: hidden;
}
.mc-best__grid {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}
.mc-best__grid .mc-product-card {
  flex: 0 0 25%; /* 4 items */
  max-width: 25%;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}
.mc-best__grid .mc-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mc-best__grid .mc-product-card__img {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mc-best__grid .mc-product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-best__grid .mc-product-card__body {
  padding: 16px;
}
.mc-best__grid .mc-product-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px;
  display: -webkit-box;
    line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 48px; /* 2 lines */
}
.mc-best__grid .mc-product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

@media (max-width: 991.98px) {
  .mc-best__grid .mc-product-card {
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}

@media (max-width: 767.98px) {
  .mc-best__head {
    flex-wrap: wrap;
    gap: 16px;
  }
  .mc-best__actions {
    order: 1;
    width: auto;
    margin-left: auto;
  }
  .mc-best__title {
    width: 100%;
    order: 0;
  }
  .mc-best__ctrl {
    order: 0;
  }
  .mc-best__all {
    order: 1;
    margin-left: 12px;
  }
  .mc-best__grid .mc-product-card {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  .mc-best__grid .mc-product-card {
    flex-basis: 80%;
    max-width: 80%;
  }
  .mc-best__grid {
    padding: 0 16px; /* Add some padding to show cards are scrollable */
  }
}

/* =====================================================
   UTILITY BUTTONS & MODALS (Previously in navbar.html)
   ===================================================== */

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden !important;
}

/* Forgot Password Link Style */
.orb-auth-form__forgot-link {
  color: #b42318 !important;
  font-weight: 700;
  transition: color 0.18s, text-decoration 0.18s;
}
.orb-auth-form__forgot-link:hover {
  color: #7a0f0f !important;
  text-decoration: underline;
}

/* Scroll to Top Button */
#mcScrollTopBtn {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 9999;
  background: #ffc107;
  color: #23233a;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  box-shadow: 0 4px 18px rgba(35,35,58,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
#mcScrollTopBtn.show { opacity: 1; pointer-events: auto; }

/* Social Buttons (WhatsApp, Instagram) */
#mcWhatsappBtn, #mcInstagramBtn {
  position: fixed;
  left: 28px;
  z-index: 9999;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  box-shadow: 0 4px 18px rgba(35,35,58,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.18s;
}
#mcWhatsappBtn {
  bottom: 32px;
  background: #25d366;
  color: #fff;
}
#mcWhatsappBtn:hover { background: #1ebe57; }
#mcInstagramBtn {
  bottom: 98px;
  background: #e1306c;
  color: #fff;
}
#mcInstagramBtn:hover { background: #c72d60; }

/* Consultant Modal */
#consultantModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(34,34,44,0.38);
  backdrop-filter: blur(2px);
}
#consultantModalContent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(28,32,58,0.18);
  padding: 38px 32px 28px 32px;
  min-width: 320px;
  max-width: 96vw;
  width: 400px;
  max-height: 90vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#consultantModalClose {
  margin-top: 24px;
  padding: 8px 22px;
  border-radius: 8px;
  border: none;
  background: #23233a;
  color: #fff;
  font-weight: 700;
}

/* Responsive adjustments for utility buttons */
@media (max-width: 575.98px) {
  #mcScrollTopBtn,
  #mcWhatsappBtn,
  #mcInstagramBtn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  #mcWhatsappBtn {
    bottom: 18px !important;
    left: 12px !important;
  }
  #mcInstagramBtn {
    bottom: 70px !important;
    left: 12px !important;
  }
  #mcScrollTopBtn {
    right: 12px !important;
    bottom: 18px !important;
  }
}

/* =====================================================
   MOBILE NAVIGATION SCROLL FIX
   ===================================================== */

/* 1. Prevent body from scrolling when any mobile menu/drawer is open */
body.mobile-menu-open,
body.orb-cart-drawer-open,
body.orb-auth-drawer-open {
    overflow: hidden !important;
}

/* 2. Force the mobile nav wrapper to behave as a fixed, full-height container */
@media (max-width: 991.98px) {
    .orb-nav-main.is-open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Use viewport height */
        display: flex;
        flex-direction: column;
        background: var(--mc-white);
        z-index: 1005;
        overflow: hidden; /* CRITICAL: Prevent the wrapper itself from scrolling */
    }

    /* 3. Ensure the header part of the nav does not shrink */
    .orb-nav-main.is-open .orb-nav-shell {
        flex-shrink: 0;
    }

    /* 4. Make ONLY the menu list scrollable */
    .orb-nav-main.is-open .orb-nav__menu {
        display: flex; /* Ensure it's visible */
        flex-direction: column;
        padding: 24px;
        flex-grow: 1; /* Allow menu to fill remaining space */
        overflow-y: auto; /* The ONLY scrollable part */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    /* 5. Ensure action buttons (cart, login) are visible in the mobile header */
    .orb-nav-main.is-open .orb-nav__actions {
        display: flex;
    }
}

