/* =========================================
   Levent Home Theme
   ========================================= */
:root {
    --gold: #d5b86f;
    --gold-dark: #a58949;
    --ink: #f3ead8;
    --charcoal: #080808;
    --paper: #121212;
    --stone: #14221a;
    --white: #fff5df;
    --muted: #aeb8a9;
    --line: rgba(64, 64, 64, 0.32);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.28s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(64, 64, 64, 0.14), transparent 30rem),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.08), transparent 28rem),
        linear-gradient(180deg, #080808 0%, #121212 45%, #050505 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

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

section {
    padding: 105px 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0;
}

.section-header {
    max-width: 720px;
    margin: 0 auto;
}

.section-title {
    color: var(--ink);
    font-size: 2.7rem;
    line-height: 1.12;
    margin-bottom: 16px;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-subtitle::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.section-intro {
    color: var(--muted);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 28px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary {
    color: #0a0a0a;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
}

/* =========================================
   Header
   ========================================= */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.header.scrolled,
.header.header-dark {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: 190px;
    padding: 7px 12px;
    background: rgba(10, 10, 10, 0.76);
    border-left: 3px solid var(--gold);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.logo img {
    width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0) invert(1);
}

.header.scrolled .logo,
.header.header-dark .logo {
    width: 166px;
    box-shadow: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.header.scrolled .nav-link,
.header.header-dark .nav-link {
    color: var(--ink);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
    appearance: none;
}

.header.scrolled .mobile-toggle,
.header.header-dark .mobile-toggle {
    color: var(--ink);
    border-color: var(--line);
}

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 720px;
    height: 100vh;
    padding: 0;
    background-image: url('../images/hero_bg.png');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.93) 0%, rgba(15, 15, 15, 0.78) 48%, rgba(8, 8, 8, 0.5) 100%),
        linear-gradient(180deg, rgba(12, 12, 12, 0.25), rgba(8, 8, 8, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    color: var(--white);
}

.hero-subtitle {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.62;
    margin-bottom: 28px;
    white-space: pre-line;
}

/* =========================================
   Collections
   ========================================= */
.collections {
    background:
        linear-gradient(180deg, #080808 0%, #141414 58%, #0A0A0A 100%);
    text-align: center;
}

.gallery-grid,
.product-full-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 54px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    cursor: pointer;
    background: var(--stone);
    border: 1px solid rgba(64, 64, 64, 0.2);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 12px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s ease, filter 0.7s ease;
}

.item-overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 34px 30px 30px;
    color: var(--white);
    text-align: left;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 58%, rgba(0, 0, 0, 0) 100%);
}

.item-overlay span {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.item-overlay h3 {
    font-size: 1.65rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.item-overlay p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.gallery-item:hover img {
    transform: none;
    filter: saturate(0.94) contrast(1.04);
}

.stock-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    color: #FFF6F1;
    background: rgba(126, 35, 27, 0.94);
    border: 1px solid rgba(255, 190, 175, 0.42);
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    background:
        linear-gradient(180deg, #0A0A0A 0%, #111111 54%, #141414 100%);
}

.faq-list {
    width: min(920px, 100%);
    margin: 54px auto 0;
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    position: relative;
    min-height: 74px;
    display: flex;
    align-items: center;
    padding: 22px 52px 22px 0;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    max-width: 780px;
    padding: 0 56px 26px 0;
    color: var(--muted);
    line-height: 1.8;
}

/* =========================================
   Contact
   ========================================= */
.contact {
    background:
        linear-gradient(180deg, #141414 0%, #050505 100%);
}

.simple-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 52px;
    text-align: center;
}

.simple-contact-item h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--white);
}

.simple-contact-item p,
.simple-contact-item a {
    color: var(--muted);
}

.simple-contact-item a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 38px;
}

.social-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.35rem;
}

.social-icon:hover {
    color: #1A1A1A;
    background: var(--gold);
    border-color: var(--gold);
}

.map-container {
    width: 100%;
    height: 430px;
    margin-top: 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    color: rgba(243, 234, 216, 0.74);
    background: var(--charcoal);
    text-align: center;
    padding: 32px 0;
    font-size: 0.86rem;
    border-top: 3px solid var(--gold);
}

