@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Rubik:wght@500;700&display=swap&subset=latin-ext');

:root {
    --primary-blue: #FF9F1C;
    --accent-orange: #FF9F1C;
    --accent-yellow: #FFBF69;
    --accent-pink: #FF99C8;
    --text-color: #555;
    --heading-font: 'Rubik', sans-serif;
    --body-font: 'Nunito', sans-serif;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

main {
    padding-top: 130px;
}

body.home-page main {
    padding-top: 0;
}

/* Sepet vb.: sabit header ile başlık çakışmasın */
body.cart-page main {
    padding-top: 155px;
}

@media (max-width: 1024px) {
    body.cart-page main {
        padding-top: 145px;
    }
}

@media (max-width: 768px) {
    body.cart-page main {
        padding-top: 112px;
    }
}

/* Floating WhatsApp (tüm sayfalar — layout) */
.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    color: #fff !important;
}
.floating-whatsapp i {
    font-size: 1.45rem;
}

/* Ürün detay: Satıcıya Sor (WhatsApp) */
.btn-seller-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 999px;
    border: 2px solid #25d366;
    background: #fff;
    color: #128c7e !important;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: 0 4px 0 rgba(18, 140, 126, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}
.btn-seller-whatsapp i {
    font-size: 1.35rem;
    color: #25d366;
}
.btn-seller-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(18, 140, 126, 0.35);
    color: #075e54 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER & NAV
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: #fff9f2;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 96%;
    max-width: 1420px;
}

