@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

:root{
    --main-color:#0d003f;
    --back-color:#1d0234;
    --border: 0.1rem solid rgba(255,255,255,0.4);
}
*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform:capitalize ;
    transition: 0.2s ease;

}

/*base html kod */
html{   
    font-size:62.5%;
    overflow-x: hidden;
    scroll-padding-top: 9rem ;
    scroll-behavior: smooth;
}

body{
    background-color: var(--main-color);
    height: 200vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
html, body {
    height: 100%;
}
a {
    color: var(--black-color);
    text-decoration: none;
  }
  
/*! header başlangıç*/

.header .search-form{
    position: absolute;
    top: 115%;
    right: 7%;
    background-color: #fff;
    width: 50rem;
    height: 5rem;
    display: flex;
    align-items: center;
    border-radius: 3rem;
    box-shadow: 0px 0px 25px 2px rgb(0 0 0 / 75%);
    transform: scaleY(0);
}
.header .search-form .active{
    transform: scaleY(1);
}

.header .search-form i{ 
    cursor: pointer;
    font-size: 2.2rem;
    margin-right: 1.5rem;
    color: var(--back-color);
}


.header .search-form input{ 
    width: 100%;

}
.logo img{
    height: 9rem ;
}
section{
    padding: 3.5rem 7%;
}

.btn{
    margin-top: 1rem;
    display: inline-block;
    padding: 2rem 3.75rem;
    border-radius: 30rem;
    font-size: 1.7rem;
    color: #fff;
    background-color: var(--back-color);
    cursor: pointer;
}

.btn:hover{
    opacity:0.8 ;
}

.heading{
    color:#fff;
    text-transform:uppercase;
    font-size: 4rem;
    margin-bottom: 3.5rem;
    border-bottom: 0.1rem solid #fff;
}

.header{
    background-color:rgb(246, 248, 253);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    margin: 2rem 7%;
    border-radius: 30rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .navbar a {
    margin: 0 1rem;
    font-size: 1.6rem;
    color:var(--back-color);
    border-bottom: 0.1rem solid transparent;
}



.header .navbar .active, 
.header .navbar a:hover {
    border-color: var(--main-color);
    padding-bottom: 0.5rem;
}
.header .buttons button{
    cursor: pointer;
    font-size: 2.5rem;
    margin-left: 2rem;
    background-color: transparent;
}
#menu-btn{
    display: none;
}

/*! header bitiş*/

/*! anasayfa başlangıç*/
.anasayfa {
    min-height: 100vh;
    background: url(../images/anasayfaa.jpg)
    no-repeat;
    background-size:cover ;
    background-position: center;
    margin-top: -14.5rem;
    display: flex;
    align-items: center;
    
}

.anasayfa .content{
    max-width: 60rem;
}
.anasayfa .content h3{
    font-size: 6rem;
    color: #fff;
}

.anasayfa .content p{
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.8;
    padding: 1rem 0;
    color:#ffffff;
}
/*! anasayfa bitiş*/

/*! stoklar başlangıç*/
.stoklar .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30rem,1fr));
    gap: 1.5rem;

}
.stoklar .box-container .box{
    padding: 3rem;
    background-color: #fff;
    border-radius: 3rem;
    background-color: #fff;
    min-height: 60rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

}

.stoklar .box-container .box img{
    width: 100%;
    object-fit: cover;
}

.stoklar .box-container .box .stoklar-category{
font-size: 1.4rem;
text-transform: uppercase;
}
.stoklar .box-container .box h3{
    font-size: 3rem;
    padding: 1rem 0;
}
.stoklar .box-container .box .adet{
    font-size: 2.5rem;
    padding: 0.5rem 0;
}
.stoklar .box-container .box .fiyat{
    font-size: 2.5rem;
    padding: 0.5rem 0;
}


/*! stoklar bitiş*/


/*! responsive başlangıç*/
@media (max-width:991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 1.5rem 2rem;
    }
    .header .logo img{
        height: 7rem;
    }
    section{
        padding:2rem;
    }
    .products .box-container .box .box-head .name{
        font-size: 3.4rem;

    }
}

@media(max-width: 768px){
     .header #menu-btn{
        display: inline-block;
    }

    .header .navbar{
        position: absolute;
        top:95%;
        background-color: #fff;
        height: calc(100vh - 9rem);
        width: 30rem;
        box-shadow: 0px 20px 14px 0px rgb(0 0 0 / 75%);
        right: -100%;
    }

    .header .navbar .active{
        right: 3rem;
    }

    .header .navbar a {
    color: var(--back-color);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
    } 
    @media(max-width: 768px){
        html{
            font-size: 50%;
        }
    }
}

/*! responsive bitiş*/
footer {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.footer-content,
.footer-location,
.footer-mail {
    margin-bottom: 15px;
}

.footer-content a,
.footer-location a,
.footer-mail a {
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-content a:hover,
.footer-location a:hover,
.footer-mail a:hover {
    transform: scale(1.2);
    color: #ddd;
}

.footer-location img,
.footer-mail img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Genel Stiller */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Stili */
header {
    background: #333;
    color: white;
    padding: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* Form Stilleri */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buton Stilleri */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #444;
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
}

/* Hata Mesajı */
.error {
    color: red;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid red;
    border-radius: 4px;
    background: #fff;
}

/* Footer Stili */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Login Form Styles */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form .btn {
    width: 100%;
    padding: 10px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-form .btn:hover {
    background: #444;
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link a {
    color: #333;
    text-decoration: underline;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #764ba2;
}

.error {
    background: #fee;
    color: #e33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #efe;
    color: #3e3;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}
  