:root {
    --bg: #cdc6b6;
    --text: #4b4a44;
    --accent: #7b7669;
    --card-bg: rgba(255, 255, 255, 0.18);
    --border-soft: rgba(75, 74, 68, 0.18);
    --button-bg: #4b4a44;
    --button-text: #f7f3eb;
    
    /* Modern additions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background-color: var(--bg);
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Container class (bazı sayfalarda kullanılıyor) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.page {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Mobilde overflow önleme */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    .page,
    .container {
        padding: 16px 12px 32px;
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Grid ve flex container'lar için */
    .products-grid,
    .cart-page,
    .checkout-page {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Tüm form ve input elementleri */
    form,
    input,
    textarea,
    select,
    button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile Header */
    header {
        position: relative;
        flex-wrap: wrap;
    }
    
    .brand-area {
        flex: 1;
        min-width: 0;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .brand-tagline {
        font-size: 10px;
    }
    
    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
        margin-right: 10px;
    }
    
    /* Mobile Navigation */
    .main-nav {
        display: block !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-soft);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 24px 24px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .nav-content a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(75, 74, 68, 0.15);
        display: block;
        color: var(--text);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        transition: var(--transition);
    }
    
    .nav-content a:hover {
        color: var(--accent);
        padding-left: 8px;
    }
    
    .nav-content a::after {
        display: none;
    }
    
    .nav-content form {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(75, 74, 68, 0.15);
        display: block;
    }
    
    .nav-content .nav-cta {
        margin-top: 12px;
        text-align: center;
        border: 1.5px solid var(--text);
        border-radius: 24px;
        padding: 12px 24px;
        color: var(--text);
        background: transparent;
    }
    
    .nav-content .nav-cta:hover {
        background: var(--text);
        color: #f5efe3;
    }
    
    .nav-content .nav-logout-btn {
        width: 100%;
        text-align: left;
        padding: 14px 0;
        color: var(--text);
        font-size: 15px;
        font-weight: 500;
    }
    
    .nav-content .nav-logout-btn:hover {
        color: var(--accent);
        padding-left: 8px;
    }
    
    .nav-content .nav-logout-btn::after {
        display: none;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Mobile Submenu Styles */
    .main-nav .menu-item-with-children {
        width: 100%;
    }
    
    .main-nav .menu-item-toggle {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(75, 74, 68, 0.15);
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }
    
    .main-nav .menu-item-toggle:hover {
        color: var(--accent);
        padding-left: 8px;
    }
    
    .main-nav .submenu {
        position: static !important;
        display: none;
        width: 100%;
        background: rgba(75, 74, 68, 0.05);
        border-radius: 8px;
        padding: 8px 0;
        margin-top: 8px;
        margin-left: 16px;
        box-shadow: none;
        min-width: auto;
    }
    
    .main-nav .menu-item-with-children.active .submenu {
        display: block;
    }
    
    .main-nav .submenu a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(75, 74, 68, 0.1);
        color: var(--text);
        display: block;
    }
    
    .main-nav .submenu a:hover {
        background: rgba(75, 74, 68, 0.1);
        color: var(--accent);
    }
    
    .main-nav .submenu a:last-child {
        border-bottom: none;
    }
    
    .main-nav .submenu-arrow {
        font-size: 12px;
        transition: transform 0.3s;
    }
    
    .main-nav .menu-item-with-children.active .submenu-arrow {
        transform: rotate(180deg);
    }
    
    /* Cart Widget Mobile */
    .cart-widget {
        order: 3;
        margin-left: auto;
    }
    
    .cart-widget-info {
        display: none;
    }
    
    .cart-widget-icon {
        font-size: 24px;
    }
}

/* Breadcrumb */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--accent);
    flex-wrap: wrap;
    padding: 4px 0;
}

.breadcrumb-item {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    padding: 2px 0;
}

.breadcrumb-item:hover {
    color: var(--text);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 500;
    pointer-events: none;
}

.breadcrumb-separator {
    color: var(--accent);
    opacity: 0.4;
    user-select: none;
    margin: 0 2px;
}

/* Header */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-soft);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 70px;
    height: auto;
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: var(--transition);
}

.brand-name:hover {
    opacity: 0.8;
}

.brand-tagline {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

nav a {
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
    width: 100%;
}

/* Desktop Submenu */
.menu-item-with-children {
    position: relative;
    display: inline-block;
}

.menu-item-with-children .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
}

.menu-item-with-children:hover .submenu {
    display: block;
}

.menu-item-with-children .submenu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: none;
}

.menu-item-with-children .submenu a:hover {
    background: rgba(75, 74, 68, 0.1);
}

.submenu-arrow {
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.3s;
}

