/*
 Theme Name:     Nolemi Ecommerce
 Theme URI:      https://nolemi.com/
 Description:    Divi child theme for custom Divi layouts, WooCommerce styling, and lightweight design utilities.
 Author:         Nolemi
 Author URI:     https://nolemi.com/
 Template:       Divi
 Version:        1.0.0
*/


/* =========================================================
   Utility Classes
   Use these manually inside Divi modules.
   ========================================================= */

/* --- Gradient Text Class --- */
.nlm-gradient-text {
  background: linear-gradient(150deg, var(--gcid-link-color), var(--gcid-primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block; /* Prevents background clipping issues on inline elements */
}

/* Accent text */
.nlm-accent-text {
    color: var(--gcid-link-color) !important;
}

/* Center content */
.nlm-center {
    text-align: center;
}

/* =========================================================
   Nolemi Typewriter Text Effect
   Usage:
   <span class="nlm-typewriter" data-words="Professional,Precise,Intentional"></span>
   ========================================================= */

.cursor {
  display: inline-block;
  font-weight: 300; /* Thinner weight for a more elegant, understated look */
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}




/* Styling for the top and bottom lines */
.nlm-small-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gcid-heading-text-color);
}

/* Styling for the large middle typing line and its cursor */
.nlm-large-text {
  font-size: 4.5rem; 
  font-weight: bold;
  color: var(--gcid-heading-text-color);
  line-height: 1.1; 
}

/* Creates the colored background box around the typing text */
.nlm-highlight-box {
  background-color: var(--gcid-link-color); 
  color: var(--gcid-secondary-color); 
  padding: 4px 12px; 
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap; 
}

/* Ensures the blinking cursor inside the box matches the text color */
.nlm-highlight-box .cursor {
  color: var(--gcid-secondary-color); 
}

/* =========================================================
   WooCommerce Shop / Product Cards
   ========================================================= */

.et_pb_shop li.product {
    transition: var(--nlm-transition);
    padding: 15px !important;
    border-radius: var(--nlm-radius-md);
}

.et_pb_shop li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--nlm-shadow-soft);
}

.et_pb_shop a.button.add_to_cart_button,
.et_pb_shop a.button.product_type_simple,
.et_pb_shop a.button.product_type_grouped,
.et_pb_shop a.button.product_type_external {
    background: var(--gcid-link-color) !important;
    padding: 7px 15px !important;
    color: var(--nlm-white) !important;
    border-radius: var(--nlm-radius-sm) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.16);
    transition: var(--nlm-transition);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
}

.et_pb_shop a.button.add_to_cart_button:hover,
.et_pb_shop a.button.product_type_simple:hover,
.et_pb_shop a.button.product_type_grouped:hover,
.et_pb_shop a.button.product_type_external:hover {
    background: var(--gcid-link-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--nlm-shadow-soft);
}

/* Hide "View Cart" link after adding product to cart */
.woocommerce a.added_to_cart {
    display: none;
}

/* Star rating */
.et_pb_shop .star-rating {
    width: 100% !important;
    padding: 10px 0;
}

.woocommerce .star-rating span::before,
.et_pb_shop .star-rating > span:before {
    color: var(--gcid-link-color);
}


/* =========================================================
   WooCommerce Pagination
   ========================================================= */

.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    background: var(--nlm-accent-soft);
    color: var(--gcid-link-color);
    margin: 0 5px !important;
    border-radius: 100px;
    transition: var(--nlm-transition);
}

.woocommerce nav.woocommerce-pagination ul li:hover {
    transform: scale(1.05);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--nlm-accent-soft) !important;
    color: var(--gcid-link-color) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--gcid-link-color) !important;
    color: var(--nlm-white) !important;
}

.page-numbers {
    padding: 10px 14px !important;
    font-weight: 700 !important;
}


/* =========================================================
   WooCommerce Cart
   ========================================================= */

.woocommerce .quantity input.qty {
    background: transparent !important;
    color: var(--nlm-text) !important;
    border: 1px solid var(--nlm-border) !important;
    border-radius: var(--nlm-radius-sm) !important;
    font-size: 15px !important;
    padding-right: 7px;
    padding-left: 10px;
}

.woocommerce a.remove {
    color: var(--nlm-text) !important;
    font-weight: 500 !important;
    transition: var(--nlm-transition) !important;
    position: relative;
}

.woocommerce a.remove:hover {
    background: var(--gcid-link-color) !important;
    color: var(--nlm-white) !important;
}


/* =========================================================
   WooCommerce Checkout / Forms
   ========================================================= */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
input.text,
input.title,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
select,
textarea {
    border-radius: var(--nlm-radius-sm);
    border: 2px solid var(--nlm-border);
    transition: var(--nlm-transition);
    background: transparent;
    padding: 15px;
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
input.text:focus,
input.title:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--gcid-link-color);
    outline: none;
}

.woocommerce form .form-row label,
.woocommerce-checkout label {
    color: var(--nlm-muted) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 700;
}

