/*
Theme Name: Asetat Çanta
Theme URI: https://asetatcanta.com
Author: Asetat Çanta
Author URI: https://asetatcanta.com
Description: Apus Tarafından Yapılmıştır.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asetatcanta
Domain Path: /languages
WooCommerce: 8.0.0
*/

/* Not: Ana CSS dosyaları assets/css/ klasöründe bulunmaktadır */ 

/* Aşagıdaki Cssler ödeme ekranı cssleridir. Bu cssleri kaldırmayınız. */
/* Add Poppins Font */
body, input, button, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* Common Colors */
:root {
    --primary-color: black !important;
    --primary-color-light: #f4f4f6 !important;
    --background-color: #f7f8fa !important;
    --text-color: #474747 !important;
}

/*******GLOBAL STRUCTURAL LAYOUT*******/

.woocommerce {
    display: flex;
    flex-direction: column;
}

/* WooCommerce Layout Structure */
@media (min-width: 980px) {
    /* Billing Details Side */
    .woocommerce-checkout .woocommerce .col2-set,
    .woocommerce-checkout .woocommerce-page .col2-set {
        float: left;
        width: 55%;
    }
    /* Order Review Side */
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout .woocommerce #order_review,
    .woocommerce-checkout .woocommerce-page #order_review {
        float: left;
        width: 43%;
        margin-left: 2%;
    }
}

@media (max-width: 979px) {
    /* Billing Details Margin */
    .woocommerce-checkout .woocommerce .col2-set,
    .woocommerce-checkout .woocommerce-page .col2-set {
        margin-bottom: 2em;
    }
}

/*******LEFT SIDE DESIGN*******/

/* Form Container Styles */
.woocommerce-checkout .woocommerce .col2-set,
.woocommerce-checkout .woocommerce-page .col2-set {
    background: white;
    padding: 1em 2em;
    border-radius: 1em;
    border: 1px solid #e4e4e4;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    float: left;
    width: 100%;
}

/* Form Field Title Styles */
label,
input,
button,
select,
textarea {
    font-size: 12px;
    line-height: 1.7;
    text-transform: uppercase !important;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5em;
}

/* Form Field Styles */
input.text,
input.title,
input[type=email],
input[type=password],
input[type=tel],
input[type=text],
select,
textarea {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background-color: white;
    height: 4em;
}

.woocommerce-account form .form-row,
.woocommerce-checkout form .form-row {
    margin-bottom: 1em;
}

/* Form Field Dropdown Styles */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    height: 4em;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 4em;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    position: absolute;
    top: 1px;
    right: 5px;
    width: 25px;
}

.woocommerce-account form .payment_methods label,
.woocommerce-checkout form .payment_methods label {
    padding-left: 0px;
}

/* Form Field Focus Color Style */
textarea:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=time]:focus,
input[type=week]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=color]:focus,
.uneditable-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: none;
    outline: 0;
}

.radio input[type=radio],
.checkbox input[type=checkbox] {
    top: 0px;
}

/*******RIGHT SIDE DESIGN*******/

/* Order Review Headline Removal */
h3#order_review_heading {
    display: none; /*Remove This if You Want The Order Review Heading*/
}

/* Order Review Container Styles */
div#order_review {
    background: white;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.1);
    position: sticky; /*Remove This if You Don't Want Order Review To Be Sticky*/
    top: 100px; /*Remove This if You Don't Want Order Review To Be Sticky*/
}
/*Order Review Order*/

div#order_review {
    display: flex;
    flex-direction: column; /*Change this to column-reverse to reverse the order*/
}

/*Hide Cart Contents and Only Show Total + Shipping*/

.woocommerce-checkout-review-order tbody {
  display: table-row-group; /*Set to "none" if you'd like to hide */
}

/* Remove Product and Subtotal Headlines */
table.shop_table.woocommerce-checkout-review-order-table thead {
    display: none; /*Remove This if You Want Headlines*/
}

table.shop_table.woocommerce-checkout-review-order-table {
    color: var(--text-color);
    text-transform: Capitalize;
    font-size: 14px; /*Adjust This To Adjust Order Review Font Size*/
}

.woocommerce table.shop_table {
  border: none;
}

/* Target every other cart item and set background color */
tr.cart_item:nth-child(odd) {
    background-color: #f7f8fa !important;
}

