/*
Theme Name: NOC Greeny
Theme URI: https://example.com/noc-greeny
Author: GitHub Copilot
Description: WordPress theme for the NOC project built from the Greeny eCommerce HTML template.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: noc-greeny
*/

.basic-page-content {
    padding: 60px 0;
    background: #f5f6f7;
}

.basic-page-card {
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.basic-page-card .entry-title,
.basic-page-card .page-title {
    margin-bottom: 20px;
}

.basic-page-card .entry-meta,
.basic-page-card .page-subtitle {
    margin-bottom: 20px;
    color: #6c757d;
}

.basic-page-card .wp-post-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 12px;
}

.basic-page-card .post-navigation,
.basic-page-card .navigation,
.basic-page-card .nav-links {
    margin-top: 24px;
}

.basic-page-card .screen-reader-text {
    position: absolute;
    left: -9999px;
}

.basic-page-card .search-form {
    display: flex;
    gap: 10px;
}

.basic-page-card .search-field {
    flex: 1;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.basic-page-card .search-submit {
    min-width: 140px;
    border: 0;
    border-radius: 8px;
    background: #119744;
    color: #ffffff;
}

.header-top-list,
.footer-menu-list,
.footer-menu-list li,
.header-top-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top {
    background: #119744;
}

.header-top .row {
    min-height: 44px;
}

.header-top-welcome p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.header-top-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.header-top-list a {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.header-top-list a:hover {
    color: #e9f9ef;
}

.header-top-list li + li {
    position: relative;
}

.header-top-list li + li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
}

.footer-menu-list {
    display: grid;
    gap: 10px;
}

.noc-greeny-nav-cta {
    display: flex;
    gap: 18px;
}

.noc-greeny-nav-cta a {
    color: var(--white);
    font-weight: 500;
}

.navbar-item.current-menu-item > .navbar-link,
.navbar-item.current-menu-ancestor > .navbar-link,
.footer-menu-list .current-menu-item > a {
    color: #119744;
}

.header-top-list .current-menu-item > a {
    color: #ffffff;
}

.nav-sidebar .nav-list,
.nav-sidebar .dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-sidebar .dropdown-list {
    padding-left: 22px;
}

.nav-sidebar .dropdown-list a {
    display: block;
    padding: 7px 0;
}

.header-widget > span,
.header-cart > span {
    display: inline-flex;
    flex-direction: column;
}

.product-card .product-add,
.product-card .added_to_cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    text-transform: lowercase;
}

.product-card .added_to_cart {
    margin-top: 12px;
    color: #119744;
    font-weight: 600;
}

.shop-empty {
    padding: 24px 0;
    color: #555555;
}

.journal-part {
    padding-bottom: 80px;
}

.journal-card {
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.journal-card-media,
.journal-card-media img {
    display: block;
    width: 100%;
}

.journal-card-content {
    padding: 24px;
}

.journal-card-meta {
    margin-bottom: 12px;
    color: #777777;
    font-size: 14px;
}

.journal-card-content h4 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 30px;
}

.journal-card-content p {
    margin-bottom: 18px;
}

.top-filter .woocommerce-ordering,
.top-filter .woocommerce-result-count {
    margin: 0;
}

.top-filter .orderby {
    min-width: 180px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
}

.shop-widget-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-widget-list li + li {
    margin-top: 10px;
}

.shop-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555555;
}

.shop-widget-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.shop-widget-link.is-active {
    color: #119744;
    font-weight: 600;
}

.shop-widget-list a:hover {
    color: #119744;
}

.shop-widget-group input[readonly] {
    cursor: default;
    color: #39404a;
}

.filter-show .woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: #555555;
}

.filter-short .woocommerce-ordering {
    width: 100%;
}

.filter-short .orderby {
    width: 100%;
}

.noc-greeny-search-inline {
    flex: 1;
}

.noc-greeny-search-inline .header-form {
    width: 100%;
}

.noc-greeny-single-post {
    max-width: 880px;
    margin: 0 auto;
}

.noc-greeny-woo-page .woocommerce,
.noc-greeny-woo-page .woocommerce-page {
    width: 100%;
}

.noc-greeny-woo-page .quantity .qty,
.noc-greeny-woo-page input,
.noc-greeny-woo-page select,
.noc-greeny-woo-page textarea {
    min-height: 44px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.noc-greeny-woo-page .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    border-radius: 8px;
    background: #119744;
    color: #ffffff;
}

.checkout-part {
    padding-top: 60px;
    padding-bottom: 80px;
    background: #f5f6f7;
}

