
body {
    background-color: #f8f9fa;
}

.has-sticky-cart {
    padding-bottom: 90px;
}

.custom-btn {
    appearance: none;
    background: #ffb349f4;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.custom-btn-green {
    appearance: none;
    background: #A2CC41;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.card-image-wrapper {
    height: 220px; /* same for all cards */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper-max-height {
    max-height: 100%; /* same for all cards */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

.custom-font-green {
    color: #A2CC41;
}

.custom-font-orange {
    color: #ffb349f4;
}

.font-bold {
    font-weight: 700;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.blog-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient( 
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.3), 
        rgba(0,0,0,0.6) );
}

.icon-text {
    display: inline-flex;
    align-items: flex-end; /* bottom alignment */
    gap: 6px;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to right, rgba(0, 0, 0, 0.65), rgba(0,0,0,0.15), rgba(0,0,0,0) );
}

.main-image {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.25s ease-in-out;
}

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.product-gallery {
    max-width: 100%;
}

/* =========================
   MAIN PRODUCT IMAGE
   ========================= */
.product-img {
    width: 100%; /* fills column width */
    max-width: 800px; /* your medium image size */
    height: auto; /* maintain natural aspect ratio */
    object-fit: contain; /* prevents stretching */
    display: block; /* removes inline spacing */
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem; /* space below image */
}

.price {
    font-size: 1.8rem;
    font-weight: 600;
}

.free-shipping {
    color: #198754; /* Bootstrap success green */
    font-weight: 500;
    font-size: 0.95rem;
}

.quantity-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 44px; /* mobile-friendly height */
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
}

    .qty-btn:hover {
        background: #e9ecef;
    }

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 500;
}

    .qty-input:focus {
        outline: none;
    }

section {
    padding-top: 70px;
    margin-left: 4px;
    margin-right: 4px;
}

.section-tight {
    padding-top: 30px;
    margin-left: 4px;
    margin-right: 4px;
}

.text-justify {
    text-align: justify;
    hyphens: auto;
}

.thumb-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
}

    .thumb-img.active {
        border-color: #0d6efd;
    }

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #000;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.trust-item {
    color: #495057;
}

.similar-card img {
    height: 180px;
    object-fit: cover;
}

.similar-card {
    transition: transform 0.2s ease;
}

    .similar-card:hover {
        transform: translateY(-5px);
    }

.sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 10px 15px;
    z-index: 1050;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

    .sticky-cart.visible {
        transform: translateY(0);
    }

.sticky-cart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sticky-left {
    display: flex;
    flex-direction: column;
}

.sticky-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.sticky-shipping {
    font-size: 0.8rem;
    color: #198754;
    font-weight: 500;
}

.sticky-btn {
    padding: 10px 20px;
    font-weight: 500;
    white-space: nowrap;
}

/* Only the table scrolls horizontally on small screens */
.cart-container {
    width: 100%;
    overflow-x: auto; /* enables horizontal scrolling */
}

/* Optional: keep table layout clean on mobile */
.table {
    min-width: 600px; /* table is at least 600px wide */
}

.text-overlay h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.text-overlay h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
}

.text-overlay h5 {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
}

.text-overlay p {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
}

#testimonialCarousel .card {
    border-radius: 16px;
    transition: transform .25s, box-shadow .25s;
}

#testimonialCarousel .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

#testimonialCarousel p {
    font-size: 1.05rem;
    color: #444;
}

#testimonialCarousel .carousel-item {
    transition: transform .6s ease;
}

#testimonials .card {
    max-width: 420px;
    margin: auto;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.card-description {
    flex-grow: 1;
}

/* Quantity wrapper */
.qty-controls {
    width: 100%;
}

    /* Input: narrower */
    .qty-controls .quantity-input {
        width: 40px;
        padding: 4px;
        font-size: 0.9rem;
    }

/* Buttons: wider & touch-friendly */
.btn-qty {
    min-width: 44px; /* thumb-friendly */
    padding: 6px 0;
    font-size: 1.1rem;
    line-height: 1;
}

/* Tablet & up */
@media (min-width: 768px) {
    .qty-controls .quantity-input {
        width: 60px;
        font-size: 1rem;
    }

    .btn-qty {
        min-width: 48px;
        padding: 6px 0;
        font-size: 1.2rem;
    }
}

.blog-content {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 300;
}
