/*
  Optimized & fixed stylesheet for user's HTML (option 3: fix + optimize)
  - Ensures all .image containers behave consistently
  - Keeps original variables and structure but removes duplicates
  - Improves responsive rules and specificity so .dark-bg doesn't unexpectedly override
  - Lightweight, maintainable, and ready to drop into styles.css
*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap");

:root {
    --main-color: #000000;
    --black-color: #0e0e0e;
    --border: 0.1rem solid rgba(0, 0, 0, 0.12);
    --bg-gradient-start: #a0a0a0;
    --bg-gradient-end: #252525;
    --radius: 3rem;
}

/* Reset + base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all .18s ease;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
    overflow-x: hidden;
}

/* Custom scrollbar (optional) */
html::-webkit-scrollbar {
    width: 0.8rem;
    background-color: transparent
}

html::-webkit-scrollbar-track {
    background: transparent
}

html::-webkit-scrollbar-thumb {
    background: var(--black-color);
    border-radius: 3rem
}

body {
    background: linear-gradient(495deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: #000;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Dark mode helper class (keeps semantics: body.dark) */
body.dark {
    background-color: var(--main-color);
    color: #fff
}

section {
    padding: 3.5rem 7%;
}

a {
    color: inherit;
    text-decoration: none
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.4rem 3.2rem;
    border-radius: 30rem;
    font-size: 1.6rem;
    background: var(--black-color);
    color: #fff;
    cursor: pointer
}

.btn:hover {
    opacity: .92
}

/* ===== Universal Button Animation ===== */
.btn,
.product-btn a {
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover,
.product-btn a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #000000, #091616);
    color: #fff;
}

.btn:active,
.product-btn a:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Optional: subtle overlay effect */
.btn::before,
.product-btn a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn:hover::before,
.product-btn a:hover::before {
    opacity: 1;
}


/* Headings */
.heading {
    color: #fff;
    text-transform: uppercase;
    font-size: 4rem;
    margin-bottom: 3.5rem;
    border-bottom: 0.1rem solid #fff;
    padding-bottom: 1rem
}

.heading span {
    color: var(--black-color)
}

/* Search input small */
.search-input {
    font-size: 1.6rem;
    color: var(--black-color);
    padding: 1rem;
    border-radius: 3rem;
    outline: none
}

/* Header */
.header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    margin: 2rem 7%;
    border-radius: 30rem;
    box-shadow: 0 0 17px -2px rgba(0, 0, 0, .45);
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 1000;
    gap: 1rem
}

.header .logo img {
    height: 10rem;
    display: block
}

.header .navbar {
    display: flex;
    gap: 1rem;
    align-items: center
}

.header .navbar a {
    font-size: 1.6rem;
    color: var(--black-color);
    padding-bottom: .2rem;
    border-bottom: 2px solid transparent
}

.header .navbar a:hover,
.header .navbar a.active {
    border-color: var(--main-color)
}

.header .buttons {
    display: flex;
    align-items: center
}

.header .buttons button {
    background: transparent;
    border: none;
    font-size: 2.4rem;
    margin-left: 1.2rem;
    cursor: pointer;
    color: var(--black-color)
}

/* Search form (hidden by default) */
.header .search-form {
    position: absolute;
    top: 115%;
    right: 7%;
    width: 50rem;
    height: 5rem;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 3rem;
    padding: 0 1.2rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, .6);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none
}

.header .search-form.active {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto
}

.header .search-form i {
    font-size: 2.2rem;
    margin-left: .8rem;
    color: var(--black-color);
    cursor: pointer
}

.header .search-form input {
    flex: 1;
    background: transparent;
    font-size: 1.6rem;
    padding-left: 1rem
}

/* Cart container */
.header .cart-items-container {
    position: absolute;
    top: 95%;
    right: -100%;
    width: 35rem;
    height: calc(100vh - 9rem);
    background: #fff;
    box-shadow: 0 20px 14px rgba(0, 0, 0, .6);
    padding: 1.4rem;
    border-radius: 1rem;
    overflow: auto
}

.header .cart-items-container.active {
    right: 3rem
}

.header .cart-items-container .cart-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem;
    border-bottom: var(--border)
}

.header .cart-items-container .cart-item img {
    height: 7rem;
    flex-shrink: 0
}

.header .cart-items-container .cart-item .fa-times {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black-color)
}

.header .cart-items-container .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.2rem
}

#menu-btn {
    display: none
}

