/*
Theme Name: Storefront Child
Theme URI: https://example.com/
Description: Child theme for Storefront
Author: DevSirme
Author URI: https://example.com/
Template: storefront
Version: 1.0.0
*/

/* --- BRAND COLOR CONFIGURATION --- */
:root {
    --brand-blue: #1991E3;      /* Primary Action - 0196FC */
    --brand-yellow: #ffb900;    /* Accent & Trust - FFB901 */
    --brand-dark: #0f172a;      /* Deep Professional Navy 0f172a */
    --brand-bg: #E5E5E5;        /* Soft Background - f8fafc */
    --brand-navy: #566686;      /* Navy */
    --white: #ffffff;
    --text-main: #334155;
}

/* =====================
   BASE LAYOUT - LP
===================== */
.lp-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.lp-section {
    width: 100%;
    padding: 90px 0;
}

.lp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================
   HERO SECTION
===================== */
.lp-hero {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
    /*color: var(--white);*/
    text-align: center;
    padding: 140px 0;
}

.lp-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    /*color: var(--white);*/
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.lp-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* =====================
   BACKGROUNDS - LP
===================== */
.lp-hero {
    background: var(--white);
    text-align: center;
}

.lp-dark {
    background: var(--brand-bg);
    /*color: var(--white);*/
}

.lp-light {
    /*background: var(--brand-bg);*/
}

/* =====================
   TYPOGRAPHY
===================== */
.lp-section h1,
.lp-section h2 {
    margin-bottom: 20px;
}

.lp-dark h2 {
    color: var(--brand-dark);
}

/* =====================
   BUTTONS
===================== */
.lp-btn {
    display: inline-block;
    background: var(--brand-blue);
    color: var(--white) !important; /* Force white for Storefront link defaults */
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(25, 145, 227, 0.3);
}

.lp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(25, 145, 227, 0.4);
    background: var(--brand-yellow);
    color: var(--brand-dark) !important;
}

/* =====================
   WOOCOMMERCE SHORTCODE STYLING
===================== */
/*.lp-section .products .product {*/
/*    background: var(--white);*/
/*    padding: 15px;*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 5px 15px rgba(0,0,0,0.05);*/
/*}*/

/*.lp-section .woocommerce-loop-product__title {*/
/*    color: var(--brand-dark);*/
/*    font-size: 1.1rem !important;*/
/*}*/

/* =====================
   COURSE GRID STYLING
===================== */
/* Ensure the WooCommerce grid spans correctly */
.lp-section .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 40px 0 !important;
}

/* Individual Course Card */
.lp-section ul.products li.product {
    background: var(--white);
    padding: 0 0 20px 0; /* Bottom padding only */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.lp-section ul.products li.product:hover {
    transform: translateY(-10px);
}

/* Course Image */
.lp-section ul.products li.product img {
    margin-bottom: 20px !important;
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps images uniform even if they have different sizes */
}

/* Course Title */
.lp-section ul.products li.product .woocommerce-loop-product__title {
    padding: 0 15px;
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Price Tag */
.lp-section ul.products li.product .price {
    color: var(--brand-blue) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px !important;
    display: block;
}

/* Add to Cart Button Styling */
.lp-section ul.products li.product .button {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    transition: 0.3s;
}

.lp-section ul.products li.product .button:hover {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
}

/* Fix for mobile */
@media (max-width: 768px) {
    .lp-section .products {
        grid-template-columns: 1fr !important;
    }
}

/* =====================
   HOW IT WORKS (GRID)
===================== */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.lp-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.lp-card span {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 20px;
}

.lp-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.lp-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-10px);
}

/* =====================
   TESTIMONIALS
===================== */
blockquote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    font-style: italic;
    border-left: none;
    padding: 0;
    text-align: center;
}

cite {
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-weight: 700;
    color: var(--brand-yellow);
    text-transform: uppercase;
    font-size: 1rem;
}



