@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-color: #0b110c;
    /* Deep dark green/black */
    --surface-color: #141c15;
    /* Dark surface */
    --surface-hover: #1c261e;
    --primary-color: #5bb36b;
    /* Vibrant nature green */
    --primary-hover: #4ea15d;
    --accent-color: #e5c158;
    /* Premium gold accent */

    /* Text Colors */
    --text-primary: #e8ede9;
    --text-secondary: #a3b3a6;
    --text-muted: #6b7a6d;

    /* UI Elements */
    --glass-bg: rgba(20, 28, 21, 0.7);
    --glass-border: rgba(91, 179, 107, 0.15);
    --border-color: rgba(255, 255, 255, 0.05);

    /* Dimensions */
    --nav-height: 80px;
    --border-radius: 12px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fix autofill colors in dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--surface-color) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

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

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

ul {
    list-style: none;
}

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

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

.text-primary {
    color: var(--primary-color);
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(91, 179, 107, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    font-size: 1.2rem;
    position: relative;
    color: var(--text-primary);
}

.nav-icon:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 0%, rgba(11, 17, 12, 0.7) 50%, rgba(11, 17, 12, 0.2) 100%);
    z-index: -1;
}

.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    gap: 15px;
    z-index: 5;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 55px;
    left: 5%;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

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

/* --- Dropdown Menu --- */
.nav-links li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-color);
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary) !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color) !important;
}

/* --- Category Cards (Design 4 - Bento Box Grid) --- */
.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.category-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 17, 12, 0.95) 0%, rgba(11, 17, 12, 0.2) 60%, transparent 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(11, 17, 12, 0.98) 0%, rgba(11, 17, 12, 0.5) 70%, transparent 100%);
}

.category-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.08);
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0;
}

.category-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary-color);
}

.category-card:nth-child(1) h3 {
    font-size: 2.2rem;
}

.category-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.category-card:hover .category-arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px) rotate(-45deg);
}

/* Bento Grid Spans */
.category-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.category-card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.category-card:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

.category-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.category-card:nth-child(5) {
    grid-column: span 2;
    grid-row: span 1;
}

.category-card:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
}

.hero-content {
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* --- Section Styling --- */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Product Card --- */
.product-card {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--bg-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(91, 179, 107, 0.2);
}

.add-to-cart-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 179, 107, 0.4);
}

/* Specific styling for product card "İncele" button */
.product-card .btn-outline {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .btn-outline:hover {
    background: rgba(91, 179, 107, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* --- Cart Page --- */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(20, 28, 21, 0.5) 0%, var(--bg-color) 100%);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.cart-items {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.remove-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #dc2626;
}

.cart-summary {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-btn {
    width: 100%;
    margin-top: 2rem;
}

/* --- Checkout/Paynet Page --- */
.checkout-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(91, 179, 107, 0.2);
}

.paynet-card {
    background: linear-gradient(135deg, #1c261e 0%, #141c15 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.paynet-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paynet-logo i {
    color: #00A3E0;
    /* Paynet blue */
}

/* --- Footer --- */
.footer {
    background: var(--surface-color);
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 10px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-actions form {
        width: 140px;
    }

    .nav-actions>a {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-links.nav-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        z-index: 1000;
        gap: 1.5rem;
    }

    .nav-links.nav-active li {
        width: 100%;
    }

    .nav-links.nav-active a {
        display: block;
        font-size: 1.1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 10px;
        padding-left: 15px;
        display: none;
    }

    .nav-links.nav-active li:hover .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 1rem;
    }

    .nav-actions>a[href="track_order.php"] {
        display: none !important;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .category-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .category-card:nth-child(2) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .category-card:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .category-card:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .category-card:nth-child(5) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .category-card:nth-child(6) {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-cards {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .category-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Hide non-essential nav elements on very small screens */
    .nav-actions form {
        display: none !important;
    }

    .nav-actions>a {
        display: none !important;
    }

    .nav-actions>a.nav-icon {
        display: inline-flex !important;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-slider,
    .hero {
        min-height: 80vh;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}