.menu-item-with-children.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Hamburger Menu Button (Mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid var(--text);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: relative;
    align-items: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(75, 74, 68, 0.1);
    border-color: var(--accent);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Content */
.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    padding: 4px 0;
    position: relative;
}

.nav-logout-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logout-btn:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--text);
    color: #f5efe3;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Flash Messages */

.flash-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-sm);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.flash-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.flash-info {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #1565c0;
}

/* Card base */

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top,
    rgba(255, 255, 255, 0.5) 0,
    transparent 70%);
    opacity: 0.8;
    pointer-events: none;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-inner {
    position: relative;
    z-index: 1;
}

/* Hero */

.hero {
    margin-bottom: 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: center;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 28px;
    border: 1.5px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--button-bg);
    color: var(--button-text);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(75, 74, 68, 0.4);
}

.btn-secondary:hover {
    background: rgba(75, 74, 68, 0.95);
    color: #f5efe3;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-highlight {
    font-size: 13px;
    margin-top: 16px;
    color: var(--accent);
    font-style: italic;
}

/* Hero side column: small stacked cards */

.hero-side {
    display: grid;
    gap: 14px;
}

.mini-card {
    border-radius: 16px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(75, 74, 68, 0.2);
    text-align: left;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mini-title {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.mini-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Section titles */

.section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 14px;
    color: var(--accent);
    margin-top: 4px;
}

.section-link {
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.section-link:hover {
    color: var(--text);
    text-decoration-thickness: 2px;
}

/* Grid */

.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Product cards */

.card-sm {
    border-radius: 16px;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(75, 74, 68, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-sm:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(75, 74, 68, 0.3);
}

.card-sm a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px;
}

/* Card-sm içindeki direkt içerikler için padding */
.card-sm > p:not(.product-tags):not(.blog-excerpt):not(.blog-meta),
.card-sm > h3:not(.product-title):not(.blog-title),
.card-sm.empty-state-card {
    padding: 32px 24px;
}

/* Empty state card */
.empty-state-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

.empty-state-text {
    color: var(--accent);
    font-size: 15px;
    margin: 0;
    padding: 0 !important;
}

/* About card içindeki içerikler */
.card-sm.about-card {
    padding: 32px 28px;
}

.card-sm .newsletter-title {
    margin-top: 0;
    margin-bottom: 16px;
    padding-top: 0;
}

.card-sm .newsletter-text {
    margin-bottom: 0;
    line-height: 1.7;
    padding-bottom: 0;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: linear-gradient(135deg, #efe6d7, #d5c9b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.card-sm:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-sm:hover .product-image img {
    transform: scale(1.08);
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tags {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
}

.price {
    font-weight: 600;
    font-size: 16px;
}

.pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(75, 74, 68, 0.3);
    background: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* Workshop card */

.workshop-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: center;
}

.workshop-badge {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.workshop-title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.workshop-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: var(--text);
}

.workshop-meta {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
    line-height: 1.6;
}

.workshop-image {
    border-radius: 16px;
    background: linear-gradient(145deg, #f3eadf, #d0c3ac);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent);
    overflow: hidden;
    transition: var(--transition);
}

.workshop-image:hover {
    transform: scale(1.02);
}

.workshop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.workshop-image:hover img {
    transform: scale(1.05);
}

/* Blog cards */

.blog-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-title a {
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.blog-meta {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text);
}

.blog-read {
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.blog-read:hover {
    text-decoration-thickness: 2px;
    color: var(--accent);
}

/* Newsletter + footer */

.newsletter-card {
    border-radius: 18px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(75, 74, 68, 0.25);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.newsletter-card:hover {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-md);
}

.newsletter-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 0;
    font-family: "Playfair Display", serif;
    color: var(--text);
}

.newsletter-text {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.3);
    color: var(--text);
    transition: var(--transition);
    box-sizing: border-box;
    height: auto;
    line-height: 1.4;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.newsletter-captcha {
    margin: 8px 0;
}

.newsletter-captcha .captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#newsletter-captcha-question {
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    min-width: 120px;
    text-align: center;
    color: var(--text);
    transition: var(--transition);
}

#newsletter-captcha_answer {
    width: 100px;
    padding: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

#newsletter-captcha_answer:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
}

.newsletter-captcha .btn-captcha-refresh {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.newsletter-captcha .btn-captcha-refresh:hover {
    background: rgba(123, 118, 105, 0.2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* Newsletter form genel input stili kaldırıldı - spesifik input[type="email"] kullanılıyor */

.footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--accent);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--text);
    text-decoration-thickness: 2px;
}

/* Form styles */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(75, 74, 68, 0.4);
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(75, 74, 68, 0.1);
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Product Detail Page */

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.product-info-section {
    order: 1;
}

.product-image-section {
    order: 2;
}

.product-actions-section {
    order: 3;
}

.product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.product-detail-title {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.product-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--accent);
    margin-bottom: 24px;
}

.product-main-image-wrapper {
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: relative;
    width: 100%;
    display: block;
    height: 600px; /* Sabit yükseklik - sayfa kaymasını önler */
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Farklı aspect ratio'lu görselleri düzgün gösterir */
    display: block;
    transition: opacity 0.3s ease;
    background: var(--card-bg);
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.product-thumbnail:hover {
    border-color: var(--text);
    transform: scale(1.05);
}

.product-thumbnail.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(75, 74, 68, 0.2);
}

.product-no-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
}

