/*
Theme Name: Cyberport-new
Text Domain: cyberport-new

Tags: e-commerce, custom-menu, custom-logo, featured-images, footer-widgets, theme-options, translation-ready, blog, right-sidebar, sticky-post , threaded-comments
*/

:root {
    /* --- Colors from src/index.css --- */
    /* Primary - Electric Blue (hsl(217 91% 50%)) */
    --bs-primary: #0b63e5;
    --bs-primary-rgb: 11, 99, 229;

    /* Secondary - Light Gray (hsl(220 14% 96%)) */
    --bs-secondary: #f1f5f9;
    --bs-secondary-rgb: 241, 245, 249;

    /* Foreground / Text */
    --bs-body-color: #1a1a2e;
    /* approximate from 240 10% 10% */
    --muted-foreground: #64748b;
    /* from 220 9% 46% */

    /* UI Elements */
    --radius: 0.75rem;
    /* 12px */
    --shadow-product: 0 8px 30px rgba(11, 99, 229, 0.08);
}

/* --- Global Typography --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Utility Classes (Mapped from your index.css) --- */
.container-wide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* --- Component Styles --- */
/* Replicating .product-card from your CSS */
.product-card {
    background-color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease-out;
}

.product-card:hover {
    box-shadow: var(--shadow-product);
    transform: translateY(-4px);
}

.product-card .img-wrapper img {
    transition: transform 0.5s ease;
}

.product-card:hover .img-wrapper img {
    transform: scale(1.05);
}

/* Badge Styles */
.badge-custom {
    position: absolute;
    top: 0.75rem;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 9999px;
    z-index: 10;
}

/* --- Shop Sidebar Widgets --- */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--bs-body-color);
    transition: color 0.2s;
}

.widget ul li:hover {
    color: var(--bs-primary);
}

.widget ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 0.95rem;
}

