/* ===== REFATELIER MINIMALIST LUXURY ===== */
:root {
    --bg-color: #fcfbf9;
    /* Soft off-white */
    --text-color: #2c2a29;
    /* Deep charcoal */
    --text-light: #7a7671;
    --border-color: #e8e6e1;
    --border-light: #f2f1ec;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    transition: background 0.3s, padding 0.3s;
}

.header.scrolled {
    background: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 5rem;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left a,
.nav-right a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
}

.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.3s;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

.logo {
    flex: 0 0 auto;
    text-align: center;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-logo-img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
    /* mix-blend-mode: multiply; kaldirildi cunku karanlik arkaplanlarda logoyu gorunmez yapiyor */
    background-color: transparent;
    border-radius: 4px;
    filter: contrast(1.1) brightness(0.95);
}

.header.scrolled .site-logo-img {
    max-height: 60px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5rem;
    position: relative;
    padding-top: 80px;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 3rem;
}

.link-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 4px;
    transition: color 0.3s, border-color 0.3s;
}

.link-btn:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}

.hero-image {
    flex: 1.2;
    position: relative;
    height: 75vh;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    will-change: auto;
    backface-visibility: hidden;
}

/* ===== EDITORIAL ===== */
.editorial-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-top: 1px solid var(--border-light);
}

.edit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== STORY / ABOUT ===== */
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4rem 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.p-card {
    text-align: center;
    cursor: pointer;
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}

.p-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #fff;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.p-card:hover .p-img {
    transform: scale(1.05);
}

.p-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.p-type {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 0.45rem;
}

.p-color-swatches {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0 0 0.9rem;
}

.p-color-swatch {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(44, 42, 41, 0.2);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-color-swatch:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--text-color);
}

.p-color-swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--text-color);
    border-color: var(--text-color);
}

.p-color-swatch:disabled {
    cursor: default;
    opacity: 1;
}

.p-color-swatch-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.p-color-swatch-label {
    font-family: var(--font-sans);
    font-size: 0.54rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.p-price {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.add-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
    opacity: 0;
    transition: opacity 0.3s, border-color 0.3s;
}

.p-card:hover .add-btn {
    opacity: 1;
    border-color: var(--text-color);
}

/* ===== EDITORIAL ===== */
.editorial {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 5rem 5rem 10rem;
}

.edit-img {
    flex: 1;
    height: 80vh;
}

.edit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: auto;
    backface-visibility: hidden;
}

.edit-text {
    flex: 1;
    padding: 0 4rem;
}

.edit-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.edit-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 6rem 5rem;
    text-align: center;
}

.contact-desc {
    font-family: var(--font-sans);
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-row {
    display: flex;
    gap: 1.5rem;
}

.contact-row input {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    font-family: var(--font-serif);
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--text-color);
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--text-color);
}

.contact-form .link-btn {
    align-self: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.contact-msg {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    min-height: 1.5rem;
}

.contact-msg.success {
    color: #2ecc71;
}

.contact-msg.error {
    color: #d9534f;
}

/* ===== DRAWER CART ===== */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 42, 41, 0.2);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: 0.4s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 42, 41, 0.34);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 140;
    padding: 1.25rem;
}

.auth-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.2rem 2rem 1.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09);
}

.auth-modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.auth-modal-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.auth-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.auth-modal-actions .btn-primary {
    width: auto;
    flex: 1;
    padding: 0.95rem 1rem;
}

.auth-modal-ghost {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.95rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex: 1;
}

.auth-modal-ghost:hover {
    border-color: var(--text-color);
}

.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.03);
}

.drawer.open {
    right: 0;
}

.drawer-header {
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.drawer-header h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
}

.drawer-close:hover,
.drawer-close:active {
    opacity: 1;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
}

.c-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-top: 2rem;
}

.c-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.c-item-img {
    width: 70px;
    height: 95px;
    object-fit: cover;
}

.c-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-item-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.c-item-price {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.c-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.c-qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.c-qty-num {
    min-width: 18px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-color);
}