.product-stock-info {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
}

.stock-item {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-item:last-child {
    margin-bottom: 0;
}

.stock-label {
    color: var(--accent);
    font-weight: 500;
}

.stock-available {
    color: #2e7d32;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-unavailable {
    color: #c62828;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stock-featured {
    color: var(--text);
    font-weight: 500;
}

.stock-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.product-add-form {
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: rgba(75, 74, 68, 0.1);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.product-add-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

.product-tags-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.tags-label {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    transition: all 0.2s;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--text);
}

/* Responsive */

@media (min-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr 1.2fr;
        grid-template-rows: auto 1fr;
    }
    
    .product-image-section {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
    }
    
    .product-info-section {
        grid-column: 2;
        grid-row: 1;
    }
    
    .product-actions-section {
        grid-column: 2;
        grid-row: 2;
    }
    
    .product-main-image-wrapper {
        height: 700px; /* Sabit yükseklik - sayfa kaymasını önler */
    }
    
    .product-main-image {
        height: 100%; /* Container'ın tam yüksekliğini kullan */
    }
}

@media (max-width: 900px) {
    .hero-content,
    .workshop-card {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .product-detail-title {
        font-size: 28px;
    }
    
    .product-detail-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 20px 16px 40px;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card {
        padding: 24px 20px;
    }
}

@media (max-width: 520px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
}

/* Admin Panel Styles */

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.2);
}

.admin-table th {
    text-align: left;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-soft);
}

.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-product-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.admin-product-category {
    font-size: 12px;
    color: var(--accent);
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-btn-small {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.admin-stats-card {
    padding: 24px;
    text-align: center;
}

.admin-stats-number {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1;
}

.admin-stats-label {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

.admin-quick-action {
    padding: 20px;
    display: block;
    transition: var(--transition);
}

.admin-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-quick-action h3 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-quick-action p {
    font-size: 13px;
    color: var(--accent);
    line-height: 1.5;
}

/* Admin Form Improvements */

.admin-form-section {
    margin-bottom: 32px;
}

.admin-form-section:last-child {
    margin-bottom: 0;
}

.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.admin-form-group input,
.admin-form-group textarea,
.admin-form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(75, 74, 68, 0.4);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(75, 74, 68, 0.1);
    background: rgba(255, 255, 255, 1);
}

.admin-form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

/* Admin Image Gallery */

.admin-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-image-item {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 4px;
    transition: var(--transition);
}

.admin-image-item.primary {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(75, 74, 68, 0.2);
}

.admin-image-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-image-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.admin-image-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.admin-image-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.admin-image-btn.primary {
    background: rgba(46, 125, 50, 0.9);
    color: white;
}

.admin-image-btn.delete {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

/* Modern Image Upload Zone */

.image-upload-zone {
    border: 2px dashed rgba(75, 74, 68, 0.4);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    cursor: pointer;
    margin-top: 8px;
}

.image-upload-zone:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.4);
}

.image-upload-zone.dragover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.upload-zone-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.upload-text strong {
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

.upload-text span {
    font-size: 13px;
    color: var(--accent);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.image-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-preview-item.primary {
    border-color: var(--text);
    box-shadow: 0 0 0 2px rgba(75, 74, 68, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

.image-preview-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.image-preview-overlay {
    position: absolute;
    inset: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.image-preview-item:hover .image-preview-overlay {
    opacity: 1;
}

.image-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(46, 125, 50, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.image-preview-actions {
    display: flex;
    gap: 6px;
}

.image-preview-btn {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.image-preview-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.image-preview-btn.set-primary {
    background: rgba(46, 125, 50, 0.9);
    color: white;
}

.image-preview-btn.remove {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

/* Kategori Filtreleri - Normal Pill Style */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.category-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Metin kırılmasın ama buton alt satıra geçebilir */
}

.category-filter:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-filter.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.filter-count {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

.category-filter.active .filter-count {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .category-filters {
        padding: 16px;
        gap: 8px;
    }
    
    .category-filter {
        padding: 8px 16px;
        font-size: 13px;
    }
}