/* Home */
.home {
    min-height: 100vh;
    background: url('../images/home.jpg') no-repeat center/cover;
    margin-top: -14.5rem;
    display: flex;
    align-items: center;
    position: relative;
    /* İçindeki sosyal ikonları absolute konumlandırmak için */
}

.home .content {
    max-width: 60rem;
    padding: 8rem 0;
    position: relative;
    /* İkonların yerleşimi için göreceli (relative) hale getirildi */
}

.home .content h3 {
    font-size: 6rem;
    color: var(--black-color);
    padding-top: 6rem
}

.home .content p {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.8;
    color: #000;
    padding: 1rem 0
}

/* ===== YENİ EKLENEN SOSYAL İKON STİLLERİ - KULLANICIN TALEBİNE GÖRE İÇERİĞİN ALTINA ALINDI ===== */
.home .content .social-icons {
    display: flex;
    /* İkonları yatay sırala */
    gap: 1.5rem;
    margin: 3rem 0;
    /* Başlık, paragraf ve buton arasında boşluk bırakmak için üst ve alta daha fazla boşluk */
    /* İkonları Content bloğunun altına yerleştir */
    position: static;
    /* Mutlak konumlandırmayı kaldır, akışa bırak */
    transform: none;
    /* Dönüşümü kaldır */
    flex-direction: row;
    /* İkonları yatay sırala */
    z-index: 50;
    justify-content: flex-start;
    /* İçerik sola hizalandığı için ikonları da sola hizala */
}

/* İkon linklerinin görünümünü düzenler */
.home .content .social-icons a {
    color: var(--black-color);
    font-size: 3rem;
    /* İkon boyutunu büyütür */
    transition: color 0.3s ease, transform 0.3s ease;

    /* BASIK DURUMU GİDERMEK İÇİN GÜNCELLENDİ: Sabit boyut ve Flex ile merkezleme eklendi */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    /* Önceki padding: 1rem; kaldırıldı. */

    border: 0.2rem solid var(--black-color);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.home .content .social-icons a:hover {
    color: var(--main-color);
    border-color: var(--main-color);
    transform: scale(1.1);
    /* Hover animasyonu */
}

/* ============================================= */


/* BOX / GRID structures (products, blogs, review...) */
.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 1.5rem
}

.box {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 40rem
}

.box .box-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem
}

.box .box-head .title {
    font-size: 1.2rem;
    text-transform: lowercase
}

.box .box-head .name {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: start
}

/* ====== IMAGE CONTAINER FIX (applies everywhere) ====== */
/* Use a single reliable rule so all .image behave the same.
   Specific selectors (e.g. .dark-bg .image) should not be necessary
   but are allowed if you want different sizing. */
.image {
    width: 100%;
    height: 40rem;
    /* default, can be overridden per-section if needed */
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    background-color: #f5f5f5;
    /* placeholder bg if image missing */
    display: block;
}

.image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ensures consistent cropping */
    transform: translate(-50%, -50%);
    display: block;
}

/* If you want taller images for product cards */
.products .box {
    background: #fff;
    border-radius: 3rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.blogs .box .image {
    height: 25rem
}

.about .row .image {
    height: auto;
    /* allow natural image height in about section */
}

/* Dark-bg cards: keep text colors adjusted but don't change image rules */
/* unified dark-bg removed */
.box.dark-bg {
    background: #fff;
}

.box.dark-bg .box-head .name,
.box.dark-bg .box-head .title {
    color: #000
}

.box.dark-bg .box-bottom .info .price,
.box.dark-bg .box-bottom .info .amount {
    color: #000
}

/* Box bottom (price + action) */
.box-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem
}

.box-bottom .info .price {
    font-size: 2.6rem
}

.box-bottom .info .amount {
    font-size: 1.4rem;
    color: #666
}

.box-bottom .product-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 6.5rem;
    height: 6.5rem;
    border: .2rem solid var(--main-color)
}

.box-bottom .product-btn a i {
    font-size: 1.6rem;
    color: var(--main-color)
}

/* About */
.about .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center
}

.about .row .image {
    flex: 1 1 45rem
}

.about .row .content {
    flex: 1 1 45rem
}

.about .row .content h3 {
    font-size: 3rem;
    color: #fff
}

.about .row .content p {
    font-size: 1.6rem;
    color: #ccc;
    line-height: 1.8;
    padding: 1rem 0
}

/* Review */
.review .box {
    border: var(--border);
    text-align: center;
    padding: 3rem;
    background: #fff
}

.review .box p {
    font-size: 1.5rem;
    line-height: 1.8;
    padding: 2rem 0
}

.review .user {
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
    object-fit: cover
}

