/*
  ======================================================
  Ahmed Asfour E-TİCARET STİLLERİ (Ana Stil Dosyası)
  ======================================================
*/

/*
  -------------------------------------
  01. GENEL AYARLAR VE SIFIRLAMALAR
  -------------------------------------
*/
:root {
    /* Renkler */
    --color-dark-purple: #6b009c;
    --color-light-blue: #00FFFF;
    --color-grey-text: #777;
    --color-dark-text: #333;

    /* Gradien */
    --gradient-brand: linear-gradient(to right,
            var(--color-dark-purple),
            var(--color-light-blue));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-dark-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Yardımcı Sınıflar */
.bg-gradient {
    background: var(--gradient-brand);
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-dark-purple {
    background-color: var(--color-dark-purple);
}

.text-dark-purple {
    color: var(--color-dark-purple);
}

.bg-light-blue {
    background-color: var(--color-light-blue);
}

.text-light-blue {
    color: var(--color-light-blue);
}


/*
  -------------------------------------
  02. BAŞLIK VE NAVİGASYON (Header & Top Bar)
  -------------------------------------
*/

.top-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: var(--color-grey-text);
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 25px;
}

.top-info p i {
    color: var(--color-dark-purple);
    margin-right: 5px;
}

.top-social a {
    margin-left: 15px;
    color: var(--color-grey-text);
    transition: color 0.3s;
}

.top-social a:hover {
    color: var(--color-dark-purple);
}

.main-header {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 5px;
}

.logo span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    padding: 5px 0;
    color: var(--color-dark-text);
    font-weight: 500;
    position: relative;
}

.main-nav li.active a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark-purple);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-link {
    font-size: 18px;
    color: var(--color-dark-text);
    position: relative;
    transition: color 0.3s;
}

.icon-link:hover {
    color: var(--color-dark-purple);
}

.cart-icon {
    color: var(--color-dark-purple);
}

.cart-count {
    display: none;
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 5px;
    line-height: 1;
}

/*
  -------------------------------------
  03. BANNER ALANI (Hero Section)
  -------------------------------------
*/

.hero-section {
    position: relative;
    height: 450px;
    background-image: url('../assets/images/apple-device-lineup.webp');
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
    margin: 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right,
            rgba(74, 1, 107, 0.7) 0%,
            rgba(138, 43, 226, 0.1) 60%,
            rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.hero-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    justify-content: center;
}

.bref-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    justify-content: center;
    padding: 40px 0;
}

.bref-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.bref-content p {
    font-size: 18px;
    margin: 15px 0;
    color: var(--color-grey-text);
}

/*
  -------------------------------------
  04. KATEGORİ BANNERLARI
  -------------------------------------
*/
.category-banners {
    padding: 20px 0 50px 0;
}

.category-banners .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.banner-card {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    padding: 30px;
    color: #fff;
    transition: transform 0.3s ease-in-out;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.banner-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 50px;
}

.banner-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.banner-button {
    display: inline-block;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--gradient-brand);
    color: #fff;
}

.banner-button:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.banner-card.light-theme {
    background-image: url('../assets/images/banner-1.jpeg');
    background-color: #f0f0e8;
}

.banner-card.dark-theme {
    background-image: url('../assets/images/banner-2.png');
    background-color: var(--color-dark-text);
}

.banner-card.blue-theme {
    background-image: url('../assets/images/banner-3.png');
    background-color: #e8f0ff;
}

/*
  -------------------------------------
  05. ÜRÜN KARTLARI
  -------------------------------------
*/
.shop-products-section {
    padding: 40px 0 80px 0;
}

.shop-products-section .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
}

/* Ürün Filtreleme Alanı (Sidebar) */
.shop-sidebar h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-dark-text);
}

.filter-category ul li {
    margin-bottom: 12px;
}

.filter-category a {
    color: var(--color-grey-text);
    font-size: 15px;
    transition: color 0.3s;
}

.filter-category a:hover {
    color: var(--color-dark-text);
}

.filter-category a.active-category {
    font-weight: 600;
}

/* Ürün Araç Çubuğu (Toolbar) */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 15px;
    color: var(--color-grey-text);
}

.sort-options label {
    margin-right: 10px;
}

.sort-options select {
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    appearance: none;
    background-color: white;
    font-size: 14px;
}

/* Ürün Grid (Product Grid) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    text-align: left;
    padding: 0 15px 15px 15px;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(74, 1, 107, 0.1);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    margin: 0 -15px 15px -15px;
    height: 180px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-brand);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

.wishlist-btn-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--color-dark-purple);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.wishlist-btn-image:hover {
    background-color: var(--color-dark-purple);
    color: #fff;
}

.product-info-content {
    flex-grow: 1;
    padding-top: 5px;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--color-dark-text);
}

.product-title a:hover {
    color: var(--color-dark-purple);
}

.price-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark-purple);
}

.product-rating {
    color: gold;
    font-size: 13px;
}

.add-to-cart-btn-visible {
    width: 100%;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn-visible:hover {
    filter: brightness(1.1);
}

/*
  -------------------------------------
  06. BLOG KARTLARI
  -------------------------------------
*/
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
    box-shadow: 0 8px 20px rgba(74, 1, 107, 0.1);
    transform: translateY(-5px);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 13px;
    color: var(--color-grey-text);
    margin-bottom: 8px;
}

