:root {
    --ml-primary: #0F5132;
    --ml-cream: #FAF9F6;
    --ml-text: #333333;
}

.ml-product-wrapper-9440f397 {
    font-family: sans-serif;
    color: var(--ml-text);
    background: var(--ml-cream);
    padding: 15px;
    border-radius: 12px;
    padding-bottom: 80px; /* space for sticky cart */
}

/* MOBILE FIRST DEFAULT LAYOUT */

.ml-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.ml-main-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.ml-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ml-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.ml-thumbnails img:hover {
    border-color: var(--ml-primary);
}

.ml-product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ml-product-price {
    font-size: 20px;
    color: var(--ml-primary);
    font-weight: bold;
    margin-bottom: 15px;
}

.ml-add-to-cart-wrap form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.ml-add-to-cart-wrap button.single_add_to_cart_button {
    background: var(--ml-primary);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
}

.ml-add-to-cart-wrap button.single_add_to_cart_button:hover {
    background: #0a3a24;
}

.ml-trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.ml-trust-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ml-trust-icon {
    font-size: 20px;
    color: var(--ml-primary);
    margin-bottom: 8px;
}

.ml-product-tabs {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.ml-tab-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.ml-tab-link {
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    flex: 1 1 auto;
    text-align: center;
}

.ml-tab-link.active {
    color: var(--ml-primary);
    border-bottom: 3px solid var(--ml-primary);
}

.ml-tab-content {
    display: none;
    font-size: 14px;
}

.ml-tab-content.active {
    display: block;
}

.ml-sticky-mobile-cart {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ml-smc-button {
    background: var(--ml-primary);
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
    white-space: nowrap;
}
.ml-smc-price {
    font-weight: bold;
    color: var(--ml-primary);
    white-space: nowrap;
}

/* 480px Breakpoint (Large Mobile) */
@media (min-width: 480px) {
    .ml-trust-badges {
        grid-template-columns: 1fr 1fr;
    }
    .ml-add-to-cart-wrap form.cart {
        flex-direction: row;
    }
    .ml-add-to-cart-wrap button.single_add_to_cart_button {
        width: auto;
        flex-grow: 1;
    }
}

/* 768px Breakpoint (Tablet) */
@media (min-width: 768px) {
    .ml-product-wrapper-9440f397 {
        padding: 20px;
        padding-bottom: 20px; /* remove sticky cart spacing */
    }
    .ml-hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* This puts image and data side by side on tablet */
        gap: 30px;
    }
    .ml-sticky-mobile-cart {
        display: none; /* hide sticky cart on tablet+ */
    }
    .ml-product-title {
        font-size: 26px;
    }
    .ml-tab-links {
        gap: 20px;
    }
    .ml-tab-link {
        font-size: 16px;
    }
}

/* 1024px Breakpoint (Desktop) */
@media (min-width: 1024px) {
    .ml-hero-grid {
        gap: 40px;
    }
    .ml-trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }
    .ml-product-title {
        font-size: 32px;
    }
    .ml-product-price {
        font-size: 28px;
    }
    .ml-thumbnails img {
        width: 80px;
        height: 80px;
    }
}