/* Style the Proceed to Payment button on Cart Page */
/* Target the New WooCommerce Cart Block Button */
.wc-block-cart__submit-button, 
.wc-block-components-button.wp-element-button.contained {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 20px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: flex !important;
    justify-content: center;
}

.wc-block-cart__submit-button:hover {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    transform: translateY(-2px);
}

/* Force the button text to follow the capitalization we set in the script */
/* Fix the text color inside the block button */
.wc-block-cart__submit-button .wc-block-components-button__text {
    text-transform: none !important; /* This stops the "FORCED CAPITALIZATION" */
    font-weight: 700;
    color: inherit !important;
}


/* Styling the Gender Select Field */
#billing_gender_field select {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 10px !important;
    height: auto !important;
    transition: border-color 0.3s ease;
}

#billing_gender_field select:focus {
    border-color: var(--brand-blue) !important;
    outline: none;
}

#billing_gender_field label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

/* ============================================================
   PLACE ORDER BUTTON STYLING (Classic & Block Support)
============================================================ */

/* 1. Target the button specifically */
#place_order, 
.wc-block-checkout__add-note .wc-block-components-button,
.wc-block-components-checkout-place-order-button {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    
    /* Layout & Size */
    width: 100% !important; /* Full width button usually converts better on mobile */
    padding: 20px 30px !important;
    margin-top: 20px !important;
    
    /* Typography */
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    
    /* Shape & Border */
    border: none !important;
    border-radius: 50px !important;
    
    /* Effects */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(25, 145, 227, 0.2);
}

/* 2. Hover Effect - Switch to Brand Yellow for high contrast */
#place_order:hover,
.wc-block-components-checkout-place-order-button:hover {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 185, 0, 0.3);
}

/* 3. Style the "Terms and Conditions" checkbox area to match */
.woocommerce-checkout-payment .place-order {
    background-color: #f8fafc; /* Light gray background to separate the button area */
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

/* ============================================================
   ORDER RECEIVED - SUCCESS BUTTON
============================================================ */
.lp-btn-success {
    display: inline-block;
    background-color: var(--brand-blue); /* Your Primary Action Blue */
    color: var(--white) !important;
    
    /* Layout & Size */
    padding: 16px 32px;
    margin-top: 20px;
    
    /* Typography */
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Shape */
    border-radius: 50px; /* Modern pill shape */
    
    /* Animation & Shadow */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(25, 145, 227, 0.2);
    border: 2px solid transparent;
}

.lp-btn-success:hover {
    background-color: var(--brand-yellow); /* Trust Yellow on hover */
    color: var(--brand-dark) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 185, 0, 0.3);
}

/* Center the button if it's sitting alone */
.woocommerce-order-received .lp-btn-success {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* Privacy Policy Custom Styles */
.rma-policy-container {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 900px;
    /*margin: 0 auto;*/
    padding: 20px !important;
    text-align: left !important;
}

.rma-policy-container div, 
.rma-policy-container p, 
.rma-policy-container h3 {
    text-align: left !important;
    padding: 0 !important;
}

.rma-policy-date {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px !important;
}

.rma-policy-section {
    margin-bottom: 30px;
}

/*.rma-policy-box {*/
/*    background: #fafafa;*/
/*    padding: 25px !important;*/
/*    border-radius: 8px;*/
/*    border: 1px solid #eaeaea;*/
/*    margin-bottom: 30px;*/
/*}*/

/*.rma-policy-grid {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 20px;*/
/*    margin-bottom: 30px;*/
/*}*/

/*.rma-policy-card {*/
/*    flex: 1;*/
/*    min-width: 280px;*/
/*    padding: 20px !important;*/
/*    border: 1px solid #eee;*/
/*    border-radius: 8px;*/
/*}*/

/*.rma-policy-highlight {*/
/*    padding: 25px !important;*/
/*    background-color: #eef4f9;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 30px;*/
/*}*/

.rma-policy-container ul {
    padding-left: 20px !important;
    text-align: left !important;
    list-style-position: outside !important;
    margin-top: 10px;
}


/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    .lp-grid {
        grid-template-columns: 1fr;
    }
    
    .lp-section {
        padding: 60px 0;
    }
    
    .lp-hero {
        padding: 80px 0;
    }
}


