/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* ---------- WOO - OSTOSKORI & KASSA ---------- */

.woocommerce-cart,
.woocommerce-checkout {
    padding-top: 90px;
    background-color: #f9f9fb;
}

/* Ostoskorin ja kassan taulukko */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-collapse: collapse;
    overflow: hidden;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.woocommerce-cart table.shop_table th {
    background-color: #f0f0f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Tuotekuva */
.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 60px;
    height: auto;
    border-radius: 8px;
}

/* Yhteenveto */
.cart-collaterals,
.woocommerce-checkout-review-order-table {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* WooCommerce Blocks - maksupainike */
.wc-block-cart__submit-button,
.wc-block-components-button {
    background-color: #B4C8FF !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-button:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* "Lisää ostoskoriin" nappi */
.ajax_add_to_cart,
.add_to_cart_button,
.wp-block-button__link {
    background-color: #B4C8FF !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.ajax_add_to_cart:hover,
.add_to_cart_button:hover,
.wp-block-button__link:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Kenttien väli (säädetty mobiilia varten) */
.woocommerce form .form-row {
    margin-bottom: 80px;
}

@media (max-width: 768px) {
    .woocommerce form .form-row {
        margin-bottom: 24px;
    }
}

/* Kassan otsikot */
.woocommerce-checkout h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 6px;
}

/* Mobiilivaste */
@media (max-width: 768px) {
    .woocommerce-cart,
    .woocommerce-checkout {
        padding: 40px 10px;
    }

    .woocommerce-cart table.shop_table,
    .woocommerce-checkout table.shop_table {
        font-size: 0.95rem;
    }
}

/* Sticky footer vain ostoskorisivulle */
.woocommerce-cart #page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.woocommerce-cart #content {
    flex: 1;
}

/* Kassan order summary padding */
.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Ostoskori: täyskorkeus ilman layoutin rikkomista */
body.woocommerce-cart .wc-block-cart {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
}

/* Kassa: täyskorkeus ilman layoutin rikkomista */
body.woocommerce-checkout .wc-block-checkout {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column;
}

/* Kassasivun sticky-sivupalkki alemmaksi */
body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding-top: 80px !important;
}

/* Scrollauksen turvaväli, estää headerin alle piiloutumisen */
html {
    scroll-padding-top: 80px !important;
}

/* ---------- WOO - TUOTESIVU ---------- */

/* Tuotteen päälohko taustaväri ja spacing */
.single-product .site-main {
    background-color: #f9f9fb;
    padding-top: 90px;
    padding-bottom: 90px;
}

/* Tuotteen kontti visuaaliseksi laatikoksi */
.single-product .product {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

/* Tuotteen otsikko */
.single-product .product_title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Hinta */
.single-product .woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E3A8A;
}

/* "Lisää ostoskoriin" nappi yhdenmukaiseksi */
.single-product .single_add_to_cart_button {
    background-color: #B4C8FF !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Määrävalitsin */
.single-product .quantity input {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
}

/* Kuvaus-välilehti visuaalisemmaksi */
.woocommerce-Tabs-panel--description {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Välilehtien otsikko */
.woocommerce-Tabs-panel--description h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 6px;
}

.single-product .flex-direction-nav {
    display: none !important;
}

/* Halutessasi poista tuotesivulta harmaa tausta kokonaan */
.single-product .site-main {
    background-color: #ffffff !important;
}

/* Poista liiallinen padding itse laatikolta */
.woocommerce-Tabs-panel--description {
    padding: 0 !important;
}

/* Lisää padding vain sisältöön */
.woocommerce-Tabs-panel--description > * {
    padding: 10px 50px;
}

#tab-description > h2 {
    display: none !important;
}

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

.product_meta {
    display: none !important;
}

.woocommerce-cart p.has-text-align-center {
    display: none !important;
}
