/* Overrides can be added here if needed. Intentionally left minimal to follow template closely. */

/* Ensure base font smoothing and consistent body bg */
html.darkmode[data-theme="light"] body { -webkit-font-smoothing: antialiased; }

/* Scale the replacement logo consistently across the UI */
.navbar-sticky .logo img,
.slide-bar .info-widget > img {
    max-height: 48px;
    width: auto;
}

/* Footer refresh */
.footer-feature-card {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.footer-feature-icon {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.footer-feature-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.footer-feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #0f172a;
    text-transform: uppercase;
}

.footer-feature-copy {
    color: #475569;
    font-size: 0.9375rem;
}

.footer-utility .btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.footer-payment-icons i {
    font-size: 1.65rem;
    color: #0f172a;
    opacity: 0.7;
}

.footer-payment-icons i:hover {
    opacity: 1;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
}

.footer-bottom-inner .link-secondary:hover {
    color: #0f172a;
}

/* cart-bar: reduce padding from 20px (override main.css / _base.scss) */
.cart-bar {
    padding: 12px !important;
}

/* cart-bar: remove form.quantity-pill's outer "pill" (border/radius/bg) so only .product-card__quantity-control shows the 102×27.2 box (85% of 120×32) */
.cart-bar form.quantity-pill {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* cart-bar .product-card__quantity-control — same visual design as /shop product-card;
   this file loads after main.css so it becomes the final override on all pages */
.cart-bar .product-card__quantity-control.input-group {
    min-width: 120px !important;
    max-width: 120px !important;
    width: 120px !important;
    height: 32px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    background: #fff !important;
}
/* ปุ่ม +/−: 25% | 50% | 25% layout เหมือนหน้า /shop */
.cart-bar .product-card__quantity-control .btn,
.cart-bar .product-card__quantity-control .btn.btn-outline-secondary {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    flex: 1 0 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
    height: 100% !important;
    min-height: 100% !important;
    min-width: 25% !important;
}
.cart-bar .product-card__quantity-control .btn:last-child,
.cart-bar .product-card__quantity-control .btn:last-of-type {
    border-right: none !important;
    border-left: none !important;
}
.cart-bar .product-card__quantity-control .btn:hover,
.cart-bar .product-card__quantity-control .btn.btn-outline-secondary:hover {
    background: #eee !important;
    color: #C12523 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.cart-bar .product-card__quantity-control .btn:active,
.cart-bar .product-card__quantity-control .btn.btn-outline-secondary:active {
    background: #e5e5e5 !important;
    color: #C12523 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.cart-bar .product-card__quantity-control .btn:focus,
.cart-bar .product-card__quantity-control .btn:focus-visible,
.cart-bar .product-card__quantity-control .btn.btn-outline-secondary:focus,
.cart-bar .product-card__quantity-control .btn.btn-outline-secondary:focus-visible {
    box-shadow: none !important;
    outline: none !important;
}
.cart-bar .product-card__quantity-control .form-control,
.cart-bar .product-card__quantity-control input,
.cart-bar .product-card__quantity-control .quantity-value {
    min-width: 0 !important;
    flex: 2 0 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: none !important;
    border-right: 1px solid #e8e8e8 !important;
    border-left: 1px solid #e8e8e8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #222 !important;
    transition: box-shadow 0.2s ease !important;
}
.cart-bar .product-card__quantity-control input:focus {
    outline: none !important;
    box-shadow: inset 0 0 0 1.5px #C12523 !important;
    z-index: 1;
}
.cart-bar .product-card__quantity-control input[type="number"]::-webkit-inner-spin-button,
.cart-bar .product-card__quantity-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.cart-bar .product-card__quantity-control input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Print: hide topbar, language, and cart icon when printing / Save as PDF */
@media print {
    .header-topbar,
    .header-topbar1,
    .header-topbar-menu-area,
    .topbar-select-area,
    .locale-switcher,
    .header-topbar .header-top-area,
    .header-topbar .slider-div,
    .header-topbar .welcome-text,
    .header-action-items .cart,
    .cart-icon.icon {
        display: none !important;
        visibility: hidden !important;
    }
}