/* Make entire page full width */
.site {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Main content container */
.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/*.site-branding {*/
/*    font-weight: 500;*/
/*    font-size: 20px;*/
/*}*/

/* HEADER (minimal, modern) */
.site-header {
    border-bottom: 1px solid #eee;
    background: var(--brand-navy);
    padding: 10px 0;
}

.site-header .site-branding img {
    height: auto;
    max-width: 80px;
    max-height: none;
    /*padding: 10px 20px;*/
}

/* Main menu link color */
.primary-navigation .menu > li > a {
    color: var(--white);
    font-weight: 500;
}

/* Hover + focus state */
.primary-navigation .menu > li > a:hover,
.primary-navigation .menu > li > a:focus {
    color: var(--brand-yellow);
}

/* Active/current menu item */
.site-header ul.menu li.current-menu-item > a,
.site-header ul.menu li.current_page_item > a,
.site-header ul.menu li > a[aria-current="page"] {
    color: var(--brand-yellow);
}

/* Optional: add subtle hover effect */
/*.primary-navigation .menu > li > a {*/
/*    transition: color 0.3s ease;*/
/*}*/

/* Header cart text */
.site-header-cart .cart-contents {
    color: var(--white);
}

/* Price + item count */
.site-header-cart .amount,
.site-header-cart .count {
    color: var(--white);
}

/* Hover state */
.site-header-cart .cart-contents:hover {
    color: var(--brand-yellow);
}

/* Remove focus outline from menu + cart */
.main-navigation a:focus,
.site-header-cart a:focus {
    outline: none;
}

/*.search-field::placeholder {*/
/*    content: "Search courses...";*/
/*}*/

/* --- LANDING PAGE STYLES --- */

.hp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    /*margin-top: 25px;*/
}

section {
    padding: 90px 0;
    text-align: center;
}

h1, h2, h3 {
    color: var(--brand-dark);
    font-weight: 800;
}

/* Hero Section: Professional Blue Gradient */
.hp-hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
    padding: 120px 0;
}

.hp-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

/* The Primary Button (Blue) */
.hp-btn-primary {
    background-color: var(--brand-blue) !important;
    color: var(--white) !important;
    padding: 18px 45px;
    border-radius: 50px; /* Rounded for a modern feel */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(1, 150, 252, 0.2);
}

.hp-btn-primary:hover {
    transform: scale(1.05);
    background-color: #0076c9 !important;
}

/* Trust Bar: Using the Yellow for energy */
/*.hp-trust {*/
/*    background: var(--brand-yellow);*/
/*    color: var(--brand-dark);*/
/*    padding: 20px 0;*/
/*    font-weight: 700;*/
/*    font-size: 1.1rem;*/
/*    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.05);*/
/*}*/

.hp-courses {
    margin-top: 35px;
}


/* Testimonial: Soft Blue BG with Yellow Icon */
/*.hp-testimonial-card {*/
/*    background: var(--brand-blue);*/
/*    color: white;*/
/*    padding: 60px;*/
/*    border-radius: 30px;*/
/*    max-width: 800px;*/
/*    margin: 0 auto;*/
/*    position: relative;*/
/*}*/

/*.hp-testimonial-card::before {*/
/*    content: "“";*/
/*    color: var(--brand-yellow);*/
/*    font-size: 5rem;*/
/*    position: absolute;*/
/*    top: 10px;*/
/*    left: 40px;*/
/*    font-family: serif;*/
/*    opacity: 0.5;*/
/*}*/

