/*
Theme Name: EasyTheme
Theme URI: https://sunnywebstudio.com
Author: the Sunnywebstudio, Aleksei Sukhoverkhov
Author URI: https://sunnywebstudio.com
Description: A lightweight, high-performance starter theme designed for building simple single-page websites and landing pages. Optimized for Elementor.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.0
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easytheme
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, translation-ready, e-commerce, blog
*/

/* --- 1. Base Reset & Layout --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

#page {
    width: 100%;
    overflow-x: hidden;
}

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

/* --- 2. Top Bar --- */
.et-top-bar {
    background-color: var(--et-primary-color, #1e73be);
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.et-top-left, .et-top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.et-info-item, .et-info-item a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

/* --- 3. Main Header & Navigation --- */
.et-main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.site-branding img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--et-secondary-color, #1a1a1a);
}

.main-navigation li {
    position: relative;
}

/* Desktop Dropdown Arrows */
@media (min-width: 992px) {
    .menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 10px;
        margin-left: 5px;
        vertical-align: middle;
        opacity: 0.7;
    }
    
    .main-navigation ul ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 200px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .main-navigation li:hover > ul {
        display: block;
    }
}

/* --- 4. Mobile Layout --- */
@media (max-width: 991px) {
    .et-top-bar {
        display: none;
    }

    /* Fixed Hamburger: Flexbox Centering */
    .et-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background-color: var(--et-primary-color, #ffb100);
        border: none;
        border-radius: 4px;
        cursor: pointer;
        margin-left: auto;
        padding: 0;
        overflow: hidden;
    }

    .et-hamburger-box {
        width: 24px;
        height: 18px; /* Total height of the bar group */
        position: relative;
        display: block;
    }

    .et-hamburger-inner, 
    .et-hamburger-inner::before, 
    .et-hamburger-inner::after {
        width: 24px;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: 0.3s;
        left: 0;
    }

    /* Middle bar vertically centered */
    .et-hamburger-inner { 
        top: 50%; 
        transform: translateY(-50%); 
    }

    /* Top and Bottom bars */
    .et-hamburger-inner::before { 
        content: ""; 
        top: -8px; 
    }
    .et-hamburger-inner::after { 
        content: ""; 
        top: 8px; 
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--et-primary-color, #ffb100);
        z-index: 9999;
    }

    .main-navigation.is-active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    .main-navigation a {
        color: #fff !important;
        padding: 12px 20px;
        display: block;
        font-weight: 600;
    }

    /* Mobile Sub-menu Trigger (Plus/Minus Icons) */
    .sub-menu-trigger {
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        border-left: 1px solid rgba(255,255,255,0.2);
        z-index: 5;
    }

    .main-navigation ul ul {
        display: none !important;
        position: static;
        background-color: rgba(0,0,0,0.05);
        width: 100%;
        padding: 0;
    }

    .main-navigation li.sub-menu-open > ul {
        display: block !important;
    }
}

/* --- 5. Social Icons --- */
.et-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    color: #ffffff;
}

.et-social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

/* Hide Hamburger Button on Desktop */
@media (min-width: 992px) {
    .et-hamburger {
        display: none !important;
    }
}

/* --- 6. Sticky Header Support --- */

/* Reset overflow to allow sticky positioning */
html, body, #page, .site {
    overflow: visible !important;
    height: auto !important;
}

/* Sticky styles for Desktop view */
@media (min-width: 992px) {
    .site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100%;
        transition: all 0.3s ease; /* Smooth transition for the entire header */
    }

    /* Main Menu Background & Shadow for visibility on scroll */
    .et-main-header {
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: padding 0.3s ease; /* Smooth padding reduction */
    }

    /* Transition for logo scaling */
    .site-branding img {
        transition: max-height 0.3s ease;
    }

    /* Styles applied when page is scrolled (triggered via JS) */
    .header-scrolled .et-main-header {
        padding: 5px 0; /* Reduced header padding */
    }

    .header-scrolled .site-branding img {
        max-height: 40px; /* Reduced logo height (original: 60px) */
    }
}

