/* Add here all your CSS customizations */

/* CRITICAL FIX: Ensure all images are visible and don't disappear */
img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header images must always be visible */
#header img,
.header img,
.logo img,
.cart-icon img,
.navbar img {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Product images fix */
.product-image img,
.product img,
.shop img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Cart icon specific fix */
.header-nav-features-cart img,
.cart-info img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Header active link styling */
.nav-pills > .active > .dropdown-item {
    color: #ffffff !important;
    background-color: #28a745 !important;
}

.nav-pills > .active > .dropdown-item:hover {
    color: #ffffff !important;
    background-color: #218838 !important;
}

/* Minimal slider improvements using Porto classes */
@media (max-width: 767.98px) {
    /* Adjust slider height for mobile using Porto responsive approach */
    .slider-container {
        height: 400px !important;
    }
}

@media (max-width: 575.98px) {
    /* Extra small screens */
    .slider-container {
        height: 350px !important;
    }
}

/* Product variant styling */
.variant-choice {
    margin: 0 0.5rem 0.5rem 0;
}

.variant-choice.active {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.variant-choice small {
    font-size: 0.75rem;
}

/* Shop grid refinements */
.main.shop .product-thumb-info-image.ratio-box {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 75%;
    background: #f8f9fa;
    overflow: hidden;
    border-radius: 0.25rem;
}

.main.shop .product-thumb-info-image.ratio-box > img.ratio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-featured {
    display: inline-block;
    background: #ffc107;
    color: #3a2f0b;
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.main.shop .product-thumb-info-image .badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.single-product-badge {
    margin-left: 0.75rem;
}

.main.shop .add-to-cart-product {
    display: none !important;
}

.main.shop .product .product-thumb-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main.shop .product-thumb-info-content {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.main.shop .product-thumb-info-content .price,
.main.shop .product-thumb-info-content .rfq-text {
    font-weight: 600;
}

.main.shop .product-thumb-info-content .rfq-text {
    color: #0d6efd;
}

.main.shop .product-cta {
    margin-top: auto;
}

.main.shop .product-cta .btn {
    width: 100%;
}

/* Checkout presentation */
.checkout-page .card.sticky-top {
    position: sticky !important;
    top: 20px;
}

.checkout-page .order-items img {
    border-radius: 8px;
}

.checkout-page .form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.checkout-page .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.checkout-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.checkout-page .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.checkout-page #placeOrderBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.main.shop .product-thumb-info-content .badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.08);
    color: #5c5c5c;
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
}

.main.shop .product-thumb-info .btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
}

.main.shop .product-thumb-info .btn.btn-primary {
    background: #1e73be;
    border-color: #1e73be;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main.shop .product-thumb-info .btn.btn-primary:hover {
    background: #155a93;
    border-color: #155a93;
    transform: translateY(-1px);
}

.main.shop .product-thumb-info .btn.btn-outline-primary {
    border-color: #1e73be;
    color: #1e73be;
}

.main.shop .product-thumb-info .btn.btn-outline-primary:hover {
    background: #1e73be;
    color: #fff;
}