.select2-dropdown {
    border: 2px solid var(--nlm-border);
}

.select2-results__option[aria-selected],
.select2-results__option[data-selected] {
    margin: 0 10px;
    padding: 10px;
    border-radius: var(--nlm-radius-sm);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--gcid-link-color);
}


/* =========================================================
   WooCommerce Checkbox Styling
   ========================================================= */

.woocommerce form .form-row label.checkbox input,
.woocommerce-checkout #payment ul.payment_methods li input,
.woocommerce-form-login input[type="checkbox"] {
    appearance: none !important;
    display: inline-block !important;
    position: relative;
    background-color: #E8EBEB;
    color: var(--nlm-text);
    top: 0;
    vertical-align: middle;
    height: 22px;
    width: 22px;
    box-shadow: 0 0 1px var(--nlm-text);
    border-radius: 50px;
    cursor: pointer;
    margin: 0 7px 0 0;
    outline: none;
    transition: var(--nlm-transition);
}

.woocommerce form .form-row label.checkbox input:hover,
.woocommerce-checkout #payment ul.payment_methods li input:hover,
.woocommerce-form-login input[type="checkbox"]:hover {
    transform: scale(1.12);
}

.woocommerce form .form-row label.checkbox input:checked::before,
.woocommerce-checkout #payment ul.payment_methods li input:checked:before,
.woocommerce-form-login input[type="checkbox"]:checked:before {
    content: "\4e" !important;
    position: absolute;
    font-size: 14px !important;
    font-family: ETmodules;
    font-weight: 700;
    left: 3.5px;
    top: 5px;
    color: var(--gcid-link-color);
}


/* =========================================================
   WooCommerce Thank You Page
   ========================================================= */

.woocommerce-thankyou-order-received {
    background: var(--nlm-white);
    margin-bottom: 20px;
    font-size: 23px;
    font-weight: 700;
    color: var(--nlm-text);
}

.woocommerce .woocommerce-customer-details address {
    border: none !important;
}


/* =========================================================
   Blog Helpers
   Optional classes you can add to Divi Blog modules.
   ========================================================= */

/* Blog grid card style */
.nlm-blog-grid .et_pb_post {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--nlm-transition);
    border-radius: var(--nlm-radius-md);
    overflow: hidden;
}

.nlm-blog-grid .et_pb_post:hover {
    transform: translateY(-4px);
    box-shadow: var(--nlm-shadow-soft);
}

.nlm-blog-grid .et_pb_image_container,
.nlm-blog-grid .entry-featured-image-url {
    order: 1;
}

.nlm-blog-grid .entry-title {
    order: 2;
}

.nlm-blog-grid .post-meta {
    order: 3;
}

.nlm-blog-grid .post-content {
    order: 4;
}

/* Blog category/meta links */
.nlm-blog-grid .post-meta a {
    background: var(--gcid-link-color);
    padding: 5px 12px;
    color: var(--nlm-white) !important;
    border-radius: var(--nlm-radius-sm);
    margin-right: 8px;
    transition: var(--nlm-transition);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 10px;
}

.nlm-blog-grid .post-meta a:hover {
    box-shadow: var(--nlm-shadow-soft);
}


/* =========================================================
   Sidebar Helpers
   Add class "nlm-sidebar" to sidebar areas/modules.
   ========================================================= */

.nlm-sidebar .widget_categories ul li {
    margin-bottom: 0.5em;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--nlm-border);
    padding: 16px 20px;
    transition: var(--nlm-transition);
}

.nlm-sidebar .widget_categories ul li a {
    color: var(--nlm-text) !important;
}

.nlm-sidebar .widget_categories ul li:hover {
    padding-left: 32px;
}

.nlm-sidebar .widget_categories ul li:hover a {
    color: var(--gcid-link-color) !important;
}


/* =========================================================
   Video Play Button
   ========================================================= */

.et_pb_video_play:before {
    font-family: ETmodules;
    content: "\45";
    background: var(--nlm-white);
    color: var(--gcid-link-color);
    font-size: 60px;
    padding: 20px;
    border-radius: 100px;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.47),
        0 2px 20px rgba(0, 0, 0, 0.28);
    transition: var(--nlm-transition);
}

.et_pb_video_play:hover:before {
    transform: scale(1.1) !important;
    box-shadow:
        0 0 0 20px rgba(255, 255, 255, 0.47),
        0 2px 40px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   Simple Animations
   ========================================================= */

.nlm-fade-in {
    animation: nlm-fade-in 0.4s ease both;
}

.nlm-fade-in-bottom {
    animation: nlm-fade-in-bottom 0.4s ease both;
}

@keyframes nlm-fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes nlm-fade-in-bottom {
    0% {
        transform: translateY(15px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media only screen and (max-width: 980px) {
    .inline-buttons-row .et_pb_button_module_wrapper {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 479px) {
    .woocommerce-thankyou-order-received {
        font-size: 20px;
    }

    .et_pb_video_play:before {
        font-size: 42px;
        padding: 16px;
    }
}