/* Hamburger Toggle Button */
.mobile-toggle {
    display: none;
    background-color: #A0522D;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png'),
        repeating-linear-gradient(90deg, #a6642d 0, #a6642d 18px, #b37334 18px, #b37334 36px);
    background-blend-mode: multiply, normal, normal;
    background-size: cover, auto, 40px 100%;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 0 #5D2E17;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
    align-items: center;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-toggle.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

/* Language toggle button */
.language-toggle-btn {
    background-color: #A0522D;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png'),
        repeating-linear-gradient(90deg, #a6642d 0, #a6642d 18px, #b37334 18px, #b37334 36px);
    background-blend-mode: multiply, normal, normal;
    background-size: cover, auto, 40px 100%;
    color: #fff;
    border: none;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    box-shadow: 0 4px 0 #5D2E17;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 800;
    flex-shrink: 0;
}
.language-toggle-btn .lang-code {
    font-size: 0.8rem;
    line-height: 1;
}
.language-toggle-btn .lang-sep {
    opacity: 0.75;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .language-toggle-btn {
        height: 34px;
        padding: 0 10px;
    }
    .language-toggle-btn .lang-code {
        font-size: 0.76rem;
    }
    .language-toggle-btn .lang-sep {
        font-size: 0.7rem;
    }
}

@media (max-width: 420px) {
    /* Keep language toggle visible, just tighter on very small screens */
    .language-toggle-btn {
        height: 32px;
        padding: 0 8px;
        gap: 4px;
    }
    .language-toggle-btn .lang-code {
        font-size: 0.72rem;
    }
    .language-toggle-btn .lang-sep {
        font-size: 0.66rem;
    }
}
.mobile-toggle.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Mobile nav user section - hidden on desktop */
.mobile-nav-user-section {
    display: none;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 8px 0 12px;
}

.mobile-nav-link {
    display: block;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.mobile-nav-link:hover {
    background: rgba(255,255,255,0.1);
}
.mobile-nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-nav-logout {
    background: none;
    border: none;
    color: #ff6b6b !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.mobile-nav-login {
    background: var(--accent-orange) !important;
    text-align: center;
    border-radius: 12px !important;
    margin-bottom: 4px;
    text-shadow: none;
    box-shadow: 0 3px 0 #CC7A00;
}

/* Desktop-only elements */
.desktop-only {
    display: flex;
}

/* Wood Navigation */
.wood-nav {
    background-color: #A0522D;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png'),
        repeating-linear-gradient(90deg, #a6642d 0, #a6642d 18px, #b37334 18px, #b37334 36px);
    background-blend-mode: multiply, normal, normal;
    background-size: cover, auto, 40px 100%;
    padding: 12px 44px;
    border-radius: 15px;
    box-shadow: 0 10px 0 #5D2E17;
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 24px;
    margin: 0;
    justify-content: center;
    overflow: hidden;
}

.wood-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    word-break: keep-all;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.wood-nav a:hover {
    color: var(--accent-yellow);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.header-icon-btn {
    border: none;
    background-color: #A0522D;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png'),
        repeating-linear-gradient(90deg, #a6642d 0, #a6642d 18px, #b37334 18px, #b37334 36px);
    background-blend-mode: multiply, normal, normal;
    background-size: cover, auto, 40px 100%;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #5D2E17;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}

/* Desktop Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border-radius: 16px;
    padding: 8px 0;
    margin-top: 12px;
    z-index: 1001;
    border: 2px solid #f0f0f0;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown-content.is-open {
    display: block;
}

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

.dropdown-content a {
    display: block;
    padding: 11px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover {
    background: #f8f8f8;
    color: #333;
}
.dropdown-content a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    color: var(--accent-orange);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

.dropdown-logout {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 11px 20px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.dropdown-logout:hover {
    background: #fef2f2;
}
.dropdown-logout i {
    margin-right: 10px;
}

.logo-img {
    display: block;
    height: 60px;
    width: auto;
    mix-blend-mode: multiply;
    border-radius: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-quotes {
    background-color: var(--accent-orange);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 0 #CC7A00;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-quotes:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #CC7A00;
}

.btn-quotes2 {
    background-color: #2f5f7d;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 0 #2f5f7d;
    transition: all 0.2s;
}

.btn-quotes2:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #CC7A00;
}

/* ========================================
   FORMS
   ======================================== */
.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    background: #fdfdfd;
    border-radius: 15px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 5px 15px rgba(93, 168, 204, 0.1);
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    font-weight: bold;
    color: #555;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #e6e6e6;
    border-radius: 999px;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 2px #ddd;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider {
    background: var(--accent-orange);
    box-shadow: inset 0 0 0 2px #d98112;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero {
    height: 100vh;
    background-color: var(--primary-blue);
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Hero banner CTA button */
.hero-banner-cta {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 159, 28, 0.95);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    padding: 14px 22px;
    border-radius: 999px;
    font-family: var(--heading-font);
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    max-width: calc(100% - 96px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-banner-cta:hover {
    transform: translateX(-50%) translateY(-1px);
    background: rgba(255, 159, 28, 1);
    box-shadow: 0 12px 34px rgba(0,0,0,0.22);
    color: #fff;
}

@media (max-width: 768px) {
    .hero-banner-cta {
        left: 50%;
        right: auto;
        bottom: 18px;
        transform: translateX(-50%);
        padding: 12px 16px;
        font-size: 0.95rem;
        max-width: calc(100% - 28px);
    }
}

.hero-img-mobile {
    display: none;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    padding: 50px;
    max-width: 800px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    margin-top: 150px;
    margin-left: 150px;
    animation: fadeIn 1s ease-out;
    text-align: center;
}

.hero-content h2 {
    font-size: 3.5rem !important;
    text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem !important;
    max-width: 600px;
    color: #333;
    font-weight: 500;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #000;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--accent-orange);
    opacity: 1;
    width: 35px;
    border-radius: 10px;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
    font-size: 18px;
    color: #ffffff;
}

.hero .swiper-button-prev { left: 22px; }
.hero .swiper-button-next { right: 22px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Cloud Divider */
.cloud-divider {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 70px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,165.3C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    pointer-events: none;
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: #333;
}

/* Class Cards */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.class-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid #f0f0f0;
    transition: transform 0.3s;
}

.class-card:hover {
    transform: translateY(-10px);
}

.class-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.class-info {
    padding: 25px;
    text-align: center;
}

.class-tag {
    background: var(--accent-pink);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
}

/* Pricing / Packages */
.package-card {
    text-align: center;
    padding: 40px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 8px solid var(--primary-blue);
}

/* ========================================
   PRODUCTS
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-yellow);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    margin-bottom: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 88%;
    height: 88%;
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card-body {
    padding: 10px 6px 6px;
}

.product-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.fav-toggle-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
}

.fav-toggle-btn i {
    color: var(--accent-pink);
    font-size: 1.1rem;
}

.fav-toggle-btn:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.product-price {
    font-size: 1.5rem;
    color: var(--accent-orange);
    font-family: var(--heading-font);
    width: 100%;
    margin-bottom: 10px;
}

.btn-add-cart {
    background: var(--accent-orange);
    color: #fff;
    width: 100%;
    padding: 5px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 0 #FF9F1C;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D16599;
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: #333;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: bold;
    z-index: 2;
    line-height: 1.2;
}
.product-badge-out {
    background: #ef4444;
}
.product-badge-low {
    background: #f59e0b;
}

.cart-icon {
    position: relative;
    font-size: 1.1rem;
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ========================================
   LAYOUTS
   ======================================== */
.page-section {
    padding: 120px 0 90px;
}

.profile-layout {
    display: grid;
    align-items: start;
}

.checkout-grid {
    display: grid;
    align-items: start;
}

.cart-layout {
    display: flex;
    align-items: flex-start;
}

.product-detail-layout {
    display: flex;
    flex-wrap: wrap;
}

.product-detail-actions {
    display: flex;
    flex-wrap: wrap;
}

.address-grid {
    display: grid;
}

.form-grid {
    display: grid;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: #2f5f7d;
    color: #f7fbff;
    padding: 60px 0 20px;
    position: relative;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-social {
    display: flex;
    gap: 14px;
}
.footer-social a {
    color: #fff;
    font-size: 1.2rem;
}
.footer-social a:hover {
    color: var(--accent-yellow);
}

.footer-links ul {
    list-style: none;
    color: #f0f0f0;
}
.footer-links ul li {
    margin-bottom: 8px;
}
.footer-links ul li a {
    color: #ddd;
    font-size: 0.95rem;
}
.footer-links ul li a:hover {
    color: var(--accent-yellow);
}

.footer-contact p {
    color: #ddd;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.footer-contact p i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}
.footer-bottom p {
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE - IMAGES & VIDEO
   ======================================== */
img, video {
    max-width: 100%;
    height: auto;
}

/* ========================================
   DESKTOP >= 769px
   ======================================== */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
    .mobile-nav-user-section {
        display: none !important;
    }
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE: TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
    section {
        padding: 80px 0;
    }
    .page-section {
        padding: 110px 0 70px !important;
        min-height: auto !important;
    }
    .profile-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .cart-layout {
        flex-direction: column;
        gap: 28px;
    }
    .product-detail-layout {
        padding: 32px !important;
        border-radius: 28px !important;
        gap: 28px !important;
    }
    .product-detail-media,
    .product-detail-info {
        min-width: 100% !important;
    }
    .hero {
        height: 85vh;
    }
    .hero-content {
        margin-top: 80px;
        margin-left: 0;
        padding: 28px;
        max-width: 640px;
        border-width: 3px;
    }
    .hero-content h2 {
        font-size: 2.6rem !important;
    }
}

/* ========================================
   RESPONSIVE: MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
    /* --- Header --- */
    header {
        padding: 12px 0;
    }

    .nav-container {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .logo-area {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .logo-area img {
        height: 42px !important;
    }

    .mobile-toggle {
        display: inline-flex;
        width: 34px;
        height: 34px;
        order: 4;
    }

    .header-actions {
        margin-left: auto;
        gap: 6px;
        order: 3;
    }

    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
        box-shadow: 0 3px 0 #5D2E17;
    }

    /* Hide desktop profile dropdown and login button on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Wood nav - mobile slide down */
    .wood-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        gap: 4px;
        padding: 80px 20px 30px;
        border-radius: 0;
        margin: 0;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .wood-nav.mobile-open {
        display: flex;
        transform: translateX(0);
    }

    .wood-nav li {
        list-style: none;
    }

    .wood-nav > li > a {
        display: block;
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 10px;
        transition: background 0.2s;
    }

    .wood-nav > li > a:hover {
        background: rgba(255,255,255,0.1);
    }

    /* Show mobile user section in nav */
    .mobile-nav-user-section {
        display: block;
        margin-top: auto;
        padding-top: 8px;
    }

    /* Home page header adjustments */
    body.home-page header {
        background: #fff9f2;
    }
    body.home-page .logo-area {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    body.home-page .logo-img {
        mix-blend-mode: normal;
        height: 42px !important;
    }
    body.home-page .nav-container {
        align-items: center;
    }

    /* --- Typography --- */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .section-title h2 { font-size: 1.8rem; }

    /* --- Hero --- */
    .hero {
        height: auto;
        min-height: 0;
        padding-top: 0;
    }
    .hero-content {
        margin-top: 24px;
        margin-left: 0;
        padding: 18px;
        border-radius: 22px;
        max-width: 92%;
        border-width: 2px;
        backdrop-filter: blur(8px);
    }
    .hero-content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 12px;
    }
    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 12px;
    }
    .hero-content .btn-quotes {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .swiper, .swiper-slide {
        height: auto;
        min-height: 0;
        align-items: flex-start;
    }
    .hero .swiper-button-prev,
    .hero .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    .hero .swiper-button-prev::after,
    .hero .swiper-button-next::after {
        font-size: 12px;
    }
    .hero .swiper-button-prev { left: 8px; }
    .hero .swiper-button-next { right: 8px; }
    .hero .hero-bg {
        display: none;
    }
    .hero-img-mobile {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        z-index: 0;
    }

    /* --- Sections --- */
    section {
        padding: 50px 0;
    }
    .page-section {
        padding: 90px 0 50px !important;
        min-height: auto !important;
    }
    main {
        padding-top: 80px;
    }

    /* --- Products --- */
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .product-card {
        border-radius: 12px;
        padding: 5px;
        min-height: auto;
        border-width: 1.5px;
    }
    .product-card:hover {
        transform: none;
    }
    .product-img {
        height: 90px;
        margin-bottom: 4px;
        border-radius: 8px;
    }
    .product-card-body {
        padding: 4px 3px 3px;
    }
    .product-card-body h3,
    .product-card h3 {
        font-size: 0.68rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 2px;
        line-height: 1.3;
    }
    .product-price {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    .btn-add-cart {
        padding: 4px;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    .fav-toggle-btn {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
    }
    .fav-toggle-btn i {
        font-size: 0.7rem;
    }

    /* --- Product Detail --- */
    .product-detail-perks {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .product-image-frame {
        height: 320px !important;
    }
    .product-detail-title {
        font-size: 1.8rem !important;
    }
    .product-detail-price {
        font-size: 1.6rem !important;
    }
    .product-detail-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .product-detail-actions > * {
        width: 100%;
    }

    /* --- Profile --- */
    .profile-content,
    .profile-sidebar {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    /* --- Address & Forms --- */
    .address-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .stack-mobile {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .stack-mobile > * {
        width: 100%;
    }

    /* --- Shop --- */
    .shop-layout {
        gap: 16px;
        flex-direction: column;
    }
    .shop-filter {
        min-width: 100%;
    }
    .shop-filter-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
        border: 2px solid #f0f0f0;
        background: #fff;
        font-family: inherit;
        font-weight: 800;
        color: #333;
        cursor: pointer;
        box-shadow: 0 10px 26px rgba(0,0,0,0.04);
        margin-bottom: 10px;
    }
    .shop-filter-toggle-icon {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #eee;
        color: #6b7280;
        flex-shrink: 0;
    }
    .shop-filter-toggle[aria-expanded="true"] .shop-filter-toggle-icon i {
        transform: rotate(180deg);
        transition: transform 0.2s ease;
    }
    .shop-filter-panel.is-collapsed {
        display: none !important;
    }
    .shop-results {
        width: 100%;
        min-width: 100% !important;
    }
    .shop-filter-panel {
        padding: 14px;
        border-radius: 16px;
        gap: 12px;
    }

    /* --- Checkout --- */
    .checkout-step {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    .step-title {
        font-size: 1.15rem !important;
    }
    .step-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }
    .checkout-grid {
        gap: 16px !important;
        grid-template-columns: 1fr !important;
    }
    .checkout-summary-wrap {
        position: static !important;
        top: auto !important;
    }
    .checkout-summary-card {
        padding: 16px !important;
        border-radius: 16px !important;
    }
    .checkout-summary-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 14px !important;
    }
    .checkout-summary-card textarea,
    .checkout-summary-card input,
    .checkout-step input,
    .checkout-step select,
    .checkout-step textarea {
        font-size: 0.95rem !important;
    }
    .checkout-summary-card .btn-quotes,
    #checkoutSubmitBtn.btn-quotes {
        padding: 14px 14px !important;
        font-size: 1rem !important;
        box-shadow: 0 4px 0 #CC7A00 !important;
    }

    /* --- Product Detail --- */
    .product-detail-page {
        padding: 40px 0 !important;
    }
    .product-detail-card {
        padding: 16px !important;
        border-radius: 18px !important;
        gap: 18px !important;
    }
    .product-detail-media,
    .product-detail-info {
        min-width: 100% !important;
    }
    .product-image-frame {
        height: 320px !important;
        border-radius: 18px !important;
    }
    .product-detail-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }
    .product-detail-price {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }
    .product-image-thumb {
        width: 60px !important;
        height: 60px !important;
        border-radius: 10px !important;
    }
    .product-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .shop-filter-group h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .shop-filter-select,
    .shop-filter-input {
        padding: 8px 10px;
        border-radius: 12px;
        font-size: 0.85rem;
    }
    .shop-filter-price { gap: 6px; }
    .shop-filter-actions { gap: 8px; }
    .shop-filter-actions .btn-quotes {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .shop-filter-actions a {
        padding: 8px 0;
        font-size: 0.8rem;
    }

    /* --- Orders --- */
    .order-summary {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .order-item-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .order-item-row > div {
        width: 100%;
    }

    /* --- Cart --- */
    .cart-table-wrapper {
        overflow-x: visible;
    }
    .cart-table {
        min-width: 0 !important;
    }
    .cart-table thead {
        display: none;
    }
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table tr {
        border: 1px solid #eee;
        border-radius: 16px;
        padding: 12px 14px;
        margin-bottom: 14px;
        background: #fff;
    }
    .cart-table tr:last-child {
        margin-bottom: 0;
    }
    .cart-table td {
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }
    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
    }
    .cart-table td[data-label="Ürün"] {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-table td[data-label="Ürün"]::before {
        margin-bottom: 6px;
    }
    .cart-table td[data-label="Ürün"] .cart-product {
        width: 100%;
    }
    .cart-table td[colspan] {
        display: block;
        text-align: center;
    }
    .cart-table td[colspan]::before {
        content: none;
    }
    .cart-layout > div {
        width: 100%;
        min-width: 0;
    }

    /* --- Floating WhatsApp --- */
    .floating-whatsapp {
        height: 40px !important;
        padding: 0 10px 0 10px !important;
        font-size: 0.78rem;
        gap: 8px;
        right: 14px;
        bottom: 16px;
    }
    .floating-whatsapp i {
        font-size: 1.1rem !important;
    }

    /* --- Tables --- */
    .table-responsive table {
        min-width: 520px !important;
    }

    /* --- Footer Cloud --- */
    .footer-cloud-divider {
        height: 60px !important;
        margin-top: 30px !important;
    }
    .footer-cloud-divider svg {
        height: 60px !important;
    }

    /* --- Footer --- */
    footer {
        padding: 36px 0 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-brand h2 {
        font-size: 1.5rem !important;
    }
    .footer-brand p {
        font-size: 0.9rem;
    }
    footer h3 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    .footer-links ul li {
        margin-bottom: 6px;
    }
    .footer-links ul li a {
        font-size: 0.88rem;
    }
    .footer-contact p {
        font-size: 0.88rem;
    }
    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ========================================
   RESPONSIVE: SMALL MOBILE (max 480px)
   ======================================== */
@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    .nav-container {
        gap: 6px;
    }

    .logo-area img {
        height: 36px !important;
    }

    .mobile-toggle {
        width: 34px;
        height: 34px;
    }

    .hamburger-icon {
        width: 16px;
        gap: 4px;
    }
    .hamburger-icon span {
        height: 2px;
    }

    .header-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        box-shadow: 0 2px 0 #5D2E17;
    }

    .header-actions {
        gap: 6px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    .section-title h2 { font-size: 1.5rem; }

    .btn-quotes {
        padding: 9px 18px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-content {
        margin-top: 70px;
        padding: 14px;
        border-radius: 16px;
        max-width: 94%;
    }
    .hero-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 8px;
    }
    .hero-content p {
        font-size: 0.9rem !important;
        margin-bottom: 10px;
    }
    .hero-content .btn-quotes {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    section {
        padding: 36px 0;
    }
    .page-section {
        padding: 80px 0 40px !important;
    }
    main {
        padding-top: 70px;
    }

    /* Products */
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .product-card {
        padding: 4px;
        border-radius: 10px;
    }
    .product-img {
        height: 75px;
        margin-bottom: 3px;
        border-radius: 7px;
    }
    .product-card-body {
        padding: 3px 2px 2px;
    }
    .product-card-body h3,
    .product-card h3 {
        font-size: 0.62rem;
        line-height: 1.2;
    }
    .product-price {
        font-size: 0.68rem;
        margin-bottom: 3px;
    }
    .btn-add-cart {
        padding: 3px;
        font-size: 0.58rem;
    }

    /* Product Detail */
    .product-detail-layout {
        padding: 18px !important;
        border-radius: 20px !important;
        gap: 16px !important;
    }
    .product-image-frame {
        height: 260px !important;
    }
    .product-detail-title {
        font-size: 1.6rem !important;
    }
    .product-detail-price {
        font-size: 1.4rem !important;
    }

    /* Profile */
    .profile-content,
    .profile-sidebar {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* Cart */
    .cart-table td {
        font-size: 0.9rem;
    }
    .cart-table td[data-label="Ürün"] img {
        width: 56px !important;
        height: 56px !important;
    }

    /* Footer */
    .footer-cloud-divider {
        height: 48px !important;
        margin-top: 20px !important;
    }
    .footer-cloud-divider svg {
        height: 48px !important;
    }
    footer {
        padding: 30px 0 14px;
    }

    /* Floating WhatsApp */
    .floating-whatsapp span {
        font-size: 0.72rem;
    }

    /* Tables */
    .table-responsive table {
        min-width: 400px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 16px;
    }
    .footer-links ul li {
        margin-bottom: 4px;
    }
    .footer-contact {
        text-align: center;
    }
    .footer-contact p i {
        margin-right: 6px;
    }

    /* Mobile Nav */
    .wood-nav {
        width: 85%;
        max-width: 300px;
        padding: 70px 16px 24px;
    }
    .wood-nav > li > a {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .mobile-nav-link {
        font-size: 0.9rem;
        padding: 9px 10px;
    }
}

/* ========================================
   RESPONSIVE: Extra small (max 360px)
   ======================================== */
@media (max-width: 360px) {
    .container {
        width: 94%;
    }
    .logo-area img {
        height: 32px !important;
    }
    .header-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .mobile-toggle {
        width: 32px;
        height: 32px;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
    }
    .product-card {
        padding: 3px;
    }
    .product-img {
        height: 65px;
        border-radius: 6px;
    }
    .product-card-body h3,
    .product-card h3 {
        font-size: 0.58rem;
    }
    .product-price {
        font-size: 0.62rem;
    }
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
}

/* ========================================
   CATEGORY STYLES
   ======================================== */
.category-circle {
    border: 4px solid #eee;
    transition: all 0.3s ease;
}

.category-item:nth-child(5n+1) .category-circle { border-color: #3498DB; }
.category-item:nth-child(5n+2) .category-circle { border-color: var(--accent-yellow); }
.category-item:nth-child(5n+3) .category-circle { border-color: var(--accent-pink); }
.category-item:nth-child(5n+4) .category-circle { border-color: #2ECC71; }
.category-item:nth-child(5n+5) .category-circle { border-color: var(--accent-orange); }

.category-item:hover .category-circle {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* ========================================
   TABLES
   ======================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    min-width: 600px;
}
