/* OlymPrint E-ticaret CSS - Mevcut tasarıma uygun */

/* Tailwind CSS benzeri temel stiller */
*,:after,:before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* Renkler */
:root {
    --primary: #0284c7;
    --secondary: #d2b604;
    --primary-hover: #0369a1;
    --secondary-hover: #b8940f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #16a34a;
    --error: #ef4444;
    --warning: #f59e0b;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    transform: translateY(-2px) scale(1.05);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    color: var(--gray-600);
    font-size: 1.25rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 7rem 0; /* bigger hero */
    text-align: center;
    min-height: 80vh;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

/* Desktop Hero Logo Styles */
.hero-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-square-spin {
    width: 520px;
    height: 520px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 30px 60px -18px rgba(0,0,0,.45);
}

.logo-square-inner {
    width: 440px;
    height: 440px;
    border-radius: 28px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-logo-img {
    width: 84%;
    height: 84%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.35));
}

/* Dripping bubbles */
.drip-bubble {
    position: absolute;
    top: -48px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    filter: blur(0.2px);
    opacity: .9;
    animation: dripAnim var(--dur,3.2s) cubic-bezier(.25,.46,.45,.94) var(--delay,0s) infinite;
}

@keyframes dripAnim {
    0% { transform: translateY(0) scale(1); opacity: .95; }
    70% { opacity: .85; }
    100% { transform: translateY(460px) scale(.85); opacity: 0; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Product Grid */
.products-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Ana sayfa için daha kare kutucuklar */
.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Products sayfası filtreleme formu */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 200px 120px;
    gap: 0.75rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 1rem;
}

.product-price .old-price {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
}

.footer-links-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }
    
    .nav {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .homepage-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Products sayfası filtreleme formu */
    .filter-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-grid .form-control,
    .filter-grid .btn {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


/* Mobile Hero Section Fixes */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }
    
    .hero-logo-wrap {
        order: -1 !important;
        margin-bottom: 1rem !important;
    }
    
    .logo-square-spin {
        width: 180px !important;
        height: 180px !important;
        margin: 0 auto !important;
    }
    
    .logo-square-inner {
        width: 140px !important;
        height: 140px !important;
    }
    
    .hero-logo-img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .drip-bubble {
        display: none !important; /* Hide bubbles on mobile to prevent overflow */
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
        margin: 0.3rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-container {
        padding: 0 0.5rem !important;
        gap: 1rem !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
    }
    
    .hero .btn {
        width: 100% !important;
        justify-content: center !important;
        margin: 0.3rem 0 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .logo-square-spin {
        width: 140px !important;
        height: 140px !important;
    }
    
    .logo-square-inner {
        width: 110px !important;
        height: 110px !important;
    }
    
    .hero-logo-img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .hero-logo-wrap {
        margin-bottom: 0.5rem !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
