/* =========================================
   Layout & Structural Styles
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


html,
body {

    width: 100%;
}

/* Main Container Definition */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Full-width container (no max-width, edge-to-edge with padding) */
.container-fluid {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flexbox Utilities */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-end {
    justify-content: flex-end;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-around {
    justify-content: space-around;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-center {
    align-items: center;
}

.align-items-stretch {
    align-items: stretch;
}

.align-self-center {
    align-self: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid System (Simple) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -7px;
    margin-left: -7px;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    position: relative;
    width: 100%;
    padding-right: 7px;
    padding-left: 7px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* Margins */
.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.ml-4 {
    margin-left: 1.5rem !important;
}

.ml-5 {
    margin-left: 3rem !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.mr-5 {
    margin-right: 3rem !important;
}

/* Paddings */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pl-1 {
    padding-left: 0.25rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

.pl-3 {
    padding-left: 1rem !important;
}

.pl-4 {
    padding-left: 1.5rem !important;
}

.pl-5 {
    padding-left: 3rem !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.pr-1 {
    padding-right: 0.25rem !important;
}

.pr-2 {
    padding-right: 0.5rem !important;
}

.pr-3 {
    padding-right: 1rem !important;
}

.pr-4 {
    padding-right: 1.5rem !important;
}

.pr-5 {
    padding-right: 3rem !important;
}

/* Utilities */
.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #856404 !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.fs-small {
    font-size: 0.875rem !important;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Auto Margins */
.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

/* Sizing Utilities */
.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

/* =========================================
   Shop Loop Product Styles
   ========================================= */

/* Ensure relative positioning for badges */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
    overflow: visible !important;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    display: block;
    position: relative;
    text-decoration: none;
}

/* Badges Container */
.product-badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    pointer-events: none;
}

.product-badges-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* Base Badge Styles */
.product-badges-container .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1;
    pointer-events: auto;
}

/* Sale Text Badge (Top Right) */
.product-badges-container .sale-text-badge {
    background: #ff4136;
    /* Red */
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    order: 2;
    margin-left: auto;
    /* Pushes to right if alone */
}

/* Etiqueta "Nuevo" — rectangular, mismo rojo que el porcentaje (#ff0000) */
.product-badges-container .product-badge-new {
    background: #ff0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
}

/* Oferta -X% — rectangular (mismo rojo que antes) */
.product-badges-container .sale-offer-badge {
    background: #ff0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
    order: 1;
}

/* "Nuevo" en sliders (product-card) y galería single product (fuera del contenedor de tienda) */
.product-image-wrapper > .badge.product-badge-new,
.lsktienda-main-image-wrapper > .badge.product-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
    background: #ff0000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.25);
    pointer-events: none;
}

.lsktienda-main-image-wrapper > .badge.product-badge-new {
    top: 15px;
    left: 15px;
}

/* Out of Stock Badge (Top Left) */
.product-badges-container .out-of-stock-circular-badge {
    background: #fff;
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    order: 1;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 0.9;
}

.product-badges-container .out-of-stock-circular-badge span {
    display: block;
}

/* Product Content Typography */
.woocommerce ul.products li.product .woocommerce-loop-product__title {

    font-size: 16px;
    text-decoration: none;
}

.woocommerce ul.products li.product .product-loop-categories {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    list-style: none;
    padding: 0;
    line-height: 1.4;
}

.woocommerce ul.products li.product .product-loop-categories a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce ul.products li.product .product-loop-categories a:hover {
    color: #555;
    text-decoration: underline;
}

/* Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #EABE12 !important;
}

.woocommerce ul.products li.product .star-rating::before {
    color: #e0e0e0;
}

/* Price */
.woocommerce ul.products li.product .price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ff0000 !important;
    display: flex;
    gap: 8px;
    /* Space between old and new price */
    align-items: baseline;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price del {
    color: #8a8a8a;
    font-weight: 500;
    font-size: 14px;
    text-decoration: line-through;
    opacity: 1;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    background: transparent;
    color: #ff0000;
}

/* Grid Toggles Active State */
.layout-toggle.active svg {
    stroke: #000;
    /* Active color */
}

.layout-toggle svg {
    stroke: #999;
    /* Inactive color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-badges-container .sale-text-badge {
        font-size: 11px;
        padding: 4px 8px;
    }

    .product-badges-container .product-badge-new,
    .product-image-wrapper > .badge.product-badge-new,
    .lsktienda-main-image-wrapper > .badge.product-badge-new {
        font-size: 14px;
        padding: 5px 10px;
    }

    .product-badges-container .sale-offer-badge {
        font-size: 14px;
        padding: 5px 10px;
    }

    .product-badges-container .out-of-stock-circular-badge {
        width: 38px;
        height: 38px;
        font-size: 11px;
    }
}

/* =========================================
   Custom Header Styles - Added by Antigravity
   ========================================= */


/* Top Bar Construction */
.top-bar {
    background-color: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 0;
    letter-spacing: 1px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 0;
    width: 100%;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 0;
    min-width: 100%;
    animation: scroll 70s linear infinite;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span {
    padding: 0 40px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Main Header Layout */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header {
    padding: 5px 0;
}

.header-container {
    position: relative;
    min-height: 50px;
}

/* Logo */
.site-branding {
    margin-right: 30px;
}

.site-branding .custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Navigation (Desktop) */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin-right: 30px;
}

.main-navigation a {
    color: #222;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    border-bottom-color: #d4af37;
    /* Gold accent color */
}

/* Header Actions */
.header-actions .header-search,
.header-actions .header-account-container {
    margin-right: 20px;
}

/* Account Dropdown (Desktop) */
.header-account {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.account-link-trigger {
    color: #222;
    transition: color 0.2s;
}

.account-link-trigger:hover {
    color: #d4af37;
}

@media (min-width: 992px) {
    .header-account:hover .account-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 200px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1100;
}

/* Triangular pointer for dropdown */
.account-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 15px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu-item a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background 0.2s;
}

.account-menu-item a:hover {
    background: #f9f9f9;
    color: #d4af37 !important;
}

.account-menu-item.is-active a {
    color: #d4af37 !important;
}

/* Login Modal */
.login-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.login-modal-content {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.login-modal.active .login-modal-content {
    transform: translateY(0);
}

.login-modal-header {
    margin-bottom: 30px;
}

.login-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.login-modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

/* AJAX Login Status Messages */
.login-status-message {
    margin-bottom: 20px;
    display: none;
}

.login-status-message.loading,
.login-status-message.success,
.login-status-message.error {
    display: block;
}

.status-loading {
    color: #666;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.status-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.status-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

/* WooCommerce Login Form Adjustments in Modal */
.login-modal-body form {
    border: none;
    padding: 0;
    margin: 0;
}

.login-modal-body .form-row {
    margin-bottom: 20px;
}

.login-modal-body input.input-text {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.login-modal-body .button {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Header Cart */
.header-cart .cart-contents {
    text-decoration: none;
    color: #222;
}

/* Order: Icon Left, Price Right */
.header-cart .amount {
    order: 2;
    margin-left: 12px;
    font-weight: 700;
    font-size: 14px;
}

.header-cart .cart-icon-container {
    order: 1;
    position: relative;
}

.header-cart .cart-icon-container svg {
    width: 24px;
    height: 24px;
}

.header-cart .count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    width: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
}

/* Mobile Menu Toggle Button */
.menu-toggle-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
}

/* Mobile Menu Modal (Off-canvas) */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-modal.active {
    visibility: visible;
}

body.mobile-menu-open,
body.search-modal-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-modal.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    /* Removed global padding */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-modal.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #efefef;
    padding: 15px;
    /* Added internal padding */
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.menu-close-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-navigation li:last-child {
    border-bottom: none;
}

.mobile-navigation a {
    color: #222;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    /* Added side padding to links */
    transition: color 0.2s ease;
}

.mobile-navigation a:hover {
    color: #d4af37;
}

.mobile-menu-footer {
    border-top: 1px solid #efefef;
    padding: 20px;
    /* Added internal padding */
    margin-top: auto;
}

/* Cart Side Modal (Right to Left) */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal.active {
    visibility: visible;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-modal.active .cart-modal-overlay {
    opacity: 1;
}

.cart-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 370px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-modal.active .cart-modal-content {
    transform: translateX(0);
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.cart-modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.cart-modal-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent the body itself from scrolling */
    padding: 0;
    /* Remove padding to handle it internally for the scroll list */
}


body.cart-modal-open {
    overflow: hidden;
}

/* Side Cart specific WooCommerce styles */
.cart-modal-body .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.cart-modal-body .woocommerce-mini-cart {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    flex-grow: 1;
    /* This area will have the scroll */
}

#shipping_method input.shipping_method {
    position: relative;
    top: 4px;
    float: right;
    margin-inline-end: 0;
    margin-inline-start: 7px;
}

.woocommerce-shipping-methods li {
    list-style: none;
    margin-bottom: 10px;
    color: #222;
}

.wc_payment_methods.payment_methods.methods,
.woocommerce-shipping-methods {
    margin: 0px;

}

.cart-modal-body .woocommerce-mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f2f2f2;
    position: relative;
}

.cart-modal-body .mini-cart-item-image {
    flex-shrink: 0;
    width: 80px;
}

.cart-modal-body .mini-cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.cart-modal-body .mini-cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-right: 25px;
    /* Space for remove button */
}

.cart-modal-body .product-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #222;
    text-decoration: none;
    margin-bottom: 5px;
}

.cart-modal-body .woocommerce-mini-cart-item .quantity {
    display: block;
    font-size: 14px;
    color: #999;
}

.cart-modal-body .woocommerce-mini-cart-item del .amount {
    color: #999;
    font-weight: 400 !important;
    font-size: 13px;
}


.cart-modal-body .mini-cart-item-details a.remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    color: #999 !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cart-modal-body .mini-cart-item-details a.remove:hover {
    background: #000;
    color: #fff !important;
}

.cart-modal-body .woocommerce-mini-cart__total {
    border-top: 2px solid #f2f2f2;
    border-bottom: 2px solid #f2f2f2;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 0px;
    /* Push to bottom if list is short */
}

.cart-modal-body .woocommerce-mini-cart__total strong {
    font-size: 16px;
    text-transform: uppercase;
    color: #222;
}

.cart-modal-body .woocommerce-mini-cart__total .amount {
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.cart-modal-body .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
    background: #fff;
    flex-shrink: 0;
    margin: 0;
}

.cart-modal-body .woocommerce-mini-cart__buttons a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}

/* Ver carrito: mismo estilo que "Añadir al carrito" en ficha */
.cart-modal-body .woocommerce-mini-cart__buttons a.button:not(.checkout) {
    background-color: #e1edfb;
    color: #2c82f9;
}

.cart-modal-body .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
    background-color: #d4e4f8;
    color: #2c82f9;
    filter: none;
}

/* Finalizar compra: mismo estilo que "Comprar ahora" */
.cart-modal-body .woocommerce-mini-cart__buttons a.button.checkout {
    background-color: #3483fa;
    color: #fff;
}

.cart-modal-body .woocommerce-mini-cart__buttons a.button.checkout:hover {
    background-color: #256ee0;
    color: #fff;
    filter: none;
}

.mobile-account-link {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* Mobile Styling Fixes */
@media (max-width: 767px) {
    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
    }

    .header-actions .header-search {
        margin-right: 15px;
    }

    .header-cart .amount {
        display: none;
        /* Hide amount on mobile */
    }
}

/* =========================================
   Search Modal Styles
   ========================================= */

/* Button Reset (Shared with Search) */
.search-toggle,
.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.search-toggle:hover,
.search-close:hover {
    color: #000;
    transform: scale(1.1);
}

/* Search Modal Specific Overlay */
.search-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    padding: 20px;
    align-items: center;
    justify-content: center;

    /* Animation base */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content Box */
.search-modal-content {
    width: 100%;
    max-width: 670px;
    min-height: 500px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    position: relative;
    overflow-y: auto;

    /* Entrance Animation */
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

/* Modal Header & Form */
.search-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #f5f5f5;
    padding: 10px;
}

.search-form-modal {
    flex-grow: 1;
    margin-right: 25px;
}

.search-form-modal label {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
}

.search-form-modal input.search-field-modal {
    width: 100%;
    border: none;
    font-size: 16px;
    padding: 5px 5px 5px 30px;
    outline: none;
    background: transparent;
    font-weight: 400;
    color: #222;
}

.search-field-modal::placeholder {
    color: #ddd;
}

/* Suggestions Grid */
.suggestions-section {
    padding-top: 10px;
}

.suggestions-title {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 400;
}

.suggestion-item {
    margin-bottom: 30px;
}

.suggestion-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.suggestion-link:hover {
    transform: translateY(-5px);
}

.suggestion-image img {
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    margin-top: -5px;
}

.suggestion-title {
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.4;
    color: #333;
}

.suggestion-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* AJAX Search Additional Styles */
.search-loading {
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 16px;
    font-weight: 500;
}

.no-results {
    padding: 60px 0;
    text-align: center;
    color: #777;
    font-size: 18px;
    font-weight: 300;
}

.view-all-results {
    display: inline-block;
    padding: 14px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-top: 20px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-all-results:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Search Modal Mobile Resp */
@media (max-width: 768px) {
    .search-modal {
        padding: 0;
    }

    .search-modal-content {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 20px;
        min-height: 100vh;
    }

    .search-field-modal {
        font-size: 18px;
        padding-left: 35px;
    }

    .suggestions-grid {
        margin-left: -10px;
        margin-right: -10px;
    }

    .suggestion-item {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 20px;
    }

    .suggestion-title {
        font-size: 13px;
    }

    .suggestion-price {
        font-size: 14px;
    }

    .suggestions-title {
        margin-bottom: 15px;
    }

    .main-navigation {
        display: none !important;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #000;
    /* Black background */

    border-top: 5px solid #d4a76a;
    /* Darker border */
    color: #fff;
    /* White text */
    font-size: 14px;


}

.footer-top {
    padding-bottom: 40px;
    padding-top: 60px;
}

.footer-col {
    margin-bottom: 30px;
}

.footer-logo {
    max-height: 90px;
    width: auto;
    margin-bottom: 25px;
    display: block;
    /* Ensure logo is white if it's black */
}

.site-title-footer {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: block;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-menu li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #242424;
    width: 100%;
    /* Ensure full width inside container */
    max-width: 1200px;
    /* Or whatever your container max-width is */
    margin: 0 auto;
}

.footer-bottom a {
    color: #fff;
    transition: color 0.3s ease;
    margin-top: 6px;
}

.footer-bottom a:hover {
    color: #ccc;
}

.copyright {
    font-size: 13px;
    color: #999;
}

@media (max-width: 991px) {
    .site-footer {
        padding: 40px 15px 30px;
        text-align: center;
    }

    .footer-top {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    .footer-col {
        text-align: left;
        /* Menu columns look better left-aligned on mobile grid */
    }

    .brand-col {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-widget-title {
        margin-top: 10px;
        font-size: 15px;
        /* Slightly smaller titles for mobile grid */
    }

    .footer-menu li a {
        font-size: 14px;
    }

    .footer-bottom {
        justify-content: center !important;
        gap: 15px;
    }

    .footer-left-content {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Free Shipping Progress Bar */
/* Main container for cart */
.shipping-progress-container {
    padding: 20px;
    padding-top: 0px;
    flex-shrink: 0;
}

/* Specific container for Single Product (Image design) */
.single-product-shipping-bar {
    border: 2px dashed rgba(0, 0, 0, 0.105);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.single-product-shipping-bar .shipping-text {
    font-size: 14px;
    margin-top: 0px;
    color: #555;
}

.single-product-shipping-bar .progress-bar-bg {
    height: 7px;
    border-radius: 2px;
}

.shipping-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.shipping-text strong {
    color: #222;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #f0f6ff;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #7eb3fc;
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.35) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0.35) 75%,
            transparent 75%,
            transparent);
    background-size: 40px 40px;
    transition: width 0.5s ease;
    animation: progress-bar-stripes 2s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }

    to {
        background-position: 0 0;
    }
}

/* Global Buttons */
.button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    line-height: 1;
}

.button.primary {
    background-color: #d4a76a;
    color: #fff;
}

.button.primary:hover {
    background-color: #c89a5b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 167, 106, 0.3);
}