/* =========================================
   Category & Product Views
   ========================================= */
.category-details-view,
.product-details-view {
    min-height: 100vh;
    padding: 135px 0 90px;
    background: #0D0D0D;
}

.category-view-header,
.product-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 42px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    color: var(--ink);
    background: rgba(64, 64, 64, 0.055);
    border: 1px solid var(--gold);
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-back:hover {
    color: #1A1A1A;
    background: var(--gold);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 46px;
    padding: 32px;
    background: rgba(64, 64, 64, 0.055);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.product-gallery .main-image {
    width: 100%;
    overflow: hidden;
    background: var(--stone);
    border: 1px solid rgba(64, 64, 64, 0.22);
    border-radius: 6px;
    margin: 0 auto 18px;
    cursor: zoom-in;
}

.product-gallery .main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    align-items: start;
    gap: 12px;
}

.thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--stone);
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}

.thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb:hover,
.thumb.active {
    border-color: var(--gold);
}

.thumb:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.thumb-preview {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 245, 223, 0.4);
    border-radius: 50%;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.32);
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: var(--transition);
}

.thumb:hover .thumb-preview,
.thumb:focus-within .thumb-preview {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.thumb-preview:hover,
.thumb-preview:focus-visible {
    background: var(--white);
    outline: none;
}

@media (hover: none) {
    .thumb-preview {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.product-info {
    align-self: center;
}

.product-info h2 {
    color: var(--ink);
    font-size: 2.65rem;
    line-height: 1.12;
    margin-bottom: 20px;
}

.product-stock-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 22px;
    padding: 10px 13px;
    color: #FFD8CE;
    background: rgba(126, 35, 27, 0.26);
    border: 1px solid rgba(255, 130, 104, 0.32);
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
}

.product-stock-status[hidden] {
    display: none;
}

.product-description {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 36px;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
}

.product-meta i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* =========================================
   Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    overflow: auto;
    padding: 74px 0 36px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

#caption {
    width: 80%;
    max-width: 700px;
    margin: auto;
    color: rgba(255, 255, 255, 0.74);
    text-align: center;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.close-modal {
    position: absolute;
    top: 28px;
    right: 36px;
    color: var(--white);
    font-size: 38px;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.modal-nav:hover {
    color: var(--gold);
}

.modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2010;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--white);
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 2.6rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: var(--transition);
    user-select: none;
}

.modal-nav.prev {
    left: 24px;
}

.modal-nav.next {
    right: 24px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    section {
        padding: 82px 0;
    }

    .hero {
        min-height: 680px;
    }

    .gallery-grid,
    .product-full-grid,
    .simple-contact-grid,
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .header {
        padding: 10px 0;
        background: rgba(10, 10, 10, 0.94);
        border-bottom: 1px solid var(--line);
    }

    .logo,
    .header.scrolled .logo,
    .header.header-dark .logo {
        width: 145px;
        padding: 6px 9px;
        box-shadow: none;
    }

    .mobile-toggle {
        display: inline-flex;
        color: var(--ink);
        border-color: var(--line);
    }

    .nav-list {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        background: rgba(10, 10, 10, 0.98);
        transform: translateX(-100%);
        transition: var(--transition);
    }

    .nav-list.active {
        transform: translateX(0);
    }

    .nav-link {
        color: var(--ink);
        font-size: 0.92rem;
    }

    .hero {
        height: auto;
        min-height: 700px;
        background-attachment: scroll;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(5, 5, 5, 0.93), rgba(5, 5, 5, 0.76));
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title,
    .product-info h2 {
        font-size: 2.25rem;
    }

    .category-view-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail-container {
        padding: 18px;
    }

    .product-gallery .main-image {
        height: auto;
    }
}

@media (max-width: 480px) {
    .section-title,
    .product-info h2 {
        font-size: 2rem;
    }

    .btn,
    .btn-back {
        width: 100%;
    }

    .map-container {
        height: 340px;
    }
}
