﻿.shopping-subtotal {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
}

/* ===== Footer Responsive Fixes ===== */
.site-footer .widget {
    margin-bottom: 0;
}
.site-footer .widget-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.site-footer .widget-links ul {
    padding-left: 0;
}
.site-footer .widget-links ul li {
    padding: 4px 0;
}
.site-footer .widget-links ul li a {
    font-size: 14px;
}
.footer-copyright {
    font-size: 13px !important;
}
.footer-copyright a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.25s;
}
.footer-copyright a:hover {
    color: #0da9ef;
}

/* ===== General Responsive Fixes ===== */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
}

/* ===== Button Alignment & Consistency ===== */

/* Smooth hover lift on all buttons */
.btn {
    transition: background 0.25s, box-shadow 0.25s, transform 0.15s, border-color 0.25s;
}
.btn:hover, .btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover, .btn-primary:focus {
    box-shadow: 0 4px 14px rgba(13,169,239,0.35);
}
.btn-success:hover, .btn-success:focus {
    box-shadow: 0 4px 14px rgba(67,217,163,0.35);
}

/* .btn-default — missing from theme, mirrors .btn-outline-secondary */
.btn-default {
    border-color: #d0d5e0;
    background-color: transparent;
    color: #606975;
}
.btn-default:hover, .btn-default:focus {
    background-color: #f5f5f5;
    border-color: #c0c7d3;
    color: #495059;
}

/* .btn-outline (bare, no variant) — acts like outline-primary */
.btn-outline {
    border-color: #0da9ef;
    background-color: transparent;
    color: #0da9ef;
}
.btn-outline:hover, .btn-outline:focus {
    background-color: #0da9ef;
    color: #ffffff;
}

/* Card footer buttons */
.card-footer .btn {
    display: inline-block;
    min-width: 140px;
}
.card-footer {
    text-align: right;
    padding: 16px 20px;
}

/* ===== Hero Banner Buttons ===== */
.banner-details .btn {
    height: 48px;
    line-height: 46px;
    padding: 0 30px;
    font-size: 14px;
    letter-spacing: .08em;
    border-radius: 24px;
}

/* ===== Cart Quantity Buttons ===== */
.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d0d5e0;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}
.qty-btn:hover {
    background: #e0e0e0;
    border-color: #aab0bc;
}
.qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
}

/* Cart remove button */
.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s;
}
.remove-btn:hover {
    background: rgba(231,76,60,0.1);
    border-color: rgba(231,76,60,0.3);
}

/* ===== Checkout Pay Now ===== */
#pay-btn {
    height: 54px;
    line-height: 52px;
    font-size: 16px;
    padding: 0 24px;
    border-radius: 27px;
    margin-top: 20px;
}

/* ===== Form UX Improvements ===== */
.form-control {
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: #0da9ef;
    box-shadow: 0 0 0 3px rgba(13,169,239,0.15);
}
/* reCAPTCHA wrapper fix */
.recaptcha-wrap {
    margin: 16px 0;
}
/* Validation messages */
.text-danger.field-validation-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}
/* Form labels */
.form-group label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ===== Card Styling for User Forms ===== */
.card.mt-4, .login-box {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

/* ===== Loading Overlays ===== */
#store-loading, #pay-loading {
    background: rgba(0,0,0,0.65) !important;
}

/* ===== GM Panel Tables ===== */
.gm-table th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
}
.gm-table td {
    padding: 14px;
    vertical-align: middle;
}
.gm-row-inactive {
    opacity: 0.5;
}
.gm-table .btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin: 1px;
}

/* ===== Store Product Cards ===== */
.store-product-card .product-card-footer .btn {
    font-weight: 600;
    font-size: 14px;
}

/* ===== Order Card ===== */
.order-card-header {
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Checkout Sections ===== */
.checkout-section .table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
}

/* ===== Success/Receive Pages ===== */
.main-content {
    text-align: center;
    padding: 60px 20px;
}
.main-content__checkmark {
    font-size: 72px;
    color: #2ecc71;
    display: block;
    margin-bottom: 20px;
}
.main-content__body {
    font-size: 16px;
    color: #ccc;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Sidebar Active State ===== */
.sidebar .widget-categories li.active > a,
.sidebar .widget-categories li.active > span > a {
    color: #0da9ef;
    font-weight: 600;
}

/* ===== Mobile (max-width: 767px) ===== */
@media (max-width: 767px) {
    /* Footer stacks cleanly on mobile */
    .site-footer .col-lg-3 {
        text-align: center;
    }
    .site-footer .widget-title {
        margin-top: 10px;
    }
    .site-footer .social-button {
        margin: 0 5px;
    }

    /* Hero banner text sizing */
    .banner-details .title {
        font-size: 24px !important;
        line-height: 1.3;
    }
    .banner-details .details {
        font-size: 14px;
    }
    /* Hero buttons: keep pill shape, proper sizing for touch */
    .banner-details .btn {
        display: inline-block;
        height: 44px;
        line-height: 42px;
        padding: 0 24px;
        font-size: 13px;
        margin: 5px 4px;
    }

    /* Table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Screenshot grid fix */
    .padding-bottom-1x .col-sm-6 {
        padding: 5px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 12px;
    }

    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons full-width on mobile */
    .card-footer .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    .card-footer {
        text-align: center;
    }

    /* Touch-friendly quantity buttons */
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .remove-btn {
        width: 40px;
        height: 40px;
    }

    /* Cart table mobile */
    .cart-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* GM Panel table mobile */
    .gm-table {
        font-size: 12px;
    }
    .gm-table th, .gm-table td {
        padding: 10px 8px;
    }

    /* Order cards mobile */
    .order-card-header {
        flex-direction: column;
        gap: 6px;
    }
    .order-card-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .order-total {
        margin-left: 0 !important;
    }

    /* Checkout mobile */
    .checkout-section {
        padding: 16px;
    }
    .cart-summary-box {
        margin-top: 20px;
    }

    /* Checkout Pay Now mobile */
    #pay-btn {
        height: 50px;
        line-height: 48px;
    }

    /* Store filter tabs scroll */
    .store-filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .store-tab-btn {
        margin-bottom: 6px;
    }

    /* All links styled as buttons: stack on mobile */
    .text-center .btn {
        margin: 4px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .banner-details .title {
        font-size: 32px !important;
    }
    .site-footer .row {
        justify-content: center;
    }
}

/* Rankings sidebar responsive */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 30px;
    }
}

/* =========================
   THEME TOGGLE
========================= */

.toolbar {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.theme-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: #b9c5d3;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.theme-toggle:hover {
    color: #ffffff;
    border-color: #19aeef;
}


/* =========================
   DARK MODE
========================= */

body.dark-mode {
    background: #11161c;
    color: #c8d0d9;
}

body.dark-mode header {
    background: #11161c;
}

body.dark-mode .theme-toggle {
    color: #ffd35a;
}


/* Sol cuando está oscuro */

body.dark-mode .theme-toggle i:before {
    content: "\f185";
}


/* =========================
   TRANSITION
========================= */

body,
header,
section,
main,
footer,
.card,
.container,
.panel,
.box {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}
