/* =========================================================================
   SanalPazaryerim - Premium Design System
   ========================================================================= */

:root {
    /* Color Palette - Elegant, Trustworthy, Modern */
    --primary: #cda87c;    /* Soft elegant gold/wood */
    --primary-hover: #b89368;
    --secondary: #2c3e50;  /* Deep slate blue/gray */
    --text-dark: #333333;
    --text-light: #777777;
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --border: #eaeaea;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.mb-0 { margin-bottom: 0 !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 168, 124, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 168, 124, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================================================
   Navbar (Header)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a, .dropbtn {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active, .dropdown:hover .dropbtn {
    color: var(--primary);
}

/* Underline Animation */
.nav-menu > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu > a:hover::after, .nav-menu > a.active::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 12px 0;
    z-index: 1001;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 10px 24px;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.dropdown-content a::after {
    display: none; /* remove hover line */
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary);
    border-radius: 3px;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    padding: 160px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #fffdfa 0%, #ffffff 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

/* Floating Animation for Hero Image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* =========================================================================
   Categories & Generic Sections
   ========================================================================= */
.section-title {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.5px;
}

.categories-section {
    padding: 100px 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.cat-img-wrapper img {
    max-height: 100%;
    border-radius: 8px;
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================================================
   Products Grid
   ========================================================================= */
.products-showcase {
    padding: 100px 0;
}

.view-all {
    color: var(--primary);
    font-weight: 600;
}

.view-all:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(205, 168, 124, 0.3);
}

.product-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    background-color: #fceceb; /* Soft placeholder */
    border-bottom: 1px solid var(--border);
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 16px;
    min-height: 48px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.product-btn {
    background: var(--bg-light);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.product-card:hover .product-btn {
    background: var(--primary);
    color: #fff;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--secondary);
    color: #fff;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    margin-bottom: 16px;
}

.logo-footer span {
    color: var(--primary);
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a, .footer-col p {
    color: rgba(255,255,255,0.7);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* =========================================================================
   Internal Pages (Koleksiyon / Kategori) Header
   ========================================================================= */
.page-header {
    margin-top: 70px;
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 16px;
}

.page-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================================================
   Responsive Design
   ========================================================================= */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding-top: 40px;
    }

    .nav-menu.active { left: 0; }
    
    .nav-menu > a, .dropbtn {
        margin: 16px 0;
        font-size: 1.25rem;
    }
    
    .dropdown { width: 100%; }
    
    .dropdown-content {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .dropdown.active .dropdown-content { display: block; }

    .hero { padding: 120px 0 60px; min-height: auto; text-align: center; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text p { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    
    .page-title { font-size: 2.25rem; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .section-title { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
