/* ============================================
   QAINZO — Global Style System
   Theme: Black / White / Gold
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
    --gold: #C9A84C;
    --gold-light: #E2C47A;
    --gold-dark: #A07830;
    --gold-glow: rgba(201, 168, 76, 0.25);
    --black: #0A0A0A;
    --black-soft: #111111;
    --black-card: #161616;
    --black-border: #222222;
    --white: #F5F5F5;
    --white-soft: #E8E8E8;
    --white-muted: #AAAAAA;
    --font-main: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.15);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-h: 72px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.serif {
    font-family: var(--font-serif);
}

/* ── Gold Gradient Text ── */
.text-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Spacing ── */
.section {
    padding: 100px 0;
}

.section--sm {
    padding: 60px 0;
}

/* ── Gold Divider ── */
.gold-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 16px 0 24px;
}

.gold-divider--center {
    margin: 16px auto 24px;
}

/* ============================================
   HEADER
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    /* 1000 -> 1100 */
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--black-border), var(--shadow-gold);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}

.header__logo-img {
    height: 72px;
    /* 40px → 52px, header 72px yükseklikte rahat oturur */
    width: auto;
    max-width: 160px;
    /* taşma engeli */
    object-fit: contain;
}


/* footer logo img için yeni class ekle */
.footer__logo-img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity var(--transition);
}

.footer__logo-img:hover {
    opacity: 1;
}

/* Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

/* Language Switcher */
.header__lang {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.lang-btn {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white-muted);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.lang-btn:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
}

.lang-btn.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}

/* Hamburger */
.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.header__toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.header__toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE HEADER RESET FIX
   ============================================ */
@media (max-width: 900px) {
    :root {
        --header-h: 60px;
    }

    #header {
        height: var(--header-h);
    }

    .header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 10px;
        min-width: 0;
    }

    .header__logo {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .header__logo-img {
        display: block;
        height: 68px !important;
        width: auto;
        max-width: 240px;
        object-fit: contain;
    }

    /* Nav mobilde drawer gibi */
    .header__nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 6px;

        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
        border-bottom: 1px solid var(--black-border);
        z-index: 1001;
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Üst barda sadece aktif dil kalsın */
    .header__lang {
        display: flex;
        align-items: center;
        gap: 0;
        flex-shrink: 0;
    }

    .header__lang .lang-btn {
        display: none;
        padding: 5px 8px;
        font-size: 0.65rem;
        line-height: 1;
    }

    .header__lang .lang-btn.active {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--gold);
        color: var(--gold);
        background: rgba(201, 168, 76, 0.1);
        border-radius: var(--radius-sm);
    }

    /* main.js ile nav içine enjekte edilen mobil dil satırı */
    .mobile-lang-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid var(--black-border);
    }

    .mobile-lang-row .lang-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.68rem;
        line-height: 1;
        border-radius: var(--radius-sm);
        border: 1px solid transparent;
        color: var(--white-muted);
        background: transparent;
    }

    .mobile-lang-row .lang-btn:hover {
        color: var(--gold);
        border-color: var(--gold-dark);
    }

    .mobile-lang-row .lang-btn.active {
        color: var(--gold);
        border-color: var(--gold);
        background: rgba(201, 168, 76, 0.1);
    }

    .header__toggle {
        display: flex !important;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
        z-index: 1004;
    }
}




/* ============================================
   FOOTER
   ============================================ */
#footer {
    background: var(--black-soft);
    border-top: 1px solid var(--black-border);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer__brand-desc {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 0.85rem;
    color: var(--white-muted);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--gold);
}

.footer__bottom {
    border-top: 1px solid var(--black-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 0.78rem;
    color: var(--white-muted);
}

.footer__copy span {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-dark);
    box-shadow: var(--shadow-gold);
}

.product-card__image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--black-soft);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.06);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-card__category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.product-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
}

.product-card__desc {
    font-size: 0.8rem;
    color: var(--white-muted);
    line-height: 1.5;
    flex: 1;
}

.product-card__btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    align-self: flex-start;
}

.product-card__btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* ============================================
   PRODUCT GRID — Global Base
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0 40px;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MODAL
   ============================================ */
#product-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

#product-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal__box {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition);
    box-shadow: var(--shadow-card);
}

#product-modal.active .modal__box {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--black-border);
    color: var(--white-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.modal__close:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.modal__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.modal__image-wrapper {
    background: var(--black-soft);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.modal__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.modal__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
}

.modal__divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border: none;
    margin: 4px 0;
}

.modal__description {
    font-size: 0.9rem;
    color: var(--gold-light);
    font-style: italic;
    line-height: 1.5;
}

.modal__details {
    font-size: 0.85rem;
    color: var(--white-muted);
    line-height: 1.7;
    flex: 1;
}

.modal__back-btn {
    margin-top: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition), transform var(--transition);
    align-self: flex-start;
}

.modal__back-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .modal__content {
        grid-template-columns: 1fr;
    }

    .modal__image-wrapper {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        aspect-ratio: 4 / 3;
    }

    .modal__info {
        padding: 24px 20px;
    }
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

#scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#scroll-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   BUTTONS — Global
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn--outline:hover {
    background: var(--gold);
    color: var(--black);
}

/* ============================================
   UTILITY
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--white-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}