tr.cart_item:nth-child(even) {
    background-color: white !important;
}

span.woocommerce-Price-amount.amount {
    font-weight: bold;
}


strong.product-quantity {
    background: #ff4757;
    padding: 0.1em 0.5em;
    border-radius: 0.5em;
    font-size: 12px;
}

.woocommerce td.product-name .wc-item-meta p,
.woocommerce td.product-name .wc-item-meta:last-child,
.woocommerce td.product-name dl.variation p,
.woocommerce td.product-name dl.variation:last-child {
    margin-bottom: 0;
    text-transform: capitalize;
    font-size: 12px;
    font-weight: normal;
    color: var(--text-color);
}

td.product-name {
    width: 100%;
    font-weight: bold;
}

td.product-total {
    justify-content: flex-start;
    display: flex;
}

table th,
table td {
    border: none !important;
}

tr.cart-subtotal {
    display: none; /*Remove this if you'd like to display the subtotal*/
}

tr.woocommerce-shipping-totals.shipping {
    display: flex;
    margin-top: 2em;
    margin-bottom: 2em;
    border-top: 1px solid var(--primary-color-light);
    border-bottom: 1px solid var(--primary-color-light);
    flex-direction: column;
    align-content: stretch;
    align-items: flex-start;
}

.woocommerce ul#shipping_method li input {
    margin: 5px 5px 0 0;
    vertical-align: top;
}

/* Order Total Line Item Styles */
tr.order-total {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: var(--background-color);
    border-radius: 5px;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    background-color: var(----primary-color);
    color: black;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

/* Stripe Form Field Styles */
.wc-stripe-elements-field,
.wc-stripe-iban-element-field {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background-color: #fff;
    padding: 15px;
}

input#wc-stripe-new-payment-method {
    margin-right: 1em;
}

fieldset#wc-authnet-cc-form .input-text {
    height: 2em;
}

/* Place Order Button Styles */
#place_order {
    width: 100%;
    color: #fff;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 2px 8px 0px;
    padding: 1.5em;
    background: var(--primary-color); /* Change This to Change Button Color */
}

#place_order:hover {
    color: rgba(255, 255, 255, 0.5);
}

/*******COUPON & ALERT STYLES*******/

.woocommerce-info,
.woocommerce-message {
    background-color: var(--background-color);
    color: var(--text-color);
    border: none;
}

.checkout_coupon p.form-row.form-row-last {
    float: none;
}

.checkout_coupon button.button {
    background-color: var(--primary-color);
    color: white;
}

/* Coupon Icon */
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 1em;
}

form.checkout_coupon.woocommerce-form-coupon {
    padding: 3em;
    background: white;
    border-radius: 1em;
    margin-top: 0em;
    margin-bottom: 2em;
}

/* Error Alert */
.woocommerce-error {
    background-color: #ff7e7e;
    border: none;
    color: #761f1f;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    text-shadow: none;
}

/* Text Kutuları İçin Yazı Stili ve Konumlandırma */
input.text,
input.title,
input[type=email],
input[type=password],
input[type=tel],
input[type=text],
select,
textarea {
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background-color: white;
    height: 4em;
    padding-left: 15px; /* Metni 15px sağa kaydır */
    font-family: 'Poppins', sans-serif; /* Yazı fontunu Poppins yap */
  
    line-height: 64px; /* Satır yüksekliğini 64px yap */
    text-align: start; /* Metni sola hizala */


    letter-spacing: normal; /* Harf aralığını normal yap */
    color: #444444; /* Yazı rengini #444444 yap */
}

.entry-title {
padding: 45px;
font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.entry-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff4b4b;
}

/* WooCommerce Bilgi Alanı Stili */
.woocommerce-info {
    font-family: 'Poppins', sans-serif; /* Yazı fontunu Poppins yap */
    font-size: 16px; /* Yazı boyutunu 16px yap */
    line-height: 1.5; /* Satır yüksekliğini ayarla */
    color: #444444; /* Yazı rengini #444444 yap */
    letter-spacing: normal; /* Harf aralığını normal yap */
    font-weight: bold; /* Yazıyı kalın yap */
}