.blog-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-title a {
    color: var(--color-dark-text);
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--color-dark-purple);
}

.blog-excerpt {
    font-size: 15px;
    color: var(--color-grey-text);
    margin-bottom: 15px;
}

.read-more-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark-purple);
    transition: color 0.3s;
}

.read-more-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/*
  -------------------------------------
  07. İLETİŞİM ALANI
  -------------------------------------
*/
.contact-section.style-v2 {
    padding: 80px 0;
    background-color: #fff;
}

.contact-wrapper-v2 {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.contact-details-v2 {
    padding-top: 20px;
}

.contact-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-dark-purple);
}

.contact-main-heading {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-dark-text);
}

.contact-description {
    font-size: 16px;
    color: var(--color-grey-text);
    margin-bottom: 30px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--color-dark-text);
}

.contact-icon-small {
    font-size: 20px;
    color: var(--color-dark-purple);
    width: 30px;
    text-align: center;
    margin-left: 15px;
}

.contact-form-v2 {
    background-color: #fcfcfc;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    flex-grow: 1;
}

.form-row input,
.contact-form-v2 textarea {
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.contact-form-v2 textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    margin-bottom: 20px;
}

.form-row input:focus,
.contact-form-v2 textarea:focus {
    border-color: var(--color-dark-purple);
    box-shadow: 0 0 0 2px rgba(74, 1, 107, 0.1);
    outline: none;
}

.form-help-text {
    font-size: 14px;
    color: var(--color-grey-text);
    margin-bottom: 10px;
}

.form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.submit-btn-v2 {
    border: none;
    color: #fff;
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gradient-brand);
    transition: opacity 0.3s;
}

.submit-btn-v2:hover {
    opacity: 0.9;
}

.checkbox-agreement {
    font-size: 14px;
    color: var(--color-grey-text);
}

.checkbox-agreement input[type="checkbox"] {
    margin-left: 5px;
}

.map-full-width {
    margin-top: 40px;
}

.map-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-dark-text);
}

.contact-map-v2 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-map-v2 iframe {
    border-radius: 12px;
}

/*
  -------------------------------------
  08. ALT BÖLÜM (Footer)
  -------------------------------------
*/
.main-footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0 20px 0;
    position: relative;
    box-shadow: inset 20px 0 100px -30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 100vw var(--color-dark-purple);
    background: linear-gradient(to left,
            var(--color-dark-purple),
            rgba(26, 26, 26, 0.9) 30%);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 50% 100%;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-light-blue);
}

.footer-col p {
    font-size: 15px;
    line-height: 1.8;
    color: white;
}

.widget-office address {
    margin-bottom: 20px;
    font-style: normal;
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
}

.footer-link {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
    color: #fff;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-light-blue);
}

.widget-links ul li {
    margin-bottom: 10px;
}

.widget-links a {
    color: #fff;
    transition: color 0.3s;
}

.widget-links a:hover {
    color: var(--color-light-blue);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid var(--color-grey-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
}

.footer-separator {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #f4f4f4;
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    position: absolute;
    bottom: 20px;
    right: 5%;
    cursor: pointer;
}

.scroll-top-btn.bg-gradient {
    background: var(--gradient-brand);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Menü Toggle Butonu (Mobil için) */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark-text);
    padding: 0;
}

/*
  -------------------------------------
  09. RESPONSİV AYARLAR (Media Queries)
  -------------------------------------
*/

/* --- Tabletler (991.98px altı) --- */
@media (max-width: 991.98px) {

    .top-bar {
        display: none;
    }

    .main-nav ul {
        gap: 20px;
    }

    .category-banners .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-card {
        height: 300px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .main-footer {
        background-size: 60% 100%;
    }

    .shop-products-section .container {
        display: block;
    }

    .shop-sidebar {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .products-toolbar {
        margin-bottom: 25px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-wrapper-v2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-main-heading {
        font-size: 38px;
    }

    .contact-form-v2 {
        padding: 30px;
    }
}

/* --- Mobil Cihazlar (767.98px altı) --- */
@media (max-width: 767.98px) {

    .main-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .main-nav.open {
        max-height: 400px;
    }

    .main-nav {
        flex-basis: 100%;
        order: 4;
        margin-top: 15px;
        position: relative;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .main-nav ul {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 20px;
    }

    .main-nav ul li {
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        text-align: left;
    }

    .main-nav li.active a::after {
        content: none;
    }

    .header-icons {
        order: 3;
    }

    .logo {
        order: 1;
    }

    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .category-banners .container {
        grid-template-columns: 1fr;
    }

    .banner-card {
        height: 250px;
    }

    .banner-content {
        max-width: 100%;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .scroll-top-btn {
        position: relative;
        right: auto;
        bottom: auto;
    }

    .main-footer {
        background: #1a1a1a;
        background-size: 100% 100%;
    }

    .shop-sidebar {
        display: none;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-card {
        padding: 10px;
    }
    
    .product-image {
    height: 120px;
}

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 13px;
    }

    .section-title {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-image {
        height: 200px;
    }

    .contact-section.style-v2 {
        padding: 60px 0;
    }

    .contact-form-v2 {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .submit-btn-v2 {
        width: 100%;
    }

    .contact-main-heading {
        font-size: 32px;
    }

    .map-title {
        font-size: 20px;
    }

    .contact-map-v2 iframe {
        height: 300px;
    }
}