/* --- 7. Footer Styles --- */

.site-footer {
    /* No background here, so it's invisible if empty */
    padding: 0;
    margin-top: auto;
    width: 100%;
}

/* This area only exists if widgets are active */
.footer-widgets-area {
    background-color: var(--et-primary-color);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-widgets-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.footer-widget-column {
    flex: 1 1 25%;
    padding: 0 15px;
    margin-bottom: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-widget-column .widget-title {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: none !important;
    width: 100%;
}

/* Default WP widgets centering */
.footer-widget-column .widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Copyright section stays consistent */
.footer-bottom {
    background-color:  var(--et-primary-color);
    padding: 20px 0;
    width: 100%;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
}

.footer-copyright p a.designer-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.footer-copyright p a.designer-link:hover {
    opacity: 0.8;
}

/* --- 8. Responsive Adjustments --- */

@media (max-width: 992px) {
    .footer-widget-column {
        flex: 1 1 50%;
    }
}

@media (max-width: 600px) {
    .footer-widget-column {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Contact Form 7 - Custom Modern Styling
   ========================================================================== */

/* Main form container wrapper */
.wpcf7 {
    max-width: 100%;
    margin: 0 auto;
}

/* Form field labels */
.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
}

/* Text inputs, email, phone, url, and textarea base styling */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999999;
    opacity: 1;
}

/* Input focus states */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus {
    border-color: #32373c;
    box-shadow: 0 0 0 3px rgba(50, 55, 60, 0.15);
    outline: none;
}

/* Textarea specific adjustments */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Submit Button Styling (Matching Site Theme & Buttons)
   -------------------------------------------------------------------------- */

.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-block;
    background-color: #007196;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 36px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button hover state */
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background-color: #1a1d20;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* Button active/clicked state */
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   Validation & Response Messages
   -------------------------------------------------------------------------- */

/* Field validation error tooltip */
.wpcf7-not-valid-tip {
    color: #cf2e2e;
    font-size: 14px;
    margin-top: -14px;
    margin-bottom: 16px;
    display: block;
}

/* General form response output container */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    box-sizing: border-box;
}

/* Successful submission response box */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0fdf4 !important;
    border: 1px solid #00d084 !important;
    color: #166534 !important;
}