/*.hp-testimonial-card p {*/
/*    font-size: 1.5rem;*/
/*    font-weight: 500;*/
/*    line-height: 1.6;*/
/*}*/

/* CTA: Yellow Section to grab final attention */
/*.hp-cta {*/
/*    background-color: var(--brand-yellow);*/
/*    padding: 80px 0;*/
/*}*/

/*.hp-cta h2 {*/
/*    font-size: 2.5rem;*/
/*    margin-bottom: 30px;*/
/*}*/

/*.hp-cta .hp-btn-primary {*/
/*    background-color: var(--brand-dark) !important;*/
/*}*/

/* Woo Price Tag Adjustment */
.price {
    color: var(--brand-blue) !important;
}


/* --- WOOCOMMERCE COURSE CARD STYLING --- */

/* 1. The Card Container */
/*.hp-course-grid ul.products li.product {*/
/*    background: var(--white);*/
/*    padding: 15px;*/
/*    border-radius: 12px;*/
/*    border: 1px solid #eef2f6;*/
/*    transition: all 0.3s ease;*/
/*    box-shadow: 0 4px 15px rgba(0,0,0,0.03);*/
/*    overflow: hidden;*/
/*}*/

/*.hp-course-grid ul.products li.product:hover {*/
/*    transform: translateY(-8px);*/
/*    box-shadow: 0 12px 25px rgba(0,0,0,0.08);*/
/*    border-color: var(--brand-blue);*/
}

/* 2. Product Image */
.hp-course-grid ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 3. Course Title */
.hp-course-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
    padding: 0 5px;
}

/* 4. Price Tag - Using your Blue */
.hp-course-grid ul.products li.product .price {
    color: var(--brand-blue) !important;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px !important;
    display: block;
}

/* 5. The "Add to Cart" / "View Product" Button */
.hp-course-grid ul.products li.product .button {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border-radius: 6px;
    padding: 12px 20px;
    font-weight: 700;
    /*text-transform: uppercase;*/
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: 100%; /* Makes button full width of card */
    text-align: center;
    border: none;
    transition: background 0.3s ease;
}

.hp-course-grid ul.products li.product .button:hover {
    background-color: var(--brand-dark) !important; /* Switch to Navy on hover */
}

/* 6. On Sale Badge - Using your Yellow */
.hp-course-grid ul.products li.product .onsale {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 4px;
    top: 10px;
    right: 10px;
    left: auto;
    min-height: auto;
    line-height: 1.5;
}


/* Remove the default Storefront header cart and search */
/*.site-header-cart, */
/*.site-search {*/
/*    display: none !important;*/
/*}*/

/* --- COURSES (SHOP) PAGE CUSTOMIZATION --- */

/* Align the Page Title */
.post-type-archive-product .woocommerce-products-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-align: center;
    margin: 0;
}

/* Add a custom subtitle via CSS (optional) */
.post-type-archive-product .woocommerce-products-header::after {
    content: "Explore our world-class curriculum and start your journey.";
    display: block;
    text-align: center;
    color: var(--brand-grey);
    /*margin-bottom: 50px;*/
    font-size: 1.1rem;
}

/* Hide the "Showing all X results" and "Default Sorting" for a cleaner look */
.woocommerce-result-count, 
.woocommerce-ordering {
    margin-bottom: 30px !important;
    font-size: 0.9rem;
}

/* 2. Grid Layout Fixes */
.post-type-archive-product ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.post-type-archive-product ul.products li.product {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    margin-right: 0 !important; /* Fix Storefront spacing */
    width: calc(33.333% - 20px) !important;
    display: flex;
    flex-direction: column;
}

/* Mobile: 1 Column */
@media (max-width: 768px) {
    .post-type-archive-product ul.products li.product {
        width: 100% !important;
    }
}

/* 3. The "Course Card" Details */
.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    margin: 15px 0 10px;
    min-height: 55px; /* Keeps titles aligned */
    line-height: 1.4;
}