.checkout-part .container {
    max-width: 1140px;
}

.noc-greeny-checkout-content {
    max-width: 1020px;
    margin: 0 auto;
}

.noc-greeny-checkout-content .woocommerce-form-login-toggle,
.noc-greeny-checkout-content .woocommerce-form-coupon-toggle {
    margin-bottom: 22px;
}

.checkout-part .woocommerce-info,
.checkout-part .woocommerce-message {
    margin: 0;
    padding: 14px 22px;
    color: #119744;
    background: #ffffff;
    border: none;
    border-left: 4px solid #119744;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.checkout-part .woocommerce-info::before,
.checkout-part .woocommerce-message::before {
    color: #119744;
}

.noc-greeny-checkout-form {
    margin-top: 0;
}

.noc-greeny-checkout-form .account-card {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(17, 151, 68, 0.08);
}

.noc-greeny-checkout-form .account-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #119744, #0f7d39);
}

.noc-greeny-checkout-form .account-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.noc-greeny-checkout-form .account-content {
    padding: 24px;
}

.noc-greeny-checkout-form .woocommerce-billing-fields > h3,
.noc-greeny-checkout-form .woocommerce-additional-fields > h3,
.noc-greeny-checkout-form #ship-to-different-address {
    margin: 0 0 18px;
    font-size: 16px;
    color: #39404a;
}

.noc-greeny-checkout-form .woocommerce-billing-fields__field-wrapper,
.noc-greeny-checkout-form .woocommerce-shipping-fields__field-wrapper,
.noc-greeny-checkout-form .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.noc-greeny-checkout-form .form-row {
    float: none;
    width: 100%;
    margin: 0;
}

.noc-greeny-checkout-form .form-row-first,
.noc-greeny-checkout-form .form-row-last,
.noc-greeny-checkout-form .form-row-wide,
.noc-greeny-checkout-form .woocommerce-address-fields__field-wrapper .form-row,
.noc-greeny-checkout-form .woocommerce-additional-fields__field-wrapper .form-row,
.noc-greeny-checkout-form .create-account .form-row {
    grid-column: 1 / -1;
}

.noc-greeny-checkout-form #billing_first_name_field,
.noc-greeny-checkout-form #billing_last_name_field,
.noc-greeny-checkout-form #shipping_first_name_field,
.noc-greeny-checkout-form #shipping_last_name_field {
    grid-column: span 1;
}

.noc-greeny-checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #39404a;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.noc-greeny-checkout-form .input-text,
.noc-greeny-checkout-form select,
.noc-greeny-checkout-form textarea,
.noc-greeny-checkout-form .select2-container .select2-selection--single,
.noc-greeny-checkout-form .select2-container .select2-selection--multiple {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid #dbe1e6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.noc-greeny-checkout-form textarea {
    min-height: 120px;
    padding-top: 14px;
}

.noc-greeny-checkout-form .input-text:focus,
.noc-greeny-checkout-form select:focus,
.noc-greeny-checkout-form textarea:focus,
.noc-greeny-checkout-form .select2-container--focus .select2-selection--single,
.noc-greeny-checkout-form .select2-container--focus .select2-selection--multiple {
    border-color: #119744;
    box-shadow: 0 0 0 3px rgba(17, 151, 68, 0.12);
}

.noc-greeny-checkout-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 0;
    color: #4b5563;
}

.noc-greeny-checkout-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

.noc-greeny-checkout-form .create-account,
.noc-greeny-checkout-form .woocommerce-additional-fields {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #edf1f4;
}

.noc-greeny-checkout-form .woocommerce-account-fields,
.noc-greeny-checkout-form .woocommerce-shipping-fields,
.noc-greeny-checkout-form .woocommerce-additional-fields {
    clear: both;
}

.noc-greeny-order-panel {
    position: sticky;
    top: 30px;
}

.noc-greeny-order-panel .account-content {
    padding: 0;
}

.noc-greeny-checkout-form table.shop_table {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-collapse: collapse;
}

.noc-greeny-checkout-form table.shop_table thead th {
    padding: 16px 20px;
    color: #ffffff;
    text-transform: capitalize;
    background: #119744;
    border: 0;
}

.noc-greeny-checkout-form table.shop_table td,
.noc-greeny-checkout-form table.shop_table th {
    border-top: 1px solid #edf1f4;
}

.noc-greeny-checkout-form table.shop_table tbody td,
.noc-greeny-checkout-form table.shop_table tfoot td,
.noc-greeny-checkout-form table.shop_table tfoot th {
    padding: 16px 20px;
    vertical-align: top;
}

