/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com
Description: Hello Elementor Child Theme
Author: Your Name
Template: hello-elementor
Version: 1.0.0
*/


/* Your Custom CSS */

/* ------------------------------------------------------------------
   Neutralize hello-elementor (parent) reset.css opinionated styling.

   The parent theme's reset.css force-styles bare <button>, <input> and <a>
   elements (red #c36 border/color, border-radius, padding, etc.). The rules
   below use LOW specificity (element/attribute selectors only) on purpose:

     - They override the parent reset (same specificity, but loaded later
       because hello-child-style depends on the 'hello-elementor' handle).
     - They NEVER override class-based styles. Any element with a class
       (.btn_border, .elementor-button, or your own custom class) keeps full
       control, since a single class (0,1,0) outranks these selectors.

   Result: your custom markup renders neutral and is styled only by your own
   CSS / Elementor, while existing styled components are untouched.
   ------------------------------------------------------------------ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    color: inherit;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: normal;
    text-align: inherit;
    width: auto;
}

button:hover,
button:focus,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: transparent;
    color: inherit;
}

a {
    color: inherit;
}

a:hover,
a:active {
    color: inherit;
}

/* ------------------------------------------------------------------
   Site-wide search popup (triggered by .btn_search in the Elementor
   header/footer). Markup is injected via wp_footer (functions.php) and
   opened/closed in assets/js/public.js. Styled to match the theme:
   primary red (#E5131E), Saira, sharp corners, uppercase submit.
   ------------------------------------------------------------------ */
.velkor-search {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15vh 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.velkor-search.active {
    opacity: 1;
    visibility: visible;
}

.velkor-search__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    cursor: pointer;
}

.velkor-search__dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    padding: 40px;
    transform: translateY(-24px);
    transition: transform 0.3s ease;
}

.velkor-search.active .velkor-search__dialog {
    transform: translateY(0);
}

body .velkor-search__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 32px;
    line-height: 1;
    color: #0a0a0a;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 !important;
}

body .velkor-search__close:hover {
    color: #E5131E;
}

.velkor-search__label {
    display: block;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #0a0a0a;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.velkor-search__form {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.velkor-search__input {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 0 18px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background: #fff;
    color: #0a0a0a;
    font-family: 'Saira', sans-serif;
    font-size: 18px;
}

.velkor-search__input:focus {
    border-color: #E5131E;
}

.velkor-search__submit {
    flex-shrink: 0;
    height: 60px;
    padding: 0 32px;
    background-color: #E5131E;
    color: #fff;
    font-family: 'Saira', sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #E5131E;
}

.velkor-search__submit:hover {
    background-color: #fff;
    color: #0a0a0a;
}

@media (max-width: 600px) {
    .velkor-search__dialog {
        padding: 28px 20px;
    }
    .velkor-search__form {
        flex-direction: column;
        gap: 12px;
    }
    .velkor-search__submit {
        padding: 0 24px;
    }
}

/* ------------------------------------------------------------------
   Inquiry toast: shown after adding a product to the basket
   (.inquiry_btn), with a button linking to the inquiry page. Injected
   and controlled in assets/js/public.js. Matches the theme brand.
   ------------------------------------------------------------------ */
.velkor-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: calc(100vw - 48px);
    padding: 16px 18px;
    background: #fff;
    border-left: 4px solid #E5131E;
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.18);
    font-family: 'Saira', sans-serif;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.velkor-toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.velkor-toast__msg {
    font-size: 16px;
    color: #0a0a0a;
}

.velkor-toast__btn {
    flex-shrink: 0;
    display: inline-block;
    line-height: 40px;
    padding: 0 20px;
    background-color: #E5131E;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid #E5131E;
    transition: all 0.3s;
}

.velkor-toast__btn:hover {
    background-color: #fff;
    color: #0a0a0a;
}

.velkor-toast__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 22px;
    line-height: 1;
    color: #888;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 !important;
}

.velkor-toast__close:hover {
    color: #E5131E;
}

@media (max-width: 600px) {
    .velkor-toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
}