/* Responsive Tasarım İyileştirmeleri */
/* Büyük Ekranlar */
@media (min-width: 1200px) {
    .header-container {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* Tablet ve Küçük Masaüstü */
@media (max-width: 992px) {
    .site-header {
        padding: 10px 0;
    }
    
    .announcement-bar {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .site-logo {
        max-width: 250px;
        height: auto;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }
    
    .site-logo {
        max-width: 200px;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .header-actions a {
        font-size: 20px;
    }
    
    /* Form Elemanları */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px; /* iOS zoom sorununu önler */
        height: 3.5em;
    }
    
    /* Touch Hedefleri */
    .nav-menu li a,
    .header-actions a,
    .mobile-category-list a {
        min-height: 44px;
        padding: 12px 15px;
        display: flex;
        align-items: center;
    }
}

/* Mobil */
@media (max-width: 576px) {
    .site-logo {
        max-width: 180px;
    }
    
    .announcement-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .mobile-category-panel {
        width: 85%;
    }
    
    /* WooCommerce ürün grid düzeni */
    .woocommerce ul.products li.product {
        width: 48% !important;
        margin: 0 1% 20px !important;
    }
}

/* Küçük Mobil */
@media (max-width: 480px) {
    .site-logo {
        max-width: 150px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .cart-count {
        font-size: 10px;
        min-width: 18px;
        height: 18px;
    }
    
    /* Form Elemanları */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    select,
    textarea {
        height: 3em;
    }
}

/* Mobil Menü İyileştirmeleri */
.mobile-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-category-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-category-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch Cihazlar için Hover Düzeltmeleri */
@media (hover: none) {
    .site-logo:hover,
    .nav-menu li a:hover,
    .header-actions a:hover {
        opacity: 1;
    }
    
    .site-logo:active,
    .nav-menu li a:active,
    .header-actions a:active {
        opacity: 0.7;
    }
}

/* Performans İyileştirmeleri */
.site-header,
.sticky-nav,
.mobile-category-panel {
    will-change: transform;
    transform: translateZ(0);
}

/* Loading Screen İyileştirmesi */
.loading-screen {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Cart Sayfası Mobil Uyumluluk */
.woocommerce-cart table.cart {
    border: none;
    margin-bottom: 30px;
}

.woocommerce-cart table.cart td {
    border: none;
    padding: 15px;
    text-transform: none !important; /* Büyük harf dönüşümünü kaldır */
}

.woocommerce-cart table.cart th {
    border: none;
    background: var(--background-color);
    padding: 15px;
    text-transform: none; /* Büyük harf dönüşümünü kaldır */
}

/* Sepet Mobil Görünüm */
@media (max-width: 768px) {
    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        text-align: right !important;
    }

    .woocommerce table.shop_table_responsive tr td::before,
    .woocommerce-page table.shop_table_responsive tr td::before {
        content: attr(data-title);
        font-weight: 600;
        float: left;
        text-transform: none; /* Büyük harf dönüşümünü kaldır */
    }

    .woocommerce-cart table.cart td.actions .coupon {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-bottom: 15px;
    }

    .woocommerce-cart table.cart td.actions .coupon .input-text {
        width: 100% !important;
        margin: 0 !important;
    }

    .woocommerce-cart table.cart td.actions .button {
        width: 100% !important;
        margin: 5px 0 !important;
    }

    .woocommerce .quantity .qty {
        width: 80px;
        padding: 5px;
    }

    /* Ürün Resmi Boyutu */
    .woocommerce-cart table.cart img {
        width: 80px;
        height: auto;
    }
}

/* Küçük Mobil Ekranlar */
@media (max-width: 480px) {
    .woocommerce-cart table.cart img {
        width: 60px;
    }

    .woocommerce-cart .cart-collaterals .cart_totals, 
    .woocommerce-cart .cart-collaterals .cross-sells {
        width: 100% !important;
        float: none;
    }

    .woocommerce-cart .cart-collaterals .cart_totals table th,
    .woocommerce-cart .cart-collaterals .cart_totals table td {
        padding: 10px;
    }
}

/* WooCommerce Metin Dönüşümü Düzeltmeleri */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-cart .cart-collaterals .cart_totals table th,
.woocommerce-cart .cart-collaterals .cart_totals table td,
.woocommerce ul#shipping_method li label,
.woocommerce-checkout #payment ul.payment_methods li label {
    text-transform: none !important;
}

