/*
 Theme Name:   Storefront Child
 Theme URI:    https://stack.ge/
 Description:  Custom child theme for Storefront
 Author:       skryper
 Author URI:   https://arabuli.info/
 Template:     storefront
 Version:      1.0.46
*/

 


@font-face {
    font-family: "mtavrulifontcustom";
    src: url("fonts/mtavrulifontcustom.otf");
}

/* გამოიყენე ფონტი მთელ საიტზე */
body, button, input, select, textarea {
    font-family: 'mtavrulifontcustom', sans-serif !important;
}




/* style.css-ში დაამატე */
.zinger-login-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.zinger-login-wrapper .u-column1,
.zinger-login-wrapper .u-column2 {
    flex: 1 1 300px;
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
}

.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
}

.woocommerce button.button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.woocommerce button.button:hover {
    background: #005d87;
}

/* ფორმის wrapper-ის გაშუალება */
.zinger-login-wrapper {
    display: flex;
    justify-content: center; /* ჰორიზონტალურად ცენტრში */
    align-items: flex-start;
    gap: 40px;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    flex-wrap: wrap;
}

/* თითოეული სვეტის მაქსიმალური სიგანე */
.zinger-login-wrapper .u-column1,
.zinger-login-wrapper .u-column2 {
    flex: 0 0 420px;
    max-width: 100%;
}

/* ცენტრირება როცა მხოლოდ .u-column1 ჩანს */
.zinger-login-wrapper .u-column1 {
    margin-left: auto;
    margin-right: auto;
}

.woocommerce h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ავტორიზაციის დეშბორდ პანელი */

/* მთავარი ანგარიში wrapper-ის გაფორმება */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

/* Sidebar მენიუ */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background: #f5f2fb;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    background: #ffffff;
    color: #5a359c;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: #5a359c;
    color: white;
}

/* Dashboard-ის შინაარსი */
.woocommerce-MyAccount-content {
    flex: 1 1 600px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.03);
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content a {
    color: #6a3bb3;
    text-decoration: underline;
}

.woocommerce-MyAccount-content a:hover {
    color: #4c2a8e;
}

/* ზედა ბილიკის მოხსნა და სივრცის გაქრობა */

/* მარტო My Account, Cart, Checkout გვერდებზე */
body.woocommerce-account .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
}

/* პროდუქტის დეტალური გვერდის მარჯვენა საიდბარის მოცილებისთვის */
.single-product #primary {
    width: 100% !important;
}

.single-product #secondary {
    display: none !important;
}

/* პროდუქტის დეტალური გვერდის გაშუალედება */

/* პროდუქტის ტაბებისა და ძირითადი კონტენტის გასაშუალებლად */
.single-product .woocommerce-tabs,
.single-product .woocommerce-tabs .panel,
.single-product .related.products {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* საჭიროების შემთხვევაში მაქსიმალური სიგრძის კონტროლი */
.single-product .woocommerce-tabs .panel,
.single-product .related.products {
    max-width: 800px;
}

/* თუ გინდა ტექსტიც ცენტრში გამოიყურებოდეს */
.single-product .woocommerce-tabs .panel p {
    text-align: center;
}

/* პროდუქტის დეტალური გვერდისთვის დამატებითი სტილი */

.single-product .woocommerce-tabs h2,
.single-product .related.products h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* პროდუქტების სურათებზე ჩრდილი */

/* პროდუქტის გალერიის ვიზუალური ბლოკი დეტალურ გვერდზე მთავარ სურათზე */
.single-product .woocommerce-product-gallery {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ჰოვერზე უფრო ძლიერი ჩრდილი */
.single-product .woocommerce-product-gallery:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
}

/* პროდუქტის ბარათებზე ვიზუალური ბლოკი */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ფასდაკლების ბეიჯის გამოჩენა სურათზე */

/* პროდუქტის ბარათის wrapper პოზიციონირება */
.woocommerce ul.products li.product {
    position: relative;
}

/* ფასდაკლების ბეჯი გადაადგილება ზემოთ სურათზე და პროცენტული მაჩვენებელი */
/* საერთო ბადჯის wrapper */
.custom-sale-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* მწვანე ბეჯი – ტექსტური */
.sale-label {
    background-color: #2e7d32;
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* წითელი %-იანი ბეჯი */
.discount-percent {
    background-color: #c62828;
    color: #fff;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* პროდუქტის დეტალური გვერდის ფასის ბლოკის სტილი */
.zinger-price-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.discount-badge {
    background: #e53935;
    color: #fff;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-display {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-display .regular-price {
    color: #888;
    text-decoration: line-through;
    font-size: 18px;
}

.price-display .sale-price {
    color: #d32f2f;
    font-size: 28px;
}


/* დამატებითი სტილი პროდუქტების კატეგორიის გვერდისთვის */

.archive.woocommerce .content-area {
    width: 100%;
}

.archive.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* პროდუქტების სორტირების ღილაკების სტილი */

.custom-sorting {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.custom-sorting span {
    font-weight: bold;
    margin-right: 8px;
}

.custom-sorting .sort-btn {
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #f7f7f7;
    transition: all 0.2s ease;
}

.custom-sorting .sort-btn:hover {
    background: #e0e0e0;
}

.custom-sorting .sort-btn.active {
    background: #5a359c;
    color: white;
    border-color: #5a359c;
}

/* სორტირების სელექთის დამალვა და რეზულტატების */
.woocommerce-ordering {
    display: none !important;
}

.woocommerce-result-count {
    display: none !important;
}


/* 2 კოლონიანი გრიდი ბლოგის გვერდისთვის */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.excerpt {
    margin-top: 10px;
}
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* ბლოგის გვერდზე სურათის დიზაინი */
.blog-posts-grid article {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.blog-posts-grid article:hover {
    transform: translateY(-5px);
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* footer-ის მარჯვენა მენიუს სტილი */

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    font-size: 14px;
    color: #333;
}

.footer-right-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.footer-right-menu li {
    display: inline;
}

.footer-right-menu a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer-right-menu a:hover {
    color: #5a359c; /* ან შენი ბრენდის ფერი */
}

/* ჰედერის სტილი ჩრდილი ქვედა ზოლზე */
.site-header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* პროდუქტების ბლოკის გალამაზება */

.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ბლოგის დეტალური გვერდის სტილი */

/* Blog detail page improvements */
/* Blog single page layout refinement */
.single-post .site-main {
    max-width: 1200px; /* გამოიყენე ისევე როგორც ჰედერი */
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.single-post .entry-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #222;
}

.single-post .post-thumbnail img {
    max-width: 90%;
    margin: 0 auto 30px auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post .entry-content {
    text-align: justify;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1000px;
}

.single-post .col-full {
    max-width: 1200px;
    margin: 0 auto;
}

body.single-post .right-sidebar .content-area {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

.single-post .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}