.post-type-archive-product ul.products li.product .price {
    font-size: 1.3rem;
    color: var(--brand-blue) !important;
    margin-bottom: 20px !important;
    font-weight: 800;
}

/* 4. The Action Button (Add to Cart) */
.post-type-archive-product ul.products li.product .button {
    background-color: var(--brand-blue) !important;
    color: white !important;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-top: auto; /* Pushes button to bottom of card */
}

.post-type-archive-product ul.products li.product .button:hover {
    background-color: var(--brand-dark) !important;
}

/* 5. Pagination (Matching your brand) */
.woocommerce-pagination ul.page-numbers {
    border: none !important;
    margin-top: 50px;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    border-radius: 4px;
    margin: 0 5px;
    border: 1px solid #ddd !important;
}

.woocommerce-pagination ul.page-numbers li span.current {
    background: var(--brand-blue) !important;
    color: white !important;
    border-color: var(--brand-blue) !important;
}

/* --- CLEAN BRAND STYLING FOR CART BLOCKS --- */

/* 1. Item Cards */
.wc-block-cart-items__row {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    margin-bottom: 15px !important;
    padding: 20px !important;
}

/* 2. Brand Colors for Text & Prices */
.wc-block-components-product-name,
.wc-block-components-totals-item__label {
    font-weight: 700 !important;
    color: var(--brand-dark) !important;
}

.wc-block-components-totals-item__value, 
.wc-block-components-totals-footer-item__value {
    color: var(--brand-blue) !important;
    font-weight: 800 !important;
}

/* 3. The Sidebar Styling (Without forcing position) */
.wp-block-woocommerce-cart-totals-block {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 15px !important;
    border-top: 5px solid var(--brand-blue) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* 4. The Big Action Button */
.wc-block-cart__submit-button {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 20px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.3s ease !important;
}

.wc-block-cart__submit-button:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 150, 252, 0.3) !important;
}

/* --- STYLE THE REMOVE BUTTON --- */

.wc-block-cart-item__remove-link {
    /* Reset default button/link styles */
    display: inline-block !important;
    appearance: none;
    -webkit-appearance: none;
    background-color: #e11d48 !important; /* Professional Danger Red */
    color: #ffffff !important;
    
    /* Mirroring your Submit/Enroll buttons */
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px !important; /* Matching your brand radius */
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    
    /* Spacing */
    margin-top: 10px !important;
    width: fit-content !important;
}

.wc-block-cart-item__remove-link:hover {
    background-color: #be123c !important; /* Darker Red on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

.wc-block-cart-item__remove-link:active {
    transform: translateY(0);
}

/* Ensure the container doesn't squash the new button */
.wc-block-cart-item__product {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns button to the left under the title */
    gap: 8px;
}


/* --- EMPTY CART STATE STYLING --- */

/* The main title */
.wc-block-cart__empty-cart__title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--brand-dark) !important;
    /*margin-top: 40px !important;*/
}

/* The horizontal divider dots */
.wp-block-separator.is-style-dots {
    color: var(--brand-blue) !important;
    font-size: 2rem !important;
}

/* The "New in Store" Heading */
.woocommerce-cart .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 60px 0 30px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Grid Container */
.wc-block-grid__products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
    justify-content: center;
}

/* Individual Product Card */
.wc-block-grid__product {
    background: #fff !important;
    border: 1px solid #eef2f6 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s ease !important;
    text-align: center;
    list-style: none !important;
}

.wc-block-grid__product:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue) !important;
}

/* Image & Title */
.wc-block-grid__product-image {
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

.wc-block-grid__product-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: var(--brand-dark) !important;
}

/* Price Styling */
.wc-block-grid__product-price.price {
    color: var(--brand-blue) !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    margin-bottom: 20px !important;
}

/* Sale Badge (Yellow) */
.wc-block-grid__product-onsale {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
}