.review .box h3 {
    color: var(--main-color);
    font-size: 2rem;
    padding: 1rem 0
}

/* Contact */
.contact .row {
    display: flex;
    flex-wrap: wrap;
    background: var(--black-color);
    gap: 1rem;
    padding: 2rem
}

.contact .row .map {
    flex: 1 1 45rem
}

.contact .row form {
    flex: 1 1 45rem;
    padding: 5rem 2rem;
    text-align: center
}

.contact .row form h3 {
    font-size: 3.5rem;
    color: #fff
}

.contact .row .inputBox {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    border: var(--border);
    padding: 0.2rem
}

.contact .row .inputBox i {
    color: #fff;
    font-size: 2rem;
    padding-left: 2rem
}

.contact .row .inputBox input {
    width: 100%;
    padding: 2rem;
    font-size: 1.7rem;
    color: #fff;
    background: transparent
}

.contact .row .btn {
    color: var(--main-color);
    background: #fff
}

/* Blogs */
.blogs .box {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden
}

.blogs .box .image {
    height: 25rem
}

.blogs .box .content {
    padding: 2rem
}

.blogs .box .content .title {
    font-size: 2.5rem;
    line-height: 1.4
}

.blogs .box .content span {
    display: block;
    padding-top: 1rem;
    font-size: 2rem;
    color: #999
}

.blogs .box .content p {
    font-size: 1.6rem;
    color: #666;
    padding: 1rem 0
}

.blogs .box:hover .image img {
    transform: translate(-50%, -50%) scale(1.1)
}

/* Footer */
.footer {
    background: var(--black-color);
    text-align: center;
    padding: 3rem 7%
}

.footer .search {
    display: flex;
    justify-content: center;
    gap: 1rem
}

.footer .search .search-input {
    width: 30rem
}

.footer .btn-primary {
    background: var(--main-color);
    padding: 1rem 2rem;
    color: #fff
}

.footer .share {
    padding: 2rem 0
}

.footer .share a {
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    color: #fff;
    font-size: 2rem;
    border: var(--border);
    border-radius: 50%;
    margin: 0.3rem;
    display: inline-block
}

.footer .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem
}

.footer .links a {
    background: var(--main-color);
    padding: .7rem 2rem;
    color: #fff;
    font-size: 2rem;
    border: var(--border)
}

.footer .links a:hover {
    background: var(--black-color);
    opacity: .8
}

.footer .links a.active {
    background: var(--black-color)
}

.footer .credit {
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    padding-top: 1.5rem
}

.footer .credit span {
    color: var(--main-color)
}

/* Responsive */
@media (max-width:991px) {
    html {
        font-size: 55%
    }

    .header {
        padding: 1.5rem 2rem;
        margin: 1.2rem 2rem
    }

    .header .logo img {
        height: 7rem
    }

    section {
        padding: 2rem
    }

    .box .box-head .name {
        font-size: 2.6rem
    }

    .home .content .social-icons a {
        font-size: 2.5rem;
        width: 5rem;
        height: 5rem;
        /* line-height ve padding kaldırıldı */
    }
}

@media (max-width:768px) {
    #menu-btn {
        display: inline-block
    }

    .header .navbar {
        position: absolute;
        top: 95%;
        right: -100%;
        width: 30rem;
        height: calc(100vh - 9rem);
        background: #fff;
        box-shadow: 0 20px 14px rgba(0, 0, 0, .6)
    }

    .header .navbar.active {
        right: 3rem
    }

    .header .navbar a {
        display: block;
        margin: 1.5rem;
        padding: .5rem;
        font-size: 2rem
    }

    .home .content h3 {
        font-size: 4.4rem;
        padding-top: 4.5rem
    }

    .image {
        height: 30rem
    }
}

@media (max-width:576px) {
    html {
        font-size: 50%
    }

    .header .search-form {
        width: 30rem;
        right: 2rem
    }

    .image {
        height: 24rem
    }

    .box {
        padding: 1.6rem
    }

    .home .content .social-icons {
        justify-content: center;
        /* Mobilde ortala */
    }
}

/* Small utility helpers */
.text-center {
    text-align: center
}

.mt-2 {
    margin-top: 2rem
}

.p-1 {
    padding: 1rem
}

/* End of stylesheet */

/* Hover animation for product boxes */
/* ====== Product Box Hover Animation ====== */
.products .box {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.products .box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-btn a {
    transition: background 0.3s ease, transform 0.3s ease;
}

.product-btn a:hover {
    transform: scale(1.12);
    /* buton animasiyası */
}