/* Count bubbles */
.widget .count {
    background: var(--bs-secondary);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Price Slider Overrides */
.price_slider_wrapper .ui-slider {
    background-color: var(--bs-secondary);
    border-radius: 10px;
    height: 6px;
    margin-bottom: 1rem;
}

.price_slider_wrapper .ui-slider-range {
    background-color: var(--bs-primary);
}

.price_slider_wrapper .ui-slider-handle {
    background-color: #fff;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    top: -6px;
}

/* Active Filters Chip Style */
.widget_layered_nav_filters ul li {
    display: inline-block;
    margin-right: 5px;
}

.widget_layered_nav_filters ul li a {
    background: var(--bs-secondary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.widget_layered_nav_filters ul li a:before {
    content: "\00d7";
    /* X symbol */
    font-size: 1.2rem;
    line-height: 0.5;
}

/* --- Pagination Styles --- */

/* Reset List Styles */
ul.page-numbers {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* The Buttons (Numbers & Arrows) */
ul.page-numbers li a,
ul.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    /* Lovable Radius */
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    /* Light Gray Border */
    background-color: #ffffff;
    color: var(--bs-body-color);
}

/* Hover State */
ul.page-numbers li a:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

/* Active State (Current Page) */
ul.page-numbers li span.current {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(11, 99, 229, 0.3);
}

/* Fix SVG alignment in arrows */
ul.page-numbers li svg {
    width: 1.2em;
    height: 1.2em;
}

/* --- About / Contact Styles --- */

/* Hover Effect for Feature Cards */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Contact Cards (Negative Margin for overlap effect) */
.mt-n5 {
    margin-top: -3rem;
}

/* Custom Accordion Styles */
.custom-accordion .accordion-button {
    background-color: #fff;
    color: var(--bs-body-color);
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    /* Light Gray */
    color: var(--bs-primary);
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Container Spacing */
.product-card-style .slider-item {
    padding-bottom: 30px;
    /* Space for shadow */
    padding-top: 10px;
}

/* The Card Style */
.product-card-style .custom-card-wrapper {
    background: #fff;
    border-radius: 16px;
    /* Matching the image's roundness */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card-style .custom-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Center the icons inside the buttons */
.featured-slick-slider .slick-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    position: absolute;
    top: 50%;
    z-index: 5;
    transition: all 0.3s ease;
    color: #333;
    /* Icon color */
}

/* Icon Size */
.featured-slick-slider .slick-arrow i {
    font-size: 1.2rem;
    line-height: 1;
}

/* Hover State - Matching the Blue from your image */
.featured-slick-slider .slick-arrow:hover {
    background: #0d6efd;
    color: #fff;
}

/* Positioning adjustments */
.featured-slick-slider .slick-prev {
    left: -22px;
}

.featured-slick-slider .slick-next {
    right: -22px;
}

.woocommerce-product-details__short-description .card {
    border: none;
}

.woocommerce-product-details__short-description .card .card-body {
    padding: 0;
}

.woocommerce-product-details__short-description {
    border: none !important;
    padding: 0 !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.woocommerce-product-details__short-description .row.mb-3,
.woocommerce-product-details__short-description p {
    margin-bottom: 0px !important;
}

.single-product .onsale {
    display: none;
}

html {
    scroll-padding-top: 80px;
}

.single-product .discount-glider .slick-slide {
    padding: 0 12px;
    /* adjust gap here */
}

/* Prevent extra space on the edges */
.single-product .discount-glider .slick-list {
    margin: 0 -12px;
}

/* Wrapper */
.woocommerce-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 20px;
    margin-bottom: 24px;

    background: #ecfdf3;
    border: 2px solid #0f172a;
    border-radius: 10px;

    color: #0f172a;
    font-size: 15px;
    line-height: 1.4;
}

/* Left content (icon + text) */
.woocommerce-message::before {
    content: "";
}

/* Text block */
.woocommerce-message>*:not(.button) {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Check icon */
.woocommerce-message>*:not(.button)::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    min-width: 22px;

    background: #22c55e;
    color: #fff;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
}

/* Product name emphasis */
.woocommerce-message strong {
    font-weight: 600;
}

/* Button (Warenkorb anzeigen) */
.woocommerce-message .button {
    margin: 0;
    padding: 8px 14px;

    background: #e5e7eb;
    color: #0f172a;

    border-radius: 6px;
    border: none;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.woocommerce-message .button:hover {
    background: #d1d5db;
}

.cart-toast {
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: .5rem;

    background: #212529;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .5rem;

    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;

    transition: all .3s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast i {
    color: #28a745;
}

/* 1. Prevent WooCommerce default floats */
.woocommerce-mini-cart-item img {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 2. Style the remove button specifically */
.woocommerce-mini-cart-item .remove_from_cart_button {
    position: relative;
    z-index: 10;
    transition: color 0.2s;
}

.woocommerce-mini-cart-item .remove_from_cart_button:hover {
    color: #000 !important;
}

/* 3. Cleanup default button wrapper padding */
.woocommerce-mini-cart__buttons {
    padding: 0 !important;
    margin: 0 !important;
}

/* 4. Scrollbar for long lists */
.widget_shopping_cart_content .cart_list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

.cartdrop .dropdown-toggle::after {
    display: none;
}

.added_to_cart.wc-forward {
    display: none !important;
}

.btn-primary {
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #0d6efd !important;
    --bs-btn-border-color: #0d6efd !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #0b5ed7 !important;
    --bs-btn-hover-border-color: #0a58ca !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #0a58ca !important;
    --bs-btn-active-border-color: #0a53be !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #0d6efd !important;
    --bs-btn-disabled-border-color: #0d6efd !important;
}

.btn {
    --bs-btn-padding-x: 0.75rem !important;
    --bs-btn-padding-y: 0.375rem !important;
    --bs-btn-font-size: 1rem !important;
    --bs-btn-font-weight: 400 !important;
    --bs-btn-line-height: 1.5 !important;
    --bs-btn-border-width: 1px !important;
}

/* Progress Bar Styling */
.checkout-steps-nav {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.step-link {
    text-align: center;
    flex: 1;
    position: relative;
    opacity: 0.3;
}

.step-link.active {
    opacity: 1;
}

.step-link .num {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 5px;
    font-weight: bold;
}

.step-link .lbl {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Hide default WC billing heading in step 2 if needed */
#step-section-2 .woocommerce-billing-fields h3 {
    display: none;
}

.checkout-button {
    background-color: #0d6efd !important;
}

.checkout-button:hover {
    background-color: #0b5ed7 !important;
}

/* Ensure the dropdown stays full-width */
.navbar .dropdown-menu {
    border-radius: 0 0 1rem 1rem;
    top: 100%;
}

/* Hover effect for subcategories */
.hover-primary:hover {
    color: var(--bs-primary) !important;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Technical fix for Bootstrap Mega Menu */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Category column styling */
.col-md-3 h6 {
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

@media (min-width: 992px) {
    .dropdown-menu.mega-menu {
        margin-top: 0;
    }
}
.cartdrop:hover .dropdown-menu{
    left: auto;
    right: 0;
}