/* 5. Header Cleanup (Search & Cart) */
/*.site-search, */
/*#site-header-cart {*/
/*    display: none !important;*/
/*}*/

/* Ensure the logo looks clean */
/*.custom-logo {*/
/*    max-height: 80px;*/
/*    width: auto;*/
/*}*/


/**/

/* Remove the Search bar from the header */
/*.site-search {*/
/*    display: none !important;*/
/*}*/

/* Remove the secondary floating cart in the header */
/*#site-header-cart {*/
/*    display: none !important;*/
/*}*/

/* Ensure the Primary Navigation is tidy */
/*.storefront-primary-navigation {*/
/*    background: #ffffff;*/
/*    border-bottom: 1px solid #f0f0f0;*/
/*}*/

/* Fix logo size if it appears too large */
/*.custom-logo {*/
/*    max-width: 200px;*/
/*    height: auto;*/
/*}*/

/* Empty Cart 'New in Store' Button */
.wc-block-grid__product-add-to-cart a {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border-radius: 5px !important;
    font-weight: 700;
}

.wc-block-grid__product-onsale {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark) !important;
}



/*ORDER RECEIVED PAGE*/
/* PAGE BACKGROUND */
body.woocommerce-order-received {
    background: #f6f9fc;
}

/* MAIN CONTAINER */
.thankyou-container {
    max-width: 600px;
    margin: 60px auto;
}

/* SUCCESS HEADER */
.woocommerce-order-received .woocommerce-order {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* SUCCESS TEXT */
.woocommerce-order-received h2,
.woocommerce-order-received h3 {
    text-align: center;
}

/* ORDER TABLE */
.woocommerce-order-details {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

/* REMOVE CLUTTER */
.woocommerce-order-overview {
    list-style: none;
    padding: 0;
    text-align: center;
}

/* BUTTON STYLE */
.return-to-shop a {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 14px;
    background: #635bff;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}

/* Hide navigation + cart ONLY on order received page */
body.woocommerce-order-received .main-navigation,
body.woocommerce-order-received .site-header-cart {
    display: none !important;
}

/* Hide billing + shipping address block */
body.woocommerce-order-received .woocommerce-customer-details {
    display: none !important;
}

/*hide the “Built with WooCommerce” link*/
/*.site-info a[href*="woocommerce.com"] {*/
/*    display: none;*/
/*}*/


.site-footer {
    background: #566686;
    color: #e5e7eb;
}

.footer-custom {
    padding: 20px 0;
    /*background: #0f172a;*/
    /*color: #e5e7eb;*/
}

.footer-custom .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

/* Social icons */
.social-icons {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.social-icons li a {
    /*color: #cbd5f5;*/
    /*color: #e5e7eb;*/
    font-size: 18px;
    transition: 0.3s;
}

.social-icons li a:hover {
    color: var(--brand-yellow);
}

.site-footer a:not(.button):not(.components-button) {
     color: #e5e7eb; 
}

/* Mobile */
@media (max-width: 768px) {
    .footer-custom .row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


/* Adjust navigation to fill the space or stay centered */
@media (min-width: 768px) {
    .main-navigation {
        width: auto;
        float: right; /* Keeps menu on the right, or use 'left' if preferred */
    }
    
    /* Fix for Storefront grid gaps */
    .hp-course-grid ul.products {
        display: flex;
        gap: 20px;
    }
    .hp-course-grid ul.products li.product {
        margin-right: 0 !important; /* Removes Storefront's old float margins */
        width: calc(33.333% - 14px) !important;
    }


    /* Responsive: Stack them on Mobile */
    .hp-step-grid {
        flex-direction: column !important; 
    }
    
    .hp-step-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .site-branding, .site-search, .site-header-cart, .site-logo-anchor, .site-logo-link, .custom-logo-link {
        margin-bottom: 0 !important;
    }
}