.noc-greeny-checkout-form table.shop_table .product-name {
    font-weight: 600;
    color: #39404a;
}

.noc-greeny-checkout-form table.shop_table tfoot tr:last-child th,
.noc-greeny-checkout-form table.shop_table tfoot tr:last-child td {
    color: #119744;
    font-weight: 700;
}

.noc-greeny-checkout-form .woocommerce-checkout-payment {
    margin: 0;
    padding: 24px 20px 20px;
    background: #f7f7fb;
    border-top: 1px solid #edf1f4;
}

.noc-greeny-checkout-form .wc_payment_methods {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.noc-greeny-checkout-form .wc_payment_methods li {
    padding: 14px 0;
    border-bottom: 1px solid #e7ebef;
}

.noc-greeny-checkout-form .wc_payment_methods li:last-child {
    border-bottom: 0;
}

.noc-greeny-checkout-form .payment_box {
    margin: 12px 0 0;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 8px;
}

.noc-greeny-checkout-form .place-order {
    padding-top: 10px;
}

.noc-greeny-checkout-form #place_order {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 8px;
    background: #119744;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.noc-greeny-checkout-form .woocommerce-privacy-policy-text {
    margin-bottom: 14px;
    font-size: 13px;
    color: #6b7280;
}

.noc-greeny-checkout-form .woocommerce-error,
.noc-greeny-checkout-form .woocommerce-notices-wrapper ul {
    margin-bottom: 24px;
    padding: 14px 18px;
    list-style: none;
    color: #d14343;
    background: #fff5f5;
    border-left: 4px solid #d14343;
    border-radius: 8px;
}

.noc-greeny-checkout-form .required {
    color: #e34f4f;
}

.noc-greeny-checkout-form .screen-reader-text {
    position: absolute;
    left: -9999px;
}

.noc-greeny-checkout-form .woocommerce-form-login,
.noc-greeny-checkout-form .checkout_coupon {
    margin-bottom: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
}

.noc-greeny-checkout-form .woocommerce-form-login p,
.noc-greeny-checkout-form .checkout_coupon p {
    margin-bottom: 14px;
}

.noc-greeny-checkout-form .woocommerce-form-login .form-row-first,
.noc-greeny-checkout-form .woocommerce-form-login .form-row-last,
.noc-greeny-checkout-form .checkout_coupon .form-row-first,
.noc-greeny-checkout-form .checkout_coupon .form-row-last {
    grid-column: span 1;
}

.noc-greeny-checkout-form .woocommerce-form-login .button,
.noc-greeny-checkout-form .checkout_coupon .button {
    min-height: 46px;
    padding: 0 18px;
}

@media (max-width: 1199px) {
    .noc-greeny-order-panel {
        position: static;
    }
}

@media (max-width: 991px) {
    .header-top-welcome,
    .header-top-list {
        justify-content: center;
        text-align: center;
    }

    .header-top .col-md-12 + .col-md-12 {
        margin-top: 6px;
    }

    .checkout-part {
        padding-top: 48px;
        padding-bottom: 60px;
    }

    .noc-greeny-checkout-form .account-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .header-top .row {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .header-top-list {
        gap: 14px;
    }

    .header-top-list li + li::before {
        left: -7px;
    }

    .noc-greeny-checkout-form .woocommerce-billing-fields__field-wrapper,
    .noc-greeny-checkout-form .woocommerce-shipping-fields__field-wrapper,
    .noc-greeny-checkout-form .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .noc-greeny-checkout-form .woocommerce-form-login .form-row-first,
    .noc-greeny-checkout-form .woocommerce-form-login .form-row-last,
    .noc-greeny-checkout-form .checkout_coupon .form-row-first,
    .noc-greeny-checkout-form .checkout_coupon .form-row-last,
    .noc-greeny-checkout-form #billing_first_name_field,
    .noc-greeny-checkout-form #billing_last_name_field,
    .noc-greeny-checkout-form #shipping_first_name_field,
    .noc-greeny-checkout-form #shipping_last_name_field {
        grid-column: 1 / -1;
    }

    .noc-greeny-checkout-form .account-title,
    .noc-greeny-checkout-form .account-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 991px) {
    .noc-greeny-nav-cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .journal-card {
        margin-bottom: 24px;
    }
}

/* --- Dropdown Menu UI Fixes --- */
.dropdown-position-list {
    padding-top: 18px !important;
}
.dropdown-position-list::before {
    left: 20px !important;
}