/* Failed submission response box (validation or server error) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    background-color: #fef2f2 !important;
    border: 1px solid #cf2e2e !important;
    color: #991b1b !important;
}
/* --- Required WordPress Classes --- */
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px auto; }
.wp-caption { background: #f3f3f3; padding: 5px; border: 1px solid #ddd; text-align: center; }
.wp-caption-text { font-size: 11px; font-style: italic; }
.sticky { border: 1px solid #eee; }
.gallery-caption { font-size: 11px; }
.bypostauthor { font-weight: bold; }

/* Accessible hidden text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
|--------------------------------------------------------------------------
| WordPress Required Core Classes (Draft)
|--------------------------------------------------------------------------
| These classes are recommended by WordPress Theme Check.
| They are currently commented out to keep the stylesheet lightweight.
| Enable them if you plan to use standard WP Editor (Gutenberg) features.
|
*/

/*
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px auto; }
.wp-caption { background: #f3f3f3; padding: 5px; border: 1px solid #ddd; text-align: center; max-width: 100%; }
.wp-caption-text { font-size: 11px; font-style: italic; }
.sticky { background: #fff; border: 1px solid #eee; }
.gallery-caption { font-size: 11px; }
.bypostauthor { font-weight: bold; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
*/

/* --- Single Post Tags Styling --- */
.post-tags-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.post-tags-container .tags-label {
    font-weight: bold;
    margin-right: 5px;
}

.post-tags-container a {
    color: #000080;
    text-decoration: none;
    transition: opacity 0.2s;
}

.post-tags-container a:hover {
    opacity: 0.7;
}

/* --- Fix for Translation Plugins on One-Page Layout --- */
/* Reset automatic WordPress highlighting for anchor links on translated pages */
.main-navigation ul li.current-menu-item > a[href*="#"],
.main-navigation ul li.current_page_item > a[href*="#"],
.main-navigation ul li.current-menu-ancestor > a[href*="#"] {
    color: #333333 !important; /* Force fall back to the base text color */
}

/* Keep only the actual Home link active if it points to the root or active hash */
/* This maintains the correct default color until the user starts scrolling */

/* --- 9. Page Hero & Elementor Layouts --- */

/* Hero banner wrapper */
.page-hero-section {
    position: relative;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

/* Dark overlay for contrast */
.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Flexbox container forcing column alignment and centering */
.page-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

/* Clean heading resetting standard line spacing */
.page-hero-container .page-title {
    margin: 0;
    padding: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 700;
}

/* Full width breadcrumbs area below the title */
.breadcrumbs-wrapper {
    display: block;
    width: 100%;
}

/* Styling for SunnyTT Breadcrumbs inside the Hero */
.breadcrumbs-wrapper .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs-wrapper .breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumbs-wrapper .breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumbs-wrapper .breadcrumbs-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.breadcrumbs-wrapper .breadcrumbs-current {
    color: #ffffff;
    font-weight: 600;
}

/* Elementor container layout rules (No sidebar constraint) */
.elementor-page-main {
    width: 100%;
    display: block;
}

.elementor-page-main .page-links {
    margin-top: 15px;
    font-weight: bold;
}

/* ==========================================================================
   Single Product Page Layout Styles
   ========================================================================== */

/* Main wrapper spacing adjustment */
.wrapper.single_product {
    padding: 40px 0;
}

/* Row 1: Header Row - Mobile First (stacked columns) */
.product-header-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Row 2: Body Row - Adjust spacing from the header row above */
.product-body-row {
    margin-top: 40px;
}

/* Image container styling */
.product-thumb {
    width: 100%;
}

.product-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Smooth card-like corners */
}

/* Product Meta Info box styling */
.products_info {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    height: fit-content;
}

.products_info p {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.products_info p:last-child {
    margin-bottom: 0;
}

/* Detailed content and order form spacing */
.product-text {
    margin-bottom: 30px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Back to Products link section */
.back-to-archive {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* --------------------------------------------------------------------------
   Desktop view rules (Tablet & Desktop, 768px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    /* Split into 2 columns on larger screens */
    .product-header-row {
        grid-template-columns: 1fr 1fr; /* Two equal-width columns side-by-side */
        align-items: start;
    }
}

/* Establish a new block formatting context for content containers */
.entry-content,
.product-description,
.woocommerce-Tabs-panel--description {
    display: flow-root;
}

/* Ensure floats are cleared after content blocks */
.entry-content::after,
.product-description::after,
.woocommerce-Tabs-panel--description::after {
    content: "";
    display: table;
    clear: both;
}

/* Constrain product description images and set base stacking order */
.entry-content img,
.product-description img,
.wp-block-image img {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Isolate the bottom-pulled contact form and prevent overlapping */
.wpcf7,
[class*="easylaunchproducts"],
.contact-form-wrapper,
form[autocomplete="off"] {
    clear: both !important;
    display: block !important;
    position: relative;
    z-index: 10;
    margin-top: 2.5rem !important;
    margin-bottom: 2rem;
    background-color: #ffffff;
}

/* Detailed content and order form spacing */
.product-text {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    /* Create a new block formatting context to contain floated images */
    display: flow-root; 
}

/* Ensure the order form is pushed to a new row below all content and floats */
.easypr-order-form-wrapper {
    clear: both;
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.single_product #main.site-main {
    max-width: 1800px; /* Укажите здесь ту же ширину, что стоит для .et-container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;

}

Product Thumbnail Link Overrides */
.product-thumb,
.product-thumb a,
a.product-thumb {
    color: #ffb100 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.product-thumb:hover,
.product-thumb a:hover,
a.product-thumb:hover,
.product-thumb:focus,
.product-thumb a:focus,
a.product-thumb:focus {
    color: #cc8d00 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

