/* ==========================================
   DOLMACI DÜKKANI - DESIGN SYSTEM & STYLESHEET
   Brand Theme: Concept 2 (Vanilla Cream & Deep Burgundy)
   Primary: #5E1224 | Accent: #D97706 (Warm Amber) | BG: #FDFBF7
   ========================================== */

:root {
    --primary: #5E1224;
    --primary-hover: #4A0E1C;
    --primary-light: #8B1E37;
    --primary-soft: rgba(94, 18, 36, 0.05);
    --accent: #D4AF37;
    --accent-hover: #B89327;
    --action-amber: #C5A059;
    --action-amber-hover: #A48342;
    --bg-main: #FFFFFF;
    --bg-card: #F9F8F6;
    --bg-alt: #F6F4F0;
    --text-main: #1E1215;
    --text-muted: #6C5D60;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE57;
    --border-color: #E5DFD9;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 4px 12px rgba(30, 18, 21, 0.04);
    --shadow-md: 0 8px 24px rgba(30, 18, 21, 0.08);
    --shadow-lg: 0 20px 48px rgba(30, 18, 21, 0.12);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

p {
    margin-bottom: 1rem;
}

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

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* SVG ICON STYLING */
.svg-icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: -0.18em;
}

/* LAYOUT CONTAINERS */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2rem 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.25;
}

h3 {
    padding-top: 12px;
}

.section-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.section-title span.badge {
    display: inline-block;
    background-color: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.8rem;
    border: 1px solid rgba(27, 62, 47, 0.15);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action {
    background-color: #0f0f0f;
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.btn-action:hover {
    background-color: #262626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* HEADER & NAVBAR */
.top-bar {
    background-color: #000000;
    color: #FFFFFF;
    font-size: 0.88rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-info a:hover {
    color: var(--accent);
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    flex-wrap: nowrap;
}

.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-brand img {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-brand:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* HEADER ACTIONS (Sepet & Hamburger) */
.nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.cart-btn {
    position: relative;
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}

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

.cart-badge {
    background-color: var(--action-amber);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    line-height: 1;
}

/* HERO SECTION & SLIDER (Görsel Üzeri Yazı) */
.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.hero-slider-wrapper.is-grabbing {
    cursor: grabbing;
    user-select: none;
}

.hero-slider {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 440px; /* Azaltılmış yükseklik */
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1) translate3d(0, 0, 0);
    animation: heroKenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.08) translate3d(-1.5%, -1%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide-bg {
        animation: none;
    }
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide-content {
    max-width: 700px;
    color: #FFFFFF;
    padding: 4.5rem 0;
    text-align: left;
}

.hero-slide-content h1,
.hero-slide-content .hero-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-family: var(--font-heading);
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero-slide-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 580px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    line-height: 1.6;
}

.hero-slide-content .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-slide .hero-btns a {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    transition-delay: 0s;
}

.hero-slide.active .hero-btns a:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.22s;
}

.hero-slide.active .hero-btns a:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.44s;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* Navigation arrows */
.hero-slider-prev, .hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.hero-slider-prev:hover, .hero-slider-next:hover {
    background: var(--primary);
    color: #FFF;
    border-color: var(--primary);
}

.hero-slider-prev {
    left: 24px;
}

.hero-slider-next {
    right: 24px;
}

.hero-slider-prev svg, .hero-slider-next svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Hide navigation if there is only 1 slide */
.hero-slider-wrapper.single-slide .hero-slider-prev,
.hero-slider-wrapper.single-slide .hero-slider-next,
.hero-slider-wrapper.single-slide .hero-slider-dots {
    display: none;
}

.hero {
    position: relative;
    padding: 5rem 0 6rem 0;
    background: linear-gradient(135deg, #FDFBF7 0%, #F5EFE3 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.hero-content h1 {
    font-size: 3.4rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

/* Legacy Image placeholder removed */

/* CATEGORY TABS */
.products-page-hero {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #EFE8DA 100%);
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* PRODUCT CARD & FLOOD SLIDER */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 62, 47, 0.3);
}

.product-img-slider {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #F4EFE6;
}

.product-img-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 4;
}

.product-img-slider.is-shining::after {
    animation: productPhotoShine 0.95s ease-out forwards;
}

.product-card.is-shining {
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.24), var(--shadow-sm);
    border-color: rgba(212, 175, 55, 0.5);
}

@keyframes productPhotoShine {
    0% {
        left: -120%;
    }
    100% {
        left: 150%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-img-slider.is-shining::after {
        animation: none;
    }
}

.product-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    scroll-snap-type: x mandatory;
}

.product-slider-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

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

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 5;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card:hover .slider-nav-btn {
    opacity: 1;
}

.slider-nav-prev { left: 8px; }
.slider-nav-next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--action-amber);
    width: 16px;
    border-radius: 999px;
}