.c-remove {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.c-remove:hover {
    color: #d9534f;
}

.drawer-footer {
    padding: 2.5rem;
    background: #faf9f7;
    border-top: 1px solid var(--border-light);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tax-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.drawer-auth-link {
    display: block;
    width: 100%;
    text-align: center;
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    transition: border-color 0.2s, color 0.2s;
}

.drawer-auth-link:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-primary {
    width: 100%;
    background: var(--text-color);
    color: #fff;
    border: none;
    padding: 1.2rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #4a4745;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.c-item-size {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.add-btn {
    cursor: pointer;
}

.media-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 160;
    background: rgba(30, 28, 27, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 1.25rem;
}

.media-lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.media-lightbox-dialog {
    position: relative;
    max-width: min(1100px, 95vw);
    max-height: 92vh;
    width: auto;
}

.media-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(20, 18, 17, 0.85);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.media-lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.media-lightbox-image {
    display: block;
    max-width: min(1400px, 95vw);
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    background: #111;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.media-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.media-lightbox-prev,
.media-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(20, 18, 17, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.media-lightbox-prev:hover,
.media-lightbox-next:hover {
    background: rgba(20, 18, 17, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

.media-lightbox-prev {
    left: -56px;
}

.media-lightbox-next {
    right: -56px;
}

.media-lightbox-counter {
    text-align: center;
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .media-lightbox-prev {
        left: 8px;
    }

    .media-lightbox-next {
        right: 8px;
    }

    .media-lightbox-prev,
    .media-lightbox-next {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
        background: rgba(20, 18, 17, 0.75);
    }
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    padding: 6rem 5rem 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 2;
}

.footer a:hover {
    color: var(--text-color);
}

.newsletter {
    display: flex;
    border-bottom: 1px solid var(--text-light);
    padding-bottom: 0.5rem;
}

.newsletter input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-color);
}

.newsletter button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 52;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 251, 249, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 51;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 5rem 2rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.mobile-nav-close:hover {
    opacity: 1;
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-color);
    transition: color 0.3s, opacity 0.3s;
    padding: 0.85rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid transparent;
    opacity: 0;
    animation: mobileNavFadeIn 0.4s ease forwards;
}

.mobile-nav.open a {
    opacity: 1;
}

.mobile-nav.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { animation-delay: 0.3s; }
.mobile-nav.open a:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav.open a:nth-child(8) { animation-delay: 0.4s; }
.mobile-nav.open a:nth-child(9) { animation-delay: 0.45s; }
.mobile-nav.open a:nth-child(10) { animation-delay: 0.5s; }
.mobile-nav.open a:nth-child(11) { animation-delay: 0.55s; }
.mobile-nav.open a:nth-child(12) { animation-delay: 0.6s; }

@keyframes mobileNavFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--text-light);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

/* ===== LOADING SKELETON ===== */
.loading-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
}

.skeleton-card {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-card .p-img-wrap {
    background: linear-gradient(90deg, #f2f1ec 25%, #e8e6e1 50%, #f2f1ec 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SEARCH BAR ===== */
.search-bar {
    max-width: 400px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2.5rem 0.75rem 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    background: transparent;
    outline: none;
    color: var(--text-color);
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-bottom-color: var(--text-color);
}

.search-bar input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.search-bar-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
}

@media(max-width: 900px) {

    .header {
        padding: 1rem 1.5rem;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .header.scrolled {
        padding: 0.75rem 1.5rem;
    }

    .nav-left {
        display: none;
    }

    .hamburger {
        display: block;
        order: -1;
    }

    .header .logo {
        margin-bottom: 0;
        flex: 1;
        text-align: center;
    }

    .nav-right {
        flex: 0;
        gap: 1rem;
    }

    .nav-right #accountNavLink {
        display: none;
    }

    .hero,
    .shop-section,
    .editorial,
    .footer {
        padding: 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
        height: auto;
        min-height: auto;
    }

    .hero-image {
        width: 100%;
        margin-top: 2rem;
        height: 45vh;
        border-radius: 2px;
        overflow: hidden;
    }

    .title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .editorial {
        flex-direction: column-reverse;
        gap: 2rem;
        padding-bottom: 4rem;
    }

    .editorial-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .edit-img {
        height: 45vh;
    }

    .edit-text {
        padding: 2.5rem 1rem;
    }

    .edit-text h2 {
        font-size: 2rem;
    }

    .edit-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .contact-section {
        padding: 3.5rem 1.5rem;
    }

    .contact-row {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.85rem 0;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1.5rem;
    }

    .footer h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .drawer {
        width: 100%;
        right: -100%;
    }

    .drawer-header {
        padding: 1.5rem;
    }

    .drawer-header h3 {
        font-size: 1.25rem;
    }

    .drawer-content {
        padding: 1.5rem;
    }

    .drawer-footer {
        padding: 1.5rem;
    }

    .total-row {
        font-size: 1.25rem;
    }

    .p-card {
        max-width: none;
    }

    .p-name {
        font-size: 1rem;
    }

    .add-btn {
        opacity: 1;
        font-size: 0.68rem;
    }

    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}

@media(max-width: 480px) {
    .header {
        padding: 0.65rem 0.85rem;
    }

    .header.scrolled {
        padding: 0.55rem 0.85rem;
    }

    .header .logo a {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .site-logo-img {
        max-height: 44px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .p-name {
        font-size: 0.88rem;
    }

    .p-type {
        font-size: 0.62rem;
    }

    .p-price {
        font-size: 0.78rem;
    }

    .p-img-wrap {
        margin-bottom: 0.75rem;
    }

    .p-color-swatch {
        width: 16px;
        height: 16px;
    }

    .p-color-swatches {
        gap: 0.35rem;
        margin-bottom: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer p,
    .footer a {
        font-size: 0.82rem;
    }

    .hero {
        padding: 1rem;
        padding-top: 70px;
    }

    .hero-image {
        height: 40vh;
        margin-top: 1.5rem;
    }

    .title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .subtitle {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .shop-section {
        padding: 1.5rem 1rem;
    }

    .editorial {
        padding: 1.5rem 1rem 3rem;
        gap: 1.5rem;
    }

    .edit-img {
        height: 35vh;
    }

    .edit-text {
        padding: 1.5rem 0.25rem;
    }

    .edit-text h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .edit-text p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .contact-section {
        padding: 2.5rem 1rem;
    }

    .contact-desc {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media(max-width: 360px) {
    .header {
        padding: 0.55rem 0.65rem;
    }

    .header .logo a {
        font-size: 1.15rem;
        letter-spacing: 1.5px;
    }

    .site-logo-img {
        max-height: 38px;
    }

    .nav-right {
        gap: 0.65rem;
    }

    .nav-right a {
        font-size: 0.65rem;
    }

    .product-grid {
        gap: 1rem 0.5rem;
    }

    .p-name {
        font-size: 0.82rem;
    }

    .title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .mobile-nav a {
        font-size: 1.3rem;
        padding: 0.7rem 0;
    }

    .auth-modal {
        padding: 1.5rem 1.25rem;
    }

    .auth-modal-title {
        font-size: 1.5rem;
    }

    .auth-modal-actions {
        flex-direction: column;
    }
}

/* ===== TOUCH-FRIENDLY MOBILE IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    .add-btn {
        opacity: 1;
    }

    .p-card:hover .p-img {
        transform: none;
    }

    .hamburger {
        padding: 0.75rem;
        margin: -0.25rem;
    }

    .link-btn {
        padding-bottom: 6px;
    }

    .newsletter input {
        font-size: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }
}

html {
    scroll-behavior: smooth;
}

body.cart-open {
    overflow: hidden;
}

body.media-lightbox-open {
    overflow: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--text-color);
    outline-offset: 3px;
}

.title,
.section-title,
.p-name {
    text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== BEDEN REHBERİ ===== */
.pd-size-guide-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: 0.5rem;
    padding: 0;
    transition: color 0.2s;
}

.pd-size-guide-btn:hover {
    color: var(--text-color);
}

.sg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.sg-modal.show {
    display: flex;
}

.sg-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(3px);
}

.sg-modal-box {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-color);
    max-width: 640px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.5rem;
}

.sg-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.sg-modal-close:hover {
    color: var(--text-color);
}

.sg-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.sg-desc {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sg-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sg-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.55rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.sg-tab:hover {
    color: var(--text-color);
}

.sg-tab.active {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.sg-table th {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sg-table th:first-child {
    text-align: left;
}

.sg-table td {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 0.65rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
}

.sg-table td:first-child {
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sg-table tbody tr:hover {
    background: #faf9f7;
}

.sg-how {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.sg-how-title {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.sg-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sg-how-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sg-how-item strong {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.sg-how-item span {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .sg-modal-box {
        padding: 1.5rem;
    }

    .sg-how-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .sg-table th,
    .sg-table td {
        padding: 0.45rem 0.4rem;
        font-size: 0.72rem;
    }
}

/* ===== WISHLIST BUTTONS ===== */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    color: #999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: #e74c3c;
}

.wishlist-btn.active {
    color: #e74c3c;
    background: #fff;
}

.wishlist-btn-large:hover {
    color: #e74c3c !important;
}

.wishlist-btn-large.active {
    color: #e74c3c !important;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.reviews-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.review-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--border-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-user {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

.review-rating {
    color: #f1c40f;
    margin-bottom: 0.5rem;
}

.review-comment {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.review-form {
    background: #fafaf8;
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.review-form-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.rating-select {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating-star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}

.rating-star.selected,
.rating-star:hover,
.rating-star:hover ~ .rating-star {
    color: #f1c40f;
}