.product-detail-grid .product-img-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #FFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.product-detail-grid .product-img-slider .product-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-detail-grid .product-img-slider .product-slider-slide {
    min-width: 100%;
    height: 100%;
}

.product-detail-grid .product-img-slider .product-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.product-detail-grid .product-img-slider .slider-nav-btn {
    opacity: 1;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-detail-grid .product-img-slider .slider-nav-btn:hover {
    background: #FFF;
    transform: translateY(-50%) scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--action-amber);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    z-index: 5;
}

.product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.add-to-cart-btn {
    background-color: #0f0f0f;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: #262626;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

/* PRODUCT DETAIL PAGE (urun.php) */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.detail-main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.detail-thumbs {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.detail-thumb {
    width: 75px;
    height: 75px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

/* 3-COLUMN GRID FOR GALLERY & RESTORAN IMAGES */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(35, 5, 12, 0.85) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: #FFFFFF;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* CART DRAWER & SINGLE LINE ITEM STYLING */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    height: 100dvh;
    background: var(--bg-card);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.2rem 1.5rem;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    padding-top: 0;
}

.close-cart-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.cart-items-body {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1.2rem;
}

/* SINGLE-LINE CART ITEM WITH SMALL IMAGE & SWIPE-LEFT TO DELETE */
.cart-item-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
    user-select: none;
    touch-action: pan-y;
}

.cart-item-line.swiping-left {
    transform: translateX(-100%);
    opacity: 0;
}

.cart-item-img-small {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-line-info {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-line-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-item-total-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.qty-controls-mini {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.qty-btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-alt);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn-mini:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.cart-item-unit-tag {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    margin-left: 0.35rem;
    vertical-align: middle;
    letter-spacing: 0.3px;
    border: 1px solid rgba(27, 62, 47, 0.12);
}

.cart-item-qty-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    min-width: 44px;
    text-align: center;
    white-space: nowrap;
}

.cart-footer {
    padding: 1.2rem 1.5rem;
    border-top: 2px solid var(--border-color);
    background: var(--bg-main);
}

.cart-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.cart-total-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* FOOTER */
.footer {
    background-color: var(--text-main);
    color: #F0E8DD;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1.2rem;
    display: block;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    color: #CFC2B4;
    margin-bottom: 0.8rem;
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #9E8C7E;
}

/* RESPONSIVE LAYOUT HELPERS */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.page-banner-title {
    font-size: 3rem;
    margin: 0.8rem 0;
    color: var(--primary);
}

.kurumsal-form-container {
    background: var(--bg-alt);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

/* Ensure embedded elements like iframes are responsive */
iframe, embed, object, video {
    max-width: 100%;
    width: 100%;
}

/* MOBILE NAV TOGGLE BUTTON */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* MEDIA QUERIES */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links {
        gap: 1.1rem;
    }
    .nav-links a {
        font-size: 0.92rem;
    }
    .cart-btn {
        padding: 0.55rem 0.95rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 992px) {
    .hero-grid, .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.8rem;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
    .top-bar-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .navbar {
        height: 76px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .cart-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }
    
    .cart-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(94, 18, 36, 0.12);
        border-bottom: 1px solid var(--border-color);
        gap: 1.2rem;
        z-index: 99;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .logo-brand img {
        height: 58px;
    }
    
    .hero {
        padding: 3rem 0 4rem 0;
    }
    
    .hero-grid {
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-slide {
        min-height: 360px;
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none;
    }

    .hero-slide-content {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-slide-content h1,
    .hero-slide-content .hero-heading {
        font-size: 1.8rem;
    }

    .hero-slide-content p {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .page-banner-title {
        font-size: 2rem !important;
    }

    .products-page-hero {
        padding: 1.25rem 0;
    }

    .products-page-hero p {
        font-size: 0.9rem !important;
        margin-top: 0.25rem !important;
    }

    .product-search-container {
        margin: 0 auto 0.9rem auto;
    }

    .product-search-input {
        padding: 0.65rem 2.5rem 0.65rem 2.7rem;
        font-size: 0.9rem;
    }

    .category-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.2rem;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .kurumsal-form-container {
        padding: 2rem 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-detail-grid h1 {
        font-size: 2rem !important;
    }
}

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

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

    .gallery-grid.home-gallery-grid .gallery-item {
        height: 175px;
    }

    .gallery-grid.home-gallery-grid .gallery-overlay {
        padding: 0.85rem;
    }

    .gallery-grid.home-gallery-grid .gallery-overlay h3 {
        font-size: 0.95rem !important;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .navbar {
        height: 74px;
    }
    
    .logo-brand img {
        height: 52px;
    }
    
    .nav-actions {
        gap: 0.35rem;
    }
    
    .cart-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .navbar {
        height: 68px;
    }
    .logo-brand img {
        height: 46px;
    }
    .cart-btn {
        padding: 0.45rem 0.65rem;
    }
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
    min-width: 210px;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
    padding-left: 1.8rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    vertical-align: middle;
    margin-left: 2px;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 1rem 0 1rem;
        background-color: transparent;
        width: 100%;
        min-width: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 0.5rem 0.5rem 0.5rem 1rem;
        border-left: 2px solid var(--border-color);
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.2rem;
        background-color: transparent;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* STICKY CONTACT BUTTONS */
.sticky-contact-container {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom, 0px));
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 850;
}

.sticky-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sticky-btn.whatsapp {
    background-color: var(--whatsapp-green);
}

.sticky-btn.whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.sticky-btn.phone {
    background-color: #e10000;
}

.sticky-btn.phone:hover {
    background-color: #c40000;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(225, 0, 0, 0.35);
}

.sticky-btn svg {
    display: block;
    width: 26px;
    height: 26px;
    fill: currentColor;
    flex-shrink: 0;
}

.sticky-btn.whatsapp svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .sticky-contact-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    .sticky-btn {
        width: 48px;
        height: 48px;
    }
    .sticky-btn svg {
        width: 22px;
        height: 22px;
    }
    .sticky-btn.whatsapp svg {
        width: 26px;
        height: 26px;
    }
}

/* SOCIAL MEDIA HOVER STYLES */
.social-footer-link:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.top-bar-info a {
    transition: transform 0.2s ease, color 0.2s ease;
}

.top-bar-info a:hover {
    color: var(--accent) !important;
    transform: scale(1.15);
}

/* BODY SCROLL LOCK FOR MODALS & DRAWERS */
body.cart-open, body.mobile-nav-open {
    overflow: hidden !important;
    touch-action: none;
}

/* PRODUCT LIVE SEARCH BAR STYLING */
.product-search-container {
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.product-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.product-search-input {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 3.2rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: #FFFFFF;
    font-size: 0.98rem;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.product-search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
    align-items: center;
    padding: 0.3rem;
}

.product-search-clear:hover {
    color: var(--primary);
}

/* CUSTOMER REVIEWS & STAR RATINGS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.45);
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.review-author {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.review-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-source-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.review-stars {
    display: flex;
    align-items: center;
}

.review-text {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    flex-grow: 1;
}

.review-product-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--action-amber);
    text-decoration: none;
    margin-top: 0.2rem;
}

.review-product-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .home-reviews-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .home-reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .home-reviews-grid .review-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }
}

.no-results-message {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    grid-column: 1 / -1;
    display: none;
}


/* MOBILE OFF-CANVAS DRAWER (DeltaKargo Style) */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -340px;
    width: 340px;
    max-width: 88vw;
    height: 100%;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 9999;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    transition: left 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-sizing: border-box;
}

.mobile-drawer.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
}

.drawer-header img {
    height: 44px;
    width: auto;
    display: block;
}

.drawer-close-btn {
    background: rgba(27, 62, 47, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.drawer-body {
    padding: 16px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

.mobile-nav-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 4px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--text-main);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    text-align: left;
}

.mobile-nav-header.active {
    color: var(--primary);
}

.mobile-accordion-icon {
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-item.open .mobile-accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.mobile-sub-menu {
    display: none;
    list-style: none;
    margin: 0 0 10px 0;
    padding: 6px 0 8px 14px;
    background: var(--bg-alt);
    border-radius: 8px;
}

.mobile-nav-item.open .mobile-sub-menu {
    display: block;
}

.mobile-sub-menu li a {
    display: block;
    padding: 8px 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-sub-menu li a:hover {
    color: var(--primary);
}

.mobile-portals-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.btn-mobile-portal-quote,
.btn-mobile-portal-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-mobile-portal-quote {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-mobile-portal-wa {
    background: var(--whatsapp-green);
    color: #FFFFFF;
}

.drawer-contact-box {
    margin-top: auto;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.drawer-contact-box a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

.drawer-contact-box p {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    color: var(--text-muted);
}
